hadoop_1.2.0.xml 3.5 MB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929259302593125932259332593425935259362593725938259392594025941259422594325944259452594625947259482594925950259512595225953259542595525956259572595825959259602596125962259632596425965259662596725968259692597025971259722597325974259752597625977259782597925980259812598225983259842598525986259872598825989259902599125992259932599425995259962599725998259992600026001260022600326004260052600626007260082600926010260112601226013260142601526016260172601826019260202602126022260232602426025260262602726028260292603026031260322603326034260352603626037260382603926040260412604226043260442604526046260472604826049260502605126052260532605426055260562605726058260592606026061260622606326064260652606626067260682606926070260712607226073260742607526076260772607826079260802608126082260832608426085260862608726088260892609026091260922609326094260952609626097260982609926100261012610226103261042610526106261072610826109261102611126112261132611426115261162611726118261192612026121261222612326124261252612626127261282612926130261312613226133261342613526136261372613826139261402614126142261432614426145261462614726148261492615026151261522615326154261552615626157261582615926160261612616226163261642616526166261672616826169261702617126172261732617426175261762617726178261792618026181261822618326184261852618626187261882618926190261912619226193261942619526196261972619826199262002620126202262032620426205262062620726208262092621026211262122621326214262152621626217262182621926220262212622226223262242622526226262272622826229262302623126232262332623426235262362623726238262392624026241262422624326244262452624626247262482624926250262512625226253262542625526256262572625826259262602626126262262632626426265262662626726268262692627026271262722627326274262752627626277262782627926280262812628226283262842628526286262872628826289262902629126292262932629426295262962629726298262992630026301263022630326304263052630626307263082630926310263112631226313263142631526316263172631826319263202632126322263232632426325263262632726328263292633026331263322633326334263352633626337263382633926340263412634226343263442634526346263472634826349263502635126352263532635426355263562635726358263592636026361263622636326364263652636626367263682636926370263712637226373263742637526376263772637826379263802638126382263832638426385263862638726388263892639026391263922639326394263952639626397263982639926400264012640226403264042640526406264072640826409264102641126412264132641426415264162641726418264192642026421264222642326424264252642626427264282642926430264312643226433264342643526436264372643826439264402644126442264432644426445264462644726448264492645026451264522645326454264552645626457264582645926460264612646226463264642646526466264672646826469264702647126472264732647426475264762647726478264792648026481264822648326484264852648626487264882648926490264912649226493264942649526496264972649826499265002650126502265032650426505265062650726508265092651026511265122651326514265152651626517265182651926520265212652226523265242652526526265272652826529265302653126532265332653426535265362653726538265392654026541265422654326544265452654626547265482654926550265512655226553265542655526556265572655826559265602656126562265632656426565265662656726568265692657026571265722657326574265752657626577265782657926580265812658226583265842658526586265872658826589265902659126592265932659426595265962659726598265992660026601266022660326604266052660626607266082660926610266112661226613266142661526616266172661826619266202662126622266232662426625266262662726628266292663026631266322663326634266352663626637266382663926640266412664226643266442664526646266472664826649266502665126652266532665426655266562665726658266592666026661266622666326664266652666626667266682666926670266712667226673266742667526676266772667826679266802668126682266832668426685266862668726688266892669026691266922669326694266952669626697266982669926700267012670226703267042670526706267072670826709267102671126712267132671426715267162671726718267192672026721267222672326724267252672626727267282672926730267312673226733267342673526736267372673826739267402674126742267432674426745267462674726748267492675026751267522675326754267552675626757267582675926760267612676226763267642676526766267672676826769267702677126772267732677426775267762677726778267792678026781267822678326784267852678626787267882678926790267912679226793267942679526796267972679826799268002680126802268032680426805268062680726808268092681026811268122681326814268152681626817268182681926820268212682226823268242682526826268272682826829268302683126832268332683426835268362683726838268392684026841268422684326844268452684626847268482684926850268512685226853268542685526856268572685826859268602686126862268632686426865268662686726868268692687026871268722687326874268752687626877268782687926880268812688226883268842688526886268872688826889268902689126892268932689426895268962689726898268992690026901269022690326904269052690626907269082690926910269112691226913269142691526916269172691826919269202692126922269232692426925269262692726928269292693026931269322693326934269352693626937269382693926940269412694226943269442694526946269472694826949269502695126952269532695426955269562695726958269592696026961269622696326964269652696626967269682696926970269712697226973269742697526976269772697826979269802698126982269832698426985269862698726988269892699026991269922699326994269952699626997269982699927000270012700227003270042700527006270072700827009270102701127012270132701427015270162701727018270192702027021270222702327024270252702627027270282702927030270312703227033270342703527036270372703827039270402704127042270432704427045270462704727048270492705027051270522705327054270552705627057270582705927060270612706227063270642706527066270672706827069270702707127072270732707427075270762707727078270792708027081270822708327084270852708627087270882708927090270912709227093270942709527096270972709827099271002710127102271032710427105271062710727108271092711027111271122711327114271152711627117271182711927120271212712227123271242712527126271272712827129271302713127132271332713427135271362713727138271392714027141271422714327144271452714627147271482714927150271512715227153271542715527156271572715827159271602716127162271632716427165271662716727168271692717027171271722717327174271752717627177271782717927180271812718227183271842718527186271872718827189271902719127192271932719427195271962719727198271992720027201272022720327204272052720627207272082720927210272112721227213272142721527216272172721827219272202722127222272232722427225272262722727228272292723027231272322723327234272352723627237272382723927240272412724227243272442724527246272472724827249272502725127252272532725427255272562725727258272592726027261272622726327264272652726627267272682726927270272712727227273272742727527276272772727827279272802728127282272832728427285272862728727288272892729027291272922729327294272952729627297272982729927300273012730227303273042730527306273072730827309273102731127312273132731427315273162731727318273192732027321273222732327324273252732627327273282732927330273312733227333273342733527336273372733827339273402734127342273432734427345273462734727348273492735027351273522735327354273552735627357273582735927360273612736227363273642736527366273672736827369273702737127372273732737427375273762737727378273792738027381273822738327384273852738627387273882738927390273912739227393273942739527396273972739827399274002740127402274032740427405274062740727408274092741027411274122741327414274152741627417274182741927420274212742227423274242742527426274272742827429274302743127432274332743427435274362743727438274392744027441274422744327444274452744627447274482744927450274512745227453274542745527456274572745827459274602746127462274632746427465274662746727468274692747027471274722747327474274752747627477274782747927480274812748227483274842748527486274872748827489274902749127492274932749427495274962749727498274992750027501275022750327504275052750627507275082750927510275112751227513275142751527516275172751827519275202752127522275232752427525275262752727528275292753027531275322753327534275352753627537275382753927540275412754227543275442754527546275472754827549275502755127552275532755427555275562755727558275592756027561275622756327564275652756627567275682756927570275712757227573275742757527576275772757827579275802758127582275832758427585275862758727588275892759027591275922759327594275952759627597275982759927600276012760227603276042760527606276072760827609276102761127612276132761427615276162761727618276192762027621276222762327624276252762627627276282762927630276312763227633276342763527636276372763827639276402764127642276432764427645276462764727648276492765027651276522765327654276552765627657276582765927660276612766227663276642766527666276672766827669276702767127672276732767427675276762767727678276792768027681276822768327684276852768627687276882768927690276912769227693276942769527696276972769827699277002770127702277032770427705277062770727708277092771027711277122771327714277152771627717277182771927720277212772227723277242772527726277272772827729277302773127732277332773427735277362773727738277392774027741277422774327744277452774627747277482774927750277512775227753277542775527756277572775827759277602776127762277632776427765277662776727768277692777027771277722777327774277752777627777277782777927780277812778227783277842778527786277872778827789277902779127792277932779427795277962779727798277992780027801278022780327804278052780627807278082780927810278112781227813278142781527816278172781827819278202782127822278232782427825278262782727828278292783027831278322783327834278352783627837278382783927840278412784227843278442784527846278472784827849278502785127852278532785427855278562785727858278592786027861278622786327864278652786627867278682786927870278712787227873278742787527876278772787827879278802788127882278832788427885278862788727888278892789027891278922789327894278952789627897278982789927900279012790227903279042790527906279072790827909279102791127912279132791427915279162791727918279192792027921279222792327924279252792627927279282792927930279312793227933279342793527936279372793827939279402794127942279432794427945279462794727948279492795027951279522795327954279552795627957279582795927960279612796227963279642796527966279672796827969279702797127972279732797427975279762797727978279792798027981279822798327984279852798627987279882798927990279912799227993279942799527996279972799827999280002800128002280032800428005280062800728008280092801028011280122801328014280152801628017280182801928020280212802228023280242802528026280272802828029280302803128032280332803428035280362803728038280392804028041280422804328044280452804628047280482804928050280512805228053280542805528056280572805828059280602806128062280632806428065280662806728068280692807028071280722807328074280752807628077280782807928080280812808228083280842808528086280872808828089280902809128092280932809428095280962809728098280992810028101281022810328104281052810628107281082810928110281112811228113281142811528116281172811828119281202812128122281232812428125281262812728128281292813028131281322813328134281352813628137281382813928140281412814228143281442814528146281472814828149281502815128152281532815428155281562815728158281592816028161281622816328164281652816628167281682816928170281712817228173281742817528176281772817828179281802818128182281832818428185281862818728188281892819028191281922819328194281952819628197281982819928200282012820228203282042820528206282072820828209282102821128212282132821428215282162821728218282192822028221282222822328224282252822628227282282822928230282312823228233282342823528236282372823828239282402824128242282432824428245282462824728248282492825028251282522825328254282552825628257282582825928260282612826228263282642826528266282672826828269282702827128272282732827428275282762827728278282792828028281282822828328284282852828628287282882828928290282912829228293282942829528296282972829828299283002830128302283032830428305283062830728308283092831028311283122831328314283152831628317283182831928320283212832228323283242832528326283272832828329283302833128332283332833428335283362833728338283392834028341283422834328344283452834628347283482834928350283512835228353283542835528356283572835828359283602836128362283632836428365283662836728368283692837028371283722837328374283752837628377283782837928380283812838228383283842838528386283872838828389283902839128392283932839428395283962839728398283992840028401284022840328404284052840628407284082840928410284112841228413284142841528416284172841828419284202842128422284232842428425284262842728428284292843028431284322843328434284352843628437284382843928440284412844228443284442844528446284472844828449284502845128452284532845428455284562845728458284592846028461284622846328464284652846628467284682846928470284712847228473284742847528476284772847828479284802848128482284832848428485284862848728488284892849028491284922849328494284952849628497284982849928500285012850228503285042850528506285072850828509285102851128512285132851428515285162851728518285192852028521285222852328524285252852628527285282852928530285312853228533285342853528536285372853828539285402854128542285432854428545285462854728548285492855028551285522855328554285552855628557285582855928560285612856228563285642856528566285672856828569285702857128572285732857428575285762857728578285792858028581285822858328584285852858628587285882858928590285912859228593285942859528596285972859828599286002860128602286032860428605286062860728608286092861028611286122861328614286152861628617286182861928620286212862228623286242862528626286272862828629286302863128632286332863428635286362863728638286392864028641286422864328644286452864628647286482864928650286512865228653286542865528656286572865828659286602866128662286632866428665286662866728668286692867028671286722867328674286752867628677286782867928680286812868228683286842868528686286872868828689286902869128692286932869428695286962869728698286992870028701287022870328704287052870628707287082870928710287112871228713287142871528716287172871828719287202872128722287232872428725287262872728728287292873028731287322873328734287352873628737287382873928740287412874228743287442874528746287472874828749287502875128752287532875428755287562875728758287592876028761287622876328764287652876628767287682876928770287712877228773287742877528776287772877828779287802878128782287832878428785287862878728788287892879028791287922879328794287952879628797287982879928800288012880228803288042880528806288072880828809288102881128812288132881428815288162881728818288192882028821288222882328824288252882628827288282882928830288312883228833288342883528836288372883828839288402884128842288432884428845288462884728848288492885028851288522885328854288552885628857288582885928860288612886228863288642886528866288672886828869288702887128872288732887428875288762887728878288792888028881288822888328884288852888628887288882888928890288912889228893288942889528896288972889828899289002890128902289032890428905289062890728908289092891028911289122891328914289152891628917289182891928920289212892228923289242892528926289272892828929289302893128932289332893428935289362893728938289392894028941289422894328944289452894628947289482894928950289512895228953289542895528956289572895828959289602896128962289632896428965289662896728968289692897028971289722897328974289752897628977289782897928980289812898228983289842898528986289872898828989289902899128992289932899428995289962899728998289992900029001290022900329004290052900629007290082900929010290112901229013290142901529016290172901829019290202902129022290232902429025290262902729028290292903029031290322903329034290352903629037290382903929040290412904229043290442904529046290472904829049290502905129052290532905429055290562905729058290592906029061290622906329064290652906629067290682906929070290712907229073290742907529076290772907829079290802908129082290832908429085290862908729088290892909029091290922909329094290952909629097290982909929100291012910229103291042910529106291072910829109291102911129112291132911429115291162911729118291192912029121291222912329124291252912629127291282912929130291312913229133291342913529136291372913829139291402914129142291432914429145291462914729148291492915029151291522915329154291552915629157291582915929160291612916229163291642916529166291672916829169291702917129172291732917429175291762917729178291792918029181291822918329184291852918629187291882918929190291912919229193291942919529196291972919829199292002920129202292032920429205292062920729208292092921029211292122921329214292152921629217292182921929220292212922229223292242922529226292272922829229292302923129232292332923429235292362923729238292392924029241292422924329244292452924629247292482924929250292512925229253292542925529256292572925829259292602926129262292632926429265292662926729268292692927029271292722927329274292752927629277292782927929280292812928229283292842928529286292872928829289292902929129292292932929429295292962929729298292992930029301293022930329304293052930629307293082930929310293112931229313293142931529316293172931829319293202932129322293232932429325293262932729328293292933029331293322933329334293352933629337293382933929340293412934229343293442934529346293472934829349293502935129352293532935429355293562935729358293592936029361293622936329364293652936629367293682936929370293712937229373293742937529376293772937829379293802938129382293832938429385293862938729388293892939029391293922939329394293952939629397293982939929400294012940229403294042940529406294072940829409294102941129412294132941429415294162941729418294192942029421294222942329424294252942629427294282942929430294312943229433294342943529436294372943829439294402944129442294432944429445294462944729448294492945029451294522945329454294552945629457294582945929460294612946229463294642946529466294672946829469294702947129472294732947429475294762947729478294792948029481294822948329484294852948629487294882948929490294912949229493294942949529496294972949829499295002950129502295032950429505295062950729508295092951029511295122951329514295152951629517295182951929520295212952229523295242952529526295272952829529295302953129532295332953429535295362953729538295392954029541295422954329544295452954629547295482954929550295512955229553295542955529556295572955829559295602956129562295632956429565295662956729568295692957029571295722957329574295752957629577295782957929580295812958229583295842958529586295872958829589295902959129592295932959429595295962959729598295992960029601296022960329604296052960629607296082960929610296112961229613296142961529616296172961829619296202962129622296232962429625296262962729628296292963029631296322963329634296352963629637296382963929640296412964229643296442964529646296472964829649296502965129652296532965429655296562965729658296592966029661296622966329664296652966629667296682966929670296712967229673296742967529676296772967829679296802968129682296832968429685296862968729688296892969029691296922969329694296952969629697296982969929700297012970229703297042970529706297072970829709297102971129712297132971429715297162971729718297192972029721297222972329724297252972629727297282972929730297312973229733297342973529736297372973829739297402974129742297432974429745297462974729748297492975029751297522975329754297552975629757297582975929760297612976229763297642976529766297672976829769297702977129772297732977429775297762977729778297792978029781297822978329784297852978629787297882978929790297912979229793297942979529796297972979829799298002980129802298032980429805298062980729808298092981029811298122981329814298152981629817298182981929820298212982229823298242982529826298272982829829298302983129832298332983429835298362983729838298392984029841298422984329844298452984629847298482984929850298512985229853298542985529856298572985829859298602986129862298632986429865298662986729868298692987029871298722987329874298752987629877298782987929880298812988229883298842988529886298872988829889298902989129892298932989429895298962989729898298992990029901299022990329904299052990629907299082990929910299112991229913299142991529916299172991829919299202992129922299232992429925299262992729928299292993029931299322993329934299352993629937299382993929940299412994229943299442994529946299472994829949299502995129952299532995429955299562995729958299592996029961299622996329964299652996629967299682996929970299712997229973299742997529976299772997829979299802998129982299832998429985299862998729988299892999029991299922999329994299952999629997299982999930000300013000230003300043000530006300073000830009300103001130012300133001430015300163001730018300193002030021300223002330024300253002630027300283002930030300313003230033300343003530036300373003830039300403004130042300433004430045300463004730048300493005030051300523005330054300553005630057300583005930060300613006230063300643006530066300673006830069300703007130072300733007430075300763007730078300793008030081300823008330084300853008630087300883008930090300913009230093300943009530096300973009830099301003010130102301033010430105301063010730108301093011030111301123011330114301153011630117301183011930120301213012230123301243012530126301273012830129301303013130132301333013430135301363013730138301393014030141301423014330144301453014630147301483014930150301513015230153301543015530156301573015830159301603016130162301633016430165301663016730168301693017030171301723017330174301753017630177301783017930180301813018230183301843018530186301873018830189301903019130192301933019430195301963019730198301993020030201302023020330204302053020630207302083020930210302113021230213302143021530216302173021830219302203022130222302233022430225302263022730228302293023030231302323023330234302353023630237302383023930240302413024230243302443024530246302473024830249302503025130252302533025430255302563025730258302593026030261302623026330264302653026630267302683026930270302713027230273302743027530276302773027830279302803028130282302833028430285302863028730288302893029030291302923029330294302953029630297302983029930300303013030230303303043030530306303073030830309303103031130312303133031430315303163031730318303193032030321303223032330324303253032630327303283032930330303313033230333303343033530336303373033830339303403034130342303433034430345303463034730348303493035030351303523035330354303553035630357303583035930360303613036230363303643036530366303673036830369303703037130372303733037430375303763037730378303793038030381303823038330384303853038630387303883038930390303913039230393303943039530396303973039830399304003040130402304033040430405304063040730408304093041030411304123041330414304153041630417304183041930420304213042230423304243042530426304273042830429304303043130432304333043430435304363043730438304393044030441304423044330444304453044630447304483044930450304513045230453304543045530456304573045830459304603046130462304633046430465304663046730468304693047030471304723047330474304753047630477304783047930480304813048230483304843048530486304873048830489304903049130492304933049430495304963049730498304993050030501305023050330504305053050630507305083050930510305113051230513305143051530516305173051830519305203052130522305233052430525305263052730528305293053030531305323053330534305353053630537305383053930540305413054230543305443054530546305473054830549305503055130552305533055430555305563055730558305593056030561305623056330564305653056630567305683056930570305713057230573305743057530576305773057830579305803058130582305833058430585305863058730588305893059030591305923059330594305953059630597305983059930600306013060230603306043060530606306073060830609306103061130612306133061430615306163061730618306193062030621306223062330624306253062630627306283062930630306313063230633306343063530636306373063830639306403064130642306433064430645306463064730648306493065030651306523065330654306553065630657306583065930660306613066230663306643066530666306673066830669306703067130672306733067430675306763067730678306793068030681306823068330684306853068630687306883068930690306913069230693306943069530696306973069830699307003070130702307033070430705307063070730708307093071030711307123071330714307153071630717307183071930720307213072230723307243072530726307273072830729307303073130732307333073430735307363073730738307393074030741307423074330744307453074630747307483074930750307513075230753307543075530756307573075830759307603076130762307633076430765307663076730768307693077030771307723077330774307753077630777307783077930780307813078230783307843078530786307873078830789307903079130792307933079430795307963079730798307993080030801308023080330804308053080630807308083080930810308113081230813308143081530816308173081830819308203082130822308233082430825308263082730828308293083030831308323083330834308353083630837308383083930840308413084230843308443084530846308473084830849308503085130852308533085430855308563085730858308593086030861308623086330864308653086630867308683086930870308713087230873308743087530876308773087830879308803088130882308833088430885308863088730888308893089030891308923089330894308953089630897308983089930900309013090230903309043090530906309073090830909309103091130912309133091430915309163091730918309193092030921309223092330924309253092630927309283092930930309313093230933309343093530936309373093830939309403094130942309433094430945309463094730948309493095030951309523095330954309553095630957309583095930960309613096230963309643096530966309673096830969309703097130972309733097430975309763097730978309793098030981309823098330984309853098630987309883098930990309913099230993309943099530996309973099830999310003100131002310033100431005310063100731008310093101031011310123101331014310153101631017310183101931020310213102231023310243102531026310273102831029310303103131032310333103431035310363103731038310393104031041310423104331044310453104631047310483104931050310513105231053310543105531056310573105831059310603106131062310633106431065310663106731068310693107031071310723107331074310753107631077310783107931080310813108231083310843108531086310873108831089310903109131092310933109431095310963109731098310993110031101311023110331104311053110631107311083110931110311113111231113311143111531116311173111831119311203112131122311233112431125311263112731128311293113031131311323113331134311353113631137311383113931140311413114231143311443114531146311473114831149311503115131152311533115431155311563115731158311593116031161311623116331164311653116631167311683116931170311713117231173311743117531176311773117831179311803118131182311833118431185311863118731188311893119031191311923119331194311953119631197311983119931200312013120231203312043120531206312073120831209312103121131212312133121431215312163121731218312193122031221312223122331224312253122631227312283122931230312313123231233312343123531236312373123831239312403124131242312433124431245312463124731248312493125031251312523125331254312553125631257312583125931260312613126231263312643126531266312673126831269312703127131272312733127431275312763127731278312793128031281312823128331284312853128631287312883128931290312913129231293312943129531296312973129831299313003130131302313033130431305313063130731308313093131031311313123131331314313153131631317313183131931320313213132231323313243132531326313273132831329313303133131332313333133431335313363133731338313393134031341313423134331344313453134631347313483134931350313513135231353313543135531356313573135831359313603136131362313633136431365313663136731368313693137031371313723137331374313753137631377313783137931380313813138231383313843138531386313873138831389313903139131392313933139431395313963139731398313993140031401314023140331404314053140631407314083140931410314113141231413314143141531416314173141831419314203142131422314233142431425314263142731428314293143031431314323143331434314353143631437314383143931440314413144231443314443144531446314473144831449314503145131452314533145431455314563145731458314593146031461314623146331464314653146631467314683146931470314713147231473314743147531476314773147831479314803148131482314833148431485314863148731488314893149031491314923149331494314953149631497314983149931500315013150231503315043150531506315073150831509315103151131512315133151431515315163151731518315193152031521315223152331524315253152631527315283152931530315313153231533315343153531536315373153831539315403154131542315433154431545315463154731548315493155031551315523155331554315553155631557315583155931560315613156231563315643156531566315673156831569315703157131572315733157431575315763157731578315793158031581315823158331584315853158631587315883158931590315913159231593315943159531596315973159831599316003160131602316033160431605316063160731608316093161031611316123161331614316153161631617316183161931620316213162231623316243162531626316273162831629316303163131632316333163431635316363163731638316393164031641316423164331644316453164631647316483164931650316513165231653316543165531656316573165831659316603166131662316633166431665316663166731668316693167031671316723167331674316753167631677316783167931680316813168231683316843168531686316873168831689316903169131692316933169431695316963169731698316993170031701317023170331704317053170631707317083170931710317113171231713317143171531716317173171831719317203172131722317233172431725317263172731728317293173031731317323173331734317353173631737317383173931740317413174231743317443174531746317473174831749317503175131752317533175431755317563175731758317593176031761317623176331764317653176631767317683176931770317713177231773317743177531776317773177831779317803178131782317833178431785317863178731788317893179031791317923179331794317953179631797317983179931800318013180231803318043180531806318073180831809318103181131812318133181431815318163181731818318193182031821318223182331824318253182631827318283182931830318313183231833318343183531836318373183831839318403184131842318433184431845318463184731848318493185031851318523185331854318553185631857318583185931860318613186231863318643186531866318673186831869318703187131872318733187431875318763187731878318793188031881318823188331884318853188631887318883188931890318913189231893318943189531896318973189831899319003190131902319033190431905319063190731908319093191031911319123191331914319153191631917319183191931920319213192231923319243192531926319273192831929319303193131932319333193431935319363193731938319393194031941319423194331944319453194631947319483194931950319513195231953319543195531956319573195831959319603196131962319633196431965319663196731968319693197031971319723197331974319753197631977319783197931980319813198231983319843198531986319873198831989319903199131992319933199431995319963199731998319993200032001320023200332004320053200632007320083200932010320113201232013320143201532016320173201832019320203202132022320233202432025320263202732028320293203032031320323203332034320353203632037320383203932040320413204232043320443204532046320473204832049320503205132052320533205432055320563205732058320593206032061320623206332064320653206632067320683206932070320713207232073320743207532076320773207832079320803208132082320833208432085320863208732088320893209032091320923209332094320953209632097320983209932100321013210232103321043210532106321073210832109321103211132112321133211432115321163211732118321193212032121321223212332124321253212632127321283212932130321313213232133321343213532136321373213832139321403214132142321433214432145321463214732148321493215032151321523215332154321553215632157321583215932160321613216232163321643216532166321673216832169321703217132172321733217432175321763217732178321793218032181321823218332184321853218632187321883218932190321913219232193321943219532196321973219832199322003220132202322033220432205322063220732208322093221032211322123221332214322153221632217322183221932220322213222232223322243222532226322273222832229322303223132232322333223432235322363223732238322393224032241322423224332244322453224632247322483224932250322513225232253322543225532256322573225832259322603226132262322633226432265322663226732268322693227032271322723227332274322753227632277322783227932280322813228232283322843228532286322873228832289322903229132292322933229432295322963229732298322993230032301323023230332304323053230632307323083230932310323113231232313323143231532316323173231832319323203232132322323233232432325323263232732328323293233032331323323233332334323353233632337323383233932340323413234232343323443234532346323473234832349323503235132352323533235432355323563235732358323593236032361323623236332364323653236632367323683236932370323713237232373323743237532376323773237832379323803238132382323833238432385323863238732388323893239032391323923239332394323953239632397323983239932400324013240232403324043240532406324073240832409324103241132412324133241432415324163241732418324193242032421324223242332424324253242632427324283242932430324313243232433324343243532436324373243832439324403244132442324433244432445324463244732448324493245032451324523245332454324553245632457324583245932460324613246232463324643246532466324673246832469324703247132472324733247432475324763247732478324793248032481324823248332484324853248632487324883248932490324913249232493324943249532496324973249832499325003250132502325033250432505325063250732508325093251032511325123251332514325153251632517325183251932520325213252232523325243252532526325273252832529325303253132532325333253432535325363253732538325393254032541325423254332544325453254632547325483254932550325513255232553325543255532556325573255832559325603256132562325633256432565325663256732568325693257032571325723257332574325753257632577325783257932580325813258232583325843258532586325873258832589325903259132592325933259432595325963259732598325993260032601326023260332604326053260632607326083260932610326113261232613326143261532616326173261832619326203262132622326233262432625326263262732628326293263032631326323263332634326353263632637326383263932640326413264232643326443264532646326473264832649326503265132652326533265432655326563265732658326593266032661326623266332664326653266632667326683266932670326713267232673326743267532676326773267832679326803268132682326833268432685326863268732688326893269032691326923269332694326953269632697326983269932700327013270232703327043270532706327073270832709327103271132712327133271432715327163271732718327193272032721327223272332724327253272632727327283272932730327313273232733327343273532736327373273832739327403274132742327433274432745327463274732748327493275032751327523275332754327553275632757327583275932760327613276232763327643276532766327673276832769327703277132772327733277432775327763277732778327793278032781327823278332784327853278632787327883278932790327913279232793327943279532796327973279832799328003280132802328033280432805328063280732808328093281032811328123281332814328153281632817328183281932820328213282232823328243282532826328273282832829328303283132832328333283432835328363283732838328393284032841328423284332844328453284632847328483284932850328513285232853328543285532856328573285832859328603286132862328633286432865328663286732868328693287032871328723287332874328753287632877328783287932880328813288232883328843288532886328873288832889328903289132892328933289432895328963289732898328993290032901329023290332904329053290632907329083290932910329113291232913329143291532916329173291832919329203292132922329233292432925329263292732928329293293032931329323293332934329353293632937329383293932940329413294232943329443294532946329473294832949329503295132952329533295432955329563295732958329593296032961329623296332964329653296632967329683296932970329713297232973329743297532976329773297832979329803298132982329833298432985329863298732988329893299032991329923299332994329953299632997329983299933000330013300233003330043300533006330073300833009330103301133012330133301433015330163301733018330193302033021330223302333024330253302633027330283302933030330313303233033330343303533036330373303833039330403304133042330433304433045330463304733048330493305033051330523305333054330553305633057330583305933060330613306233063330643306533066330673306833069330703307133072330733307433075330763307733078330793308033081330823308333084330853308633087330883308933090330913309233093330943309533096330973309833099331003310133102331033310433105331063310733108331093311033111331123311333114331153311633117331183311933120331213312233123331243312533126331273312833129331303313133132331333313433135331363313733138331393314033141331423314333144331453314633147331483314933150331513315233153331543315533156331573315833159331603316133162331633316433165331663316733168331693317033171331723317333174331753317633177331783317933180331813318233183331843318533186331873318833189331903319133192331933319433195331963319733198331993320033201332023320333204332053320633207332083320933210332113321233213332143321533216332173321833219332203322133222332233322433225332263322733228332293323033231332323323333234332353323633237332383323933240332413324233243332443324533246332473324833249332503325133252332533325433255332563325733258332593326033261332623326333264332653326633267332683326933270332713327233273332743327533276332773327833279332803328133282332833328433285332863328733288332893329033291332923329333294332953329633297332983329933300333013330233303333043330533306333073330833309333103331133312333133331433315333163331733318333193332033321333223332333324333253332633327333283332933330333313333233333333343333533336333373333833339333403334133342333433334433345333463334733348333493335033351333523335333354333553335633357333583335933360333613336233363333643336533366333673336833369333703337133372333733337433375333763337733378333793338033381333823338333384333853338633387333883338933390333913339233393333943339533396333973339833399334003340133402334033340433405334063340733408334093341033411334123341333414334153341633417334183341933420334213342233423334243342533426334273342833429334303343133432334333343433435334363343733438334393344033441334423344333444334453344633447334483344933450334513345233453334543345533456334573345833459334603346133462334633346433465334663346733468334693347033471334723347333474334753347633477334783347933480334813348233483334843348533486334873348833489334903349133492334933349433495334963349733498334993350033501335023350333504335053350633507335083350933510335113351233513335143351533516335173351833519335203352133522335233352433525335263352733528335293353033531335323353333534335353353633537335383353933540335413354233543335443354533546335473354833549335503355133552335533355433555335563355733558335593356033561335623356333564335653356633567335683356933570335713357233573335743357533576335773357833579335803358133582335833358433585335863358733588335893359033591335923359333594335953359633597335983359933600336013360233603336043360533606336073360833609336103361133612336133361433615336163361733618336193362033621336223362333624336253362633627336283362933630336313363233633336343363533636336373363833639336403364133642336433364433645336463364733648336493365033651336523365333654336553365633657336583365933660336613366233663336643366533666336673366833669336703367133672336733367433675336763367733678336793368033681336823368333684336853368633687336883368933690336913369233693336943369533696336973369833699337003370133702337033370433705337063370733708337093371033711337123371333714337153371633717337183371933720337213372233723337243372533726337273372833729337303373133732337333373433735337363373733738337393374033741337423374333744337453374633747337483374933750337513375233753337543375533756337573375833759337603376133762337633376433765337663376733768337693377033771337723377333774337753377633777337783377933780337813378233783337843378533786337873378833789337903379133792337933379433795337963379733798337993380033801338023380333804338053380633807338083380933810338113381233813338143381533816338173381833819338203382133822338233382433825338263382733828338293383033831338323383333834338353383633837338383383933840338413384233843338443384533846338473384833849338503385133852338533385433855338563385733858338593386033861338623386333864338653386633867338683386933870338713387233873338743387533876338773387833879338803388133882338833388433885338863388733888338893389033891338923389333894338953389633897338983389933900339013390233903339043390533906339073390833909339103391133912339133391433915339163391733918339193392033921339223392333924339253392633927339283392933930339313393233933339343393533936339373393833939339403394133942339433394433945339463394733948339493395033951339523395333954339553395633957339583395933960339613396233963339643396533966339673396833969339703397133972339733397433975339763397733978339793398033981339823398333984339853398633987339883398933990339913399233993339943399533996339973399833999340003400134002340033400434005340063400734008340093401034011340123401334014340153401634017340183401934020340213402234023340243402534026340273402834029340303403134032340333403434035340363403734038340393404034041340423404334044340453404634047340483404934050340513405234053340543405534056340573405834059340603406134062340633406434065340663406734068340693407034071340723407334074340753407634077340783407934080340813408234083340843408534086340873408834089340903409134092340933409434095340963409734098340993410034101341023410334104341053410634107341083410934110341113411234113341143411534116341173411834119341203412134122341233412434125341263412734128341293413034131341323413334134341353413634137341383413934140341413414234143341443414534146341473414834149341503415134152341533415434155341563415734158341593416034161341623416334164341653416634167341683416934170341713417234173341743417534176341773417834179341803418134182341833418434185341863418734188341893419034191341923419334194341953419634197341983419934200342013420234203342043420534206342073420834209342103421134212342133421434215342163421734218342193422034221342223422334224342253422634227342283422934230342313423234233342343423534236342373423834239342403424134242342433424434245342463424734248342493425034251342523425334254342553425634257342583425934260342613426234263342643426534266342673426834269342703427134272342733427434275342763427734278342793428034281342823428334284342853428634287342883428934290342913429234293342943429534296342973429834299343003430134302343033430434305343063430734308343093431034311343123431334314343153431634317343183431934320343213432234323343243432534326343273432834329343303433134332343333433434335343363433734338343393434034341343423434334344343453434634347343483434934350343513435234353343543435534356343573435834359343603436134362343633436434365343663436734368343693437034371343723437334374343753437634377343783437934380343813438234383343843438534386343873438834389343903439134392343933439434395343963439734398343993440034401344023440334404344053440634407344083440934410344113441234413344143441534416344173441834419344203442134422344233442434425344263442734428344293443034431344323443334434344353443634437344383443934440344413444234443344443444534446344473444834449344503445134452344533445434455344563445734458344593446034461344623446334464344653446634467344683446934470344713447234473344743447534476344773447834479344803448134482344833448434485344863448734488344893449034491344923449334494344953449634497344983449934500345013450234503345043450534506345073450834509345103451134512345133451434515345163451734518345193452034521345223452334524345253452634527345283452934530345313453234533345343453534536345373453834539345403454134542345433454434545345463454734548345493455034551345523455334554345553455634557345583455934560345613456234563345643456534566345673456834569345703457134572345733457434575345763457734578345793458034581345823458334584345853458634587345883458934590345913459234593345943459534596345973459834599346003460134602346033460434605346063460734608346093461034611346123461334614346153461634617346183461934620346213462234623346243462534626346273462834629346303463134632346333463434635346363463734638346393464034641346423464334644346453464634647346483464934650346513465234653346543465534656346573465834659346603466134662346633466434665346663466734668346693467034671346723467334674346753467634677346783467934680346813468234683346843468534686346873468834689346903469134692346933469434695346963469734698346993470034701347023470334704347053470634707347083470934710347113471234713347143471534716347173471834719347203472134722347233472434725347263472734728347293473034731347323473334734347353473634737347383473934740347413474234743347443474534746347473474834749347503475134752347533475434755347563475734758347593476034761347623476334764347653476634767347683476934770347713477234773347743477534776347773477834779347803478134782347833478434785347863478734788347893479034791347923479334794347953479634797347983479934800348013480234803348043480534806348073480834809348103481134812348133481434815348163481734818348193482034821348223482334824348253482634827348283482934830348313483234833348343483534836348373483834839348403484134842348433484434845348463484734848348493485034851348523485334854348553485634857348583485934860348613486234863348643486534866348673486834869348703487134872348733487434875348763487734878348793488034881348823488334884348853488634887348883488934890348913489234893348943489534896348973489834899349003490134902349033490434905349063490734908349093491034911349123491334914349153491634917349183491934920349213492234923349243492534926349273492834929349303493134932349333493434935349363493734938349393494034941349423494334944349453494634947349483494934950349513495234953349543495534956349573495834959349603496134962349633496434965349663496734968349693497034971349723497334974349753497634977349783497934980349813498234983349843498534986349873498834989349903499134992349933499434995349963499734998349993500035001350023500335004350053500635007350083500935010350113501235013350143501535016350173501835019350203502135022350233502435025350263502735028350293503035031350323503335034350353503635037350383503935040350413504235043350443504535046350473504835049350503505135052350533505435055350563505735058350593506035061350623506335064350653506635067350683506935070350713507235073350743507535076350773507835079350803508135082350833508435085350863508735088350893509035091350923509335094350953509635097350983509935100351013510235103351043510535106351073510835109351103511135112351133511435115351163511735118351193512035121351223512335124351253512635127351283512935130351313513235133351343513535136351373513835139351403514135142351433514435145351463514735148351493515035151351523515335154351553515635157351583515935160351613516235163351643516535166351673516835169351703517135172351733517435175351763517735178351793518035181351823518335184351853518635187351883518935190351913519235193351943519535196351973519835199352003520135202352033520435205352063520735208352093521035211352123521335214352153521635217352183521935220352213522235223352243522535226352273522835229352303523135232352333523435235352363523735238352393524035241352423524335244352453524635247352483524935250352513525235253352543525535256352573525835259352603526135262352633526435265352663526735268352693527035271352723527335274352753527635277352783527935280352813528235283352843528535286352873528835289352903529135292352933529435295352963529735298352993530035301353023530335304353053530635307353083530935310353113531235313353143531535316353173531835319353203532135322353233532435325353263532735328353293533035331353323533335334353353533635337353383533935340353413534235343353443534535346353473534835349353503535135352353533535435355353563535735358353593536035361353623536335364353653536635367353683536935370353713537235373353743537535376353773537835379353803538135382353833538435385353863538735388353893539035391353923539335394353953539635397353983539935400354013540235403354043540535406354073540835409354103541135412354133541435415354163541735418354193542035421354223542335424354253542635427354283542935430354313543235433354343543535436354373543835439354403544135442354433544435445354463544735448354493545035451354523545335454354553545635457354583545935460354613546235463354643546535466354673546835469354703547135472354733547435475354763547735478354793548035481354823548335484354853548635487354883548935490354913549235493354943549535496354973549835499355003550135502355033550435505355063550735508355093551035511355123551335514355153551635517355183551935520355213552235523355243552535526355273552835529355303553135532355333553435535355363553735538355393554035541355423554335544355453554635547355483554935550355513555235553355543555535556355573555835559355603556135562355633556435565355663556735568355693557035571355723557335574355753557635577355783557935580355813558235583355843558535586355873558835589355903559135592355933559435595355963559735598355993560035601356023560335604356053560635607356083560935610356113561235613356143561535616356173561835619356203562135622356233562435625356263562735628356293563035631356323563335634356353563635637356383563935640356413564235643356443564535646356473564835649356503565135652356533565435655356563565735658356593566035661356623566335664356653566635667356683566935670356713567235673356743567535676356773567835679356803568135682356833568435685356863568735688356893569035691356923569335694356953569635697356983569935700357013570235703357043570535706357073570835709357103571135712357133571435715357163571735718357193572035721357223572335724357253572635727357283572935730357313573235733357343573535736357373573835739357403574135742357433574435745357463574735748357493575035751357523575335754357553575635757357583575935760357613576235763357643576535766357673576835769357703577135772357733577435775357763577735778357793578035781357823578335784357853578635787357883578935790357913579235793357943579535796357973579835799358003580135802358033580435805358063580735808358093581035811358123581335814358153581635817358183581935820358213582235823358243582535826358273582835829358303583135832358333583435835358363583735838358393584035841358423584335844358453584635847358483584935850358513585235853358543585535856358573585835859358603586135862358633586435865358663586735868358693587035871358723587335874358753587635877358783587935880358813588235883358843588535886358873588835889358903589135892358933589435895358963589735898358993590035901359023590335904359053590635907359083590935910359113591235913359143591535916359173591835919359203592135922359233592435925359263592735928359293593035931359323593335934359353593635937359383593935940359413594235943359443594535946359473594835949359503595135952359533595435955359563595735958359593596035961359623596335964359653596635967359683596935970359713597235973359743597535976359773597835979359803598135982359833598435985359863598735988359893599035991359923599335994359953599635997359983599936000360013600236003360043600536006360073600836009360103601136012360133601436015360163601736018360193602036021360223602336024360253602636027360283602936030360313603236033360343603536036360373603836039360403604136042360433604436045360463604736048360493605036051360523605336054360553605636057360583605936060360613606236063360643606536066360673606836069360703607136072360733607436075360763607736078360793608036081360823608336084360853608636087360883608936090360913609236093360943609536096360973609836099361003610136102361033610436105361063610736108361093611036111361123611336114361153611636117361183611936120361213612236123361243612536126361273612836129361303613136132361333613436135361363613736138361393614036141361423614336144361453614636147361483614936150361513615236153361543615536156361573615836159361603616136162361633616436165361663616736168361693617036171361723617336174361753617636177361783617936180361813618236183361843618536186361873618836189361903619136192361933619436195361963619736198361993620036201362023620336204362053620636207362083620936210362113621236213362143621536216362173621836219362203622136222362233622436225362263622736228362293623036231362323623336234362353623636237362383623936240362413624236243362443624536246362473624836249362503625136252362533625436255362563625736258362593626036261362623626336264362653626636267362683626936270362713627236273362743627536276362773627836279362803628136282362833628436285362863628736288362893629036291362923629336294362953629636297362983629936300363013630236303363043630536306363073630836309363103631136312363133631436315363163631736318363193632036321363223632336324363253632636327363283632936330363313633236333363343633536336363373633836339363403634136342363433634436345363463634736348363493635036351363523635336354363553635636357363583635936360363613636236363363643636536366363673636836369363703637136372363733637436375363763637736378363793638036381363823638336384363853638636387363883638936390363913639236393363943639536396363973639836399364003640136402364033640436405364063640736408364093641036411364123641336414364153641636417364183641936420364213642236423364243642536426364273642836429364303643136432364333643436435364363643736438364393644036441364423644336444364453644636447364483644936450364513645236453364543645536456364573645836459364603646136462364633646436465364663646736468364693647036471364723647336474364753647636477364783647936480364813648236483364843648536486364873648836489364903649136492364933649436495364963649736498364993650036501365023650336504365053650636507365083650936510365113651236513365143651536516365173651836519365203652136522365233652436525365263652736528365293653036531365323653336534365353653636537365383653936540365413654236543365443654536546365473654836549365503655136552365533655436555365563655736558365593656036561365623656336564365653656636567365683656936570365713657236573365743657536576365773657836579365803658136582365833658436585365863658736588365893659036591365923659336594365953659636597365983659936600366013660236603366043660536606366073660836609366103661136612366133661436615366163661736618366193662036621366223662336624366253662636627366283662936630366313663236633366343663536636366373663836639366403664136642366433664436645366463664736648366493665036651366523665336654366553665636657366583665936660366613666236663366643666536666366673666836669366703667136672366733667436675366763667736678366793668036681366823668336684366853668636687366883668936690366913669236693366943669536696366973669836699367003670136702367033670436705367063670736708367093671036711367123671336714367153671636717367183671936720367213672236723367243672536726367273672836729367303673136732367333673436735367363673736738367393674036741367423674336744367453674636747367483674936750367513675236753367543675536756367573675836759367603676136762367633676436765367663676736768367693677036771367723677336774367753677636777367783677936780367813678236783367843678536786367873678836789367903679136792367933679436795367963679736798367993680036801368023680336804368053680636807368083680936810368113681236813368143681536816368173681836819368203682136822368233682436825368263682736828368293683036831368323683336834368353683636837368383683936840368413684236843368443684536846368473684836849368503685136852368533685436855368563685736858368593686036861368623686336864368653686636867368683686936870368713687236873368743687536876368773687836879368803688136882368833688436885368863688736888368893689036891368923689336894368953689636897368983689936900369013690236903369043690536906369073690836909369103691136912369133691436915369163691736918369193692036921369223692336924369253692636927369283692936930369313693236933369343693536936369373693836939369403694136942369433694436945369463694736948369493695036951369523695336954369553695636957369583695936960369613696236963369643696536966369673696836969369703697136972369733697436975369763697736978369793698036981369823698336984369853698636987369883698936990369913699236993369943699536996369973699836999370003700137002370033700437005370063700737008370093701037011370123701337014370153701637017370183701937020370213702237023370243702537026370273702837029370303703137032370333703437035370363703737038370393704037041370423704337044370453704637047370483704937050370513705237053370543705537056370573705837059370603706137062370633706437065370663706737068370693707037071370723707337074370753707637077370783707937080370813708237083370843708537086370873708837089370903709137092370933709437095370963709737098370993710037101371023710337104371053710637107371083710937110371113711237113371143711537116371173711837119371203712137122371233712437125371263712737128371293713037131371323713337134371353713637137371383713937140371413714237143371443714537146371473714837149371503715137152371533715437155371563715737158371593716037161371623716337164371653716637167371683716937170371713717237173371743717537176371773717837179371803718137182371833718437185371863718737188371893719037191371923719337194371953719637197371983719937200372013720237203372043720537206372073720837209372103721137212372133721437215372163721737218372193722037221372223722337224372253722637227372283722937230372313723237233372343723537236372373723837239372403724137242372433724437245372463724737248372493725037251372523725337254372553725637257372583725937260372613726237263372643726537266372673726837269372703727137272372733727437275372763727737278372793728037281372823728337284372853728637287372883728937290372913729237293372943729537296372973729837299373003730137302373033730437305373063730737308373093731037311373123731337314373153731637317373183731937320373213732237323373243732537326373273732837329373303733137332373333733437335373363733737338373393734037341373423734337344373453734637347373483734937350373513735237353373543735537356373573735837359373603736137362373633736437365373663736737368373693737037371373723737337374373753737637377373783737937380373813738237383373843738537386373873738837389373903739137392373933739437395373963739737398373993740037401374023740337404374053740637407374083740937410374113741237413374143741537416374173741837419374203742137422374233742437425374263742737428374293743037431374323743337434374353743637437374383743937440374413744237443374443744537446374473744837449374503745137452374533745437455374563745737458374593746037461374623746337464374653746637467374683746937470374713747237473374743747537476374773747837479374803748137482374833748437485374863748737488374893749037491374923749337494374953749637497374983749937500375013750237503375043750537506375073750837509375103751137512375133751437515375163751737518375193752037521375223752337524375253752637527375283752937530375313753237533375343753537536375373753837539375403754137542375433754437545375463754737548375493755037551375523755337554375553755637557375583755937560375613756237563375643756537566375673756837569375703757137572375733757437575375763757737578375793758037581375823758337584375853758637587375883758937590375913759237593375943759537596375973759837599376003760137602376033760437605376063760737608376093761037611376123761337614376153761637617376183761937620376213762237623376243762537626376273762837629376303763137632376333763437635376363763737638376393764037641376423764337644376453764637647376483764937650376513765237653376543765537656376573765837659376603766137662376633766437665376663766737668376693767037671376723767337674376753767637677376783767937680376813768237683376843768537686376873768837689376903769137692376933769437695376963769737698376993770037701377023770337704377053770637707377083770937710377113771237713377143771537716377173771837719377203772137722377233772437725377263772737728377293773037731377323773337734377353773637737377383773937740377413774237743377443774537746377473774837749377503775137752377533775437755377563775737758377593776037761377623776337764377653776637767377683776937770377713777237773377743777537776377773777837779377803778137782377833778437785377863778737788377893779037791377923779337794377953779637797377983779937800378013780237803378043780537806378073780837809378103781137812378133781437815378163781737818378193782037821378223782337824378253782637827378283782937830378313783237833378343783537836378373783837839378403784137842378433784437845378463784737848378493785037851378523785337854378553785637857378583785937860378613786237863378643786537866378673786837869378703787137872378733787437875378763787737878378793788037881378823788337884378853788637887378883788937890378913789237893378943789537896378973789837899379003790137902379033790437905379063790737908379093791037911379123791337914379153791637917379183791937920379213792237923379243792537926379273792837929379303793137932379333793437935379363793737938379393794037941379423794337944379453794637947379483794937950379513795237953379543795537956379573795837959379603796137962379633796437965379663796737968379693797037971379723797337974379753797637977379783797937980379813798237983379843798537986379873798837989379903799137992379933799437995379963799737998379993800038001380023800338004380053800638007380083800938010380113801238013380143801538016380173801838019380203802138022380233802438025380263802738028380293803038031380323803338034380353803638037380383803938040380413804238043380443804538046380473804838049380503805138052380533805438055380563805738058380593806038061380623806338064380653806638067380683806938070380713807238073380743807538076380773807838079380803808138082380833808438085380863808738088380893809038091380923809338094380953809638097380983809938100381013810238103381043810538106381073810838109381103811138112381133811438115381163811738118381193812038121381223812338124381253812638127381283812938130381313813238133381343813538136381373813838139381403814138142381433814438145381463814738148381493815038151381523815338154381553815638157381583815938160381613816238163381643816538166381673816838169381703817138172381733817438175381763817738178381793818038181381823818338184381853818638187381883818938190381913819238193381943819538196381973819838199382003820138202382033820438205382063820738208382093821038211382123821338214382153821638217382183821938220382213822238223382243822538226382273822838229382303823138232382333823438235382363823738238382393824038241382423824338244382453824638247382483824938250382513825238253382543825538256382573825838259382603826138262382633826438265382663826738268382693827038271382723827338274382753827638277382783827938280382813828238283382843828538286382873828838289382903829138292382933829438295382963829738298382993830038301383023830338304383053830638307383083830938310383113831238313383143831538316383173831838319383203832138322383233832438325383263832738328383293833038331383323833338334383353833638337383383833938340383413834238343383443834538346383473834838349383503835138352383533835438355383563835738358383593836038361383623836338364383653836638367383683836938370383713837238373383743837538376383773837838379383803838138382383833838438385383863838738388383893839038391383923839338394383953839638397383983839938400384013840238403384043840538406384073840838409384103841138412384133841438415384163841738418384193842038421384223842338424384253842638427384283842938430384313843238433384343843538436384373843838439384403844138442384433844438445384463844738448384493845038451384523845338454384553845638457384583845938460384613846238463384643846538466384673846838469384703847138472384733847438475384763847738478384793848038481384823848338484384853848638487384883848938490384913849238493384943849538496384973849838499385003850138502385033850438505385063850738508385093851038511385123851338514385153851638517385183851938520385213852238523385243852538526385273852838529385303853138532385333853438535385363853738538385393854038541385423854338544385453854638547385483854938550385513855238553385543855538556385573855838559385603856138562385633856438565385663856738568385693857038571385723857338574385753857638577385783857938580385813858238583385843858538586385873858838589385903859138592385933859438595385963859738598385993860038601386023860338604386053860638607386083860938610386113861238613386143861538616386173861838619386203862138622386233862438625386263862738628386293863038631386323863338634386353863638637386383863938640386413864238643386443864538646386473864838649386503865138652386533865438655386563865738658386593866038661386623866338664386653866638667386683866938670386713867238673386743867538676386773867838679386803868138682386833868438685386863868738688386893869038691386923869338694386953869638697386983869938700387013870238703387043870538706387073870838709387103871138712387133871438715387163871738718387193872038721387223872338724387253872638727387283872938730387313873238733387343873538736387373873838739387403874138742387433874438745387463874738748387493875038751387523875338754387553875638757387583875938760387613876238763387643876538766387673876838769387703877138772387733877438775387763877738778387793878038781387823878338784387853878638787387883878938790387913879238793387943879538796387973879838799388003880138802388033880438805388063880738808388093881038811388123881338814388153881638817388183881938820388213882238823388243882538826388273882838829388303883138832388333883438835388363883738838388393884038841388423884338844388453884638847388483884938850388513885238853388543885538856388573885838859388603886138862388633886438865388663886738868388693887038871388723887338874388753887638877388783887938880388813888238883388843888538886388873888838889388903889138892388933889438895388963889738898388993890038901389023890338904389053890638907389083890938910389113891238913389143891538916389173891838919389203892138922389233892438925389263892738928389293893038931389323893338934389353893638937389383893938940389413894238943389443894538946389473894838949389503895138952389533895438955389563895738958389593896038961389623896338964389653896638967389683896938970389713897238973389743897538976389773897838979389803898138982389833898438985389863898738988389893899038991389923899338994389953899638997389983899939000390013900239003390043900539006390073900839009390103901139012390133901439015390163901739018390193902039021390223902339024390253902639027390283902939030390313903239033390343903539036390373903839039390403904139042390433904439045390463904739048390493905039051390523905339054390553905639057390583905939060390613906239063390643906539066390673906839069390703907139072390733907439075390763907739078390793908039081390823908339084390853908639087390883908939090390913909239093390943909539096390973909839099391003910139102391033910439105391063910739108391093911039111391123911339114391153911639117391183911939120391213912239123391243912539126391273912839129391303913139132391333913439135391363913739138391393914039141391423914339144391453914639147391483914939150391513915239153391543915539156391573915839159391603916139162391633916439165391663916739168391693917039171391723917339174391753917639177391783917939180391813918239183391843918539186391873918839189391903919139192391933919439195391963919739198391993920039201392023920339204392053920639207392083920939210392113921239213392143921539216392173921839219392203922139222392233922439225392263922739228392293923039231392323923339234392353923639237392383923939240392413924239243392443924539246392473924839249392503925139252392533925439255392563925739258392593926039261392623926339264392653926639267392683926939270392713927239273392743927539276392773927839279392803928139282392833928439285392863928739288392893929039291392923929339294392953929639297392983929939300393013930239303393043930539306393073930839309393103931139312393133931439315393163931739318393193932039321393223932339324393253932639327393283932939330393313933239333393343933539336393373933839339393403934139342393433934439345393463934739348393493935039351393523935339354393553935639357393583935939360393613936239363393643936539366393673936839369393703937139372393733937439375393763937739378393793938039381393823938339384393853938639387393883938939390393913939239393393943939539396393973939839399394003940139402394033940439405394063940739408394093941039411394123941339414394153941639417394183941939420394213942239423394243942539426394273942839429394303943139432394333943439435394363943739438394393944039441394423944339444394453944639447394483944939450394513945239453394543945539456394573945839459394603946139462394633946439465394663946739468394693947039471394723947339474394753947639477394783947939480394813948239483394843948539486394873948839489394903949139492394933949439495394963949739498394993950039501395023950339504395053950639507395083950939510395113951239513395143951539516395173951839519395203952139522395233952439525395263952739528395293953039531395323953339534395353953639537395383953939540395413954239543395443954539546395473954839549395503955139552395533955439555395563955739558395593956039561395623956339564395653956639567395683956939570395713957239573395743957539576395773957839579395803958139582395833958439585395863958739588395893959039591395923959339594395953959639597395983959939600396013960239603396043960539606396073960839609396103961139612396133961439615396163961739618396193962039621396223962339624396253962639627396283962939630396313963239633396343963539636396373963839639396403964139642396433964439645396463964739648396493965039651396523965339654396553965639657396583965939660396613966239663396643966539666396673966839669396703967139672396733967439675396763967739678396793968039681396823968339684396853968639687396883968939690396913969239693396943969539696396973969839699397003970139702397033970439705397063970739708397093971039711397123971339714397153971639717397183971939720397213972239723397243972539726397273972839729397303973139732397333973439735397363973739738397393974039741397423974339744397453974639747397483974939750397513975239753397543975539756397573975839759397603976139762397633976439765397663976739768397693977039771397723977339774397753977639777397783977939780397813978239783397843978539786397873978839789397903979139792397933979439795397963979739798397993980039801398023980339804398053980639807398083980939810398113981239813398143981539816398173981839819398203982139822398233982439825398263982739828398293983039831398323983339834398353983639837398383983939840398413984239843398443984539846398473984839849398503985139852398533985439855398563985739858398593986039861398623986339864398653986639867398683986939870398713987239873398743987539876398773987839879398803988139882398833988439885398863988739888398893989039891398923989339894398953989639897398983989939900399013990239903399043990539906399073990839909399103991139912399133991439915399163991739918399193992039921399223992339924399253992639927399283992939930399313993239933399343993539936399373993839939399403994139942399433994439945399463994739948399493995039951399523995339954399553995639957399583995939960399613996239963399643996539966399673996839969399703997139972399733997439975399763997739978399793998039981399823998339984399853998639987399883998939990399913999239993399943999539996399973999839999400004000140002400034000440005400064000740008400094001040011400124001340014400154001640017400184001940020400214002240023400244002540026400274002840029400304003140032400334003440035400364003740038400394004040041400424004340044400454004640047400484004940050400514005240053400544005540056400574005840059400604006140062400634006440065400664006740068400694007040071400724007340074400754007640077400784007940080400814008240083400844008540086400874008840089400904009140092400934009440095400964009740098400994010040101401024010340104401054010640107401084010940110401114011240113401144011540116401174011840119401204012140122401234012440125401264012740128401294013040131401324013340134401354013640137401384013940140401414014240143401444014540146401474014840149401504015140152401534015440155401564015740158401594016040161401624016340164401654016640167401684016940170401714017240173401744017540176401774017840179401804018140182401834018440185401864018740188401894019040191401924019340194401954019640197401984019940200402014020240203402044020540206402074020840209402104021140212402134021440215402164021740218402194022040221402224022340224402254022640227402284022940230402314023240233402344023540236402374023840239402404024140242402434024440245402464024740248402494025040251402524025340254402554025640257402584025940260402614026240263402644026540266402674026840269402704027140272402734027440275402764027740278402794028040281402824028340284402854028640287402884028940290402914029240293402944029540296402974029840299403004030140302403034030440305403064030740308403094031040311403124031340314403154031640317403184031940320403214032240323403244032540326403274032840329403304033140332403334033440335403364033740338403394034040341403424034340344403454034640347403484034940350403514035240353403544035540356403574035840359403604036140362403634036440365403664036740368403694037040371403724037340374403754037640377403784037940380403814038240383403844038540386403874038840389403904039140392403934039440395403964039740398403994040040401404024040340404404054040640407404084040940410404114041240413404144041540416404174041840419404204042140422404234042440425404264042740428404294043040431404324043340434404354043640437404384043940440404414044240443404444044540446404474044840449404504045140452404534045440455404564045740458404594046040461404624046340464404654046640467404684046940470404714047240473404744047540476404774047840479404804048140482404834048440485404864048740488404894049040491404924049340494404954049640497404984049940500405014050240503405044050540506405074050840509405104051140512405134051440515405164051740518405194052040521405224052340524405254052640527405284052940530405314053240533405344053540536405374053840539405404054140542405434054440545405464054740548405494055040551405524055340554405554055640557405584055940560405614056240563405644056540566405674056840569405704057140572405734057440575405764057740578405794058040581405824058340584405854058640587405884058940590405914059240593405944059540596405974059840599406004060140602406034060440605406064060740608406094061040611406124061340614406154061640617406184061940620406214062240623406244062540626406274062840629406304063140632406334063440635406364063740638406394064040641406424064340644406454064640647406484064940650406514065240653406544065540656406574065840659406604066140662406634066440665406664066740668406694067040671406724067340674406754067640677406784067940680406814068240683406844068540686406874068840689406904069140692406934069440695406964069740698406994070040701407024070340704407054070640707407084070940710407114071240713407144071540716407174071840719407204072140722407234072440725407264072740728407294073040731407324073340734407354073640737407384073940740407414074240743407444074540746407474074840749407504075140752407534075440755407564075740758407594076040761407624076340764407654076640767407684076940770407714077240773407744077540776407774077840779407804078140782407834078440785407864078740788407894079040791407924079340794407954079640797407984079940800408014080240803408044080540806408074080840809408104081140812408134081440815408164081740818408194082040821408224082340824408254082640827408284082940830408314083240833408344083540836408374083840839408404084140842408434084440845408464084740848408494085040851408524085340854408554085640857408584085940860408614086240863408644086540866408674086840869408704087140872408734087440875408764087740878408794088040881408824088340884408854088640887408884088940890408914089240893408944089540896408974089840899409004090140902409034090440905409064090740908409094091040911409124091340914409154091640917409184091940920409214092240923409244092540926409274092840929409304093140932409334093440935409364093740938409394094040941409424094340944409454094640947409484094940950409514095240953409544095540956409574095840959409604096140962409634096440965409664096740968409694097040971409724097340974409754097640977409784097940980409814098240983409844098540986409874098840989409904099140992409934099440995409964099740998409994100041001410024100341004410054100641007410084100941010410114101241013410144101541016410174101841019410204102141022410234102441025410264102741028410294103041031410324103341034410354103641037410384103941040410414104241043410444104541046410474104841049410504105141052410534105441055410564105741058410594106041061410624106341064410654106641067410684106941070410714107241073410744107541076410774107841079410804108141082410834108441085410864108741088410894109041091410924109341094410954109641097410984109941100411014110241103411044110541106411074110841109411104111141112411134111441115411164111741118411194112041121411224112341124411254112641127411284112941130411314113241133411344113541136411374113841139411404114141142411434114441145411464114741148411494115041151411524115341154411554115641157411584115941160411614116241163411644116541166411674116841169411704117141172411734117441175411764117741178411794118041181411824118341184411854118641187411884118941190411914119241193411944119541196411974119841199412004120141202412034120441205412064120741208412094121041211412124121341214412154121641217412184121941220412214122241223412244122541226412274122841229412304123141232412334123441235412364123741238412394124041241412424124341244412454124641247412484124941250412514125241253412544125541256412574125841259412604126141262412634126441265412664126741268412694127041271412724127341274412754127641277412784127941280412814128241283412844128541286412874128841289412904129141292412934129441295412964129741298412994130041301413024130341304413054130641307413084130941310413114131241313413144131541316413174131841319413204132141322413234132441325413264132741328413294133041331413324133341334413354133641337413384133941340413414134241343413444134541346413474134841349413504135141352413534135441355413564135741358413594136041361413624136341364413654136641367413684136941370413714137241373413744137541376413774137841379413804138141382413834138441385413864138741388413894139041391413924139341394413954139641397413984139941400414014140241403414044140541406414074140841409414104141141412414134141441415414164141741418414194142041421414224142341424414254142641427414284142941430414314143241433414344143541436414374143841439414404144141442414434144441445414464144741448414494145041451414524145341454414554145641457414584145941460414614146241463414644146541466414674146841469414704147141472414734147441475414764147741478414794148041481414824148341484414854148641487414884148941490414914149241493414944149541496414974149841499415004150141502415034150441505415064150741508415094151041511415124151341514415154151641517415184151941520415214152241523415244152541526415274152841529415304153141532415334153441535415364153741538415394154041541415424154341544415454154641547415484154941550415514155241553415544155541556415574155841559415604156141562415634156441565415664156741568415694157041571415724157341574415754157641577415784157941580415814158241583415844158541586415874158841589415904159141592415934159441595415964159741598415994160041601416024160341604416054160641607416084160941610416114161241613416144161541616416174161841619416204162141622416234162441625416264162741628416294163041631416324163341634416354163641637416384163941640416414164241643416444164541646416474164841649416504165141652416534165441655416564165741658416594166041661416624166341664416654166641667416684166941670416714167241673416744167541676416774167841679416804168141682416834168441685416864168741688416894169041691416924169341694416954169641697416984169941700417014170241703417044170541706417074170841709417104171141712417134171441715417164171741718417194172041721417224172341724417254172641727417284172941730417314173241733417344173541736417374173841739417404174141742417434174441745417464174741748417494175041751417524175341754417554175641757417584175941760417614176241763417644176541766417674176841769417704177141772417734177441775417764177741778417794178041781417824178341784417854178641787417884178941790417914179241793417944179541796417974179841799418004180141802418034180441805418064180741808418094181041811418124181341814418154181641817418184181941820418214182241823418244182541826418274182841829418304183141832418334183441835418364183741838418394184041841418424184341844418454184641847418484184941850418514185241853418544185541856418574185841859418604186141862418634186441865418664186741868418694187041871418724187341874418754187641877418784187941880418814188241883418844188541886418874188841889418904189141892418934189441895418964189741898418994190041901419024190341904419054190641907419084190941910419114191241913419144191541916419174191841919419204192141922419234192441925419264192741928419294193041931419324193341934419354193641937419384193941940419414194241943419444194541946419474194841949419504195141952419534195441955419564195741958419594196041961419624196341964419654196641967419684196941970419714197241973419744197541976419774197841979419804198141982419834198441985419864198741988419894199041991419924199341994419954199641997419984199942000420014200242003420044200542006420074200842009420104201142012420134201442015420164201742018420194202042021420224202342024420254202642027420284202942030420314203242033420344203542036420374203842039420404204142042420434204442045420464204742048420494205042051420524205342054420554205642057420584205942060420614206242063420644206542066420674206842069420704207142072420734207442075420764207742078420794208042081420824208342084420854208642087420884208942090420914209242093420944209542096420974209842099421004210142102421034210442105421064210742108421094211042111421124211342114421154211642117421184211942120421214212242123421244212542126421274212842129421304213142132421334213442135421364213742138421394214042141421424214342144421454214642147421484214942150421514215242153421544215542156421574215842159421604216142162421634216442165421664216742168421694217042171421724217342174421754217642177421784217942180421814218242183421844218542186421874218842189421904219142192421934219442195421964219742198421994220042201422024220342204422054220642207422084220942210422114221242213422144221542216422174221842219422204222142222422234222442225422264222742228422294223042231422324223342234422354223642237422384223942240422414224242243422444224542246422474224842249422504225142252422534225442255422564225742258422594226042261422624226342264422654226642267422684226942270422714227242273422744227542276422774227842279422804228142282422834228442285422864228742288422894229042291422924229342294422954229642297422984229942300423014230242303423044230542306423074230842309423104231142312423134231442315423164231742318423194232042321423224232342324423254232642327423284232942330423314233242333423344233542336423374233842339423404234142342423434234442345423464234742348423494235042351423524235342354423554235642357423584235942360423614236242363423644236542366423674236842369423704237142372423734237442375423764237742378423794238042381423824238342384423854238642387423884238942390423914239242393423944239542396423974239842399424004240142402424034240442405424064240742408424094241042411424124241342414424154241642417424184241942420424214242242423424244242542426424274242842429424304243142432424334243442435424364243742438424394244042441424424244342444424454244642447424484244942450424514245242453424544245542456424574245842459424604246142462424634246442465424664246742468424694247042471424724247342474424754247642477424784247942480424814248242483424844248542486424874248842489424904249142492424934249442495424964249742498424994250042501425024250342504425054250642507425084250942510425114251242513425144251542516425174251842519425204252142522425234252442525425264252742528425294253042531425324253342534425354253642537425384253942540425414254242543425444254542546425474254842549425504255142552425534255442555425564255742558425594256042561425624256342564425654256642567425684256942570425714257242573425744257542576425774257842579425804258142582425834258442585425864258742588425894259042591425924259342594425954259642597425984259942600426014260242603426044260542606426074260842609426104261142612426134261442615426164261742618426194262042621426224262342624426254262642627426284262942630426314263242633426344263542636426374263842639426404264142642426434264442645426464264742648426494265042651426524265342654426554265642657426584265942660426614266242663426644266542666426674266842669426704267142672426734267442675426764267742678426794268042681426824268342684426854268642687426884268942690426914269242693426944269542696426974269842699427004270142702427034270442705427064270742708427094271042711427124271342714427154271642717427184271942720427214272242723427244272542726427274272842729427304273142732427334273442735427364273742738427394274042741427424274342744427454274642747427484274942750427514275242753427544275542756427574275842759427604276142762427634276442765427664276742768427694277042771427724277342774427754277642777427784277942780427814278242783427844278542786427874278842789427904279142792427934279442795427964279742798427994280042801428024280342804428054280642807428084280942810428114281242813428144281542816428174281842819428204282142822428234282442825428264282742828428294283042831428324283342834428354283642837428384283942840428414284242843428444284542846428474284842849428504285142852428534285442855428564285742858428594286042861428624286342864428654286642867428684286942870428714287242873428744287542876428774287842879428804288142882428834288442885428864288742888428894289042891428924289342894428954289642897428984289942900429014290242903429044290542906429074290842909429104291142912429134291442915429164291742918429194292042921429224292342924429254292642927429284292942930429314293242933429344293542936429374293842939429404294142942429434294442945429464294742948429494295042951429524295342954429554295642957429584295942960429614296242963429644296542966429674296842969429704297142972429734297442975429764297742978429794298042981429824298342984429854298642987429884298942990429914299242993429944299542996429974299842999430004300143002430034300443005430064300743008430094301043011430124301343014430154301643017430184301943020430214302243023430244302543026430274302843029430304303143032430334303443035430364303743038430394304043041430424304343044430454304643047430484304943050430514305243053430544305543056430574305843059430604306143062430634306443065430664306743068430694307043071430724307343074430754307643077430784307943080430814308243083430844308543086430874308843089430904309143092430934309443095430964309743098430994310043101431024310343104431054310643107431084310943110431114311243113431144311543116431174311843119431204312143122431234312443125431264312743128431294313043131431324313343134431354313643137431384313943140431414314243143431444314543146431474314843149431504315143152431534315443155431564315743158431594316043161431624316343164431654316643167431684316943170431714317243173431744317543176431774317843179431804318143182431834318443185431864318743188431894319043191431924319343194431954319643197431984319943200432014320243203432044320543206432074320843209432104321143212432134321443215432164321743218432194322043221432224322343224432254322643227432284322943230432314323243233432344323543236432374323843239432404324143242432434324443245432464324743248432494325043251432524325343254432554325643257432584325943260432614326243263432644326543266432674326843269432704327143272432734327443275432764327743278432794328043281432824328343284432854328643287432884328943290432914329243293432944329543296432974329843299433004330143302433034330443305433064330743308433094331043311433124331343314433154331643317433184331943320433214332243323433244332543326433274332843329433304333143332433334333443335433364333743338433394334043341433424334343344433454334643347433484334943350433514335243353433544335543356433574335843359433604336143362433634336443365433664336743368433694337043371433724337343374433754337643377433784337943380433814338243383433844338543386433874338843389433904339143392433934339443395433964339743398433994340043401434024340343404434054340643407434084340943410434114341243413434144341543416434174341843419434204342143422434234342443425434264342743428434294343043431434324343343434434354343643437434384343943440434414344243443434444344543446434474344843449434504345143452434534345443455434564345743458434594346043461434624346343464434654346643467434684346943470434714347243473434744347543476434774347843479434804348143482434834348443485434864348743488434894349043491434924349343494434954349643497434984349943500435014350243503435044350543506435074350843509435104351143512435134351443515435164351743518435194352043521435224352343524435254352643527435284352943530435314353243533435344353543536435374353843539435404354143542435434354443545435464354743548435494355043551435524355343554435554355643557435584355943560435614356243563435644356543566435674356843569435704357143572435734357443575435764357743578435794358043581435824358343584435854358643587435884358943590435914359243593435944359543596435974359843599436004360143602436034360443605436064360743608436094361043611436124361343614436154361643617436184361943620436214362243623436244362543626436274362843629436304363143632436334363443635436364363743638436394364043641436424364343644436454364643647436484364943650436514365243653436544365543656436574365843659436604366143662436634366443665436664366743668436694367043671436724367343674436754367643677436784367943680436814368243683436844368543686436874368843689436904369143692436934369443695436964369743698436994370043701437024370343704437054370643707437084370943710437114371243713437144371543716437174371843719437204372143722437234372443725437264372743728437294373043731437324373343734437354373643737437384373943740437414374243743437444374543746437474374843749437504375143752437534375443755437564375743758437594376043761437624376343764437654376643767437684376943770437714377243773437744377543776437774377843779437804378143782437834378443785437864378743788437894379043791437924379343794437954379643797437984379943800438014380243803438044380543806438074380843809438104381143812438134381443815438164381743818438194382043821438224382343824438254382643827438284382943830438314383243833438344383543836438374383843839438404384143842438434384443845438464384743848438494385043851438524385343854438554385643857438584385943860438614386243863438644386543866438674386843869438704387143872438734387443875438764387743878438794388043881438824388343884438854388643887438884388943890438914389243893438944389543896438974389843899439004390143902439034390443905439064390743908439094391043911439124391343914439154391643917439184391943920439214392243923439244392543926439274392843929439304393143932439334393443935439364393743938439394394043941439424394343944439454394643947439484394943950439514395243953439544395543956439574395843959439604396143962439634396443965439664396743968439694397043971439724397343974439754397643977439784397943980439814398243983439844398543986439874398843989439904399143992439934399443995439964399743998439994400044001440024400344004440054400644007440084400944010440114401244013440144401544016440174401844019440204402144022440234402444025440264402744028440294403044031440324403344034440354403644037440384403944040440414404244043440444404544046440474404844049440504405144052440534405444055440564405744058440594406044061440624406344064440654406644067440684406944070440714407244073440744407544076440774407844079440804408144082440834408444085440864408744088440894409044091440924409344094440954409644097440984409944100441014410244103441044410544106441074410844109441104411144112441134411444115441164411744118441194412044121441224412344124441254412644127441284412944130441314413244133441344413544136441374413844139441404414144142441434414444145441464414744148441494415044151441524415344154441554415644157441584415944160441614416244163441644416544166441674416844169441704417144172441734417444175441764417744178441794418044181441824418344184441854418644187441884418944190441914419244193441944419544196441974419844199442004420144202442034420444205442064420744208442094421044211442124421344214442154421644217442184421944220442214422244223442244422544226442274422844229442304423144232442334423444235442364423744238442394424044241442424424344244442454424644247442484424944250442514425244253442544425544256442574425844259442604426144262442634426444265442664426744268442694427044271442724427344274442754427644277442784427944280442814428244283442844428544286442874428844289442904429144292442934429444295442964429744298442994430044301443024430344304443054430644307443084430944310443114431244313443144431544316443174431844319443204432144322443234432444325443264432744328443294433044331443324433344334443354433644337443384433944340443414434244343443444434544346443474434844349443504435144352443534435444355443564435744358443594436044361443624436344364443654436644367443684436944370443714437244373443744437544376443774437844379443804438144382443834438444385443864438744388443894439044391443924439344394443954439644397443984439944400444014440244403444044440544406444074440844409444104441144412444134441444415444164441744418444194442044421444224442344424444254442644427444284442944430444314443244433444344443544436444374443844439444404444144442444434444444445444464444744448444494445044451444524445344454444554445644457444584445944460444614446244463444644446544466444674446844469444704447144472444734447444475444764447744478444794448044481444824448344484444854448644487444884448944490444914449244493444944449544496444974449844499445004450144502445034450444505445064450744508445094451044511445124451344514445154451644517445184451944520445214452244523445244452544526445274452844529445304453144532445334453444535445364453744538445394454044541445424454344544445454454644547445484454944550445514455244553445544455544556445574455844559445604456144562445634456444565445664456744568445694457044571445724457344574445754457644577445784457944580445814458244583445844458544586445874458844589445904459144592445934459444595445964459744598445994460044601446024460344604446054460644607446084460944610446114461244613446144461544616446174461844619446204462144622446234462444625446264462744628446294463044631446324463344634446354463644637446384463944640446414464244643446444464544646446474464844649446504465144652446534465444655446564465744658446594466044661446624466344664446654466644667446684466944670446714467244673446744467544676446774467844679446804468144682446834468444685446864468744688446894469044691446924469344694446954469644697446984469944700447014470244703447044470544706447074470844709447104471144712447134471444715447164471744718447194472044721447224472344724447254472644727447284472944730447314473244733447344473544736447374473844739447404474144742447434474444745447464474744748447494475044751447524475344754447554475644757447584475944760447614476244763447644476544766447674476844769447704477144772447734477444775447764477744778447794478044781447824478344784447854478644787447884478944790447914479244793447944479544796447974479844799448004480144802448034480444805448064480744808448094481044811448124481344814448154481644817448184481944820448214482244823448244482544826448274482844829448304483144832448334483444835448364483744838448394484044841448424484344844448454484644847448484484944850448514485244853448544485544856448574485844859448604486144862448634486444865448664486744868448694487044871448724487344874448754487644877448784487944880448814488244883448844488544886448874488844889448904489144892448934489444895448964489744898448994490044901449024490344904449054490644907449084490944910449114491244913449144491544916449174491844919449204492144922449234492444925449264492744928449294493044931449324493344934449354493644937449384493944940449414494244943449444494544946449474494844949449504495144952449534495444955449564495744958449594496044961449624496344964449654496644967449684496944970449714497244973449744497544976449774497844979449804498144982449834498444985449864498744988449894499044991449924499344994449954499644997449984499945000450014500245003450044500545006450074500845009450104501145012450134501445015450164501745018450194502045021450224502345024450254502645027450284502945030450314503245033450344503545036450374503845039450404504145042450434504445045450464504745048450494505045051450524505345054450554505645057450584505945060450614506245063450644506545066450674506845069450704507145072450734507445075450764507745078450794508045081450824508345084450854508645087450884508945090450914509245093450944509545096450974509845099451004510145102451034510445105451064510745108451094511045111451124511345114451154511645117451184511945120451214512245123451244512545126451274512845129451304513145132451334513445135451364513745138451394514045141451424514345144451454514645147451484514945150451514515245153451544515545156451574515845159451604516145162451634516445165451664516745168451694517045171451724517345174451754517645177451784517945180451814518245183451844518545186451874518845189451904519145192451934519445195451964519745198451994520045201452024520345204452054520645207452084520945210452114521245213452144521545216452174521845219452204522145222452234522445225452264522745228452294523045231452324523345234452354523645237452384523945240452414524245243452444524545246452474524845249452504525145252452534525445255452564525745258452594526045261452624526345264452654526645267452684526945270452714527245273452744527545276452774527845279452804528145282452834528445285452864528745288452894529045291452924529345294452954529645297452984529945300453014530245303453044530545306453074530845309453104531145312453134531445315453164531745318453194532045321453224532345324453254532645327453284532945330453314533245333453344533545336453374533845339453404534145342453434534445345453464534745348453494535045351453524535345354453554535645357453584535945360453614536245363453644536545366453674536845369453704537145372453734537445375453764537745378453794538045381453824538345384453854538645387453884538945390453914539245393453944539545396453974539845399454004540145402454034540445405454064540745408454094541045411454124541345414454154541645417454184541945420454214542245423454244542545426454274542845429454304543145432454334543445435454364543745438454394544045441454424544345444454454544645447454484544945450454514545245453454544545545456454574545845459454604546145462454634546445465454664546745468454694547045471454724547345474454754547645477454784547945480454814548245483454844548545486454874548845489454904549145492454934549445495454964549745498454994550045501455024550345504455054550645507455084550945510455114551245513455144551545516455174551845519455204552145522455234552445525455264552745528455294553045531455324553345534455354553645537455384553945540455414554245543455444554545546455474554845549455504555145552455534555445555455564555745558455594556045561455624556345564455654556645567455684556945570455714557245573455744557545576455774557845579455804558145582455834558445585455864558745588455894559045591455924559345594455954559645597455984559945600456014560245603456044560545606456074560845609456104561145612456134561445615456164561745618456194562045621456224562345624456254562645627456284562945630456314563245633456344563545636456374563845639456404564145642456434564445645456464564745648456494565045651456524565345654456554565645657456584565945660456614566245663456644566545666456674566845669456704567145672456734567445675456764567745678456794568045681456824568345684456854568645687456884568945690456914569245693456944569545696456974569845699457004570145702457034570445705457064570745708457094571045711457124571345714457154571645717457184571945720457214572245723457244572545726457274572845729457304573145732457334573445735457364573745738457394574045741457424574345744457454574645747457484574945750457514575245753457544575545756457574575845759457604576145762457634576445765457664576745768457694577045771457724577345774457754577645777457784577945780457814578245783457844578545786457874578845789457904579145792457934579445795457964579745798457994580045801458024580345804458054580645807458084580945810458114581245813458144581545816458174581845819458204582145822458234582445825458264582745828458294583045831458324583345834458354583645837458384583945840458414584245843458444584545846458474584845849458504585145852458534585445855458564585745858458594586045861458624586345864458654586645867458684586945870458714587245873458744587545876458774587845879458804588145882458834588445885458864588745888458894589045891458924589345894458954589645897458984589945900459014590245903459044590545906459074590845909459104591145912459134591445915459164591745918459194592045921459224592345924459254592645927459284592945930459314593245933459344593545936459374593845939459404594145942459434594445945459464594745948459494595045951459524595345954459554595645957459584595945960459614596245963459644596545966459674596845969459704597145972459734597445975459764597745978459794598045981459824598345984459854598645987459884598945990459914599245993459944599545996459974599845999460004600146002460034600446005460064600746008460094601046011460124601346014460154601646017460184601946020460214602246023460244602546026460274602846029460304603146032460334603446035460364603746038460394604046041460424604346044460454604646047460484604946050460514605246053460544605546056460574605846059460604606146062460634606446065460664606746068460694607046071460724607346074460754607646077460784607946080460814608246083460844608546086460874608846089460904609146092460934609446095460964609746098460994610046101461024610346104461054610646107461084610946110461114611246113461144611546116461174611846119461204612146122461234612446125461264612746128461294613046131461324613346134461354613646137461384613946140461414614246143461444614546146461474614846149461504615146152461534615446155461564615746158461594616046161461624616346164461654616646167461684616946170461714617246173461744617546176461774617846179461804618146182461834618446185461864618746188461894619046191461924619346194461954619646197461984619946200462014620246203462044620546206462074620846209462104621146212462134621446215462164621746218462194622046221462224622346224462254622646227462284622946230462314623246233462344623546236462374623846239462404624146242462434624446245462464624746248462494625046251462524625346254462554625646257462584625946260462614626246263462644626546266462674626846269462704627146272462734627446275462764627746278462794628046281462824628346284462854628646287462884628946290462914629246293462944629546296462974629846299463004630146302463034630446305463064630746308463094631046311463124631346314463154631646317463184631946320463214632246323463244632546326463274632846329463304633146332463334633446335463364633746338463394634046341463424634346344463454634646347463484634946350463514635246353463544635546356463574635846359463604636146362463634636446365463664636746368463694637046371463724637346374463754637646377463784637946380463814638246383463844638546386463874638846389463904639146392463934639446395463964639746398463994640046401464024640346404464054640646407464084640946410464114641246413464144641546416464174641846419464204642146422464234642446425464264642746428464294643046431464324643346434464354643646437464384643946440464414644246443464444644546446464474644846449464504645146452464534645446455464564645746458464594646046461464624646346464464654646646467464684646946470464714647246473464744647546476464774647846479464804648146482464834648446485464864648746488464894649046491464924649346494464954649646497464984649946500465014650246503465044650546506465074650846509465104651146512465134651446515465164651746518465194652046521465224652346524465254652646527465284652946530465314653246533465344653546536465374653846539465404654146542465434654446545465464654746548465494655046551465524655346554465554655646557465584655946560465614656246563465644656546566465674656846569465704657146572465734657446575465764657746578465794658046581465824658346584465854658646587465884658946590465914659246593465944659546596465974659846599466004660146602466034660446605466064660746608466094661046611466124661346614466154661646617466184661946620466214662246623466244662546626466274662846629466304663146632466334663446635466364663746638466394664046641466424664346644466454664646647466484664946650466514665246653466544665546656466574665846659466604666146662466634666446665466664666746668466694667046671466724667346674466754667646677466784667946680466814668246683466844668546686466874668846689466904669146692466934669446695466964669746698466994670046701467024670346704467054670646707467084670946710467114671246713467144671546716467174671846719467204672146722467234672446725467264672746728467294673046731467324673346734467354673646737467384673946740467414674246743467444674546746467474674846749467504675146752467534675446755467564675746758467594676046761467624676346764467654676646767467684676946770467714677246773467744677546776467774677846779467804678146782467834678446785467864678746788467894679046791467924679346794467954679646797467984679946800468014680246803468044680546806468074680846809468104681146812468134681446815468164681746818468194682046821468224682346824468254682646827468284682946830468314683246833468344683546836468374683846839468404684146842468434684446845468464684746848468494685046851468524685346854468554685646857468584685946860468614686246863468644686546866468674686846869468704687146872468734687446875468764687746878468794688046881468824688346884468854688646887468884688946890468914689246893468944689546896468974689846899469004690146902469034690446905469064690746908469094691046911469124691346914469154691646917469184691946920469214692246923469244692546926469274692846929469304693146932469334693446935469364693746938469394694046941469424694346944469454694646947469484694946950469514695246953469544695546956469574695846959469604696146962469634696446965469664696746968469694697046971469724697346974469754697646977469784697946980469814698246983469844698546986469874698846989469904699146992469934699446995469964699746998469994700047001470024700347004470054700647007470084700947010470114701247013470144701547016470174701847019470204702147022470234702447025470264702747028470294703047031470324703347034470354703647037470384703947040470414704247043470444704547046470474704847049470504705147052470534705447055470564705747058470594706047061470624706347064470654706647067470684706947070470714707247073470744707547076470774707847079470804708147082470834708447085470864708747088470894709047091470924709347094470954709647097470984709947100471014710247103471044710547106471074710847109471104711147112471134711447115471164711747118471194712047121471224712347124471254712647127471284712947130471314713247133471344713547136471374713847139471404714147142471434714447145471464714747148471494715047151471524715347154471554715647157471584715947160471614716247163471644716547166471674716847169471704717147172471734717447175471764717747178471794718047181471824718347184471854718647187471884718947190471914719247193471944719547196471974719847199472004720147202472034720447205472064720747208472094721047211472124721347214472154721647217472184721947220472214722247223472244722547226472274722847229472304723147232472334723447235472364723747238472394724047241472424724347244472454724647247472484724947250472514725247253472544725547256472574725847259472604726147262472634726447265472664726747268472694727047271472724727347274472754727647277472784727947280472814728247283472844728547286472874728847289472904729147292472934729447295472964729747298472994730047301473024730347304473054730647307473084730947310473114731247313473144731547316473174731847319473204732147322473234732447325473264732747328473294733047331473324733347334473354733647337473384733947340473414734247343473444734547346473474734847349473504735147352473534735447355473564735747358473594736047361473624736347364473654736647367473684736947370473714737247373473744737547376473774737847379473804738147382473834738447385473864738747388473894739047391473924739347394473954739647397473984739947400474014740247403474044740547406474074740847409474104741147412474134741447415474164741747418474194742047421474224742347424474254742647427474284742947430474314743247433474344743547436474374743847439474404744147442474434744447445474464744747448474494745047451474524745347454474554745647457474584745947460474614746247463474644746547466474674746847469474704747147472474734747447475474764747747478474794748047481474824748347484474854748647487474884748947490474914749247493474944749547496474974749847499475004750147502475034750447505475064750747508475094751047511475124751347514475154751647517475184751947520475214752247523475244752547526475274752847529475304753147532475334753447535475364753747538475394754047541475424754347544475454754647547475484754947550475514755247553475544755547556475574755847559475604756147562475634756447565475664756747568475694757047571475724757347574475754757647577475784757947580475814758247583475844758547586475874758847589475904759147592475934759447595475964759747598475994760047601476024760347604476054760647607476084760947610476114761247613476144761547616476174761847619476204762147622476234762447625476264762747628476294763047631476324763347634476354763647637476384763947640476414764247643476444764547646476474764847649476504765147652476534765447655476564765747658476594766047661476624766347664476654766647667476684766947670476714767247673476744767547676476774767847679476804768147682476834768447685476864768747688476894769047691476924769347694476954769647697476984769947700477014770247703477044770547706477074770847709477104771147712477134771447715477164771747718477194772047721477224772347724477254772647727477284772947730477314773247733477344773547736477374773847739477404774147742477434774447745477464774747748477494775047751477524775347754477554775647757477584775947760477614776247763477644776547766477674776847769477704777147772477734777447775477764777747778477794778047781477824778347784477854778647787477884778947790477914779247793477944779547796477974779847799478004780147802478034780447805478064780747808478094781047811478124781347814478154781647817478184781947820478214782247823478244782547826478274782847829478304783147832478334783447835478364783747838478394784047841478424784347844478454784647847478484784947850478514785247853478544785547856478574785847859478604786147862478634786447865478664786747868478694787047871478724787347874478754787647877478784787947880478814788247883478844788547886478874788847889478904789147892478934789447895478964789747898478994790047901479024790347904479054790647907479084790947910479114791247913479144791547916479174791847919479204792147922479234792447925479264792747928479294793047931479324793347934479354793647937479384793947940479414794247943479444794547946479474794847949479504795147952479534795447955479564795747958479594796047961479624796347964479654796647967479684796947970479714797247973479744797547976479774797847979479804798147982479834798447985479864798747988479894799047991479924799347994479954799647997479984799948000480014800248003480044800548006480074800848009480104801148012480134801448015480164801748018480194802048021480224802348024480254802648027480284802948030480314803248033480344803548036480374803848039480404804148042480434804448045480464804748048480494805048051480524805348054480554805648057480584805948060480614806248063480644806548066480674806848069480704807148072480734807448075480764807748078480794808048081480824808348084480854808648087480884808948090480914809248093480944809548096480974809848099481004810148102481034810448105481064810748108481094811048111481124811348114481154811648117481184811948120481214812248123481244812548126481274812848129481304813148132481334813448135481364813748138481394814048141481424814348144481454814648147481484814948150481514815248153481544815548156481574815848159481604816148162481634816448165481664816748168481694817048171481724817348174481754817648177481784817948180481814818248183481844818548186481874818848189481904819148192481934819448195481964819748198481994820048201482024820348204482054820648207482084820948210482114821248213482144821548216482174821848219482204822148222482234822448225482264822748228482294823048231482324823348234482354823648237482384823948240482414824248243482444824548246482474824848249482504825148252482534825448255482564825748258482594826048261482624826348264482654826648267482684826948270482714827248273482744827548276482774827848279482804828148282482834828448285482864828748288482894829048291482924829348294482954829648297482984829948300483014830248303483044830548306483074830848309483104831148312483134831448315483164831748318483194832048321483224832348324483254832648327483284832948330483314833248333483344833548336483374833848339483404834148342483434834448345483464834748348483494835048351483524835348354483554835648357483584835948360483614836248363483644836548366483674836848369483704837148372483734837448375483764837748378483794838048381483824838348384483854838648387483884838948390483914839248393483944839548396483974839848399484004840148402484034840448405484064840748408484094841048411484124841348414484154841648417484184841948420484214842248423484244842548426484274842848429484304843148432484334843448435484364843748438484394844048441484424844348444484454844648447484484844948450484514845248453484544845548456484574845848459484604846148462484634846448465484664846748468484694847048471484724847348474484754847648477484784847948480484814848248483484844848548486484874848848489484904849148492484934849448495484964849748498484994850048501485024850348504485054850648507485084850948510485114851248513485144851548516485174851848519485204852148522485234852448525485264852748528485294853048531485324853348534485354853648537485384853948540485414854248543485444854548546485474854848549485504855148552485534855448555485564855748558485594856048561485624856348564485654856648567485684856948570485714857248573485744857548576485774857848579485804858148582485834858448585485864858748588485894859048591485924859348594485954859648597485984859948600486014860248603486044860548606486074860848609486104861148612486134861448615486164861748618486194862048621486224862348624486254862648627486284862948630486314863248633486344863548636486374863848639486404864148642486434864448645486464864748648486494865048651486524865348654486554865648657486584865948660486614866248663486644866548666486674866848669486704867148672486734867448675486764867748678486794868048681486824868348684486854868648687486884868948690486914869248693486944869548696486974869848699487004870148702487034870448705487064870748708487094871048711487124871348714487154871648717487184871948720487214872248723487244872548726487274872848729487304873148732487334873448735487364873748738487394874048741487424874348744487454874648747487484874948750487514875248753487544875548756487574875848759487604876148762487634876448765487664876748768487694877048771487724877348774487754877648777487784877948780487814878248783487844878548786487874878848789487904879148792487934879448795487964879748798487994880048801488024880348804488054880648807488084880948810488114881248813488144881548816488174881848819488204882148822488234882448825488264882748828488294883048831488324883348834488354883648837488384883948840488414884248843488444884548846488474884848849488504885148852488534885448855488564885748858488594886048861488624886348864488654886648867488684886948870488714887248873488744887548876488774887848879488804888148882488834888448885488864888748888488894889048891488924889348894488954889648897488984889948900489014890248903489044890548906489074890848909489104891148912489134891448915489164891748918489194892048921489224892348924489254892648927489284892948930489314893248933489344893548936489374893848939489404894148942489434894448945489464894748948489494895048951489524895348954489554895648957489584895948960489614896248963489644896548966489674896848969489704897148972489734897448975489764897748978489794898048981489824898348984489854898648987489884898948990489914899248993489944899548996489974899848999490004900149002490034900449005490064900749008490094901049011490124901349014490154901649017490184901949020490214902249023490244902549026490274902849029490304903149032490334903449035490364903749038490394904049041490424904349044490454904649047490484904949050490514905249053490544905549056490574905849059490604906149062490634906449065490664906749068490694907049071490724907349074490754907649077490784907949080490814908249083490844908549086490874908849089490904909149092490934909449095490964909749098490994910049101491024910349104491054910649107491084910949110491114911249113491144911549116491174911849119491204912149122491234912449125491264912749128491294913049131491324913349134491354913649137491384913949140491414914249143491444914549146491474914849149491504915149152491534915449155491564915749158491594916049161491624916349164491654916649167491684916949170491714917249173491744917549176491774917849179491804918149182491834918449185491864918749188491894919049191491924919349194491954919649197491984919949200492014920249203492044920549206492074920849209492104921149212492134921449215492164921749218492194922049221492224922349224492254922649227492284922949230492314923249233492344923549236492374923849239492404924149242492434924449245492464924749248492494925049251492524925349254492554925649257492584925949260492614926249263492644926549266492674926849269492704927149272492734927449275492764927749278492794928049281492824928349284492854928649287492884928949290492914929249293492944929549296492974929849299493004930149302493034930449305493064930749308493094931049311493124931349314493154931649317493184931949320493214932249323493244932549326493274932849329493304933149332493334933449335493364933749338493394934049341493424934349344493454934649347493484934949350493514935249353493544935549356493574935849359493604936149362493634936449365493664936749368493694937049371493724937349374493754937649377493784937949380493814938249383493844938549386493874938849389493904939149392493934939449395493964939749398493994940049401494024940349404494054940649407494084940949410494114941249413494144941549416494174941849419494204942149422494234942449425494264942749428494294943049431494324943349434494354943649437494384943949440494414944249443494444944549446494474944849449494504945149452494534945449455494564945749458494594946049461494624946349464494654946649467494684946949470494714947249473494744947549476494774947849479494804948149482494834948449485494864948749488494894949049491494924949349494494954949649497494984949949500495014950249503495044950549506495074950849509495104951149512495134951449515495164951749518495194952049521495224952349524495254952649527495284952949530495314953249533495344953549536495374953849539495404954149542495434954449545495464954749548495494955049551495524955349554495554955649557495584955949560495614956249563495644956549566495674956849569495704957149572495734957449575495764957749578495794958049581495824958349584495854958649587495884958949590495914959249593495944959549596495974959849599496004960149602496034960449605496064960749608496094961049611496124961349614496154961649617496184961949620496214962249623496244962549626496274962849629496304963149632496334963449635496364963749638496394964049641496424964349644496454964649647496484964949650496514965249653496544965549656496574965849659496604966149662496634966449665496664966749668496694967049671496724967349674496754967649677496784967949680496814968249683496844968549686496874968849689496904969149692496934969449695496964969749698496994970049701497024970349704497054970649707497084970949710497114971249713497144971549716497174971849719497204972149722497234972449725497264972749728497294973049731497324973349734497354973649737497384973949740497414974249743497444974549746497474974849749497504975149752497534975449755497564975749758497594976049761497624976349764497654976649767497684976949770497714977249773497744977549776497774977849779497804978149782497834978449785497864978749788497894979049791497924979349794497954979649797497984979949800498014980249803498044980549806498074980849809498104981149812498134981449815498164981749818498194982049821498224982349824498254982649827498284982949830498314983249833498344983549836498374983849839498404984149842498434984449845498464984749848498494985049851498524985349854498554985649857498584985949860498614986249863498644986549866498674986849869498704987149872498734987449875498764987749878498794988049881498824988349884498854988649887498884988949890498914989249893498944989549896498974989849899499004990149902499034990449905499064990749908499094991049911499124991349914499154991649917499184991949920499214992249923499244992549926499274992849929499304993149932499334993449935499364993749938499394994049941499424994349944499454994649947499484994949950499514995249953499544995549956499574995849959499604996149962499634996449965499664996749968499694997049971499724997349974499754997649977499784997949980499814998249983499844998549986499874998849989499904999149992499934999449995499964999749998499995000050001500025000350004500055000650007500085000950010500115001250013500145001550016500175001850019500205002150022500235002450025500265002750028500295003050031500325003350034500355003650037500385003950040500415004250043500445004550046500475004850049500505005150052500535005450055500565005750058500595006050061500625006350064500655006650067500685006950070500715007250073500745007550076500775007850079500805008150082500835008450085500865008750088500895009050091500925009350094500955009650097500985009950100501015010250103501045010550106501075010850109501105011150112501135011450115501165011750118501195012050121501225012350124501255012650127501285012950130501315013250133501345013550136501375013850139501405014150142501435014450145501465014750148501495015050151501525015350154501555015650157501585015950160501615016250163501645016550166501675016850169501705017150172501735017450175501765017750178501795018050181501825018350184501855018650187501885018950190501915019250193501945019550196501975019850199502005020150202502035020450205502065020750208502095021050211502125021350214502155021650217502185021950220502215022250223502245022550226502275022850229502305023150232502335023450235502365023750238502395024050241502425024350244502455024650247502485024950250502515025250253502545025550256502575025850259502605026150262502635026450265502665026750268502695027050271502725027350274502755027650277502785027950280502815028250283502845028550286502875028850289502905029150292502935029450295502965029750298502995030050301503025030350304503055030650307503085030950310503115031250313503145031550316503175031850319503205032150322503235032450325503265032750328503295033050331503325033350334503355033650337503385033950340503415034250343503445034550346503475034850349503505035150352503535035450355503565035750358503595036050361503625036350364503655036650367503685036950370503715037250373503745037550376503775037850379503805038150382503835038450385503865038750388503895039050391503925039350394503955039650397503985039950400504015040250403504045040550406504075040850409504105041150412504135041450415504165041750418504195042050421504225042350424504255042650427504285042950430504315043250433504345043550436504375043850439504405044150442504435044450445504465044750448504495045050451504525045350454504555045650457504585045950460504615046250463504645046550466504675046850469504705047150472504735047450475504765047750478504795048050481504825048350484504855048650487504885048950490504915049250493504945049550496504975049850499505005050150502505035050450505505065050750508505095051050511505125051350514505155051650517505185051950520505215052250523505245052550526505275052850529505305053150532505335053450535505365053750538505395054050541505425054350544505455054650547505485054950550505515055250553505545055550556505575055850559505605056150562505635056450565505665056750568505695057050571505725057350574505755057650577505785057950580505815058250583505845058550586505875058850589505905059150592505935059450595505965059750598505995060050601506025060350604506055060650607506085060950610506115061250613506145061550616506175061850619506205062150622506235062450625506265062750628506295063050631506325063350634506355063650637506385063950640506415064250643506445064550646506475064850649506505065150652506535065450655506565065750658506595066050661506625066350664506655066650667506685066950670506715067250673506745067550676506775067850679506805068150682506835068450685506865068750688506895069050691506925069350694506955069650697506985069950700507015070250703507045070550706507075070850709507105071150712507135071450715507165071750718507195072050721507225072350724507255072650727507285072950730507315073250733507345073550736507375073850739507405074150742507435074450745507465074750748507495075050751507525075350754507555075650757507585075950760507615076250763507645076550766507675076850769507705077150772507735077450775507765077750778507795078050781507825078350784507855078650787507885078950790507915079250793507945079550796507975079850799508005080150802508035080450805508065080750808508095081050811508125081350814508155081650817508185081950820508215082250823508245082550826508275082850829508305083150832508335083450835508365083750838508395084050841508425084350844508455084650847508485084950850508515085250853508545085550856508575085850859508605086150862508635086450865508665086750868508695087050871508725087350874508755087650877508785087950880508815088250883508845088550886508875088850889508905089150892508935089450895508965089750898508995090050901509025090350904509055090650907509085090950910509115091250913509145091550916509175091850919509205092150922509235092450925509265092750928509295093050931509325093350934509355093650937509385093950940509415094250943509445094550946509475094850949509505095150952509535095450955509565095750958509595096050961509625096350964509655096650967509685096950970509715097250973509745097550976509775097850979509805098150982509835098450985509865098750988509895099050991509925099350994509955099650997509985099951000510015100251003510045100551006510075100851009510105101151012510135101451015510165101751018510195102051021510225102351024510255102651027510285102951030510315103251033510345103551036510375103851039510405104151042510435104451045510465104751048510495105051051510525105351054510555105651057510585105951060510615106251063510645106551066510675106851069510705107151072510735107451075510765107751078510795108051081510825108351084510855108651087510885108951090510915109251093510945109551096510975109851099511005110151102511035110451105511065110751108511095111051111511125111351114511155111651117511185111951120511215112251123511245112551126511275112851129511305113151132511335113451135511365113751138511395114051141511425114351144511455114651147511485114951150511515115251153511545115551156511575115851159511605116151162511635116451165511665116751168511695117051171511725117351174511755117651177511785117951180511815118251183511845118551186511875118851189511905119151192511935119451195511965119751198511995120051201512025120351204512055120651207512085120951210512115121251213512145121551216512175121851219512205122151222512235122451225512265122751228512295123051231512325123351234512355123651237512385123951240512415124251243512445124551246512475124851249512505125151252512535125451255512565125751258512595126051261512625126351264512655126651267512685126951270512715127251273512745127551276512775127851279512805128151282512835128451285512865128751288512895129051291512925129351294512955129651297512985129951300513015130251303513045130551306513075130851309513105131151312513135131451315513165131751318513195132051321513225132351324513255132651327513285132951330513315133251333513345133551336513375133851339513405134151342513435134451345513465134751348513495135051351513525135351354513555135651357513585135951360513615136251363513645136551366513675136851369513705137151372513735137451375513765137751378513795138051381513825138351384513855138651387513885138951390513915139251393513945139551396513975139851399514005140151402514035140451405514065140751408514095141051411514125141351414514155141651417514185141951420514215142251423514245142551426514275142851429514305143151432514335143451435514365143751438514395144051441514425144351444514455144651447514485144951450514515145251453514545145551456514575145851459514605146151462514635146451465514665146751468514695147051471514725147351474514755147651477514785147951480514815148251483514845148551486514875148851489514905149151492514935149451495514965149751498514995150051501515025150351504515055150651507515085150951510515115151251513515145151551516515175151851519515205152151522515235152451525515265152751528515295153051531515325153351534515355153651537515385153951540515415154251543515445154551546515475154851549515505155151552515535155451555515565155751558515595156051561515625156351564515655156651567515685156951570515715157251573515745157551576515775157851579515805158151582515835158451585515865158751588515895159051591515925159351594515955159651597515985159951600516015160251603516045160551606516075160851609516105161151612516135161451615516165161751618516195162051621516225162351624516255162651627516285162951630516315163251633516345163551636516375163851639516405164151642516435164451645516465164751648516495165051651516525165351654516555165651657516585165951660516615166251663516645166551666516675166851669516705167151672516735167451675516765167751678516795168051681516825168351684516855168651687516885168951690516915169251693516945169551696516975169851699517005170151702517035170451705517065170751708517095171051711517125171351714517155171651717517185171951720517215172251723517245172551726517275172851729517305173151732517335173451735517365173751738517395174051741517425174351744517455174651747517485174951750517515175251753517545175551756517575175851759517605176151762517635176451765517665176751768517695177051771517725177351774517755177651777517785177951780517815178251783517845178551786517875178851789517905179151792517935179451795517965179751798517995180051801518025180351804518055180651807518085180951810518115181251813518145181551816518175181851819518205182151822518235182451825518265182751828518295183051831518325183351834518355183651837518385183951840518415184251843518445184551846518475184851849518505185151852518535185451855518565185751858518595186051861518625186351864518655186651867518685186951870518715187251873518745187551876518775187851879518805188151882518835188451885518865188751888518895189051891518925189351894518955189651897518985189951900519015190251903519045190551906519075190851909519105191151912519135191451915519165191751918519195192051921519225192351924519255192651927519285192951930519315193251933519345193551936519375193851939519405194151942519435194451945519465194751948519495195051951519525195351954519555195651957519585195951960519615196251963519645196551966519675196851969519705197151972519735197451975519765197751978519795198051981519825198351984519855198651987519885198951990519915199251993519945199551996519975199851999520005200152002520035200452005520065200752008520095201052011520125201352014520155201652017520185201952020520215202252023520245202552026520275202852029520305203152032520335203452035520365203752038520395204052041520425204352044520455204652047520485204952050520515205252053520545205552056520575205852059520605206152062520635206452065520665206752068520695207052071520725207352074520755207652077520785207952080520815208252083520845208552086520875208852089520905209152092520935209452095520965209752098520995210052101521025210352104521055210652107521085210952110521115211252113521145211552116521175211852119521205212152122521235212452125521265212752128521295213052131521325213352134521355213652137521385213952140521415214252143521445214552146521475214852149521505215152152521535215452155521565215752158521595216052161521625216352164521655216652167521685216952170521715217252173521745217552176521775217852179521805218152182521835218452185521865218752188521895219052191521925219352194521955219652197521985219952200522015220252203522045220552206522075220852209522105221152212522135221452215522165221752218522195222052221522225222352224522255222652227522285222952230522315223252233522345223552236522375223852239522405224152242522435224452245522465224752248522495225052251522525225352254522555225652257522585225952260522615226252263522645226552266522675226852269522705227152272522735227452275522765227752278522795228052281522825228352284522855228652287522885228952290522915229252293522945229552296522975229852299523005230152302523035230452305523065230752308523095231052311523125231352314523155231652317523185231952320523215232252323523245232552326523275232852329523305233152332523335233452335523365233752338523395234052341523425234352344523455234652347523485234952350523515235252353523545235552356523575235852359523605236152362523635236452365523665236752368523695237052371523725237352374523755237652377523785237952380523815238252383523845238552386523875238852389523905239152392523935239452395523965239752398523995240052401524025240352404524055240652407524085240952410524115241252413524145241552416524175241852419524205242152422524235242452425524265242752428524295243052431524325243352434524355243652437524385243952440524415244252443524445244552446524475244852449524505245152452524535245452455524565245752458524595246052461524625246352464524655246652467524685246952470524715247252473524745247552476524775247852479524805248152482524835248452485524865248752488524895249052491524925249352494524955249652497524985249952500525015250252503525045250552506525075250852509525105251152512525135251452515525165251752518525195252052521525225252352524525255252652527525285252952530525315253252533525345253552536525375253852539525405254152542525435254452545525465254752548525495255052551525525255352554525555255652557525585255952560525615256252563525645256552566525675256852569525705257152572525735257452575525765257752578525795258052581525825258352584525855258652587525885258952590525915259252593525945259552596525975259852599526005260152602526035260452605526065260752608526095261052611526125261352614526155261652617526185261952620526215262252623526245262552626526275262852629526305263152632526335263452635526365263752638526395264052641526425264352644526455264652647526485264952650526515265252653526545265552656526575265852659526605266152662526635266452665526665266752668526695267052671526725267352674526755267652677526785267952680526815268252683526845268552686526875268852689526905269152692526935269452695526965269752698526995270052701527025270352704527055270652707527085270952710527115271252713527145271552716527175271852719527205272152722527235272452725527265272752728527295273052731527325273352734527355273652737527385273952740527415274252743527445274552746527475274852749527505275152752527535275452755527565275752758527595276052761527625276352764527655276652767527685276952770527715277252773527745277552776527775277852779527805278152782527835278452785527865278752788527895279052791527925279352794527955279652797527985279952800528015280252803528045280552806528075280852809528105281152812528135281452815528165281752818528195282052821528225282352824528255282652827528285282952830528315283252833528345283552836528375283852839528405284152842528435284452845528465284752848528495285052851528525285352854528555285652857528585285952860528615286252863528645286552866528675286852869528705287152872528735287452875528765287752878528795288052881528825288352884528855288652887528885288952890528915289252893528945289552896528975289852899529005290152902529035290452905529065290752908529095291052911529125291352914529155291652917529185291952920529215292252923529245292552926529275292852929529305293152932529335293452935529365293752938529395294052941529425294352944529455294652947529485294952950529515295252953529545295552956529575295852959529605296152962529635296452965529665296752968529695297052971529725297352974529755297652977529785297952980529815298252983529845298552986529875298852989529905299152992529935299452995529965299752998529995300053001530025300353004530055300653007530085300953010530115301253013530145301553016530175301853019530205302153022530235302453025530265302753028530295303053031530325303353034530355303653037530385303953040530415304253043530445304553046530475304853049530505305153052530535305453055530565305753058530595306053061530625306353064530655306653067530685306953070530715307253073530745307553076530775307853079530805308153082530835308453085530865308753088530895309053091530925309353094530955309653097530985309953100531015310253103531045310553106531075310853109531105311153112531135311453115531165311753118531195312053121531225312353124531255312653127531285312953130531315313253133531345313553136531375313853139531405314153142531435314453145531465314753148531495315053151531525315353154531555315653157531585315953160531615316253163531645316553166531675316853169531705317153172531735317453175531765317753178531795318053181531825318353184531855318653187531885318953190531915319253193531945319553196531975319853199532005320153202532035320453205532065320753208532095321053211532125321353214532155321653217532185321953220532215322253223532245322553226532275322853229532305323153232532335323453235532365323753238532395324053241532425324353244532455324653247532485324953250532515325253253532545325553256532575325853259532605326153262532635326453265532665326753268532695327053271532725327353274532755327653277532785327953280532815328253283532845328553286532875328853289532905329153292532935329453295532965329753298532995330053301533025330353304533055330653307533085330953310533115331253313533145331553316533175331853319533205332153322533235332453325533265332753328533295333053331533325333353334533355333653337533385333953340533415334253343533445334553346533475334853349533505335153352533535335453355533565335753358533595336053361533625336353364533655336653367533685336953370533715337253373533745337553376533775337853379533805338153382533835338453385533865338753388533895339053391533925339353394533955339653397533985339953400534015340253403534045340553406534075340853409534105341153412534135341453415534165341753418534195342053421534225342353424534255342653427534285342953430534315343253433534345343553436534375343853439534405344153442534435344453445534465344753448534495345053451534525345353454534555345653457534585345953460534615346253463534645346553466534675346853469534705347153472534735347453475534765347753478534795348053481534825348353484534855348653487534885348953490534915349253493534945349553496534975349853499535005350153502535035350453505535065350753508535095351053511535125351353514535155351653517535185351953520535215352253523535245352553526535275352853529535305353153532535335353453535535365353753538535395354053541535425354353544535455354653547535485354953550535515355253553535545355553556535575355853559535605356153562535635356453565535665356753568535695357053571535725357353574535755357653577535785357953580535815358253583535845358553586535875358853589535905359153592535935359453595535965359753598535995360053601536025360353604536055360653607536085360953610536115361253613536145361553616536175361853619536205362153622536235362453625536265362753628536295363053631536325363353634536355363653637536385363953640536415364253643536445364553646536475364853649536505365153652536535365453655536565365753658536595366053661536625366353664536655366653667536685366953670536715367253673536745367553676536775367853679536805368153682536835368453685536865368753688536895369053691536925369353694536955369653697536985369953700537015370253703537045370553706537075370853709537105371153712537135371453715537165371753718537195372053721537225372353724537255372653727537285372953730537315373253733537345373553736537375373853739537405374153742537435374453745537465374753748537495375053751537525375353754537555375653757537585375953760537615376253763537645376553766537675376853769537705377153772537735377453775537765377753778537795378053781537825378353784537855378653787537885378953790537915379253793537945379553796537975379853799538005380153802538035380453805538065380753808538095381053811538125381353814538155381653817538185381953820538215382253823538245382553826538275382853829538305383153832538335383453835538365383753838538395384053841538425384353844538455384653847538485384953850538515385253853538545385553856538575385853859538605386153862538635386453865538665386753868538695387053871538725387353874538755387653877538785387953880538815388253883538845388553886538875388853889538905389153892538935389453895538965389753898538995390053901539025390353904539055390653907539085390953910539115391253913539145391553916539175391853919539205392153922539235392453925539265392753928539295393053931539325393353934539355393653937539385393953940539415394253943539445394553946539475394853949539505395153952539535395453955539565395753958539595396053961539625396353964539655396653967539685396953970539715397253973539745397553976539775397853979539805398153982539835398453985539865398753988539895399053991539925399353994539955399653997539985399954000540015400254003540045400554006540075400854009540105401154012540135401454015540165401754018540195402054021540225402354024540255402654027540285402954030540315403254033540345403554036540375403854039540405404154042540435404454045540465404754048540495405054051540525405354054540555405654057540585405954060540615406254063540645406554066540675406854069540705407154072540735407454075540765407754078540795408054081540825408354084540855408654087540885408954090540915409254093540945409554096540975409854099541005410154102541035410454105541065410754108541095411054111541125411354114541155411654117541185411954120541215412254123541245412554126541275412854129541305413154132541335413454135541365413754138541395414054141541425414354144541455414654147541485414954150541515415254153541545415554156541575415854159541605416154162541635416454165541665416754168541695417054171541725417354174541755417654177541785417954180541815418254183541845418554186541875418854189541905419154192541935419454195541965419754198541995420054201542025420354204542055420654207542085420954210542115421254213542145421554216542175421854219542205422154222542235422454225542265422754228542295423054231542325423354234542355423654237542385423954240542415424254243542445424554246542475424854249542505425154252542535425454255542565425754258542595426054261542625426354264542655426654267542685426954270542715427254273542745427554276542775427854279542805428154282542835428454285542865428754288542895429054291542925429354294542955429654297542985429954300543015430254303543045430554306543075430854309543105431154312543135431454315543165431754318543195432054321543225432354324543255432654327543285432954330543315433254333543345433554336543375433854339543405434154342543435434454345543465434754348543495435054351543525435354354543555435654357543585435954360543615436254363543645436554366543675436854369543705437154372543735437454375543765437754378543795438054381543825438354384543855438654387543885438954390543915439254393543945439554396543975439854399544005440154402544035440454405544065440754408544095441054411544125441354414544155441654417544185441954420544215442254423544245442554426544275442854429544305443154432544335443454435544365443754438544395444054441544425444354444544455444654447544485444954450544515445254453544545445554456544575445854459544605446154462544635446454465544665446754468544695447054471544725447354474544755447654477544785447954480544815448254483544845448554486544875448854489544905449154492544935449454495544965449754498544995450054501545025450354504545055450654507545085450954510545115451254513545145451554516545175451854519545205452154522545235452454525545265452754528545295453054531545325453354534545355453654537545385453954540545415454254543545445454554546545475454854549545505455154552545535455454555545565455754558545595456054561545625456354564545655456654567545685456954570545715457254573545745457554576545775457854579545805458154582545835458454585545865458754588545895459054591545925459354594545955459654597545985459954600546015460254603546045460554606546075460854609546105461154612546135461454615546165461754618546195462054621546225462354624546255462654627546285462954630546315463254633546345463554636546375463854639546405464154642546435464454645546465464754648546495465054651546525465354654546555465654657546585465954660546615466254663546645466554666546675466854669546705467154672546735467454675546765467754678546795468054681546825468354684546855468654687546885468954690546915469254693546945469554696546975469854699547005470154702547035470454705547065470754708547095471054711547125471354714547155471654717547185471954720547215472254723547245472554726547275472854729547305473154732547335473454735547365473754738547395474054741547425474354744547455474654747547485474954750547515475254753547545475554756547575475854759547605476154762547635476454765547665476754768547695477054771547725477354774547755477654777547785477954780547815478254783547845478554786547875478854789547905479154792547935479454795547965479754798547995480054801548025480354804548055480654807548085480954810548115481254813548145481554816548175481854819548205482154822548235482454825548265482754828548295483054831548325483354834548355483654837548385483954840548415484254843548445484554846548475484854849548505485154852548535485454855548565485754858548595486054861548625486354864548655486654867548685486954870548715487254873548745487554876548775487854879548805488154882548835488454885548865488754888548895489054891548925489354894548955489654897548985489954900549015490254903549045490554906549075490854909549105491154912549135491454915549165491754918549195492054921549225492354924549255492654927549285492954930549315493254933549345493554936549375493854939549405494154942549435494454945549465494754948549495495054951549525495354954549555495654957549585495954960549615496254963549645496554966549675496854969549705497154972549735497454975549765497754978549795498054981549825498354984549855498654987549885498954990549915499254993549945499554996549975499854999550005500155002550035500455005550065500755008550095501055011550125501355014550155501655017550185501955020550215502255023550245502555026550275502855029550305503155032550335503455035550365503755038550395504055041550425504355044550455504655047550485504955050550515505255053550545505555056550575505855059550605506155062550635506455065550665506755068550695507055071550725507355074550755507655077550785507955080550815508255083550845508555086550875508855089550905509155092550935509455095550965509755098550995510055101551025510355104551055510655107551085510955110551115511255113551145511555116551175511855119551205512155122551235512455125551265512755128551295513055131551325513355134551355513655137551385513955140551415514255143551445514555146551475514855149551505515155152551535515455155551565515755158551595516055161551625516355164551655516655167551685516955170551715517255173551745517555176551775517855179551805518155182551835518455185551865518755188551895519055191551925519355194551955519655197551985519955200552015520255203552045520555206552075520855209552105521155212552135521455215552165521755218552195522055221552225522355224552255522655227552285522955230552315523255233552345523555236552375523855239552405524155242552435524455245552465524755248552495525055251552525525355254552555525655257552585525955260552615526255263552645526555266552675526855269552705527155272552735527455275552765527755278552795528055281552825528355284552855528655287552885528955290552915529255293552945529555296552975529855299553005530155302553035530455305553065530755308553095531055311553125531355314553155531655317553185531955320553215532255323553245532555326553275532855329553305533155332553335533455335553365533755338553395534055341553425534355344553455534655347553485534955350553515535255353553545535555356553575535855359553605536155362553635536455365553665536755368553695537055371553725537355374553755537655377553785537955380553815538255383553845538555386553875538855389553905539155392553935539455395553965539755398553995540055401554025540355404554055540655407554085540955410554115541255413554145541555416554175541855419554205542155422554235542455425554265542755428554295543055431554325543355434554355543655437554385543955440554415544255443554445544555446554475544855449554505545155452554535545455455554565545755458554595546055461554625546355464554655546655467554685546955470554715547255473554745547555476554775547855479554805548155482554835548455485554865548755488554895549055491554925549355494554955549655497554985549955500555015550255503555045550555506555075550855509555105551155512555135551455515555165551755518555195552055521555225552355524555255552655527555285552955530555315553255533555345553555536555375553855539555405554155542555435554455545555465554755548555495555055551555525555355554555555555655557555585555955560555615556255563555645556555566555675556855569555705557155572555735557455575555765557755578555795558055581555825558355584555855558655587555885558955590555915559255593555945559555596555975559855599556005560155602556035560455605556065560755608556095561055611556125561355614556155561655617556185561955620556215562255623556245562555626556275562855629556305563155632556335563455635556365563755638556395564055641556425564355644556455564655647556485564955650556515565255653556545565555656556575565855659556605566155662556635566455665556665566755668556695567055671556725567355674556755567655677556785567955680556815568255683556845568555686556875568855689556905569155692556935569455695556965569755698556995570055701557025570355704557055570655707557085570955710557115571255713557145571555716557175571855719557205572155722557235572455725557265572755728557295573055731557325573355734557355573655737557385573955740557415574255743557445574555746557475574855749557505575155752557535575455755557565575755758557595576055761557625576355764557655576655767557685576955770557715577255773557745577555776557775577855779557805578155782557835578455785557865578755788557895579055791557925579355794557955579655797557985579955800558015580255803558045580555806558075580855809558105581155812558135581455815558165581755818558195582055821558225582355824558255582655827558285582955830558315583255833558345583555836558375583855839558405584155842558435584455845558465584755848558495585055851558525585355854558555585655857558585585955860558615586255863558645586555866558675586855869558705587155872558735587455875558765587755878558795588055881558825588355884558855588655887558885588955890558915589255893558945589555896558975589855899559005590155902559035590455905559065590755908559095591055911559125591355914559155591655917559185591955920559215592255923559245592555926559275592855929559305593155932559335593455935559365593755938559395594055941559425594355944559455594655947559485594955950559515595255953559545595555956559575595855959559605596155962559635596455965559665596755968559695597055971559725597355974559755597655977559785597955980559815598255983559845598555986559875598855989559905599155992559935599455995559965599755998559995600056001560025600356004560055600656007560085600956010560115601256013560145601556016560175601856019560205602156022560235602456025560265602756028560295603056031560325603356034560355603656037560385603956040560415604256043560445604556046560475604856049560505605156052560535605456055560565605756058560595606056061560625606356064560655606656067560685606956070560715607256073560745607556076560775607856079560805608156082560835608456085560865608756088560895609056091560925609356094560955609656097560985609956100561015610256103561045610556106561075610856109561105611156112561135611456115561165611756118561195612056121561225612356124561255612656127561285612956130561315613256133561345613556136561375613856139561405614156142561435614456145561465614756148561495615056151561525615356154561555615656157561585615956160561615616256163561645616556166561675616856169561705617156172561735617456175561765617756178561795618056181561825618356184561855618656187561885618956190561915619256193561945619556196561975619856199562005620156202562035620456205562065620756208562095621056211562125621356214562155621656217562185621956220562215622256223562245622556226562275622856229562305623156232562335623456235562365623756238562395624056241562425624356244562455624656247562485624956250562515625256253562545625556256562575625856259562605626156262562635626456265562665626756268562695627056271562725627356274562755627656277562785627956280562815628256283562845628556286562875628856289562905629156292562935629456295562965629756298562995630056301563025630356304563055630656307563085630956310563115631256313563145631556316563175631856319563205632156322563235632456325563265632756328563295633056331563325633356334563355633656337563385633956340563415634256343563445634556346563475634856349563505635156352563535635456355563565635756358563595636056361563625636356364563655636656367563685636956370563715637256373563745637556376563775637856379563805638156382563835638456385563865638756388563895639056391563925639356394563955639656397563985639956400564015640256403564045640556406564075640856409564105641156412564135641456415564165641756418564195642056421564225642356424564255642656427564285642956430564315643256433564345643556436564375643856439564405644156442564435644456445564465644756448564495645056451564525645356454564555645656457564585645956460564615646256463564645646556466564675646856469564705647156472564735647456475564765647756478564795648056481564825648356484564855648656487564885648956490564915649256493564945649556496564975649856499565005650156502565035650456505565065650756508565095651056511565125651356514565155651656517565185651956520565215652256523565245652556526565275652856529565305653156532565335653456535565365653756538565395654056541565425654356544565455654656547565485654956550565515655256553565545655556556565575655856559565605656156562565635656456565565665656756568565695657056571565725657356574565755657656577565785657956580565815658256583565845658556586565875658856589565905659156592565935659456595565965659756598565995660056601566025660356604566055660656607566085660956610566115661256613566145661556616566175661856619566205662156622566235662456625566265662756628566295663056631566325663356634566355663656637566385663956640566415664256643566445664556646566475664856649566505665156652566535665456655566565665756658566595666056661566625666356664566655666656667566685666956670566715667256673566745667556676566775667856679566805668156682566835668456685566865668756688566895669056691566925669356694566955669656697566985669956700567015670256703567045670556706567075670856709567105671156712567135671456715567165671756718567195672056721567225672356724567255672656727567285672956730567315673256733567345673556736567375673856739567405674156742567435674456745567465674756748567495675056751567525675356754567555675656757567585675956760567615676256763567645676556766567675676856769567705677156772567735677456775567765677756778567795678056781567825678356784567855678656787567885678956790567915679256793567945679556796567975679856799568005680156802568035680456805568065680756808568095681056811568125681356814568155681656817568185681956820568215682256823568245682556826568275682856829568305683156832568335683456835568365683756838568395684056841568425684356844568455684656847568485684956850568515685256853568545685556856568575685856859568605686156862568635686456865568665686756868568695687056871568725687356874568755687656877568785687956880568815688256883568845688556886568875688856889568905689156892568935689456895568965689756898568995690056901569025690356904569055690656907569085690956910569115691256913569145691556916569175691856919569205692156922569235692456925569265692756928569295693056931569325693356934569355693656937569385693956940569415694256943569445694556946569475694856949569505695156952569535695456955569565695756958569595696056961569625696356964569655696656967569685696956970569715697256973569745697556976569775697856979569805698156982569835698456985569865698756988569895699056991569925699356994569955699656997569985699957000570015700257003570045700557006570075700857009570105701157012570135701457015570165701757018570195702057021570225702357024570255702657027570285702957030570315703257033570345703557036570375703857039570405704157042570435704457045570465704757048570495705057051570525705357054570555705657057570585705957060570615706257063570645706557066570675706857069570705707157072570735707457075570765707757078570795708057081570825708357084570855708657087570885708957090570915709257093570945709557096570975709857099571005710157102571035710457105571065710757108571095711057111571125711357114571155711657117571185711957120571215712257123571245712557126571275712857129571305713157132571335713457135571365713757138571395714057141571425714357144571455714657147571485714957150571515715257153571545715557156571575715857159571605716157162571635716457165571665716757168571695717057171571725717357174571755717657177571785717957180571815718257183571845718557186571875718857189571905719157192571935719457195571965719757198571995720057201572025720357204572055720657207572085720957210572115721257213572145721557216572175721857219572205722157222572235722457225572265722757228572295723057231572325723357234572355723657237572385723957240572415724257243572445724557246572475724857249572505725157252572535725457255572565725757258572595726057261572625726357264572655726657267572685726957270572715727257273572745727557276572775727857279572805728157282572835728457285572865728757288572895729057291572925729357294572955729657297572985729957300573015730257303573045730557306573075730857309573105731157312573135731457315573165731757318573195732057321573225732357324573255732657327573285732957330573315733257333573345733557336573375733857339573405734157342573435734457345573465734757348573495735057351573525735357354573555735657357573585735957360573615736257363573645736557366573675736857369573705737157372573735737457375573765737757378573795738057381573825738357384573855738657387573885738957390573915739257393573945739557396573975739857399574005740157402574035740457405574065740757408574095741057411574125741357414574155741657417574185741957420574215742257423574245742557426574275742857429574305743157432574335743457435574365743757438574395744057441574425744357444574455744657447574485744957450574515745257453574545745557456574575745857459574605746157462574635746457465574665746757468574695747057471574725747357474574755747657477574785747957480574815748257483574845748557486574875748857489574905749157492574935749457495574965749757498574995750057501575025750357504575055750657507575085750957510575115751257513575145751557516575175751857519575205752157522575235752457525575265752757528575295753057531575325753357534575355753657537575385753957540575415754257543575445754557546575475754857549575505755157552575535755457555575565755757558575595756057561575625756357564575655756657567575685756957570575715757257573575745757557576575775757857579575805758157582575835758457585575865758757588575895759057591575925759357594575955759657597575985759957600576015760257603576045760557606576075760857609576105761157612576135761457615576165761757618576195762057621576225762357624576255762657627576285762957630576315763257633576345763557636576375763857639576405764157642576435764457645576465764757648576495765057651576525765357654576555765657657576585765957660576615766257663576645766557666576675766857669576705767157672576735767457675576765767757678576795768057681576825768357684576855768657687576885768957690576915769257693576945769557696576975769857699577005770157702577035770457705577065770757708577095771057711577125771357714577155771657717577185771957720577215772257723577245772557726577275772857729577305773157732577335773457735577365773757738577395774057741577425774357744577455774657747577485774957750577515775257753577545775557756577575775857759577605776157762577635776457765577665776757768577695777057771577725777357774577755777657777577785777957780577815778257783577845778557786577875778857789577905779157792577935779457795577965779757798577995780057801578025780357804578055780657807578085780957810578115781257813578145781557816578175781857819578205782157822578235782457825578265782757828578295783057831578325783357834578355783657837578385783957840578415784257843578445784557846578475784857849578505785157852578535785457855578565785757858578595786057861578625786357864578655786657867578685786957870578715787257873578745787557876578775787857879578805788157882578835788457885578865788757888578895789057891578925789357894578955789657897578985789957900579015790257903579045790557906579075790857909579105791157912579135791457915579165791757918579195792057921579225792357924579255792657927579285792957930579315793257933579345793557936579375793857939579405794157942579435794457945579465794757948579495795057951579525795357954579555795657957579585795957960579615796257963579645796557966579675796857969579705797157972579735797457975579765797757978579795798057981579825798357984579855798657987579885798957990579915799257993579945799557996579975799857999580005800158002580035800458005580065800758008580095801058011580125801358014580155801658017580185801958020580215802258023580245802558026580275802858029580305803158032580335803458035580365803758038580395804058041580425804358044580455804658047580485804958050580515805258053580545805558056580575805858059580605806158062580635806458065580665806758068580695807058071580725807358074580755807658077580785807958080580815808258083580845808558086580875808858089580905809158092580935809458095580965809758098580995810058101581025810358104581055810658107581085810958110581115811258113581145811558116581175811858119581205812158122581235812458125581265812758128581295813058131581325813358134581355813658137581385813958140581415814258143581445814558146581475814858149581505815158152581535815458155581565815758158581595816058161581625816358164581655816658167581685816958170581715817258173581745817558176581775817858179581805818158182581835818458185581865818758188581895819058191581925819358194581955819658197581985819958200582015820258203582045820558206582075820858209582105821158212582135821458215582165821758218582195822058221582225822358224582255822658227582285822958230582315823258233582345823558236582375823858239582405824158242582435824458245582465824758248582495825058251582525825358254582555825658257582585825958260582615826258263582645826558266582675826858269582705827158272582735827458275582765827758278582795828058281582825828358284582855828658287582885828958290582915829258293582945829558296582975829858299583005830158302583035830458305583065830758308583095831058311583125831358314583155831658317583185831958320583215832258323583245832558326583275832858329583305833158332583335833458335583365833758338583395834058341583425834358344583455834658347583485834958350583515835258353583545835558356583575835858359583605836158362583635836458365583665836758368583695837058371583725837358374583755837658377583785837958380583815838258383583845838558386583875838858389583905839158392583935839458395583965839758398583995840058401584025840358404584055840658407584085840958410584115841258413584145841558416584175841858419584205842158422584235842458425584265842758428584295843058431584325843358434584355843658437584385843958440584415844258443584445844558446584475844858449584505845158452584535845458455584565845758458584595846058461584625846358464584655846658467584685846958470584715847258473584745847558476584775847858479584805848158482584835848458485584865848758488584895849058491584925849358494584955849658497584985849958500585015850258503585045850558506585075850858509585105851158512585135851458515585165851758518585195852058521585225852358524585255852658527585285852958530585315853258533585345853558536585375853858539585405854158542585435854458545585465854758548585495855058551585525855358554585555855658557585585855958560585615856258563585645856558566585675856858569585705857158572585735857458575585765857758578585795858058581585825858358584585855858658587585885858958590585915859258593585945859558596585975859858599586005860158602586035860458605586065860758608586095861058611586125861358614586155861658617586185861958620586215862258623586245862558626586275862858629586305863158632586335863458635586365863758638586395864058641586425864358644586455864658647586485864958650586515865258653586545865558656586575865858659586605866158662586635866458665586665866758668586695867058671586725867358674586755867658677586785867958680586815868258683586845868558686586875868858689586905869158692586935869458695586965869758698586995870058701587025870358704587055870658707587085870958710587115871258713587145871558716587175871858719587205872158722587235872458725587265872758728587295873058731587325873358734587355873658737587385873958740587415874258743587445874558746587475874858749587505875158752587535875458755587565875758758587595876058761587625876358764587655876658767587685876958770587715877258773587745877558776587775877858779587805878158782587835878458785587865878758788587895879058791587925879358794587955879658797587985879958800588015880258803588045880558806588075880858809588105881158812588135881458815588165881758818588195882058821588225882358824588255882658827588285882958830588315883258833588345883558836588375883858839588405884158842588435884458845588465884758848588495885058851588525885358854588555885658857588585885958860588615886258863588645886558866588675886858869588705887158872588735887458875588765887758878588795888058881588825888358884588855888658887588885888958890588915889258893588945889558896588975889858899589005890158902589035890458905589065890758908589095891058911589125891358914589155891658917589185891958920589215892258923589245892558926589275892858929589305893158932589335893458935589365893758938589395894058941589425894358944589455894658947589485894958950589515895258953589545895558956589575895858959589605896158962589635896458965589665896758968589695897058971589725897358974589755897658977589785897958980589815898258983589845898558986589875898858989589905899158992589935899458995589965899758998589995900059001590025900359004590055900659007590085900959010590115901259013590145901559016590175901859019590205902159022590235902459025590265902759028590295903059031590325903359034590355903659037590385903959040590415904259043590445904559046590475904859049590505905159052590535905459055590565905759058590595906059061590625906359064590655906659067590685906959070590715907259073590745907559076590775907859079590805908159082590835908459085590865908759088590895909059091590925909359094590955909659097590985909959100591015910259103591045910559106591075910859109591105911159112591135911459115591165911759118591195912059121591225912359124591255912659127591285912959130591315913259133591345913559136591375913859139591405914159142591435914459145591465914759148591495915059151591525915359154591555915659157591585915959160591615916259163591645916559166591675916859169591705917159172591735917459175591765917759178591795918059181591825918359184591855918659187591885918959190591915919259193591945919559196591975919859199592005920159202592035920459205592065920759208592095921059211592125921359214592155921659217592185921959220592215922259223592245922559226592275922859229592305923159232592335923459235592365923759238592395924059241592425924359244592455924659247592485924959250592515925259253592545925559256592575925859259592605926159262592635926459265592665926759268592695927059271592725927359274592755927659277592785927959280592815928259283592845928559286592875928859289592905929159292592935929459295592965929759298592995930059301593025930359304593055930659307593085930959310593115931259313593145931559316593175931859319593205932159322593235932459325593265932759328593295933059331593325933359334593355933659337593385933959340593415934259343593445934559346593475934859349593505935159352593535935459355593565935759358593595936059361593625936359364593655936659367593685936959370593715937259373593745937559376593775937859379593805938159382593835938459385593865938759388593895939059391593925939359394593955939659397593985939959400594015940259403594045940559406594075940859409594105941159412594135941459415594165941759418594195942059421594225942359424594255942659427594285942959430594315943259433594345943559436594375943859439594405944159442594435944459445594465944759448594495945059451594525945359454594555945659457594585945959460594615946259463594645946559466594675946859469594705947159472594735947459475594765947759478594795948059481594825948359484594855948659487594885948959490594915949259493594945949559496594975949859499595005950159502595035950459505595065950759508595095951059511595125951359514595155951659517595185951959520595215952259523595245952559526595275952859529595305953159532595335953459535595365953759538595395954059541595425954359544595455954659547595485954959550595515955259553595545955559556595575955859559595605956159562595635956459565595665956759568595695957059571595725957359574595755957659577595785957959580595815958259583595845958559586595875958859589595905959159592595935959459595595965959759598595995960059601596025960359604596055960659607596085960959610596115961259613596145961559616596175961859619596205962159622596235962459625596265962759628596295963059631596325963359634596355963659637596385963959640596415964259643596445964559646596475964859649596505965159652596535965459655596565965759658596595966059661596625966359664596655966659667596685966959670596715967259673596745967559676596775967859679596805968159682596835968459685596865968759688596895969059691596925969359694596955969659697596985969959700597015970259703597045970559706597075970859709597105971159712597135971459715597165971759718597195972059721597225972359724597255972659727597285972959730597315973259733597345973559736597375973859739597405974159742597435974459745597465974759748597495975059751597525975359754597555975659757597585975959760597615976259763597645976559766597675976859769597705977159772597735977459775597765977759778597795978059781597825978359784597855978659787597885978959790597915979259793597945979559796597975979859799598005980159802598035980459805598065980759808598095981059811598125981359814598155981659817598185981959820598215982259823598245982559826598275982859829598305983159832598335983459835598365983759838598395984059841598425984359844598455984659847598485984959850598515985259853598545985559856598575985859859598605986159862598635986459865598665986759868598695987059871598725987359874598755987659877598785987959880598815988259883598845988559886598875988859889598905989159892598935989459895598965989759898598995990059901599025990359904599055990659907599085990959910599115991259913599145991559916599175991859919599205992159922599235992459925599265992759928599295993059931599325993359934599355993659937599385993959940599415994259943599445994559946599475994859949599505995159952599535995459955599565995759958599595996059961599625996359964599655996659967599685996959970599715997259973599745997559976599775997859979599805998159982599835998459985599865998759988599895999059991599925999359994599955999659997599985999960000600016000260003600046000560006600076000860009600106001160012600136001460015600166001760018600196002060021600226002360024600256002660027600286002960030600316003260033600346003560036600376003860039600406004160042600436004460045600466004760048600496005060051600526005360054600556005660057600586005960060600616006260063600646006560066600676006860069600706007160072600736007460075600766007760078600796008060081600826008360084600856008660087600886008960090600916009260093600946009560096600976009860099601006010160102601036010460105601066010760108601096011060111601126011360114601156011660117601186011960120601216012260123601246012560126601276012860129601306013160132601336013460135601366013760138601396014060141601426014360144601456014660147601486014960150601516015260153601546015560156601576015860159601606016160162601636016460165601666016760168601696017060171601726017360174601756017660177601786017960180601816018260183601846018560186601876018860189601906019160192601936019460195601966019760198601996020060201602026020360204602056020660207602086020960210602116021260213602146021560216602176021860219602206022160222602236022460225602266022760228602296023060231602326023360234602356023660237602386023960240602416024260243602446024560246602476024860249602506025160252602536025460255602566025760258602596026060261602626026360264602656026660267602686026960270602716027260273602746027560276602776027860279602806028160282602836028460285602866028760288602896029060291602926029360294602956029660297602986029960300603016030260303603046030560306603076030860309603106031160312603136031460315603166031760318603196032060321603226032360324603256032660327603286032960330603316033260333603346033560336603376033860339603406034160342603436034460345603466034760348603496035060351603526035360354603556035660357603586035960360603616036260363603646036560366603676036860369603706037160372603736037460375603766037760378603796038060381603826038360384603856038660387603886038960390603916039260393603946039560396603976039860399604006040160402604036040460405604066040760408604096041060411604126041360414604156041660417604186041960420604216042260423604246042560426604276042860429604306043160432604336043460435604366043760438604396044060441604426044360444604456044660447604486044960450604516045260453604546045560456604576045860459604606046160462604636046460465604666046760468604696047060471604726047360474604756047660477604786047960480604816048260483604846048560486604876048860489604906049160492604936049460495604966049760498604996050060501605026050360504605056050660507605086050960510605116051260513605146051560516605176051860519605206052160522605236052460525605266052760528605296053060531605326053360534605356053660537605386053960540605416054260543605446054560546605476054860549605506055160552605536055460555605566055760558605596056060561605626056360564605656056660567605686056960570605716057260573605746057560576605776057860579605806058160582605836058460585605866058760588605896059060591605926059360594605956059660597605986059960600606016060260603606046060560606606076060860609606106061160612606136061460615606166061760618606196062060621606226062360624606256062660627606286062960630606316063260633606346063560636606376063860639606406064160642606436064460645606466064760648606496065060651606526065360654606556065660657606586065960660606616066260663606646066560666606676066860669606706067160672606736067460675606766067760678606796068060681606826068360684606856068660687606886068960690606916069260693606946069560696606976069860699607006070160702607036070460705607066070760708607096071060711607126071360714607156071660717607186071960720607216072260723607246072560726607276072860729607306073160732607336073460735607366073760738607396074060741607426074360744607456074660747607486074960750607516075260753607546075560756607576075860759607606076160762607636076460765607666076760768607696077060771607726077360774607756077660777607786077960780607816078260783607846078560786607876078860789607906079160792607936079460795607966079760798607996080060801608026080360804608056080660807608086080960810608116081260813608146081560816608176081860819608206082160822608236082460825608266082760828608296083060831608326083360834608356083660837608386083960840608416084260843608446084560846608476084860849608506085160852608536085460855608566085760858608596086060861608626086360864608656086660867608686086960870608716087260873608746087560876608776087860879608806088160882608836088460885608866088760888608896089060891608926089360894608956089660897608986089960900609016090260903609046090560906609076090860909609106091160912609136091460915609166091760918609196092060921609226092360924609256092660927609286092960930609316093260933609346093560936609376093860939609406094160942609436094460945609466094760948609496095060951609526095360954609556095660957609586095960960609616096260963609646096560966609676096860969609706097160972609736097460975609766097760978609796098060981609826098360984609856098660987609886098960990609916099260993609946099560996609976099860999610006100161002610036100461005610066100761008610096101061011610126101361014610156101661017610186101961020610216102261023610246102561026610276102861029610306103161032610336103461035610366103761038610396104061041610426104361044610456104661047610486104961050610516105261053610546105561056610576105861059610606106161062610636106461065610666106761068610696107061071610726107361074610756107661077610786107961080610816108261083610846108561086610876108861089610906109161092610936109461095610966109761098610996110061101611026110361104611056110661107611086110961110611116111261113611146111561116611176111861119611206112161122611236112461125611266112761128611296113061131611326113361134611356113661137611386113961140611416114261143611446114561146611476114861149611506115161152611536115461155611566115761158611596116061161611626116361164611656116661167611686116961170611716117261173611746117561176611776117861179611806118161182611836118461185611866118761188611896119061191611926119361194611956119661197611986119961200612016120261203612046120561206612076120861209612106121161212612136121461215612166121761218612196122061221612226122361224612256122661227612286122961230612316123261233612346123561236612376123861239612406124161242612436124461245612466124761248612496125061251612526125361254612556125661257612586125961260612616126261263612646126561266612676126861269612706127161272612736127461275612766127761278612796128061281612826128361284612856128661287612886128961290612916129261293612946129561296612976129861299613006130161302613036130461305613066130761308613096131061311613126131361314613156131661317613186131961320613216132261323613246132561326613276132861329613306133161332613336133461335613366133761338613396134061341613426134361344613456134661347613486134961350613516135261353613546135561356613576135861359613606136161362613636136461365613666136761368613696137061371613726137361374613756137661377613786137961380613816138261383613846138561386613876138861389613906139161392613936139461395613966139761398613996140061401614026140361404614056140661407614086140961410614116141261413614146141561416614176141861419614206142161422614236142461425614266142761428614296143061431614326143361434614356143661437614386143961440614416144261443614446144561446614476144861449614506145161452614536145461455614566145761458614596146061461614626146361464614656146661467614686146961470614716147261473614746147561476614776147861479614806148161482614836148461485614866148761488614896149061491614926149361494614956149661497614986149961500615016150261503615046150561506615076150861509615106151161512615136151461515615166151761518615196152061521615226152361524615256152661527615286152961530615316153261533615346153561536615376153861539615406154161542615436154461545615466154761548615496155061551615526155361554615556155661557615586155961560615616156261563615646156561566615676156861569615706157161572615736157461575615766157761578615796158061581615826158361584615856158661587615886158961590615916159261593615946159561596615976159861599616006160161602616036160461605616066160761608616096161061611616126161361614616156161661617616186161961620616216162261623616246162561626616276162861629616306163161632616336163461635616366163761638616396164061641616426164361644616456164661647616486164961650616516165261653616546165561656616576165861659616606166161662616636166461665616666166761668616696167061671616726167361674616756167661677616786167961680616816168261683616846168561686616876168861689616906169161692616936169461695616966169761698616996170061701617026170361704617056170661707617086170961710617116171261713617146171561716617176171861719617206172161722617236172461725617266172761728617296173061731617326173361734617356173661737617386173961740617416174261743617446174561746617476174861749617506175161752617536175461755617566175761758617596176061761617626176361764617656176661767617686176961770617716177261773617746177561776617776177861779617806178161782617836178461785617866178761788617896179061791617926179361794617956179661797617986179961800618016180261803618046180561806618076180861809618106181161812618136181461815618166181761818618196182061821618226182361824618256182661827618286182961830618316183261833618346183561836618376183861839618406184161842618436184461845618466184761848618496185061851618526185361854618556185661857618586185961860618616186261863618646186561866618676186861869618706187161872618736187461875618766187761878618796188061881618826188361884618856188661887618886188961890618916189261893618946189561896618976189861899619006190161902619036190461905619066190761908619096191061911619126191361914619156191661917619186191961920619216192261923619246192561926619276192861929619306193161932619336193461935619366193761938619396194061941619426194361944619456194661947619486194961950619516195261953619546195561956619576195861959619606196161962619636196461965619666196761968619696197061971619726197361974619756197661977619786197961980619816198261983619846198561986619876198861989619906199161992619936199461995619966199761998619996200062001620026200362004620056200662007620086200962010620116201262013620146201562016620176201862019620206202162022620236202462025620266202762028620296203062031620326203362034620356203662037620386203962040620416204262043620446204562046620476204862049620506205162052620536205462055620566205762058620596206062061620626206362064620656206662067620686206962070620716207262073620746207562076620776207862079620806208162082620836208462085620866208762088620896209062091620926209362094620956209662097620986209962100621016210262103621046210562106621076210862109621106211162112621136211462115621166211762118621196212062121621226212362124621256212662127621286212962130621316213262133621346213562136621376213862139621406214162142621436214462145621466214762148621496215062151621526215362154621556215662157621586215962160621616216262163621646216562166621676216862169621706217162172621736217462175621766217762178621796218062181621826218362184621856218662187621886218962190621916219262193621946219562196621976219862199622006220162202622036220462205622066220762208622096221062211622126221362214622156221662217622186221962220622216222262223622246222562226622276222862229622306223162232622336223462235622366223762238622396224062241622426224362244622456224662247622486224962250622516225262253622546225562256622576225862259622606226162262622636226462265622666226762268622696227062271622726227362274622756227662277622786227962280622816228262283622846228562286622876228862289622906229162292622936229462295622966229762298622996230062301623026230362304623056230662307623086230962310623116231262313623146231562316623176231862319623206232162322623236232462325623266232762328623296233062331623326233362334623356233662337623386233962340623416234262343623446234562346623476234862349623506235162352623536235462355623566235762358623596236062361623626236362364623656236662367623686236962370623716237262373623746237562376623776237862379623806238162382623836238462385623866238762388623896239062391623926239362394623956239662397623986239962400624016240262403624046240562406624076240862409624106241162412624136241462415624166241762418624196242062421624226242362424624256242662427624286242962430624316243262433624346243562436624376243862439624406244162442624436244462445624466244762448624496245062451624526245362454624556245662457624586245962460624616246262463624646246562466624676246862469624706247162472624736247462475624766247762478624796248062481624826248362484624856248662487624886248962490624916249262493624946249562496624976249862499625006250162502625036250462505625066250762508625096251062511625126251362514625156251662517625186251962520625216252262523625246252562526625276252862529625306253162532625336253462535625366253762538625396254062541625426254362544625456254662547625486254962550625516255262553625546255562556625576255862559625606256162562625636256462565625666256762568625696257062571625726257362574625756257662577625786257962580625816258262583625846258562586625876258862589625906259162592625936259462595625966259762598625996260062601626026260362604626056260662607626086260962610626116261262613626146261562616626176261862619626206262162622626236262462625626266262762628626296263062631626326263362634626356263662637626386263962640626416264262643626446264562646626476264862649626506265162652626536265462655626566265762658626596266062661626626266362664626656266662667626686266962670626716267262673626746267562676626776267862679626806268162682626836268462685626866268762688626896269062691626926269362694626956269662697626986269962700627016270262703627046270562706627076270862709627106271162712627136271462715627166271762718627196272062721627226272362724627256272662727627286272962730627316273262733627346273562736627376273862739627406274162742627436274462745627466274762748627496275062751627526275362754627556275662757627586275962760627616276262763627646276562766627676276862769627706277162772627736277462775627766277762778627796278062781627826278362784627856278662787627886278962790627916279262793627946279562796627976279862799628006280162802628036280462805628066280762808628096281062811628126281362814628156281662817628186281962820628216282262823628246282562826628276282862829628306283162832628336283462835628366283762838628396284062841628426284362844628456284662847628486284962850628516285262853628546285562856628576285862859628606286162862628636286462865628666286762868628696287062871628726287362874628756287662877628786287962880628816288262883628846288562886628876288862889628906289162892628936289462895628966289762898628996290062901629026290362904629056290662907629086290962910629116291262913629146291562916629176291862919629206292162922629236292462925629266292762928629296293062931629326293362934629356293662937629386293962940629416294262943629446294562946629476294862949629506295162952629536295462955629566295762958629596296062961629626296362964629656296662967629686296962970629716297262973629746297562976629776297862979629806298162982629836298462985629866298762988629896299062991629926299362994629956299662997629986299963000630016300263003630046300563006630076300863009630106301163012630136301463015630166301763018630196302063021630226302363024630256302663027630286302963030630316303263033630346303563036630376303863039630406304163042630436304463045630466304763048630496305063051630526305363054630556305663057630586305963060630616306263063630646306563066630676306863069630706307163072630736307463075630766307763078630796308063081630826308363084630856308663087630886308963090630916309263093630946309563096630976309863099631006310163102631036310463105631066310763108631096311063111631126311363114631156311663117631186311963120631216312263123631246312563126631276312863129631306313163132631336313463135631366313763138631396314063141631426314363144631456314663147631486314963150631516315263153631546315563156631576315863159631606316163162631636316463165631666316763168631696317063171631726317363174631756317663177631786317963180631816318263183631846318563186631876318863189631906319163192631936319463195631966319763198631996320063201632026320363204632056320663207632086320963210632116321263213632146321563216632176321863219632206322163222632236322463225632266322763228632296323063231632326323363234632356323663237632386323963240632416324263243632446324563246632476324863249632506325163252632536325463255632566325763258632596326063261632626326363264632656326663267632686326963270632716327263273632746327563276632776327863279632806328163282632836328463285632866328763288632896329063291632926329363294632956329663297632986329963300633016330263303633046330563306633076330863309633106331163312633136331463315633166331763318633196332063321633226332363324633256332663327633286332963330633316333263333633346333563336633376333863339633406334163342633436334463345633466334763348633496335063351633526335363354633556335663357633586335963360633616336263363633646336563366633676336863369633706337163372633736337463375633766337763378633796338063381633826338363384633856338663387633886338963390633916339263393633946339563396633976339863399634006340163402634036340463405634066340763408634096341063411634126341363414634156341663417634186341963420634216342263423634246342563426634276342863429634306343163432634336343463435634366343763438634396344063441634426344363444634456344663447634486344963450634516345263453634546345563456634576345863459634606346163462634636346463465634666346763468634696347063471634726347363474634756347663477634786347963480634816348263483634846348563486634876348863489634906349163492634936349463495634966349763498634996350063501635026350363504635056350663507635086350963510635116351263513635146351563516635176351863519635206352163522635236352463525635266352763528635296353063531635326353363534635356353663537635386353963540635416354263543635446354563546635476354863549635506355163552635536355463555635566355763558635596356063561635626356363564635656356663567635686356963570635716357263573635746357563576635776357863579635806358163582635836358463585635866358763588635896359063591635926359363594635956359663597635986359963600636016360263603636046360563606636076360863609636106361163612636136361463615636166361763618636196362063621636226362363624636256362663627636286362963630636316363263633636346363563636636376363863639636406364163642636436364463645636466364763648636496365063651636526365363654636556365663657636586365963660636616366263663636646366563666636676366863669636706367163672636736367463675636766367763678636796368063681636826368363684636856368663687636886368963690636916369263693636946369563696636976369863699637006370163702637036370463705637066370763708637096371063711637126371363714637156371663717637186371963720637216372263723637246372563726637276372863729637306373163732637336373463735637366373763738637396374063741637426374363744637456374663747637486374963750637516375263753637546375563756637576375863759637606376163762637636376463765637666376763768637696377063771637726377363774637756377663777637786377963780637816378263783637846378563786637876378863789637906379163792637936379463795637966379763798637996380063801638026380363804638056380663807638086380963810638116381263813638146381563816638176381863819638206382163822638236382463825638266382763828638296383063831638326383363834638356383663837638386383963840638416384263843638446384563846638476384863849638506385163852638536385463855638566385763858638596386063861638626386363864638656386663867638686386963870638716387263873638746387563876638776387863879638806388163882638836388463885638866388763888638896389063891638926389363894638956389663897638986389963900639016390263903639046390563906639076390863909639106391163912639136391463915639166391763918639196392063921639226392363924639256392663927639286392963930639316393263933639346393563936639376393863939639406394163942639436394463945639466394763948639496395063951639526395363954639556395663957639586395963960639616396263963639646396563966639676396863969639706397163972639736397463975639766397763978639796398063981639826398363984639856398663987639886398963990639916399263993639946399563996639976399863999640006400164002640036400464005640066400764008640096401064011640126401364014640156401664017640186401964020640216402264023640246402564026640276402864029640306403164032640336403464035640366403764038640396404064041640426404364044640456404664047640486404964050640516405264053640546405564056640576405864059640606406164062640636406464065640666406764068640696407064071640726407364074640756407664077640786407964080640816408264083640846408564086640876408864089640906409164092640936409464095640966409764098640996410064101641026410364104641056410664107641086410964110641116411264113641146411564116641176411864119641206412164122641236412464125641266412764128641296413064131641326413364134641356413664137641386413964140641416414264143641446414564146641476414864149641506415164152641536415464155641566415764158641596416064161641626416364164641656416664167641686416964170641716417264173641746417564176641776417864179641806418164182641836418464185641866418764188641896419064191641926419364194641956419664197641986419964200642016420264203642046420564206642076420864209642106421164212642136421464215642166421764218642196422064221642226422364224642256422664227642286422964230642316423264233642346423564236642376423864239642406424164242642436424464245642466424764248642496425064251642526425364254642556425664257642586425964260642616426264263642646426564266642676426864269642706427164272642736427464275642766427764278642796428064281642826428364284642856428664287642886428964290642916429264293642946429564296642976429864299643006430164302643036430464305643066430764308643096431064311643126431364314643156431664317643186431964320643216432264323643246432564326643276432864329643306433164332643336433464335643366433764338643396434064341643426434364344643456434664347643486434964350643516435264353643546435564356643576435864359643606436164362643636436464365643666436764368643696437064371643726437364374643756437664377643786437964380643816438264383643846438564386643876438864389643906439164392643936439464395643966439764398643996440064401644026440364404644056440664407644086440964410644116441264413644146441564416644176441864419644206442164422644236442464425644266442764428644296443064431644326443364434644356443664437644386443964440644416444264443644446444564446644476444864449644506445164452644536445464455644566445764458644596446064461644626446364464644656446664467644686446964470644716447264473644746447564476644776447864479644806448164482644836448464485644866448764488644896449064491644926449364494644956449664497644986449964500645016450264503645046450564506645076450864509645106451164512645136451464515645166451764518645196452064521645226452364524645256452664527645286452964530645316453264533645346453564536645376453864539645406454164542645436454464545645466454764548645496455064551645526455364554645556455664557645586455964560645616456264563645646456564566645676456864569645706457164572645736457464575645766457764578645796458064581645826458364584645856458664587645886458964590645916459264593645946459564596645976459864599646006460164602646036460464605646066460764608646096461064611646126461364614646156461664617646186461964620646216462264623646246462564626646276462864629646306463164632646336463464635646366463764638646396464064641646426464364644646456464664647646486464964650646516465264653646546465564656646576465864659646606466164662646636466464665646666466764668646696467064671646726467364674646756467664677646786467964680646816468264683646846468564686646876468864689646906469164692646936469464695646966469764698646996470064701647026470364704647056470664707647086470964710647116471264713647146471564716647176471864719647206472164722647236472464725647266472764728647296473064731647326473364734647356473664737647386473964740647416474264743647446474564746647476474864749647506475164752647536475464755647566475764758647596476064761647626476364764647656476664767647686476964770647716477264773647746477564776647776477864779647806478164782647836478464785647866478764788647896479064791647926479364794647956479664797647986479964800648016480264803648046480564806648076480864809648106481164812648136481464815648166481764818648196482064821648226482364824648256482664827648286482964830648316483264833648346483564836648376483864839648406484164842648436484464845648466484764848648496485064851648526485364854648556485664857648586485964860648616486264863648646486564866648676486864869648706487164872648736487464875648766487764878648796488064881648826488364884648856488664887648886488964890648916489264893648946489564896648976489864899649006490164902649036490464905649066490764908649096491064911649126491364914649156491664917649186491964920649216492264923649246492564926649276492864929649306493164932649336493464935649366493764938649396494064941649426494364944649456494664947649486494964950649516495264953649546495564956649576495864959649606496164962649636496464965649666496764968649696497064971649726497364974649756497664977649786497964980649816498264983649846498564986649876498864989649906499164992649936499464995649966499764998649996500065001650026500365004650056500665007650086500965010650116501265013650146501565016650176501865019650206502165022650236502465025650266502765028650296503065031650326503365034650356503665037650386503965040650416504265043650446504565046650476504865049650506505165052650536505465055650566505765058650596506065061650626506365064650656506665067650686506965070650716507265073650746507565076650776507865079650806508165082650836508465085650866508765088650896509065091650926509365094650956509665097650986509965100651016510265103651046510565106651076510865109651106511165112651136511465115651166511765118651196512065121651226512365124651256512665127651286512965130651316513265133651346513565136651376513865139651406514165142651436514465145651466514765148651496515065151651526515365154651556515665157651586515965160651616516265163651646516565166651676516865169651706517165172651736517465175651766517765178651796518065181651826518365184651856518665187651886518965190651916519265193651946519565196651976519865199652006520165202652036520465205652066520765208652096521065211652126521365214652156521665217652186521965220652216522265223652246522565226652276522865229652306523165232652336523465235652366523765238652396524065241652426524365244652456524665247652486524965250652516525265253652546525565256652576525865259652606526165262652636526465265652666526765268652696527065271652726527365274652756527665277652786527965280652816528265283652846528565286652876528865289652906529165292652936529465295652966529765298652996530065301653026530365304653056530665307653086530965310653116531265313653146531565316653176531865319653206532165322653236532465325653266532765328653296533065331653326533365334653356533665337653386533965340653416534265343653446534565346653476534865349653506535165352653536535465355653566535765358653596536065361653626536365364653656536665367653686536965370653716537265373653746537565376653776537865379653806538165382653836538465385653866538765388653896539065391653926539365394653956539665397653986539965400654016540265403654046540565406654076540865409654106541165412654136541465415654166541765418654196542065421654226542365424654256542665427654286542965430654316543265433654346543565436654376543865439654406544165442654436544465445654466544765448654496545065451654526545365454654556545665457654586545965460654616546265463654646546565466654676546865469654706547165472654736547465475654766547765478654796548065481654826548365484654856548665487654886548965490654916549265493654946549565496654976549865499655006550165502655036550465505655066550765508655096551065511655126551365514655156551665517655186551965520655216552265523655246552565526655276552865529655306553165532655336553465535655366553765538655396554065541655426554365544655456554665547655486554965550655516555265553655546555565556655576555865559655606556165562655636556465565655666556765568655696557065571655726557365574655756557665577655786557965580655816558265583655846558565586655876558865589655906559165592655936559465595655966559765598655996560065601656026560365604656056560665607656086560965610656116561265613656146561565616656176561865619656206562165622656236562465625656266562765628656296563065631656326563365634656356563665637656386563965640656416564265643656446564565646656476564865649656506565165652656536565465655656566565765658656596566065661656626566365664656656566665667656686566965670656716567265673656746567565676656776567865679656806568165682656836568465685656866568765688656896569065691656926569365694656956569665697656986569965700657016570265703657046570565706657076570865709657106571165712657136571465715657166571765718657196572065721657226572365724657256572665727657286572965730657316573265733657346573565736657376573865739657406574165742657436574465745657466574765748657496575065751657526575365754657556575665757657586575965760657616576265763657646576565766657676576865769657706577165772657736577465775657766577765778657796578065781657826578365784657856578665787657886578965790657916579265793657946579565796657976579865799658006580165802658036580465805658066580765808658096581065811658126581365814658156581665817658186581965820658216582265823658246582565826658276582865829658306583165832658336583465835658366583765838658396584065841658426584365844658456584665847658486584965850658516585265853658546585565856658576585865859658606586165862658636586465865658666586765868658696587065871658726587365874658756587665877658786587965880658816588265883658846588565886658876588865889658906589165892658936589465895658966589765898658996590065901659026590365904659056590665907659086590965910659116591265913659146591565916659176591865919659206592165922659236592465925659266592765928659296593065931659326593365934659356593665937659386593965940659416594265943659446594565946659476594865949659506595165952659536595465955659566595765958659596596065961659626596365964659656596665967659686596965970659716597265973659746597565976659776597865979659806598165982659836598465985659866598765988659896599065991659926599365994659956599665997659986599966000660016600266003660046600566006660076600866009660106601166012660136601466015660166601766018660196602066021660226602366024660256602666027660286602966030660316603266033660346603566036660376603866039660406604166042660436604466045660466604766048660496605066051660526605366054660556605666057660586605966060660616606266063660646606566066660676606866069660706607166072660736607466075660766607766078660796608066081660826608366084660856608666087660886608966090660916609266093660946609566096660976609866099661006610166102661036610466105661066610766108661096611066111661126611366114661156611666117661186611966120661216612266123661246612566126661276612866129661306613166132661336613466135661366613766138661396614066141661426614366144661456614666147661486614966150661516615266153661546615566156661576615866159661606616166162661636616466165661666616766168661696617066171661726617366174661756617666177661786617966180661816618266183661846618566186661876618866189661906619166192661936619466195661966619766198661996620066201662026620366204662056620666207662086620966210662116621266213662146621566216662176621866219662206622166222662236622466225662266622766228662296623066231662326623366234662356623666237662386623966240662416624266243662446624566246662476624866249662506625166252662536625466255662566625766258662596626066261662626626366264662656626666267662686626966270662716627266273662746627566276662776627866279662806628166282662836628466285662866628766288662896629066291662926629366294662956629666297662986629966300663016630266303663046630566306663076630866309663106631166312663136631466315663166631766318663196632066321663226632366324663256632666327663286632966330663316633266333663346633566336663376633866339663406634166342663436634466345663466634766348663496635066351663526635366354663556635666357663586635966360663616636266363663646636566366663676636866369663706637166372663736637466375663766637766378663796638066381663826638366384663856638666387663886638966390663916639266393663946639566396663976639866399664006640166402664036640466405664066640766408664096641066411664126641366414664156641666417664186641966420664216642266423664246642566426664276642866429664306643166432664336643466435664366643766438664396644066441664426644366444664456644666447664486644966450664516645266453664546645566456664576645866459664606646166462664636646466465664666646766468664696647066471664726647366474664756647666477664786647966480664816648266483664846648566486664876648866489664906649166492664936649466495664966649766498664996650066501665026650366504665056650666507665086650966510665116651266513665146651566516665176651866519665206652166522665236652466525665266652766528665296653066531665326653366534665356653666537665386653966540665416654266543665446654566546665476654866549665506655166552665536655466555665566655766558665596656066561665626656366564665656656666567665686656966570665716657266573665746657566576665776657866579665806658166582665836658466585665866658766588665896659066591665926659366594665956659666597665986659966600666016660266603666046660566606666076660866609666106661166612666136661466615666166661766618666196662066621666226662366624666256662666627666286662966630666316663266633666346663566636666376663866639666406664166642666436664466645666466664766648666496665066651666526665366654666556665666657666586665966660666616666266663666646666566666666676666866669666706667166672666736667466675666766667766678666796668066681666826668366684666856668666687666886668966690666916669266693666946669566696666976669866699667006670166702667036670466705667066670766708667096671066711667126671366714667156671666717667186671966720667216672266723667246672566726667276672866729667306673166732667336673466735667366673766738667396674066741667426674366744667456674666747667486674966750667516675266753667546675566756667576675866759667606676166762667636676466765667666676766768667696677066771667726677366774667756677666777667786677966780667816678266783667846678566786667876678866789667906679166792667936679466795667966679766798667996680066801668026680366804668056680666807668086680966810668116681266813668146681566816668176681866819668206682166822668236682466825668266682766828668296683066831668326683366834668356683666837668386683966840668416684266843668446684566846668476684866849668506685166852668536685466855668566685766858668596686066861668626686366864668656686666867668686686966870668716687266873668746687566876668776687866879668806688166882668836688466885668866688766888668896689066891668926689366894668956689666897668986689966900669016690266903669046690566906669076690866909669106691166912669136691466915669166691766918669196692066921669226692366924669256692666927669286692966930669316693266933669346693566936669376693866939669406694166942669436694466945669466694766948669496695066951669526695366954669556695666957669586695966960669616696266963669646696566966669676696866969669706697166972669736697466975669766697766978669796698066981669826698366984669856698666987669886698966990669916699266993669946699566996669976699866999670006700167002670036700467005670066700767008670096701067011670126701367014670156701667017670186701967020670216702267023670246702567026670276702867029670306703167032670336703467035670366703767038670396704067041670426704367044670456704667047670486704967050670516705267053670546705567056670576705867059670606706167062670636706467065670666706767068670696707067071670726707367074670756707667077670786707967080670816708267083670846708567086670876708867089670906709167092670936709467095670966709767098670996710067101671026710367104671056710667107671086710967110671116711267113671146711567116671176711867119671206712167122671236712467125671266712767128671296713067131671326713367134671356713667137671386713967140671416714267143671446714567146671476714867149671506715167152671536715467155671566715767158671596716067161671626716367164671656716667167671686716967170671716717267173671746717567176671776717867179671806718167182671836718467185671866718767188671896719067191671926719367194671956719667197671986719967200672016720267203672046720567206672076720867209672106721167212672136721467215672166721767218672196722067221672226722367224672256722667227672286722967230672316723267233672346723567236672376723867239672406724167242672436724467245672466724767248672496725067251672526725367254672556725667257672586725967260672616726267263672646726567266672676726867269672706727167272672736727467275672766727767278672796728067281672826728367284672856728667287672886728967290672916729267293672946729567296672976729867299673006730167302673036730467305673066730767308673096731067311673126731367314673156731667317673186731967320673216732267323673246732567326673276732867329673306733167332673336733467335673366733767338673396734067341673426734367344673456734667347673486734967350673516735267353673546735567356673576735867359673606736167362673636736467365673666736767368673696737067371673726737367374673756737667377673786737967380673816738267383673846738567386673876738867389673906739167392673936739467395673966739767398673996740067401674026740367404674056740667407674086740967410674116741267413674146741567416674176741867419674206742167422674236742467425674266742767428674296743067431674326743367434674356743667437674386743967440674416744267443674446744567446674476744867449674506745167452674536745467455674566745767458674596746067461674626746367464674656746667467674686746967470674716747267473674746747567476674776747867479674806748167482674836748467485674866748767488674896749067491674926749367494674956749667497674986749967500675016750267503675046750567506675076750867509675106751167512675136751467515675166751767518675196752067521675226752367524675256752667527675286752967530675316753267533675346753567536675376753867539675406754167542675436754467545675466754767548675496755067551675526755367554675556755667557675586755967560675616756267563675646756567566675676756867569675706757167572675736757467575675766757767578675796758067581675826758367584675856758667587675886758967590675916759267593675946759567596675976759867599676006760167602676036760467605676066760767608676096761067611676126761367614676156761667617676186761967620676216762267623676246762567626676276762867629676306763167632676336763467635676366763767638676396764067641676426764367644676456764667647676486764967650676516765267653676546765567656676576765867659676606766167662676636766467665676666766767668676696767067671676726767367674676756767667677676786767967680676816768267683676846768567686676876768867689676906769167692676936769467695676966769767698676996770067701677026770367704677056770667707677086770967710677116771267713677146771567716677176771867719677206772167722677236772467725677266772767728677296773067731677326773367734677356773667737677386773967740677416774267743677446774567746677476774867749677506775167752677536775467755677566775767758677596776067761677626776367764677656776667767677686776967770677716777267773677746777567776677776777867779677806778167782677836778467785677866778767788677896779067791677926779367794677956779667797677986779967800678016780267803678046780567806678076780867809678106781167812678136781467815678166781767818678196782067821678226782367824678256782667827678286782967830678316783267833678346783567836678376783867839678406784167842678436784467845678466784767848678496785067851678526785367854678556785667857678586785967860678616786267863678646786567866678676786867869678706787167872678736787467875678766787767878678796788067881678826788367884678856788667887678886788967890678916789267893678946789567896678976789867899679006790167902679036790467905679066790767908679096791067911679126791367914679156791667917679186791967920679216792267923679246792567926679276792867929679306793167932679336793467935679366793767938679396794067941679426794367944679456794667947679486794967950679516795267953679546795567956679576795867959679606796167962679636796467965679666796767968679696797067971679726797367974679756797667977679786797967980679816798267983679846798567986679876798867989679906799167992679936799467995679966799767998679996800068001680026800368004680056800668007680086800968010680116801268013680146801568016680176801868019680206802168022680236802468025680266802768028680296803068031680326803368034680356803668037680386803968040680416804268043680446804568046680476804868049680506805168052680536805468055680566805768058680596806068061680626806368064680656806668067680686806968070680716807268073680746807568076680776807868079680806808168082680836808468085680866808768088680896809068091680926809368094680956809668097680986809968100681016810268103681046810568106681076810868109681106811168112681136811468115681166811768118681196812068121681226812368124681256812668127681286812968130681316813268133681346813568136681376813868139681406814168142681436814468145681466814768148681496815068151681526815368154681556815668157681586815968160681616816268163681646816568166681676816868169681706817168172681736817468175681766817768178681796818068181681826818368184681856818668187681886818968190681916819268193681946819568196681976819868199682006820168202682036820468205682066820768208682096821068211682126821368214682156821668217682186821968220682216822268223682246822568226682276822868229682306823168232682336823468235682366823768238682396824068241682426824368244682456824668247682486824968250682516825268253682546825568256682576825868259682606826168262682636826468265682666826768268682696827068271682726827368274682756827668277682786827968280682816828268283682846828568286682876828868289682906829168292682936829468295682966829768298682996830068301683026830368304683056830668307683086830968310683116831268313683146831568316683176831868319683206832168322683236832468325683266832768328683296833068331683326833368334683356833668337683386833968340683416834268343683446834568346683476834868349683506835168352683536835468355683566835768358683596836068361683626836368364683656836668367683686836968370683716837268373683746837568376683776837868379683806838168382683836838468385683866838768388683896839068391683926839368394683956839668397683986839968400684016840268403684046840568406684076840868409684106841168412684136841468415684166841768418684196842068421684226842368424684256842668427684286842968430684316843268433684346843568436684376843868439684406844168442684436844468445684466844768448684496845068451684526845368454684556845668457684586845968460684616846268463684646846568466684676846868469684706847168472684736847468475684766847768478684796848068481684826848368484684856848668487684886848968490684916849268493684946849568496684976849868499685006850168502685036850468505685066850768508685096851068511685126851368514685156851668517685186851968520685216852268523685246852568526685276852868529685306853168532685336853468535685366853768538685396854068541685426854368544685456854668547685486854968550685516855268553685546855568556685576855868559685606856168562685636856468565685666856768568685696857068571685726857368574685756857668577685786857968580685816858268583685846858568586685876858868589685906859168592685936859468595685966859768598685996860068601686026860368604686056860668607686086860968610686116861268613686146861568616686176861868619686206862168622686236862468625686266862768628686296863068631686326863368634686356863668637686386863968640686416864268643686446864568646686476864868649686506865168652686536865468655686566865768658686596866068661686626866368664686656866668667686686866968670686716867268673686746867568676686776867868679686806868168682686836868468685686866868768688686896869068691686926869368694686956869668697686986869968700687016870268703687046870568706687076870868709687106871168712687136871468715687166871768718687196872068721687226872368724687256872668727687286872968730687316873268733687346873568736687376873868739687406874168742687436874468745687466874768748687496875068751687526875368754687556875668757687586875968760687616876268763687646876568766687676876868769687706877168772687736877468775687766877768778687796878068781687826878368784687856878668787687886878968790687916879268793687946879568796687976879868799688006880168802688036880468805688066880768808688096881068811688126881368814688156881668817688186881968820688216882268823688246882568826688276882868829688306883168832688336883468835688366883768838688396884068841688426884368844688456884668847688486884968850688516885268853688546885568856688576885868859688606886168862688636886468865688666886768868688696887068871688726887368874688756887668877688786887968880688816888268883688846888568886688876888868889688906889168892688936889468895688966889768898688996890068901689026890368904689056890668907689086890968910689116891268913689146891568916689176891868919689206892168922689236892468925689266892768928689296893068931689326893368934689356893668937689386893968940689416894268943689446894568946689476894868949689506895168952689536895468955689566895768958689596896068961689626896368964689656896668967689686896968970689716897268973689746897568976689776897868979689806898168982689836898468985689866898768988689896899068991689926899368994689956899668997689986899969000690016900269003690046900569006690076900869009690106901169012690136901469015690166901769018690196902069021690226902369024690256902669027690286902969030690316903269033690346903569036690376903869039690406904169042690436904469045690466904769048690496905069051690526905369054690556905669057690586905969060690616906269063690646906569066690676906869069690706907169072690736907469075690766907769078690796908069081690826908369084690856908669087690886908969090690916909269093690946909569096690976909869099691006910169102691036910469105691066910769108691096911069111691126911369114691156911669117691186911969120691216912269123691246912569126691276912869129691306913169132691336913469135691366913769138691396914069141691426914369144691456914669147691486914969150691516915269153691546915569156691576915869159691606916169162691636916469165691666916769168691696917069171691726917369174691756917669177691786917969180691816918269183691846918569186691876918869189691906919169192691936919469195691966919769198691996920069201692026920369204692056920669207692086920969210692116921269213692146921569216692176921869219692206922169222692236922469225692266922769228692296923069231692326923369234692356923669237692386923969240692416924269243692446924569246692476924869249692506925169252692536925469255692566925769258692596926069261692626926369264692656926669267692686926969270692716927269273692746927569276692776927869279692806928169282692836928469285692866928769288692896929069291692926929369294692956929669297692986929969300693016930269303693046930569306693076930869309693106931169312693136931469315693166931769318693196932069321693226932369324693256932669327693286932969330693316933269333693346933569336693376933869339693406934169342693436934469345693466934769348693496935069351693526935369354693556935669357693586935969360693616936269363693646936569366693676936869369693706937169372693736937469375693766937769378693796938069381693826938369384693856938669387693886938969390693916939269393693946939569396693976939869399694006940169402694036940469405694066940769408694096941069411694126941369414694156941669417694186941969420694216942269423694246942569426694276942869429694306943169432694336943469435694366943769438694396944069441694426944369444694456944669447694486944969450694516945269453694546945569456694576945869459694606946169462694636946469465694666946769468694696947069471694726947369474694756947669477694786947969480694816948269483694846948569486694876948869489694906949169492694936949469495694966949769498694996950069501695026950369504695056950669507695086950969510695116951269513695146951569516695176951869519695206952169522695236952469525695266952769528695296953069531695326953369534695356953669537695386953969540695416954269543695446954569546695476954869549695506955169552695536955469555695566955769558695596956069561695626956369564695656956669567695686956969570695716957269573695746957569576695776957869579695806958169582695836958469585695866958769588695896959069591695926959369594695956959669597695986959969600696016960269603696046960569606696076960869609696106961169612696136961469615696166961769618696196962069621696226962369624696256962669627696286962969630696316963269633696346963569636696376963869639696406964169642696436964469645696466964769648696496965069651696526965369654696556965669657696586965969660696616966269663696646966569666696676966869669696706967169672696736967469675696766967769678696796968069681696826968369684696856968669687696886968969690696916969269693696946969569696696976969869699697006970169702697036970469705697066970769708697096971069711697126971369714697156971669717697186971969720697216972269723697246972569726697276972869729697306973169732697336973469735697366973769738697396974069741697426974369744697456974669747697486974969750697516975269753697546975569756697576975869759697606976169762697636976469765697666976769768697696977069771697726977369774697756977669777697786977969780697816978269783697846978569786697876978869789697906979169792697936979469795697966979769798697996980069801698026980369804698056980669807698086980969810698116981269813698146981569816698176981869819698206982169822698236982469825698266982769828698296983069831698326983369834698356983669837698386983969840698416984269843698446984569846698476984869849698506985169852698536985469855698566985769858698596986069861698626986369864698656986669867698686986969870698716987269873698746987569876698776987869879698806988169882698836988469885698866988769888698896989069891698926989369894698956989669897698986989969900699016990269903699046990569906699076990869909699106991169912699136991469915699166991769918699196992069921699226992369924699256992669927699286992969930699316993269933699346993569936699376993869939699406994169942699436994469945699466994769948699496995069951699526995369954699556995669957699586995969960699616996269963699646996569966699676996869969699706997169972699736997469975699766997769978699796998069981699826998369984699856998669987699886998969990699916999269993699946999569996699976999869999700007000170002700037000470005700067000770008700097001070011700127001370014700157001670017700187001970020700217002270023700247002570026700277002870029700307003170032700337003470035700367003770038700397004070041700427004370044700457004670047700487004970050700517005270053700547005570056700577005870059700607006170062700637006470065700667006770068700697007070071700727007370074700757007670077700787007970080700817008270083700847008570086700877008870089700907009170092700937009470095700967009770098700997010070101701027010370104701057010670107701087010970110701117011270113701147011570116701177011870119701207012170122701237012470125701267012770128701297013070131701327013370134701357013670137701387013970140701417014270143701447014570146701477014870149701507015170152701537015470155701567015770158701597016070161701627016370164701657016670167701687016970170701717017270173701747017570176701777017870179701807018170182701837018470185701867018770188701897019070191701927019370194701957019670197701987019970200702017020270203702047020570206702077020870209702107021170212702137021470215702167021770218702197022070221702227022370224702257022670227702287022970230702317023270233702347023570236702377023870239702407024170242702437024470245702467024770248702497025070251702527025370254702557025670257702587025970260702617026270263702647026570266702677026870269702707027170272702737027470275702767027770278702797028070281702827028370284702857028670287702887028970290702917029270293702947029570296702977029870299703007030170302703037030470305703067030770308703097031070311703127031370314703157031670317703187031970320703217032270323703247032570326703277032870329703307033170332703337033470335703367033770338703397034070341703427034370344703457034670347703487034970350703517035270353703547035570356703577035870359703607036170362703637036470365703667036770368703697037070371703727037370374703757037670377703787037970380703817038270383703847038570386703877038870389703907039170392703937039470395703967039770398703997040070401704027040370404704057040670407704087040970410704117041270413704147041570416704177041870419704207042170422704237042470425704267042770428704297043070431704327043370434704357043670437704387043970440704417044270443704447044570446704477044870449704507045170452704537045470455704567045770458704597046070461704627046370464704657046670467704687046970470704717047270473704747047570476704777047870479704807048170482704837048470485704867048770488704897049070491704927049370494704957049670497704987049970500705017050270503705047050570506705077050870509705107051170512705137051470515705167051770518705197052070521705227052370524705257052670527705287052970530705317053270533705347053570536705377053870539705407054170542705437054470545705467054770548705497055070551705527055370554705557055670557705587055970560705617056270563705647056570566705677056870569705707057170572705737057470575705767057770578705797058070581705827058370584705857058670587705887058970590705917059270593705947059570596705977059870599706007060170602706037060470605706067060770608706097061070611706127061370614706157061670617706187061970620706217062270623706247062570626706277062870629706307063170632706337063470635706367063770638706397064070641706427064370644706457064670647706487064970650706517065270653706547065570656706577065870659706607066170662706637066470665706667066770668706697067070671706727067370674706757067670677706787067970680706817068270683706847068570686706877068870689706907069170692706937069470695706967069770698706997070070701707027070370704707057070670707707087070970710707117071270713707147071570716707177071870719707207072170722707237072470725707267072770728707297073070731707327073370734707357073670737707387073970740707417074270743707447074570746707477074870749707507075170752707537075470755707567075770758707597076070761707627076370764707657076670767707687076970770707717077270773707747077570776707777077870779707807078170782707837078470785707867078770788707897079070791707927079370794707957079670797707987079970800708017080270803708047080570806708077080870809708107081170812708137081470815708167081770818708197082070821708227082370824708257082670827708287082970830708317083270833708347083570836708377083870839708407084170842708437084470845708467084770848708497085070851708527085370854708557085670857708587085970860708617086270863708647086570866708677086870869708707087170872708737087470875708767087770878708797088070881708827088370884708857088670887708887088970890708917089270893708947089570896708977089870899709007090170902709037090470905709067090770908709097091070911709127091370914709157091670917709187091970920709217092270923709247092570926709277092870929709307093170932709337093470935709367093770938709397094070941709427094370944709457094670947709487094970950709517095270953709547095570956709577095870959709607096170962709637096470965709667096770968709697097070971709727097370974709757097670977709787097970980709817098270983709847098570986709877098870989709907099170992709937099470995709967099770998709997100071001710027100371004710057100671007710087100971010710117101271013710147101571016710177101871019710207102171022710237102471025710267102771028710297103071031710327103371034710357103671037710387103971040710417104271043710447104571046710477104871049710507105171052710537105471055710567105771058710597106071061710627106371064710657106671067710687106971070710717107271073710747107571076710777107871079710807108171082710837108471085710867108771088710897109071091710927109371094710957109671097710987109971100711017110271103711047110571106711077110871109711107111171112711137111471115711167111771118711197112071121711227112371124711257112671127711287112971130711317113271133711347113571136711377113871139711407114171142711437114471145711467114771148711497115071151711527115371154711557115671157711587115971160711617116271163711647116571166711677116871169711707117171172711737117471175711767117771178711797118071181711827118371184711857118671187711887118971190711917119271193711947119571196711977119871199712007120171202712037120471205712067120771208712097121071211712127121371214712157121671217712187121971220712217122271223712247122571226712277122871229712307123171232712337123471235712367123771238712397124071241712427124371244712457124671247712487124971250712517125271253712547125571256712577125871259712607126171262712637126471265712667126771268712697127071271712727127371274712757127671277712787127971280712817128271283712847128571286712877128871289712907129171292712937129471295712967129771298712997130071301713027130371304713057130671307713087130971310713117131271313713147131571316713177131871319713207132171322713237132471325713267132771328713297133071331713327133371334713357133671337713387133971340713417134271343713447134571346713477134871349713507135171352713537135471355713567135771358713597136071361713627136371364713657136671367713687136971370713717137271373713747137571376713777137871379713807138171382713837138471385713867138771388713897139071391713927139371394713957139671397713987139971400714017140271403714047140571406714077140871409714107141171412714137141471415714167141771418714197142071421714227142371424714257142671427714287142971430714317143271433714347143571436714377143871439714407144171442714437144471445714467144771448714497145071451714527145371454714557145671457714587145971460714617146271463714647146571466714677146871469714707147171472714737147471475714767147771478714797148071481714827148371484714857148671487714887148971490714917149271493714947149571496714977149871499715007150171502715037150471505715067150771508715097151071511715127151371514715157151671517715187151971520715217152271523715247152571526715277152871529715307153171532715337153471535715367153771538715397154071541715427154371544715457154671547715487154971550715517155271553715547155571556715577155871559715607156171562715637156471565715667156771568715697157071571715727157371574715757157671577715787157971580715817158271583715847158571586715877158871589715907159171592715937159471595715967159771598715997160071601716027160371604716057160671607716087160971610716117161271613716147161571616716177161871619716207162171622716237162471625716267162771628716297163071631716327163371634716357163671637716387163971640716417164271643716447164571646716477164871649716507165171652716537165471655716567165771658716597166071661716627166371664716657166671667716687166971670716717167271673716747167571676716777167871679716807168171682716837168471685716867168771688716897169071691716927169371694716957169671697716987169971700717017170271703717047170571706717077170871709717107171171712717137171471715717167171771718717197172071721717227172371724717257172671727717287172971730717317173271733717347173571736717377173871739717407174171742717437174471745717467174771748717497175071751717527175371754717557175671757717587175971760717617176271763717647176571766717677176871769717707177171772717737177471775717767177771778717797178071781717827178371784717857178671787717887178971790717917179271793717947179571796717977179871799718007180171802718037180471805718067180771808718097181071811718127181371814718157181671817718187181971820718217182271823718247182571826718277182871829718307183171832718337183471835718367183771838718397184071841718427184371844718457184671847718487184971850718517185271853718547185571856718577185871859718607186171862718637186471865718667186771868718697187071871718727187371874718757187671877718787187971880718817188271883718847188571886718877188871889718907189171892718937189471895718967189771898718997190071901719027190371904719057190671907719087190971910719117191271913719147191571916719177191871919719207192171922719237192471925719267192771928719297193071931719327193371934719357193671937719387193971940719417194271943719447194571946719477194871949719507195171952719537195471955719567195771958719597196071961719627196371964719657196671967719687196971970719717197271973719747197571976719777197871979719807198171982719837198471985719867198771988719897199071991719927199371994719957199671997719987199972000720017200272003720047200572006720077200872009720107201172012720137201472015720167201772018720197202072021720227202372024720257202672027720287202972030720317203272033720347203572036720377203872039720407204172042720437204472045720467204772048720497205072051720527205372054720557205672057720587205972060720617206272063720647206572066720677206872069720707207172072720737207472075720767207772078720797208072081720827208372084720857208672087720887208972090720917209272093720947209572096720977209872099721007210172102721037210472105721067210772108721097211072111721127211372114721157211672117721187211972120721217212272123721247212572126721277212872129721307213172132721337213472135721367213772138721397214072141721427214372144721457214672147721487214972150721517215272153721547215572156721577215872159721607216172162721637216472165721667216772168721697217072171721727217372174721757217672177721787217972180721817218272183721847218572186721877218872189721907219172192721937219472195721967219772198721997220072201722027220372204722057220672207722087220972210722117221272213722147221572216722177221872219722207222172222722237222472225722267222772228722297223072231722327223372234722357223672237722387223972240722417224272243722447224572246722477224872249722507225172252722537225472255722567225772258722597226072261722627226372264722657226672267722687226972270722717227272273722747227572276722777227872279722807228172282722837228472285722867228772288722897229072291722927229372294722957229672297722987229972300723017230272303723047230572306723077230872309723107231172312723137231472315723167231772318723197232072321723227232372324723257232672327723287232972330723317233272333723347233572336723377233872339723407234172342723437234472345723467234772348723497235072351723527235372354723557235672357723587235972360723617236272363723647236572366723677236872369723707237172372723737237472375723767237772378723797238072381723827238372384723857238672387723887238972390723917239272393723947239572396723977239872399724007240172402724037240472405724067240772408724097241072411724127241372414724157241672417724187241972420724217242272423724247242572426724277242872429724307243172432724337243472435724367243772438724397244072441724427244372444724457244672447724487244972450724517245272453724547245572456724577245872459724607246172462724637246472465724667246772468724697247072471724727247372474724757247672477724787247972480724817248272483724847248572486724877248872489724907249172492724937249472495724967249772498724997250072501725027250372504725057250672507725087250972510725117251272513725147251572516725177251872519725207252172522725237252472525725267252772528725297253072531725327253372534725357253672537725387253972540725417254272543725447254572546725477254872549725507255172552725537255472555725567255772558725597256072561725627256372564725657256672567725687256972570725717257272573725747257572576725777257872579725807258172582725837258472585725867258772588725897259072591725927259372594725957259672597725987259972600726017260272603726047260572606726077260872609726107261172612726137261472615726167261772618726197262072621726227262372624726257262672627726287262972630726317263272633726347263572636726377263872639726407264172642726437264472645726467264772648726497265072651726527265372654726557265672657726587265972660726617266272663726647266572666726677266872669726707267172672726737267472675726767267772678726797268072681726827268372684726857268672687726887268972690726917269272693726947269572696726977269872699727007270172702727037270472705727067270772708727097271072711727127271372714727157271672717727187271972720727217272272723727247272572726727277272872729727307273172732727337273472735727367273772738727397274072741727427274372744727457274672747727487274972750727517275272753727547275572756727577275872759727607276172762727637276472765727667276772768727697277072771727727277372774727757277672777727787277972780727817278272783727847278572786727877278872789727907279172792727937279472795727967279772798727997280072801728027280372804728057280672807728087280972810728117281272813728147281572816728177281872819728207282172822728237282472825728267282772828728297283072831728327283372834728357283672837728387283972840728417284272843728447284572846728477284872849728507285172852728537285472855728567285772858728597286072861728627286372864728657286672867728687286972870728717287272873728747287572876728777287872879728807288172882728837288472885728867288772888728897289072891728927289372894728957289672897728987289972900729017290272903729047290572906729077290872909729107291172912729137291472915729167291772918729197292072921729227292372924729257292672927729287292972930729317293272933729347293572936729377293872939729407294172942729437294472945729467294772948729497295072951729527295372954729557295672957729587295972960729617296272963729647296572966729677296872969729707297172972729737297472975729767297772978729797298072981729827298372984729857298672987729887298972990729917299272993729947299572996729977299872999730007300173002730037300473005730067300773008730097301073011730127301373014730157301673017730187301973020730217302273023730247302573026730277302873029730307303173032730337303473035730367303773038730397304073041730427304373044730457304673047730487304973050730517305273053730547305573056730577305873059730607306173062730637306473065730667306773068730697307073071730727307373074730757307673077730787307973080730817308273083730847308573086730877308873089730907309173092730937309473095730967309773098730997310073101731027310373104731057310673107731087310973110731117311273113731147311573116731177311873119731207312173122731237312473125731267312773128731297313073131731327313373134731357313673137731387313973140731417314273143731447314573146731477314873149731507315173152731537315473155731567315773158731597316073161731627316373164731657316673167731687316973170731717317273173731747317573176731777317873179731807318173182731837318473185731867318773188731897319073191731927319373194731957319673197731987319973200732017320273203732047320573206732077320873209732107321173212732137321473215732167321773218732197322073221732227322373224732257322673227732287322973230732317323273233732347323573236732377323873239732407324173242732437324473245732467324773248732497325073251732527325373254732557325673257732587325973260732617326273263732647326573266732677326873269732707327173272732737327473275732767327773278732797328073281732827328373284732857328673287732887328973290732917329273293732947329573296732977329873299733007330173302733037330473305733067330773308733097331073311733127331373314733157331673317733187331973320733217332273323733247332573326733277332873329733307333173332733337333473335733367333773338733397334073341733427334373344733457334673347733487334973350733517335273353733547335573356733577335873359733607336173362733637336473365733667336773368733697337073371733727337373374733757337673377733787337973380733817338273383733847338573386733877338873389733907339173392733937339473395733967339773398733997340073401734027340373404734057340673407734087340973410734117341273413734147341573416734177341873419734207342173422734237342473425734267342773428734297343073431734327343373434734357343673437734387343973440734417344273443734447344573446734477344873449734507345173452734537345473455734567345773458734597346073461734627346373464734657346673467734687346973470734717347273473734747347573476734777347873479734807348173482734837348473485734867348773488734897349073491734927349373494734957349673497734987349973500735017350273503735047350573506735077350873509735107351173512735137351473515735167351773518735197352073521735227352373524735257352673527735287352973530735317353273533735347353573536735377353873539735407354173542735437354473545735467354773548735497355073551735527355373554735557355673557735587355973560735617356273563735647356573566735677356873569735707357173572735737357473575735767357773578735797358073581735827358373584735857358673587735887358973590735917359273593735947359573596735977359873599736007360173602736037360473605736067360773608736097361073611736127361373614736157361673617736187361973620736217362273623736247362573626736277362873629736307363173632736337363473635736367363773638736397364073641736427364373644736457364673647736487364973650736517365273653736547365573656736577365873659736607366173662736637366473665736667366773668736697367073671736727367373674736757367673677736787367973680736817368273683736847368573686736877368873689736907369173692736937369473695736967369773698736997370073701737027370373704737057370673707737087370973710737117371273713737147371573716737177371873719737207372173722737237372473725737267372773728737297373073731737327373373734737357373673737737387373973740737417374273743737447374573746737477374873749737507375173752737537375473755737567375773758737597376073761737627376373764737657376673767737687376973770737717377273773737747377573776737777377873779737807378173782737837378473785737867378773788737897379073791737927379373794737957379673797737987379973800738017380273803738047380573806738077380873809738107381173812738137381473815738167381773818738197382073821738227382373824738257382673827738287382973830738317383273833738347383573836738377383873839738407384173842738437384473845738467384773848738497385073851738527385373854738557385673857738587385973860738617386273863738647386573866738677386873869738707387173872738737387473875738767387773878738797388073881738827388373884738857388673887738887388973890738917389273893738947389573896738977389873899739007390173902739037390473905739067390773908739097391073911739127391373914739157391673917739187391973920739217392273923739247392573926739277392873929739307393173932739337393473935739367393773938739397394073941739427394373944739457394673947739487394973950739517395273953739547395573956739577395873959739607396173962739637396473965739667396773968739697397073971739727397373974739757397673977739787397973980739817398273983739847398573986739877398873989739907399173992739937399473995739967399773998739997400074001740027400374004740057400674007740087400974010740117401274013740147401574016740177401874019740207402174022740237402474025740267402774028740297403074031740327403374034740357403674037740387403974040740417404274043740447404574046740477404874049740507405174052740537405474055740567405774058740597406074061740627406374064740657406674067740687406974070740717407274073740747407574076740777407874079740807408174082740837408474085740867408774088740897409074091740927409374094740957409674097740987409974100741017410274103741047410574106741077410874109741107411174112741137411474115741167411774118741197412074121741227412374124741257412674127741287412974130741317413274133741347413574136741377413874139741407414174142741437414474145741467414774148741497415074151741527415374154741557415674157741587415974160741617416274163741647416574166741677416874169741707417174172741737417474175741767417774178741797418074181741827418374184741857418674187741887418974190741917419274193741947419574196741977419874199742007420174202742037420474205742067420774208742097421074211742127421374214742157421674217742187421974220742217422274223742247422574226742277422874229742307423174232742337423474235742367423774238742397424074241742427424374244742457424674247742487424974250742517425274253742547425574256742577425874259742607426174262742637426474265742667426774268742697427074271742727427374274742757427674277742787427974280742817428274283742847428574286742877428874289742907429174292742937429474295742967429774298742997430074301743027430374304743057430674307743087430974310743117431274313743147431574316743177431874319743207432174322743237432474325743267432774328743297433074331743327433374334743357433674337743387433974340743417434274343743447434574346743477434874349743507435174352743537435474355743567435774358743597436074361743627436374364743657436674367743687436974370743717437274373743747437574376743777437874379743807438174382743837438474385743867438774388743897439074391743927439374394743957439674397743987439974400744017440274403744047440574406744077440874409744107441174412744137441474415744167441774418744197442074421744227442374424744257442674427744287442974430744317443274433744347443574436744377443874439744407444174442744437444474445744467444774448744497445074451744527445374454744557445674457744587445974460744617446274463744647446574466744677446874469744707447174472744737447474475744767447774478744797448074481744827448374484744857448674487744887448974490744917449274493744947449574496744977449874499745007450174502745037450474505745067450774508745097451074511745127451374514745157451674517745187451974520745217452274523745247452574526745277452874529745307453174532745337453474535745367453774538745397454074541745427454374544745457454674547745487454974550745517455274553745547455574556745577455874559745607456174562745637456474565745667456774568745697457074571745727457374574745757457674577745787457974580745817458274583745847458574586745877458874589745907459174592745937459474595745967459774598745997460074601746027460374604746057460674607746087460974610746117461274613746147461574616746177461874619746207462174622746237462474625746267462774628746297463074631746327463374634746357463674637746387463974640746417464274643746447464574646746477464874649746507465174652746537465474655746567465774658746597466074661746627466374664746657466674667746687466974670746717467274673746747467574676746777467874679746807468174682746837468474685746867468774688746897469074691746927469374694746957469674697746987469974700747017470274703747047470574706747077470874709747107471174712747137471474715747167471774718747197472074721747227472374724747257472674727747287472974730747317473274733747347473574736747377473874739747407474174742747437474474745747467474774748747497475074751747527475374754747557475674757747587475974760747617476274763747647476574766747677476874769747707477174772747737477474775747767477774778747797478074781747827478374784747857478674787747887478974790747917479274793747947479574796747977479874799748007480174802748037480474805748067480774808748097481074811748127481374814748157481674817748187481974820748217482274823748247482574826748277482874829748307483174832748337483474835748367483774838748397484074841748427484374844748457484674847748487484974850748517485274853748547485574856748577485874859748607486174862748637486474865748667486774868748697487074871748727487374874748757487674877748787487974880748817488274883748847488574886748877488874889748907489174892748937489474895748967489774898748997490074901749027490374904749057490674907749087490974910749117491274913749147491574916749177491874919749207492174922749237492474925749267492774928749297493074931749327493374934749357493674937749387493974940749417494274943749447494574946749477494874949749507495174952749537495474955749567495774958749597496074961749627496374964749657496674967749687496974970749717497274973749747497574976749777497874979749807498174982749837498474985749867498774988749897499074991749927499374994749957499674997749987499975000750017500275003750047500575006750077500875009750107501175012750137501475015750167501775018750197502075021750227502375024750257502675027750287502975030750317503275033750347503575036750377503875039750407504175042750437504475045750467504775048750497505075051750527505375054750557505675057750587505975060750617506275063750647506575066750677506875069750707507175072750737507475075750767507775078750797508075081750827508375084750857508675087750887508975090750917509275093750947509575096750977509875099751007510175102751037510475105751067510775108751097511075111751127511375114751157511675117751187511975120751217512275123751247512575126751277512875129751307513175132751337513475135751367513775138751397514075141751427514375144751457514675147751487514975150751517515275153751547515575156751577515875159751607516175162751637516475165751667516775168751697517075171751727517375174751757517675177751787517975180751817518275183751847518575186751877518875189751907519175192751937519475195751967519775198751997520075201752027520375204752057520675207752087520975210752117521275213752147521575216752177521875219752207522175222752237522475225752267522775228752297523075231752327523375234752357523675237752387523975240752417524275243752447524575246752477524875249752507525175252752537525475255752567525775258752597526075261752627526375264752657526675267752687526975270752717527275273752747527575276752777527875279752807528175282752837528475285752867528775288752897529075291752927529375294752957529675297752987529975300753017530275303753047530575306753077530875309753107531175312753137531475315753167531775318753197532075321753227532375324753257532675327753287532975330753317533275333753347533575336753377533875339753407534175342753437534475345753467534775348753497535075351753527535375354753557535675357753587535975360753617536275363753647536575366753677536875369753707537175372753737537475375753767537775378753797538075381753827538375384753857538675387753887538975390753917539275393753947539575396753977539875399754007540175402754037540475405754067540775408754097541075411754127541375414754157541675417754187541975420754217542275423754247542575426754277542875429754307543175432754337543475435754367543775438754397544075441754427544375444754457544675447754487544975450754517545275453754547545575456754577545875459754607546175462754637546475465754667546775468754697547075471754727547375474754757547675477754787547975480754817548275483754847548575486754877548875489754907549175492754937549475495754967549775498754997550075501755027550375504755057550675507755087550975510755117551275513755147551575516755177551875519755207552175522755237552475525755267552775528755297553075531755327553375534755357553675537755387553975540755417554275543755447554575546755477554875549755507555175552755537555475555755567555775558755597556075561755627556375564755657556675567755687556975570755717557275573755747557575576755777557875579755807558175582755837558475585755867558775588755897559075591755927559375594755957559675597755987559975600756017560275603756047560575606756077560875609756107561175612756137561475615756167561775618756197562075621756227562375624756257562675627756287562975630756317563275633756347563575636756377563875639756407564175642756437564475645756467564775648756497565075651756527565375654756557565675657756587565975660756617566275663756647566575666756677566875669756707567175672756737567475675756767567775678756797568075681756827568375684756857568675687756887568975690756917569275693756947569575696756977569875699757007570175702757037570475705757067570775708757097571075711757127571375714757157571675717757187571975720757217572275723757247572575726757277572875729757307573175732757337573475735757367573775738757397574075741757427574375744757457574675747757487574975750757517575275753757547575575756757577575875759757607576175762757637576475765757667576775768757697577075771757727577375774757757577675777757787577975780757817578275783757847578575786757877578875789757907579175792757937579475795757967579775798757997580075801758027580375804758057580675807758087580975810758117581275813758147581575816758177581875819758207582175822758237582475825758267582775828758297583075831758327583375834758357583675837758387583975840758417584275843758447584575846758477584875849758507585175852758537585475855758567585775858758597586075861758627586375864758657586675867758687586975870758717587275873758747587575876758777587875879758807588175882758837588475885758867588775888758897589075891758927589375894758957589675897758987589975900759017590275903759047590575906759077590875909759107591175912759137591475915759167591775918759197592075921759227592375924759257592675927759287592975930759317593275933759347593575936759377593875939759407594175942759437594475945759467594775948759497595075951759527595375954759557595675957759587595975960759617596275963759647596575966759677596875969759707597175972759737597475975759767597775978759797598075981759827598375984759857598675987759887598975990759917599275993759947599575996759977599875999760007600176002760037600476005760067600776008760097601076011760127601376014760157601676017760187601976020760217602276023760247602576026760277602876029760307603176032760337603476035760367603776038760397604076041760427604376044760457604676047760487604976050760517605276053760547605576056760577605876059760607606176062760637606476065760667606776068760697607076071760727607376074760757607676077760787607976080760817608276083760847608576086760877608876089760907609176092760937609476095760967609776098760997610076101761027610376104761057610676107761087610976110761117611276113761147611576116761177611876119761207612176122761237612476125761267612776128761297613076131761327613376134761357613676137761387613976140761417614276143761447614576146761477614876149761507615176152761537615476155761567615776158761597616076161761627616376164761657616676167761687616976170761717617276173761747617576176761777617876179761807618176182761837618476185761867618776188761897619076191761927619376194761957619676197761987619976200762017620276203762047620576206762077620876209762107621176212762137621476215762167621776218762197622076221762227622376224762257622676227762287622976230762317623276233762347623576236762377623876239762407624176242762437624476245762467624776248762497625076251762527625376254762557625676257762587625976260762617626276263762647626576266762677626876269762707627176272762737627476275762767627776278762797628076281762827628376284762857628676287762887628976290762917629276293762947629576296762977629876299763007630176302763037630476305763067630776308763097631076311763127631376314763157631676317763187631976320763217632276323763247632576326763277632876329763307633176332763337633476335763367633776338763397634076341763427634376344763457634676347763487634976350763517635276353763547635576356763577635876359763607636176362763637636476365763667636776368763697637076371763727637376374763757637676377763787637976380763817638276383763847638576386763877638876389763907639176392763937639476395763967639776398763997640076401764027640376404764057640676407764087640976410764117641276413764147641576416764177641876419764207642176422764237642476425764267642776428764297643076431764327643376434764357643676437764387643976440764417644276443764447644576446764477644876449764507645176452764537645476455764567645776458764597646076461764627646376464764657646676467764687646976470764717647276473764747647576476764777647876479764807648176482764837648476485764867648776488764897649076491764927649376494764957649676497764987649976500765017650276503765047650576506765077650876509765107651176512765137651476515765167651776518765197652076521765227652376524765257652676527765287652976530765317653276533765347653576536765377653876539765407654176542765437654476545765467654776548765497655076551765527655376554765557655676557765587655976560765617656276563765647656576566765677656876569765707657176572765737657476575765767657776578765797658076581765827658376584765857658676587765887658976590765917659276593765947659576596765977659876599766007660176602766037660476605766067660776608766097661076611766127661376614766157661676617766187661976620766217662276623766247662576626766277662876629766307663176632766337663476635766367663776638766397664076641766427664376644766457664676647766487664976650766517665276653766547665576656766577665876659766607666176662766637666476665766667666776668766697667076671766727667376674766757667676677766787667976680766817668276683766847668576686766877668876689766907669176692766937669476695766967669776698766997670076701767027670376704767057670676707767087670976710767117671276713767147671576716767177671876719767207672176722767237672476725767267672776728767297673076731767327673376734767357673676737767387673976740767417674276743767447674576746767477674876749767507675176752767537675476755767567675776758767597676076761767627676376764767657676676767767687676976770767717677276773767747677576776767777677876779767807678176782767837678476785767867678776788767897679076791767927679376794767957679676797767987679976800768017680276803768047680576806768077680876809768107681176812768137681476815768167681776818768197682076821768227682376824768257682676827768287682976830768317683276833768347683576836768377683876839768407684176842768437684476845768467684776848768497685076851768527685376854768557685676857768587685976860768617686276863768647686576866768677686876869768707687176872768737687476875768767687776878768797688076881768827688376884768857688676887768887688976890768917689276893768947689576896768977689876899769007690176902769037690476905769067690776908769097691076911769127691376914769157691676917769187691976920769217692276923769247692576926769277692876929769307693176932769337693476935769367693776938769397694076941769427694376944769457694676947769487694976950769517695276953769547695576956769577695876959769607696176962769637696476965769667696776968769697697076971769727697376974769757697676977769787697976980769817698276983769847698576986769877698876989769907699176992769937699476995769967699776998769997700077001770027700377004770057700677007770087700977010770117701277013770147701577016770177701877019770207702177022770237702477025770267702777028770297703077031770327703377034770357703677037770387703977040770417704277043770447704577046770477704877049770507705177052770537705477055770567705777058770597706077061770627706377064770657706677067770687706977070770717707277073770747707577076770777707877079770807708177082770837708477085770867708777088770897709077091770927709377094770957709677097770987709977100771017710277103771047710577106771077710877109771107711177112771137711477115771167711777118771197712077121771227712377124771257712677127771287712977130771317713277133771347713577136771377713877139771407714177142771437714477145771467714777148771497715077151771527715377154771557715677157771587715977160771617716277163771647716577166771677716877169771707717177172771737717477175771767717777178771797718077181771827718377184771857718677187771887718977190771917719277193771947719577196771977719877199772007720177202772037720477205772067720777208772097721077211772127721377214772157721677217772187721977220772217722277223772247722577226772277722877229772307723177232772337723477235772367723777238772397724077241772427724377244772457724677247772487724977250772517725277253772547725577256772577725877259772607726177262772637726477265772667726777268772697727077271772727727377274772757727677277772787727977280772817728277283772847728577286772877728877289772907729177292772937729477295772967729777298772997730077301773027730377304773057730677307773087730977310773117731277313773147731577316773177731877319773207732177322773237732477325773267732777328773297733077331773327733377334773357733677337773387733977340773417734277343773447734577346773477734877349773507735177352773537735477355773567735777358773597736077361773627736377364773657736677367773687736977370773717737277373773747737577376773777737877379773807738177382773837738477385773867738777388773897739077391773927739377394773957739677397773987739977400774017740277403774047740577406774077740877409774107741177412774137741477415774167741777418774197742077421774227742377424774257742677427774287742977430774317743277433774347743577436774377743877439774407744177442774437744477445774467744777448774497745077451774527745377454774557745677457774587745977460774617746277463774647746577466774677746877469774707747177472774737747477475774767747777478774797748077481774827748377484774857748677487774887748977490774917749277493774947749577496774977749877499775007750177502775037750477505775067750777508775097751077511775127751377514775157751677517775187751977520775217752277523775247752577526775277752877529775307753177532775337753477535775367753777538775397754077541775427754377544775457754677547775487754977550775517755277553775547755577556775577755877559775607756177562775637756477565775667756777568775697757077571775727757377574775757757677577775787757977580775817758277583775847758577586775877758877589775907759177592775937759477595775967759777598775997760077601776027760377604776057760677607776087760977610776117761277613776147761577616776177761877619776207762177622776237762477625776267762777628776297763077631776327763377634776357763677637776387763977640776417764277643776447764577646776477764877649776507765177652776537765477655776567765777658776597766077661776627766377664776657766677667776687766977670776717767277673776747767577676776777767877679776807768177682776837768477685776867768777688776897769077691776927769377694776957769677697776987769977700777017770277703777047770577706777077770877709777107771177712777137771477715777167771777718777197772077721777227772377724777257772677727777287772977730777317773277733777347773577736777377773877739777407774177742777437774477745777467774777748777497775077751777527775377754777557775677757777587775977760777617776277763777647776577766777677776877769777707777177772777737777477775777767777777778777797778077781777827778377784777857778677787777887778977790777917779277793777947779577796777977779877799778007780177802778037780477805778067780777808778097781077811778127781377814778157781677817778187781977820778217782277823778247782577826778277782877829778307783177832778337783477835778367783777838778397784077841778427784377844778457784677847778487784977850778517785277853778547785577856778577785877859778607786177862778637786477865778667786777868778697787077871778727787377874778757787677877778787787977880778817788277883778847788577886778877788877889778907789177892778937789477895778967789777898778997790077901779027790377904779057790677907779087790977910779117791277913779147791577916779177791877919779207792177922779237792477925779267792777928779297793077931779327793377934779357793677937779387793977940779417794277943779447794577946779477794877949779507795177952779537795477955779567795777958779597796077961779627796377964779657796677967779687796977970779717797277973779747797577976779777797877979779807798177982779837798477985779867798777988779897799077991779927799377994779957799677997779987799978000780017800278003780047800578006780077800878009780107801178012780137801478015780167801778018780197802078021780227802378024780257802678027780287802978030780317803278033780347803578036780377803878039780407804178042780437804478045780467804778048780497805078051780527805378054780557805678057780587805978060780617806278063780647806578066780677806878069780707807178072780737807478075780767807778078780797808078081780827808378084780857808678087780887808978090780917809278093780947809578096780977809878099781007810178102781037810478105781067810778108781097811078111781127811378114781157811678117781187811978120781217812278123781247812578126781277812878129781307813178132781337813478135781367813778138781397814078141781427814378144781457814678147781487814978150781517815278153781547815578156781577815878159781607816178162781637816478165781667816778168781697817078171781727817378174781757817678177781787817978180781817818278183781847818578186781877818878189781907819178192781937819478195781967819778198781997820078201782027820378204782057820678207782087820978210782117821278213782147821578216782177821878219782207822178222782237822478225782267822778228782297823078231782327823378234782357823678237782387823978240782417824278243782447824578246782477824878249782507825178252782537825478255782567825778258782597826078261782627826378264782657826678267782687826978270782717827278273782747827578276782777827878279782807828178282782837828478285782867828778288782897829078291782927829378294782957829678297782987829978300783017830278303783047830578306783077830878309783107831178312783137831478315783167831778318783197832078321783227832378324783257832678327783287832978330783317833278333783347833578336783377833878339783407834178342783437834478345783467834778348783497835078351783527835378354783557835678357783587835978360783617836278363783647836578366783677836878369783707837178372783737837478375783767837778378783797838078381783827838378384783857838678387783887838978390783917839278393783947839578396783977839878399784007840178402784037840478405784067840778408784097841078411784127841378414784157841678417784187841978420784217842278423784247842578426784277842878429784307843178432784337843478435784367843778438784397844078441784427844378444784457844678447784487844978450784517845278453784547845578456784577845878459784607846178462784637846478465784667846778468784697847078471784727847378474784757847678477784787847978480784817848278483784847848578486784877848878489784907849178492784937849478495784967849778498784997850078501785027850378504785057850678507785087850978510785117851278513785147851578516785177851878519785207852178522785237852478525785267852778528785297853078531785327853378534785357853678537785387853978540785417854278543785447854578546785477854878549785507855178552785537855478555785567855778558785597856078561785627856378564785657856678567785687856978570785717857278573785747857578576785777857878579785807858178582785837858478585785867858778588785897859078591785927859378594785957859678597785987859978600786017860278603786047860578606786077860878609786107861178612786137861478615786167861778618786197862078621786227862378624786257862678627786287862978630786317863278633786347863578636786377863878639786407864178642786437864478645786467864778648786497865078651786527865378654786557865678657786587865978660786617866278663786647866578666786677866878669786707867178672786737867478675786767867778678786797868078681786827868378684786857868678687786887868978690786917869278693786947869578696786977869878699787007870178702787037870478705787067870778708787097871078711787127871378714787157871678717787187871978720787217872278723787247872578726787277872878729787307873178732787337873478735787367873778738787397874078741787427874378744787457874678747787487874978750787517875278753787547875578756787577875878759787607876178762787637876478765787667876778768787697877078771787727877378774787757877678777787787877978780787817878278783787847878578786787877878878789787907879178792787937879478795787967879778798787997880078801788027880378804788057880678807788087880978810788117881278813788147881578816788177881878819788207882178822788237882478825788267882778828788297883078831788327883378834788357883678837788387883978840788417884278843788447884578846788477884878849788507885178852788537885478855788567885778858788597886078861788627886378864788657886678867788687886978870788717887278873788747887578876788777887878879788807888178882788837888478885788867888778888788897889078891788927889378894788957889678897788987889978900789017890278903789047890578906789077890878909789107891178912789137891478915789167891778918789197892078921789227892378924789257892678927789287892978930789317893278933789347893578936789377893878939789407894178942789437894478945789467894778948789497895078951789527895378954789557895678957789587895978960789617896278963789647896578966789677896878969789707897178972789737897478975789767897778978789797898078981789827898378984789857898678987789887898978990789917899278993789947899578996789977899878999790007900179002790037900479005790067900779008790097901079011790127901379014790157901679017790187901979020790217902279023790247902579026790277902879029790307903179032790337903479035790367903779038790397904079041790427904379044790457904679047790487904979050790517905279053790547905579056790577905879059790607906179062790637906479065790667906779068790697907079071790727907379074790757907679077790787907979080790817908279083790847908579086790877908879089790907909179092790937909479095790967909779098790997910079101791027910379104791057910679107791087910979110791117911279113791147911579116791177911879119791207912179122791237912479125791267912779128791297913079131791327913379134791357913679137791387913979140791417914279143791447914579146791477914879149791507915179152791537915479155791567915779158791597916079161791627916379164791657916679167791687916979170791717917279173791747917579176791777917879179791807918179182791837918479185791867918779188791897919079191791927919379194791957919679197791987919979200792017920279203792047920579206792077920879209792107921179212792137921479215792167921779218792197922079221792227922379224792257922679227792287922979230792317923279233792347923579236792377923879239792407924179242792437924479245792467924779248792497925079251792527925379254792557925679257792587925979260792617926279263792647926579266792677926879269792707927179272792737927479275792767927779278792797928079281792827928379284792857928679287792887928979290792917929279293792947929579296792977929879299793007930179302793037930479305793067930779308793097931079311793127931379314793157931679317793187931979320793217932279323793247932579326793277932879329793307933179332793337933479335793367933779338793397934079341793427934379344793457934679347793487934979350793517935279353793547935579356793577935879359793607936179362793637936479365793667936779368793697937079371793727937379374793757937679377793787937979380793817938279383793847938579386793877938879389793907939179392793937939479395793967939779398793997940079401794027940379404794057940679407794087940979410794117941279413794147941579416794177941879419794207942179422794237942479425794267942779428794297943079431794327943379434794357943679437794387943979440794417944279443794447944579446794477944879449794507945179452794537945479455794567945779458794597946079461794627946379464794657946679467794687946979470794717947279473794747947579476794777947879479794807948179482794837948479485794867948779488794897949079491794927949379494794957949679497794987949979500795017950279503795047950579506795077950879509795107951179512795137951479515795167951779518795197952079521795227952379524795257952679527795287952979530795317953279533795347953579536795377953879539795407954179542795437954479545795467954779548795497955079551795527955379554795557955679557795587955979560795617956279563795647956579566795677956879569795707957179572795737957479575795767957779578795797958079581795827958379584795857958679587795887958979590795917959279593795947959579596795977959879599796007960179602796037960479605796067960779608796097961079611796127961379614796157961679617796187961979620796217962279623796247962579626796277962879629796307963179632796337963479635796367963779638796397964079641796427964379644796457964679647796487964979650796517965279653796547965579656796577965879659796607966179662796637966479665796667966779668796697967079671796727967379674796757967679677796787967979680796817968279683796847968579686796877968879689796907969179692796937969479695796967969779698796997970079701797027970379704797057970679707797087970979710797117971279713797147971579716797177971879719797207972179722797237972479725797267972779728797297973079731797327973379734797357973679737797387973979740797417974279743797447974579746797477974879749797507975179752797537975479755797567975779758797597976079761797627976379764797657976679767797687976979770797717977279773797747977579776797777977879779797807978179782797837978479785797867978779788797897979079791797927979379794797957979679797797987979979800798017980279803798047980579806798077980879809798107981179812798137981479815798167981779818798197982079821798227982379824798257982679827798287982979830798317983279833798347983579836798377983879839798407984179842798437984479845798467984779848798497985079851798527985379854798557985679857798587985979860798617986279863798647986579866798677986879869798707987179872798737987479875798767987779878798797988079881798827988379884798857988679887798887988979890798917989279893798947989579896798977989879899799007990179902799037990479905799067990779908799097991079911799127991379914799157991679917799187991979920799217992279923799247992579926799277992879929799307993179932799337993479935799367993779938799397994079941799427994379944799457994679947799487994979950799517995279953799547995579956799577995879959799607996179962799637996479965799667996779968799697997079971799727997379974799757997679977799787997979980799817998279983799847998579986799877998879989799907999179992799937999479995799967999779998799998000080001800028000380004800058000680007800088000980010800118001280013800148001580016800178001880019800208002180022800238002480025800268002780028800298003080031800328003380034800358003680037800388003980040800418004280043800448004580046800478004880049800508005180052800538005480055800568005780058800598006080061800628006380064800658006680067800688006980070800718007280073800748007580076800778007880079800808008180082800838008480085800868008780088800898009080091800928009380094800958009680097800988009980100801018010280103801048010580106801078010880109801108011180112801138011480115801168011780118801198012080121801228012380124801258012680127801288012980130801318013280133801348013580136801378013880139801408014180142801438014480145801468014780148801498015080151801528015380154801558015680157801588015980160801618016280163801648016580166801678016880169801708017180172801738017480175801768017780178801798018080181801828018380184801858018680187801888018980190801918019280193801948019580196801978019880199802008020180202802038020480205802068020780208802098021080211802128021380214802158021680217802188021980220802218022280223802248022580226802278022880229802308023180232802338023480235802368023780238802398024080241802428024380244802458024680247802488024980250802518025280253802548025580256802578025880259802608026180262802638026480265802668026780268802698027080271802728027380274802758027680277802788027980280802818028280283802848028580286802878028880289802908029180292802938029480295802968029780298802998030080301803028030380304803058030680307803088030980310803118031280313803148031580316803178031880319803208032180322803238032480325803268032780328803298033080331803328033380334803358033680337803388033980340803418034280343803448034580346803478034880349803508035180352803538035480355803568035780358803598036080361803628036380364803658036680367803688036980370803718037280373803748037580376803778037880379803808038180382803838038480385803868038780388803898039080391803928039380394803958039680397803988039980400804018040280403804048040580406804078040880409804108041180412804138041480415804168041780418804198042080421804228042380424804258042680427804288042980430804318043280433804348043580436804378043880439804408044180442804438044480445804468044780448804498045080451804528045380454804558045680457804588045980460804618046280463804648046580466804678046880469804708047180472804738047480475804768047780478804798048080481804828048380484804858048680487804888048980490804918049280493804948049580496804978049880499805008050180502805038050480505805068050780508805098051080511805128051380514805158051680517805188051980520805218052280523805248052580526805278052880529805308053180532805338053480535805368053780538805398054080541805428054380544805458054680547805488054980550805518055280553805548055580556805578055880559805608056180562805638056480565805668056780568805698057080571805728057380574805758057680577805788057980580805818058280583805848058580586805878058880589805908059180592805938059480595805968059780598805998060080601806028060380604806058060680607806088060980610806118061280613806148061580616806178061880619806208062180622806238062480625806268062780628806298063080631806328063380634806358063680637806388063980640806418064280643806448064580646806478064880649806508065180652806538065480655806568065780658806598066080661806628066380664806658066680667806688066980670806718067280673806748067580676806778067880679806808068180682806838068480685806868068780688806898069080691806928069380694806958069680697806988069980700807018070280703807048070580706807078070880709807108071180712807138071480715807168071780718807198072080721807228072380724807258072680727807288072980730807318073280733807348073580736807378073880739807408074180742807438074480745807468074780748807498075080751807528075380754807558075680757807588075980760807618076280763807648076580766807678076880769807708077180772807738077480775807768077780778807798078080781807828078380784807858078680787807888078980790807918079280793807948079580796807978079880799808008080180802808038080480805808068080780808808098081080811808128081380814808158081680817808188081980820808218082280823808248082580826808278082880829808308083180832808338083480835808368083780838808398084080841808428084380844808458084680847808488084980850808518085280853808548085580856808578085880859808608086180862808638086480865808668086780868808698087080871808728087380874808758087680877808788087980880808818088280883808848088580886808878088880889808908089180892808938089480895808968089780898808998090080901809028090380904809058090680907809088090980910809118091280913809148091580916809178091880919809208092180922809238092480925809268092780928809298093080931809328093380934809358093680937809388093980940809418094280943809448094580946809478094880949809508095180952809538095480955809568095780958809598096080961809628096380964809658096680967809688096980970809718097280973809748097580976809778097880979809808098180982809838098480985809868098780988809898099080991809928099380994809958099680997809988099981000810018100281003810048100581006810078100881009810108101181012810138101481015810168101781018810198102081021810228102381024810258102681027810288102981030810318103281033810348103581036810378103881039810408104181042810438104481045810468104781048810498105081051810528105381054810558105681057810588105981060810618106281063810648106581066810678106881069810708107181072810738107481075810768107781078810798108081081810828108381084810858108681087810888108981090810918109281093810948109581096810978109881099811008110181102811038110481105811068110781108811098111081111811128111381114811158111681117811188111981120811218112281123811248112581126811278112881129811308113181132811338113481135811368113781138811398114081141811428114381144811458114681147811488114981150811518115281153811548115581156811578115881159811608116181162811638116481165811668116781168811698117081171811728117381174811758117681177811788117981180811818118281183811848118581186811878118881189811908119181192811938119481195811968119781198811998120081201812028120381204812058120681207812088120981210812118121281213812148121581216812178121881219812208122181222812238122481225812268122781228812298123081231812328123381234812358123681237812388123981240812418124281243812448124581246812478124881249812508125181252812538125481255812568125781258812598126081261812628126381264812658126681267812688126981270812718127281273812748127581276812778127881279812808128181282812838128481285812868128781288812898129081291812928129381294812958129681297812988129981300813018130281303813048130581306813078130881309813108131181312813138131481315813168131781318813198132081321813228132381324813258132681327813288132981330813318133281333813348133581336813378133881339813408134181342813438134481345813468134781348813498135081351813528135381354813558135681357813588135981360813618136281363813648136581366813678136881369813708137181372813738137481375813768137781378813798138081381813828138381384813858138681387813888138981390813918139281393813948139581396813978139881399814008140181402814038140481405814068140781408814098141081411814128141381414814158141681417814188141981420814218142281423814248142581426814278142881429814308143181432814338143481435814368143781438814398144081441814428144381444814458144681447814488144981450814518145281453814548145581456814578145881459814608146181462814638146481465814668146781468814698147081471814728147381474814758147681477814788147981480814818148281483814848148581486814878148881489814908149181492814938149481495814968149781498814998150081501815028150381504815058150681507815088150981510815118151281513815148151581516815178151881519815208152181522815238152481525815268152781528815298153081531815328153381534815358153681537815388153981540815418154281543815448154581546815478154881549815508155181552815538155481555815568155781558815598156081561815628156381564815658156681567815688156981570815718157281573815748157581576815778157881579815808158181582815838158481585815868158781588815898159081591815928159381594815958159681597815988159981600816018160281603816048160581606816078160881609816108161181612816138161481615816168161781618816198162081621816228162381624816258162681627816288162981630816318163281633816348163581636816378163881639816408164181642816438164481645816468164781648816498165081651816528165381654816558165681657816588165981660816618166281663816648166581666816678166881669816708167181672816738167481675816768167781678816798168081681816828168381684816858168681687816888168981690816918169281693816948169581696816978169881699817008170181702817038170481705817068170781708817098171081711817128171381714817158171681717817188171981720817218172281723817248172581726817278172881729817308173181732817338173481735817368173781738817398174081741817428174381744817458174681747817488174981750817518175281753817548175581756817578175881759817608176181762817638176481765817668176781768817698177081771817728177381774817758177681777817788177981780817818178281783817848178581786817878178881789817908179181792817938179481795817968179781798817998180081801818028180381804818058180681807818088180981810818118181281813818148181581816818178181881819818208182181822818238182481825818268182781828818298183081831818328183381834818358183681837818388183981840818418184281843818448184581846818478184881849818508185181852818538185481855818568185781858818598186081861818628186381864818658186681867818688186981870818718187281873818748187581876818778187881879818808188181882818838188481885818868188781888818898189081891818928189381894818958189681897818988189981900819018190281903819048190581906819078190881909819108191181912819138191481915819168191781918819198192081921819228192381924819258192681927819288192981930819318193281933819348193581936819378193881939819408194181942819438194481945819468194781948819498195081951819528195381954819558195681957819588195981960819618196281963819648196581966819678196881969819708197181972819738197481975819768197781978819798198081981819828198381984819858198681987819888198981990819918199281993819948199581996819978199881999820008200182002820038200482005820068200782008820098201082011820128201382014820158201682017820188201982020820218202282023820248202582026820278202882029820308203182032820338203482035820368203782038820398204082041820428204382044820458204682047820488204982050820518205282053820548205582056820578205882059820608206182062820638206482065820668206782068820698207082071820728207382074820758207682077820788207982080820818208282083820848208582086820878208882089820908209182092820938209482095820968209782098820998210082101821028210382104821058210682107821088210982110821118211282113821148211582116821178211882119821208212182122821238212482125821268212782128821298213082131821328213382134821358213682137821388213982140821418214282143821448214582146821478214882149821508215182152821538215482155821568215782158821598216082161821628216382164821658216682167821688216982170821718217282173821748217582176821778217882179821808218182182821838218482185821868218782188821898219082191821928219382194821958219682197821988219982200822018220282203822048220582206822078220882209822108221182212822138221482215822168221782218822198222082221822228222382224822258222682227822288222982230822318223282233822348223582236822378223882239822408224182242822438224482245822468224782248822498225082251822528225382254822558225682257822588225982260822618226282263822648226582266822678226882269822708227182272822738227482275822768227782278822798228082281822828228382284822858228682287822888228982290822918229282293822948229582296822978229882299823008230182302823038230482305823068230782308823098231082311823128231382314823158231682317823188231982320823218232282323823248232582326823278232882329823308233182332823338233482335823368233782338823398234082341823428234382344823458234682347823488234982350823518235282353823548235582356823578235882359823608236182362823638236482365823668236782368823698237082371823728237382374823758237682377823788237982380823818238282383823848238582386823878238882389823908239182392823938239482395823968239782398823998240082401824028240382404824058240682407824088240982410824118241282413824148241582416824178241882419824208242182422824238242482425824268242782428824298243082431824328243382434824358243682437824388243982440824418244282443824448244582446824478244882449824508245182452824538245482455824568245782458824598246082461824628246382464824658246682467824688246982470824718247282473824748247582476824778247882479824808248182482824838248482485824868248782488824898249082491824928249382494824958249682497824988249982500825018250282503825048250582506825078250882509825108251182512825138251482515825168251782518825198252082521825228252382524825258252682527825288252982530825318253282533825348253582536825378253882539825408254182542825438254482545825468254782548825498255082551825528255382554825558255682557825588255982560825618256282563825648256582566825678256882569825708257182572825738257482575825768257782578825798258082581825828258382584825858258682587825888258982590825918259282593825948259582596825978259882599826008260182602826038260482605826068260782608826098261082611826128261382614826158261682617826188261982620826218262282623826248262582626826278262882629826308263182632826338263482635826368263782638826398264082641826428264382644826458264682647826488264982650826518265282653826548265582656826578265882659826608266182662826638266482665826668266782668826698267082671826728267382674826758267682677826788267982680826818268282683826848268582686826878268882689826908269182692826938269482695826968269782698826998270082701827028270382704827058270682707827088270982710827118271282713827148271582716827178271882719827208272182722827238272482725827268272782728827298273082731827328273382734827358273682737827388273982740827418274282743827448274582746827478274882749827508275182752827538275482755827568275782758827598276082761827628276382764827658276682767827688276982770827718277282773827748277582776827778277882779827808278182782827838278482785827868278782788827898279082791827928279382794827958279682797827988279982800828018280282803828048280582806828078280882809828108281182812828138281482815828168281782818828198282082821828228282382824828258282682827828288282982830828318283282833828348283582836828378283882839828408284182842828438284482845828468284782848828498285082851828528285382854828558285682857828588285982860828618286282863828648286582866828678286882869828708287182872828738287482875828768287782878828798288082881828828288382884828858288682887828888288982890828918289282893828948289582896828978289882899829008290182902829038290482905829068290782908829098291082911829128291382914829158291682917829188291982920829218292282923829248292582926829278292882929829308293182932829338293482935829368293782938829398294082941829428294382944829458294682947829488294982950829518295282953829548295582956829578295882959829608296182962829638296482965829668296782968829698297082971829728297382974829758297682977829788297982980829818298282983829848298582986829878298882989829908299182992829938299482995829968299782998829998300083001830028300383004830058300683007830088300983010830118301283013830148301583016830178301883019830208302183022830238302483025830268302783028830298303083031830328303383034830358303683037830388303983040830418304283043830448304583046830478304883049830508305183052830538305483055830568305783058830598306083061830628306383064830658306683067830688306983070830718307283073830748307583076830778307883079830808308183082830838308483085830868308783088830898309083091830928309383094830958309683097830988309983100831018310283103831048310583106831078310883109831108311183112831138311483115831168311783118831198312083121831228312383124831258312683127831288312983130831318313283133831348313583136831378313883139831408314183142831438314483145831468314783148831498315083151831528315383154831558315683157831588315983160831618316283163831648316583166831678316883169831708317183172831738317483175831768317783178831798318083181831828318383184831858318683187831888318983190831918319283193831948319583196831978319883199832008320183202832038320483205832068320783208832098321083211832128321383214832158321683217832188321983220832218322283223832248322583226832278322883229832308323183232832338323483235832368323783238832398324083241832428324383244832458324683247832488324983250832518325283253832548325583256832578325883259832608326183262832638326483265832668326783268832698327083271832728327383274832758327683277832788327983280832818328283283832848328583286832878328883289832908329183292832938329483295832968329783298832998330083301833028330383304833058330683307833088330983310833118331283313833148331583316833178331883319833208332183322833238332483325833268332783328833298333083331833328333383334833358333683337833388333983340833418334283343833448334583346833478334883349833508335183352833538335483355833568335783358833598336083361833628336383364833658336683367833688336983370833718337283373833748337583376833778337883379833808338183382833838338483385833868338783388833898339083391833928339383394833958339683397833988339983400834018340283403834048340583406834078340883409834108341183412834138341483415834168341783418834198342083421834228342383424834258342683427834288342983430834318343283433834348343583436834378343883439834408344183442834438344483445834468344783448834498345083451834528345383454834558345683457834588345983460834618346283463834648346583466834678346883469834708347183472834738347483475834768347783478834798348083481834828348383484834858348683487834888348983490834918349283493834948349583496834978349883499835008350183502835038350483505835068350783508835098351083511835128351383514835158351683517835188351983520835218352283523835248352583526835278352883529835308353183532835338353483535835368353783538835398354083541835428354383544835458354683547835488354983550835518355283553835548355583556835578355883559835608356183562835638356483565835668356783568835698357083571835728357383574835758357683577835788357983580835818358283583835848358583586835878358883589835908359183592835938359483595835968359783598835998360083601836028360383604836058360683607836088360983610836118361283613836148361583616836178361883619836208362183622836238362483625836268362783628836298363083631836328363383634836358363683637836388363983640836418364283643836448364583646836478364883649836508365183652836538365483655836568365783658836598366083661836628366383664836658366683667836688366983670836718367283673836748367583676836778367883679836808368183682836838368483685836868368783688836898369083691836928369383694836958369683697836988369983700837018370283703837048370583706837078370883709837108371183712837138371483715837168371783718837198372083721837228372383724837258372683727837288372983730837318373283733837348373583736837378373883739837408374183742837438374483745837468374783748837498375083751837528375383754837558375683757837588375983760837618376283763837648376583766837678376883769837708377183772837738377483775837768377783778837798378083781837828378383784837858378683787837888378983790837918379283793837948379583796837978379883799838008380183802838038380483805838068380783808838098381083811838128381383814838158381683817838188381983820838218382283823838248382583826838278382883829838308383183832838338383483835838368383783838838398384083841838428384383844838458384683847838488384983850838518385283853838548385583856838578385883859838608386183862838638386483865838668386783868838698387083871838728387383874838758387683877838788387983880838818388283883838848388583886838878388883889838908389183892838938389483895838968389783898838998390083901839028390383904839058390683907839088390983910839118391283913839148391583916839178391883919839208392183922839238392483925839268392783928839298393083931839328393383934839358393683937839388393983940839418394283943839448394583946839478394883949839508395183952839538395483955839568395783958839598396083961839628396383964839658396683967839688396983970839718397283973839748397583976839778397883979839808398183982839838398483985839868398783988839898399083991839928399383994839958399683997839988399984000840018400284003840048400584006840078400884009840108401184012840138401484015840168401784018840198402084021840228402384024840258402684027840288402984030840318403284033840348403584036840378403884039840408404184042840438404484045840468404784048840498405084051840528405384054840558405684057840588405984060840618406284063840648406584066840678406884069840708407184072840738407484075840768407784078840798408084081840828408384084840858408684087840888408984090840918409284093840948409584096840978409884099841008410184102841038410484105841068410784108841098411084111841128411384114841158411684117841188411984120841218412284123841248412584126841278412884129841308413184132841338413484135841368413784138841398414084141841428414384144841458414684147841488414984150841518415284153841548415584156841578415884159841608416184162841638416484165841668416784168841698417084171841728417384174841758417684177841788417984180841818418284183841848418584186841878418884189841908419184192841938419484195841968419784198841998420084201842028420384204842058420684207842088420984210842118421284213842148421584216842178421884219842208422184222842238422484225842268422784228842298423084231842328423384234842358423684237842388423984240842418424284243842448424584246842478424884249842508425184252842538425484255842568425784258842598426084261842628426384264842658426684267842688426984270842718427284273842748427584276842778427884279842808428184282842838428484285842868428784288842898429084291842928429384294842958429684297842988429984300843018430284303843048430584306843078430884309843108431184312843138431484315843168431784318843198432084321843228432384324843258432684327843288432984330843318433284333843348433584336843378433884339843408434184342843438434484345843468434784348843498435084351843528435384354843558435684357843588435984360843618436284363843648436584366843678436884369843708437184372843738437484375843768437784378843798438084381843828438384384843858438684387843888438984390843918439284393843948439584396843978439884399844008440184402844038440484405844068440784408844098441084411844128441384414844158441684417844188441984420844218442284423844248442584426844278442884429844308443184432844338443484435844368443784438844398444084441844428444384444844458444684447844488444984450844518445284453844548445584456844578445884459844608446184462844638446484465844668446784468844698447084471844728447384474844758447684477844788447984480844818448284483844848448584486844878448884489844908449184492844938449484495844968449784498844998450084501845028450384504845058450684507845088450984510845118451284513845148451584516845178451884519845208452184522845238452484525845268452784528845298453084531845328453384534845358453684537845388453984540845418454284543845448454584546845478454884549845508455184552845538455484555845568455784558845598456084561845628456384564845658456684567845688456984570845718457284573845748457584576845778457884579845808458184582845838458484585845868458784588845898459084591845928459384594845958459684597845988459984600846018460284603846048460584606846078460884609846108461184612846138461484615846168461784618846198462084621846228462384624846258462684627846288462984630846318463284633846348463584636846378463884639846408464184642846438464484645846468464784648846498465084651846528465384654846558465684657846588465984660846618466284663846648466584666846678466884669846708467184672846738467484675846768467784678846798468084681846828468384684846858468684687846888468984690846918469284693846948469584696846978469884699847008470184702847038470484705847068470784708847098471084711847128471384714847158471684717847188471984720847218472284723847248472584726847278472884729847308473184732847338473484735847368473784738847398474084741847428474384744847458474684747847488474984750847518475284753847548475584756847578475884759847608476184762847638476484765847668476784768847698477084771847728477384774847758477684777847788477984780847818478284783847848478584786847878478884789847908479184792847938479484795847968479784798847998480084801848028480384804848058480684807848088480984810848118481284813848148481584816848178481884819848208482184822848238482484825848268482784828848298483084831848328483384834848358483684837848388483984840848418484284843848448484584846848478484884849848508485184852848538485484855848568485784858848598486084861848628486384864848658486684867848688486984870848718487284873848748487584876848778487884879848808488184882848838488484885848868488784888848898489084891848928489384894848958489684897848988489984900849018490284903849048490584906849078490884909849108491184912849138491484915849168491784918849198492084921849228492384924849258492684927849288492984930849318493284933849348493584936849378493884939849408494184942849438494484945849468494784948849498495084951849528495384954849558495684957849588495984960849618496284963849648496584966849678496884969849708497184972849738497484975849768497784978849798498084981849828498384984849858498684987849888498984990849918499284993849948499584996849978499884999850008500185002850038500485005850068500785008850098501085011850128501385014850158501685017850188501985020850218502285023850248502585026850278502885029850308503185032850338503485035850368503785038850398504085041850428504385044850458504685047850488504985050850518505285053850548505585056850578505885059850608506185062850638506485065850668506785068850698507085071850728507385074850758507685077850788507985080850818508285083850848508585086850878508885089850908509185092850938509485095850968509785098850998510085101851028510385104851058510685107851088510985110851118511285113851148511585116851178511885119851208512185122851238512485125851268512785128851298513085131851328513385134851358513685137851388513985140851418514285143851448514585146851478514885149851508515185152851538515485155851568515785158851598516085161851628516385164851658516685167851688516985170851718517285173851748517585176851778517885179851808518185182851838518485185851868518785188851898519085191851928519385194851958519685197851988519985200852018520285203852048520585206852078520885209852108521185212852138521485215852168521785218852198522085221852228522385224852258522685227852288522985230852318523285233852348523585236852378523885239852408524185242852438524485245852468524785248852498525085251852528525385254852558525685257852588525985260852618526285263852648526585266852678526885269852708527185272852738527485275852768527785278852798528085281852828528385284852858528685287852888528985290852918529285293852948529585296852978529885299853008530185302853038530485305853068530785308853098531085311853128531385314853158531685317853188531985320853218532285323853248532585326853278532885329853308533185332853338533485335853368533785338853398534085341853428534385344853458534685347853488534985350853518535285353853548535585356853578535885359853608536185362853638536485365853668536785368853698537085371853728537385374853758537685377853788537985380853818538285383853848538585386853878538885389853908539185392853938539485395853968539785398853998540085401854028540385404854058540685407854088540985410854118541285413854148541585416854178541885419854208542185422854238542485425854268542785428854298543085431854328543385434854358543685437854388543985440854418544285443854448544585446854478544885449854508545185452854538545485455854568545785458854598546085461854628546385464854658546685467854688546985470854718547285473854748547585476854778547885479854808548185482854838548485485854868548785488854898549085491854928549385494854958549685497854988549985500855018550285503855048550585506855078550885509855108551185512855138551485515855168551785518855198552085521855228552385524855258552685527855288552985530855318553285533855348553585536855378553885539855408554185542855438554485545855468554785548855498555085551855528555385554855558555685557855588555985560855618556285563855648556585566855678556885569855708557185572855738557485575855768557785578855798558085581855828558385584855858558685587855888558985590855918559285593855948559585596855978559885599856008560185602856038560485605856068560785608856098561085611856128561385614856158561685617856188561985620856218562285623856248562585626856278562885629856308563185632856338563485635856368563785638856398564085641856428564385644856458564685647856488564985650856518565285653856548565585656856578565885659856608566185662856638566485665856668566785668856698567085671856728567385674856758567685677856788567985680856818568285683856848568585686856878568885689856908569185692856938569485695856968569785698856998570085701857028570385704857058570685707857088570985710857118571285713857148571585716857178571885719857208572185722857238572485725857268572785728857298573085731857328573385734857358573685737857388573985740857418574285743857448574585746857478574885749857508575185752857538575485755857568575785758857598576085761857628576385764857658576685767857688576985770857718577285773857748577585776857778577885779857808578185782857838578485785857868578785788857898579085791857928579385794857958579685797857988579985800858018580285803858048580585806858078580885809858108581185812858138581485815858168581785818858198582085821858228582385824858258582685827858288582985830858318583285833858348583585836858378583885839858408584185842858438584485845858468584785848858498585085851858528585385854858558585685857858588585985860858618586285863858648586585866858678586885869858708587185872858738587485875858768587785878858798588085881858828588385884858858588685887858888588985890858918589285893858948589585896858978589885899859008590185902859038590485905859068590785908859098591085911859128591385914859158591685917859188591985920859218592285923859248592585926859278592885929859308593185932859338593485935859368593785938859398594085941859428594385944859458594685947859488594985950859518595285953859548595585956859578595885959859608596185962859638596485965859668596785968859698597085971859728597385974859758597685977859788597985980859818598285983859848598585986859878598885989859908599185992859938599485995859968599785998859998600086001860028600386004860058600686007860088600986010860118601286013860148601586016860178601886019860208602186022860238602486025860268602786028860298603086031860328603386034860358603686037860388603986040860418604286043860448604586046860478604886049860508605186052860538605486055860568605786058860598606086061860628606386064860658606686067860688606986070860718607286073860748607586076860778607886079860808608186082860838608486085860868608786088860898609086091860928609386094860958609686097860988609986100861018610286103861048610586106861078610886109861108611186112861138611486115861168611786118861198612086121861228612386124861258612686127861288612986130861318613286133861348613586136861378613886139861408614186142861438614486145861468614786148861498615086151861528615386154861558615686157861588615986160861618616286163861648616586166861678616886169861708617186172861738617486175861768617786178861798618086181861828618386184861858618686187861888618986190861918619286193861948619586196861978619886199862008620186202862038620486205862068620786208862098621086211862128621386214862158621686217862188621986220862218622286223862248622586226862278622886229862308623186232862338623486235862368623786238862398624086241862428624386244862458624686247862488624986250862518625286253862548625586256862578625886259862608626186262862638626486265862668626786268862698627086271862728627386274862758627686277862788627986280862818628286283862848628586286862878628886289862908629186292862938629486295862968629786298862998630086301863028630386304863058630686307863088630986310863118631286313863148631586316863178631886319863208632186322863238632486325863268632786328863298633086331863328633386334863358633686337863388633986340863418634286343863448634586346863478634886349863508635186352863538635486355863568635786358863598636086361863628636386364863658636686367863688636986370863718637286373863748637586376863778637886379863808638186382863838638486385863868638786388863898639086391863928639386394863958639686397863988639986400864018640286403864048640586406864078640886409864108641186412864138641486415864168641786418864198642086421864228642386424864258642686427864288642986430864318643286433864348643586436864378643886439864408644186442864438644486445864468644786448864498645086451864528645386454864558645686457864588645986460864618646286463864648646586466864678646886469864708647186472864738647486475864768647786478864798648086481864828648386484864858648686487864888648986490864918649286493864948649586496864978649886499865008650186502865038650486505865068650786508865098651086511865128651386514865158651686517865188651986520865218652286523865248652586526865278652886529865308653186532865338653486535865368653786538865398654086541865428654386544865458654686547865488654986550865518655286553865548655586556865578655886559865608656186562865638656486565865668656786568865698657086571865728657386574865758657686577865788657986580865818658286583865848658586586865878658886589865908659186592865938659486595865968659786598865998660086601866028660386604866058660686607866088660986610866118661286613866148661586616866178661886619866208662186622866238662486625866268662786628866298663086631866328663386634866358663686637866388663986640866418664286643866448664586646866478664886649866508665186652866538665486655866568665786658866598666086661866628666386664866658666686667866688666986670866718667286673866748667586676866778667886679866808668186682866838668486685866868668786688866898669086691866928669386694866958669686697866988669986700867018670286703867048670586706867078670886709867108671186712867138671486715867168671786718867198672086721867228672386724867258672686727867288672986730867318673286733867348673586736867378673886739867408674186742867438674486745867468674786748867498675086751867528675386754867558675686757867588675986760867618676286763867648676586766867678676886769867708677186772867738677486775867768677786778867798678086781867828678386784867858678686787867888678986790867918679286793867948679586796867978679886799868008680186802868038680486805868068680786808868098681086811868128681386814868158681686817868188681986820868218682286823868248682586826868278682886829868308683186832868338683486835868368683786838868398684086841868428684386844868458684686847868488684986850868518685286853868548685586856868578685886859868608686186862868638686486865868668686786868868698687086871868728687386874868758687686877868788687986880868818688286883868848688586886868878688886889868908689186892868938689486895868968689786898868998690086901869028690386904869058690686907869088690986910869118691286913869148691586916869178691886919869208692186922869238692486925869268692786928869298693086931869328693386934869358693686937869388693986940869418694286943869448694586946869478694886949869508695186952869538695486955869568695786958869598696086961869628696386964869658696686967869688696986970
  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 Wed May 15 06:53:05 UTC 2013 -->
  5. <api
  6. xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
  7. xsi:noNamespaceSchemaLocation='api.xsd'
  8. name="hadoop 1.2.0"
  9. jdversion="1.0.9">
  10. <!-- Command line arguments = -doclet jdiff.JDiff -docletpath /grid/0/dev/mfoley/hadoop-1.2/build/ivy/lib/Hadoop/jdiff/jdiff-1.0.9.jar:/grid/0/dev/mfoley/hadoop-1.2/build/ivy/lib/Hadoop/jdiff/xerces-1.4.4.jar -classpath /grid/0/dev/mfoley/hadoop-1.2/build/classes:/grid/0/dev/mfoley/hadoop-1.2/lib/hsqldb-1.8.0.10.jar:/grid/0/dev/mfoley/hadoop-1.2/lib/jsp-2.1/jsp-2.1.jar:/grid/0/dev/mfoley/hadoop-1.2/lib/jsp-2.1/jsp-api-2.1.jar:/grid/0/dev/mfoley/hadoop-1.2/lib/kfs-0.2.2.jar:/homes/hortonfo/.ivy2/cache/log4j/log4j/jars/log4j-1.2.15.jar:/homes/hortonfo/.ivy2/cache/commons-httpclient/commons-httpclient/jars/commons-httpclient-3.0.1.jar:/homes/hortonfo/.ivy2/cache/commons-codec/commons-codec/jars/commons-codec-1.4.jar:/homes/hortonfo/.ivy2/cache/commons-cli/commons-cli/jars/commons-cli-1.2.jar:/homes/hortonfo/.ivy2/cache/commons-io/commons-io/jars/commons-io-2.1.jar:/homes/hortonfo/.ivy2/cache/xmlenc/xmlenc/jars/xmlenc-0.52.jar:/homes/hortonfo/.ivy2/cache/commons-daemon/commons-daemon/jars/commons-daemon-1.0.1.jar:/homes/hortonfo/.ivy2/cache/net.java.dev.jets3t/jets3t/jars/jets3t-0.6.1.jar:/homes/hortonfo/.ivy2/cache/commons-net/commons-net/jars/commons-net-3.1.jar:/homes/hortonfo/.ivy2/cache/org.mortbay.jetty/jetty/jars/jetty-6.1.26.jar:/homes/hortonfo/.ivy2/cache/org.mortbay.jetty/jetty-util/jars/jetty-util-6.1.26.jar:/homes/hortonfo/.ivy2/cache/org.mortbay.jetty/servlet-api/jars/servlet-api-2.5-20081211.jar:/homes/hortonfo/.ivy2/cache/asm/asm/jars/asm-3.2.jar:/homes/hortonfo/.ivy2/cache/com.sun.jersey/jersey-core/bundles/jersey-core-1.8.jar:/homes/hortonfo/.ivy2/cache/com.sun.jersey/jersey-json/bundles/jersey-json-1.8.jar:/homes/hortonfo/.ivy2/cache/com.sun.jersey/jersey-server/bundles/jersey-server-1.8.jar:/homes/hortonfo/.ivy2/cache/tomcat/jasper-runtime/jars/jasper-runtime-5.5.12.jar:/homes/hortonfo/.ivy2/cache/tomcat/jasper-compiler/jars/jasper-compiler-5.5.12.jar:/homes/hortonfo/.ivy2/cache/commons-el/commons-el/jars/commons-el-1.0.jar:/homes/hortonfo/.ivy2/cache/commons-configuration/commons-configuration/jars/commons-configuration-1.6.jar:/homes/hortonfo/.ivy2/cache/commons-collections/commons-collections/jars/commons-collections-3.2.1.jar:/homes/hortonfo/.ivy2/cache/commons-lang/commons-lang/jars/commons-lang-2.4.jar:/homes/hortonfo/.ivy2/cache/commons-logging/commons-logging/jars/commons-logging-1.1.1.jar:/homes/hortonfo/.ivy2/cache/commons-digester/commons-digester/jars/commons-digester-1.8.jar:/homes/hortonfo/.ivy2/cache/commons-beanutils/commons-beanutils/jars/commons-beanutils-1.7.0.jar:/homes/hortonfo/.ivy2/cache/commons-beanutils/commons-beanutils-core/jars/commons-beanutils-core-1.8.0.jar:/homes/hortonfo/.ivy2/cache/org.apache.commons/commons-math/jars/commons-math-2.1.jar:/homes/hortonfo/.ivy2/cache/junit/junit/jars/junit-4.5.jar:/homes/hortonfo/.ivy2/cache/commons-logging/commons-logging-api/jars/commons-logging-api-1.0.4.jar:/homes/hortonfo/.ivy2/cache/org.slf4j/slf4j-api/jars/slf4j-api-1.4.3.jar:/homes/hortonfo/.ivy2/cache/org.eclipse.jdt/core/jars/core-3.1.1.jar:/homes/hortonfo/.ivy2/cache/oro/oro/jars/oro-2.0.8.jar:/homes/hortonfo/.ivy2/cache/org.slf4j/slf4j-log4j12/jars/slf4j-log4j12-1.4.3.jar:/homes/hortonfo/.ivy2/cache/org.codehaus.jackson/jackson-mapper-asl/jars/jackson-mapper-asl-1.8.8.jar:/homes/hortonfo/.ivy2/cache/org.codehaus.jackson/jackson-core-asl/jars/jackson-core-asl-1.8.8.jar:/homes/hortonfo/.ivy2/cache/org.mockito/mockito-all/jars/mockito-all-1.8.5.jar:/homes/hortonfo/.ivy2/cache/com.jcraft/jsch/jars/jsch-0.1.42.jar:/homes/hortonfo/.ivy2/cache/org.aspectj/aspectjrt/jars/aspectjrt-1.6.11.jar:/homes/hortonfo/.ivy2/cache/org.aspectj/aspectjtools/jars/aspectjtools-1.6.11.jar:/homes/hortonfo/.ivy2/cache/org.vafer/jdeb/maven-plugins/jdeb-0.8.jar:/grid/0/dev/mfoley/hadoop-1.2/conf:/homes/hortonfo/.ivy2/cache/commons-logging/commons-logging/jars/commons-logging-1.0.4.jar:/homes/hortonfo/.ivy2/cache/jdiff/jdiff/jars/jdiff-1.0.9.jar:/homes/hortonfo/.ivy2/cache/xerces/xerces/jars/xerces-1.4.4.jar:/homes/hortonfo/tools/apache-ant-1.8.2/lib/ant-launcher.jar:/homes/hortonfo/tools/apache-ant-1.8.2/lib/ant-apache-bcel.jar:/homes/hortonfo/tools/apache-ant-1.8.2/lib/ant-apache-log4j.jar:/homes/hortonfo/tools/apache-ant-1.8.2/lib/ant-jsch.jar:/homes/hortonfo/tools/apache-ant-1.8.2/lib/ant-apache-regexp.jar:/homes/hortonfo/tools/apache-ant-1.8.2/lib/ant-antlr.jar:/homes/hortonfo/tools/apache-ant-1.8.2/lib/ant-apache-bsf.jar:/homes/hortonfo/tools/apache-ant-1.8.2/lib/ant-jdepend.jar:/homes/hortonfo/tools/apache-ant-1.8.2/lib/ant-jmf.jar:/homes/hortonfo/tools/apache-ant-1.8.2/lib/ant-testutil.jar:/homes/hortonfo/tools/apache-ant-1.8.2/lib/ant-netrexx.jar:/homes/hortonfo/tools/apache-ant-1.8.2/lib/ant-jai.jar:/homes/hortonfo/tools/apache-ant-1.8.2/lib/ant-apache-oro.jar:/homes/hortonfo/tools/apache-ant-1.8.2/lib/ant-commons-logging.jar:/homes/hortonfo/tools/apache-ant-1.8.2/lib/ant-commons-net.jar:/homes/hortonfo/tools/apache-ant-1.8.2/lib/ant-apache-xalan2.jar:/homes/hortonfo/tools/apache-ant-1.8.2/lib/ant-javamail.jar:/homes/hortonfo/tools/apache-ant-1.8.2/lib/ant-swing.jar:/homes/hortonfo/tools/apache-ant-1.8.2/lib/ant-junit.jar:/homes/hortonfo/tools/apache-ant-1.8.2/lib/ant-junit4.jar:/homes/hortonfo/tools/apache-ant-1.8.2/lib/ant.jar:/homes/hortonfo/tools/apache-ant-1.8.2/lib/ant-apache-resolver.jar:/homes/hortonfo/tools/jdk1.6.0_u31_64bit/lib/tools.jar -sourcepath /grid/0/dev/mfoley/hadoop-1.2/src/core:/grid/0/dev/mfoley/hadoop-1.2/src/mapred:/grid/0/dev/mfoley/hadoop-1.2/src/tools -apidir /grid/0/dev/mfoley/hadoop-1.2/lib/jdiff -apiname hadoop 1.2.0 -->
  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. <doc>
  1788. <![CDATA[This class contains constants for configuration keys used
  1789. in the common code.]]>
  1790. </doc>
  1791. </class>
  1792. <!-- end class org.apache.hadoop.fs.CommonConfigurationKeys -->
  1793. <!-- start class org.apache.hadoop.fs.ContentSummary -->
  1794. <class name="ContentSummary" extends="java.lang.Object"
  1795. abstract="false"
  1796. static="false" final="false" visibility="public"
  1797. deprecated="not deprecated">
  1798. <implements name="org.apache.hadoop.io.Writable"/>
  1799. <constructor name="ContentSummary"
  1800. static="false" final="false" visibility="public"
  1801. deprecated="not deprecated">
  1802. <doc>
  1803. <![CDATA[Constructor]]>
  1804. </doc>
  1805. </constructor>
  1806. <constructor name="ContentSummary" type="long, long, long"
  1807. static="false" final="false" visibility="public"
  1808. deprecated="not deprecated">
  1809. <doc>
  1810. <![CDATA[Constructor]]>
  1811. </doc>
  1812. </constructor>
  1813. <constructor name="ContentSummary" type="long, long, long, long, long, long"
  1814. static="false" final="false" visibility="public"
  1815. deprecated="not deprecated">
  1816. <doc>
  1817. <![CDATA[Constructor]]>
  1818. </doc>
  1819. </constructor>
  1820. <method name="getLength" return="long"
  1821. abstract="false" native="false" synchronized="false"
  1822. static="false" final="false" visibility="public"
  1823. deprecated="not deprecated">
  1824. <doc>
  1825. <![CDATA[@return the length]]>
  1826. </doc>
  1827. </method>
  1828. <method name="getDirectoryCount" return="long"
  1829. abstract="false" native="false" synchronized="false"
  1830. static="false" final="false" visibility="public"
  1831. deprecated="not deprecated">
  1832. <doc>
  1833. <![CDATA[@return the directory count]]>
  1834. </doc>
  1835. </method>
  1836. <method name="getFileCount" return="long"
  1837. abstract="false" native="false" synchronized="false"
  1838. static="false" final="false" visibility="public"
  1839. deprecated="not deprecated">
  1840. <doc>
  1841. <![CDATA[@return the file count]]>
  1842. </doc>
  1843. </method>
  1844. <method name="getQuota" return="long"
  1845. abstract="false" native="false" synchronized="false"
  1846. static="false" final="false" visibility="public"
  1847. deprecated="not deprecated">
  1848. <doc>
  1849. <![CDATA[Return the directory quota]]>
  1850. </doc>
  1851. </method>
  1852. <method name="getSpaceConsumed" return="long"
  1853. abstract="false" native="false" synchronized="false"
  1854. static="false" final="false" visibility="public"
  1855. deprecated="not deprecated">
  1856. <doc>
  1857. <![CDATA[Retuns (disk) space consumed]]>
  1858. </doc>
  1859. </method>
  1860. <method name="getSpaceQuota" return="long"
  1861. abstract="false" native="false" synchronized="false"
  1862. static="false" final="false" visibility="public"
  1863. deprecated="not deprecated">
  1864. <doc>
  1865. <![CDATA[Returns (disk) space quota]]>
  1866. </doc>
  1867. </method>
  1868. <method name="write"
  1869. abstract="false" native="false" synchronized="false"
  1870. static="false" final="false" visibility="public"
  1871. deprecated="not deprecated">
  1872. <param name="out" type="java.io.DataOutput"/>
  1873. <exception name="IOException" type="java.io.IOException"/>
  1874. <doc>
  1875. <![CDATA[{@inheritDoc}]]>
  1876. </doc>
  1877. </method>
  1878. <method name="readFields"
  1879. abstract="false" native="false" synchronized="false"
  1880. static="false" final="false" visibility="public"
  1881. deprecated="not deprecated">
  1882. <param name="in" type="java.io.DataInput"/>
  1883. <exception name="IOException" type="java.io.IOException"/>
  1884. <doc>
  1885. <![CDATA[{@inheritDoc}]]>
  1886. </doc>
  1887. </method>
  1888. <method name="getHeader" return="java.lang.String"
  1889. abstract="false" native="false" synchronized="false"
  1890. static="true" final="false" visibility="public"
  1891. deprecated="not deprecated">
  1892. <param name="qOption" type="boolean"/>
  1893. <doc>
  1894. <![CDATA[Return the header of the output.
  1895. if qOption is false, output directory count, file count, and content size;
  1896. if qOption is true, output quota and remaining quota as well.
  1897. @param qOption a flag indicating if quota needs to be printed or not
  1898. @return the header of the output]]>
  1899. </doc>
  1900. </method>
  1901. <method name="toString" return="java.lang.String"
  1902. abstract="false" native="false" synchronized="false"
  1903. static="false" final="false" visibility="public"
  1904. deprecated="not deprecated">
  1905. <doc>
  1906. <![CDATA[{@inheritDoc}]]>
  1907. </doc>
  1908. </method>
  1909. <method name="toString" return="java.lang.String"
  1910. abstract="false" native="false" synchronized="false"
  1911. static="false" final="false" visibility="public"
  1912. deprecated="not deprecated">
  1913. <param name="qOption" type="boolean"/>
  1914. <doc>
  1915. <![CDATA[Return the string representation of the object in the output format.
  1916. if qOption is false, output directory count, file count, and content size;
  1917. if qOption is true, output quota and remaining quota as well.
  1918. @param qOption a flag indicating if quota needs to be printed or not
  1919. @return the string representation of the object]]>
  1920. </doc>
  1921. </method>
  1922. <doc>
  1923. <![CDATA[Store the summary of a content (a directory or a file).]]>
  1924. </doc>
  1925. </class>
  1926. <!-- end class org.apache.hadoop.fs.ContentSummary -->
  1927. <!-- start class org.apache.hadoop.fs.DF -->
  1928. <class name="DF" extends="org.apache.hadoop.util.Shell"
  1929. abstract="false"
  1930. static="false" final="false" visibility="public"
  1931. deprecated="not deprecated">
  1932. <constructor name="DF" type="java.io.File, org.apache.hadoop.conf.Configuration"
  1933. static="false" final="false" visibility="public"
  1934. deprecated="not deprecated">
  1935. <exception name="IOException" type="java.io.IOException"/>
  1936. </constructor>
  1937. <constructor name="DF" type="java.io.File, long"
  1938. static="false" final="false" visibility="public"
  1939. deprecated="not deprecated">
  1940. <exception name="IOException" type="java.io.IOException"/>
  1941. </constructor>
  1942. <method name="getDirPath" return="java.lang.String"
  1943. abstract="false" native="false" synchronized="false"
  1944. static="false" final="false" visibility="public"
  1945. deprecated="not deprecated">
  1946. <doc>
  1947. <![CDATA[@return the canonical path to the volume we're checking.]]>
  1948. </doc>
  1949. </method>
  1950. <method name="getFilesystem" return="java.lang.String"
  1951. abstract="false" native="false" synchronized="false"
  1952. static="false" final="false" visibility="public"
  1953. deprecated="not deprecated">
  1954. <exception name="IOException" type="java.io.IOException"/>
  1955. <doc>
  1956. <![CDATA[@return a string indicating which filesystem volume we're checking.]]>
  1957. </doc>
  1958. </method>
  1959. <method name="getCapacity" return="long"
  1960. abstract="false" native="false" synchronized="false"
  1961. static="false" final="false" visibility="public"
  1962. deprecated="not deprecated">
  1963. <doc>
  1964. <![CDATA[@return the capacity of the measured filesystem in bytes.]]>
  1965. </doc>
  1966. </method>
  1967. <method name="getUsed" return="long"
  1968. abstract="false" native="false" synchronized="false"
  1969. static="false" final="false" visibility="public"
  1970. deprecated="not deprecated">
  1971. <doc>
  1972. <![CDATA[@return the total used space on the filesystem in bytes.]]>
  1973. </doc>
  1974. </method>
  1975. <method name="getAvailable" return="long"
  1976. abstract="false" native="false" synchronized="false"
  1977. static="false" final="false" visibility="public"
  1978. deprecated="not deprecated">
  1979. <doc>
  1980. <![CDATA[@return the usable space remaining on the filesystem in bytes.]]>
  1981. </doc>
  1982. </method>
  1983. <method name="getPercentUsed" return="int"
  1984. abstract="false" native="false" synchronized="false"
  1985. static="false" final="false" visibility="public"
  1986. deprecated="not deprecated">
  1987. <doc>
  1988. <![CDATA[@return the amount of the volume full, as a percent.]]>
  1989. </doc>
  1990. </method>
  1991. <method name="getMount" return="java.lang.String"
  1992. abstract="false" native="false" synchronized="false"
  1993. static="false" final="false" visibility="public"
  1994. deprecated="not deprecated">
  1995. <exception name="IOException" type="java.io.IOException"/>
  1996. <doc>
  1997. <![CDATA[@return the filesystem mount point for the indicated volume]]>
  1998. </doc>
  1999. </method>
  2000. <method name="toString" return="java.lang.String"
  2001. abstract="false" native="false" synchronized="false"
  2002. static="false" final="false" visibility="public"
  2003. deprecated="not deprecated">
  2004. </method>
  2005. <method name="getExecString" return="java.lang.String[]"
  2006. abstract="false" native="false" synchronized="false"
  2007. static="false" final="false" visibility="protected"
  2008. deprecated="not deprecated">
  2009. </method>
  2010. <method name="parseExecResult"
  2011. abstract="false" native="false" synchronized="false"
  2012. static="false" final="false" visibility="protected"
  2013. deprecated="not deprecated">
  2014. <param name="lines" type="java.io.BufferedReader"/>
  2015. <exception name="IOException" type="java.io.IOException"/>
  2016. </method>
  2017. <method name="main"
  2018. abstract="false" native="false" synchronized="false"
  2019. static="true" final="false" visibility="public"
  2020. deprecated="not deprecated">
  2021. <param name="args" type="java.lang.String[]"/>
  2022. <exception name="Exception" type="java.lang.Exception"/>
  2023. </method>
  2024. <field name="DF_INTERVAL_DEFAULT" type="long"
  2025. transient="false" volatile="false"
  2026. static="true" final="true" visibility="public"
  2027. deprecated="not deprecated">
  2028. <doc>
  2029. <![CDATA[Default DF refresh interval.]]>
  2030. </doc>
  2031. </field>
  2032. <doc>
  2033. <![CDATA[Filesystem disk space usage statistics. Uses the unix 'df' program to get
  2034. mount points, and java.io.File for space utilization. Tested on Linux,
  2035. FreeBSD, Cygwin.]]>
  2036. </doc>
  2037. </class>
  2038. <!-- end class org.apache.hadoop.fs.DF -->
  2039. <!-- start class org.apache.hadoop.fs.DU -->
  2040. <class name="DU" extends="org.apache.hadoop.util.Shell"
  2041. abstract="false"
  2042. static="false" final="false" visibility="public"
  2043. deprecated="not deprecated">
  2044. <constructor name="DU" type="java.io.File, long"
  2045. static="false" final="false" visibility="public"
  2046. deprecated="not deprecated">
  2047. <exception name="IOException" type="java.io.IOException"/>
  2048. <doc>
  2049. <![CDATA[Keeps track of disk usage.
  2050. @param path the path to check disk usage in
  2051. @param interval refresh the disk usage at this interval
  2052. @throws IOException if we fail to refresh the disk usage]]>
  2053. </doc>
  2054. </constructor>
  2055. <constructor name="DU" type="java.io.File, org.apache.hadoop.conf.Configuration"
  2056. static="false" final="false" visibility="public"
  2057. deprecated="not deprecated">
  2058. <exception name="IOException" type="java.io.IOException"/>
  2059. <doc>
  2060. <![CDATA[Keeps track of disk usage.
  2061. @param path the path to check disk usage in
  2062. @param conf configuration object
  2063. @throws IOException if we fail to refresh the disk usage]]>
  2064. </doc>
  2065. </constructor>
  2066. <method name="decDfsUsed"
  2067. abstract="false" native="false" synchronized="false"
  2068. static="false" final="false" visibility="public"
  2069. deprecated="not deprecated">
  2070. <param name="value" type="long"/>
  2071. <doc>
  2072. <![CDATA[Decrease how much disk space we use.
  2073. @param value decrease by this value]]>
  2074. </doc>
  2075. </method>
  2076. <method name="incDfsUsed"
  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[Increase how much disk space we use.
  2083. @param value increase by this value]]>
  2084. </doc>
  2085. </method>
  2086. <method name="getUsed" return="long"
  2087. abstract="false" native="false" synchronized="false"
  2088. static="false" final="false" visibility="public"
  2089. deprecated="not deprecated">
  2090. <exception name="IOException" type="java.io.IOException"/>
  2091. <doc>
  2092. <![CDATA[@return disk space used
  2093. @throws IOException if the shell command fails]]>
  2094. </doc>
  2095. </method>
  2096. <method name="getDirPath" return="java.lang.String"
  2097. abstract="false" native="false" synchronized="false"
  2098. static="false" final="false" visibility="public"
  2099. deprecated="not deprecated">
  2100. <doc>
  2101. <![CDATA[@return the path of which we're keeping track of disk usage]]>
  2102. </doc>
  2103. </method>
  2104. <method name="start"
  2105. abstract="false" native="false" synchronized="false"
  2106. static="false" final="false" visibility="public"
  2107. deprecated="not deprecated">
  2108. <doc>
  2109. <![CDATA[Start the disk usage checking thread.]]>
  2110. </doc>
  2111. </method>
  2112. <method name="shutdown"
  2113. abstract="false" native="false" synchronized="false"
  2114. static="false" final="false" visibility="public"
  2115. deprecated="not deprecated">
  2116. <doc>
  2117. <![CDATA[Shut down the refreshing thread.]]>
  2118. </doc>
  2119. </method>
  2120. <method name="toString" return="java.lang.String"
  2121. abstract="false" native="false" synchronized="false"
  2122. static="false" final="false" visibility="public"
  2123. deprecated="not deprecated">
  2124. </method>
  2125. <method name="getExecString" return="java.lang.String[]"
  2126. abstract="false" native="false" synchronized="false"
  2127. static="false" final="false" visibility="protected"
  2128. deprecated="not deprecated">
  2129. </method>
  2130. <method name="parseExecResult"
  2131. abstract="false" native="false" synchronized="false"
  2132. static="false" final="false" visibility="protected"
  2133. deprecated="not deprecated">
  2134. <param name="lines" type="java.io.BufferedReader"/>
  2135. <exception name="IOException" type="java.io.IOException"/>
  2136. </method>
  2137. <method name="main"
  2138. abstract="false" native="false" synchronized="false"
  2139. static="true" final="false" visibility="public"
  2140. deprecated="not deprecated">
  2141. <param name="args" type="java.lang.String[]"/>
  2142. <exception name="Exception" type="java.lang.Exception"/>
  2143. </method>
  2144. <doc>
  2145. <![CDATA[Filesystem disk space usage statistics. Uses the unix 'du' program]]>
  2146. </doc>
  2147. </class>
  2148. <!-- end class org.apache.hadoop.fs.DU -->
  2149. <!-- start class org.apache.hadoop.fs.FileAlreadyExistsException -->
  2150. <class name="FileAlreadyExistsException" extends="java.io.IOException"
  2151. abstract="false"
  2152. static="false" final="false" visibility="public"
  2153. deprecated="not deprecated">
  2154. <constructor name="FileAlreadyExistsException"
  2155. static="false" final="false" visibility="public"
  2156. deprecated="not deprecated">
  2157. </constructor>
  2158. <constructor name="FileAlreadyExistsException" type="java.lang.String"
  2159. static="false" final="false" visibility="public"
  2160. deprecated="not deprecated">
  2161. </constructor>
  2162. <doc>
  2163. <![CDATA[Used when target file already exists for any operation and
  2164. is not configured to be overwritten.]]>
  2165. </doc>
  2166. </class>
  2167. <!-- end class org.apache.hadoop.fs.FileAlreadyExistsException -->
  2168. <!-- start class org.apache.hadoop.fs.FileChecksum -->
  2169. <class name="FileChecksum" extends="java.lang.Object"
  2170. abstract="true"
  2171. static="false" final="false" visibility="public"
  2172. deprecated="not deprecated">
  2173. <implements name="org.apache.hadoop.io.Writable"/>
  2174. <constructor name="FileChecksum"
  2175. static="false" final="false" visibility="public"
  2176. deprecated="not deprecated">
  2177. </constructor>
  2178. <method name="getAlgorithmName" return="java.lang.String"
  2179. abstract="true" native="false" synchronized="false"
  2180. static="false" final="false" visibility="public"
  2181. deprecated="not deprecated">
  2182. <doc>
  2183. <![CDATA[The checksum algorithm name]]>
  2184. </doc>
  2185. </method>
  2186. <method name="getLength" return="int"
  2187. abstract="true" native="false" synchronized="false"
  2188. static="false" final="false" visibility="public"
  2189. deprecated="not deprecated">
  2190. <doc>
  2191. <![CDATA[The length of the checksum in bytes]]>
  2192. </doc>
  2193. </method>
  2194. <method name="getBytes" return="byte[]"
  2195. abstract="true" native="false" synchronized="false"
  2196. static="false" final="false" visibility="public"
  2197. deprecated="not deprecated">
  2198. <doc>
  2199. <![CDATA[The value of the checksum in bytes]]>
  2200. </doc>
  2201. </method>
  2202. <method name="equals" return="boolean"
  2203. abstract="false" native="false" synchronized="false"
  2204. static="false" final="false" visibility="public"
  2205. deprecated="not deprecated">
  2206. <param name="other" type="java.lang.Object"/>
  2207. <doc>
  2208. <![CDATA[Return true if both the algorithms and the values are the same.]]>
  2209. </doc>
  2210. </method>
  2211. <method name="hashCode" return="int"
  2212. abstract="false" native="false" synchronized="false"
  2213. static="false" final="false" visibility="public"
  2214. deprecated="not deprecated">
  2215. <doc>
  2216. <![CDATA[{@inheritDoc}]]>
  2217. </doc>
  2218. </method>
  2219. <doc>
  2220. <![CDATA[An abstract class representing file checksums for files.]]>
  2221. </doc>
  2222. </class>
  2223. <!-- end class org.apache.hadoop.fs.FileChecksum -->
  2224. <!-- start class org.apache.hadoop.fs.FileStatus -->
  2225. <class name="FileStatus" extends="java.lang.Object"
  2226. abstract="false"
  2227. static="false" final="false" visibility="public"
  2228. deprecated="not deprecated">
  2229. <implements name="org.apache.hadoop.io.Writable"/>
  2230. <implements name="java.lang.Comparable"/>
  2231. <constructor name="FileStatus"
  2232. static="false" final="false" visibility="public"
  2233. deprecated="not deprecated">
  2234. </constructor>
  2235. <constructor name="FileStatus" type="long, boolean, int, long, long, org.apache.hadoop.fs.Path"
  2236. static="false" final="false" visibility="public"
  2237. deprecated="not deprecated">
  2238. </constructor>
  2239. <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"
  2240. static="false" final="false" visibility="public"
  2241. deprecated="not deprecated">
  2242. </constructor>
  2243. <method name="getLen" return="long"
  2244. abstract="false" native="false" synchronized="false"
  2245. static="false" final="false" visibility="public"
  2246. deprecated="not deprecated">
  2247. </method>
  2248. <method name="isDir" return="boolean"
  2249. abstract="false" native="false" synchronized="false"
  2250. static="false" final="false" visibility="public"
  2251. deprecated="not deprecated">
  2252. <doc>
  2253. <![CDATA[Is this a directory?
  2254. @return true if this is a directory]]>
  2255. </doc>
  2256. </method>
  2257. <method name="getBlockSize" return="long"
  2258. abstract="false" native="false" synchronized="false"
  2259. static="false" final="false" visibility="public"
  2260. deprecated="not deprecated">
  2261. <doc>
  2262. <![CDATA[Get the block size of the file.
  2263. @return the number of bytes]]>
  2264. </doc>
  2265. </method>
  2266. <method name="getReplication" return="short"
  2267. abstract="false" native="false" synchronized="false"
  2268. static="false" final="false" visibility="public"
  2269. deprecated="not deprecated">
  2270. <doc>
  2271. <![CDATA[Get the replication factor of a file.
  2272. @return the replication factor of a file.]]>
  2273. </doc>
  2274. </method>
  2275. <method name="getModificationTime" return="long"
  2276. abstract="false" native="false" synchronized="false"
  2277. static="false" final="false" visibility="public"
  2278. deprecated="not deprecated">
  2279. <doc>
  2280. <![CDATA[Get the modification time of the file.
  2281. @return the modification time of file in milliseconds since January 1, 1970 UTC.]]>
  2282. </doc>
  2283. </method>
  2284. <method name="getAccessTime" return="long"
  2285. abstract="false" native="false" synchronized="false"
  2286. static="false" final="false" visibility="public"
  2287. deprecated="not deprecated">
  2288. <doc>
  2289. <![CDATA[Get the access time of the file.
  2290. @return the access time of file in milliseconds since January 1, 1970 UTC.]]>
  2291. </doc>
  2292. </method>
  2293. <method name="getPermission" return="org.apache.hadoop.fs.permission.FsPermission"
  2294. abstract="false" native="false" synchronized="false"
  2295. static="false" final="false" visibility="public"
  2296. deprecated="not deprecated">
  2297. <doc>
  2298. <![CDATA[Get FsPermission associated with the file.
  2299. @return permssion. If a filesystem does not have a notion of permissions
  2300. or if permissions could not be determined, then default
  2301. permissions equivalent of "rwxrwxrwx" is returned.]]>
  2302. </doc>
  2303. </method>
  2304. <method name="getOwner" return="java.lang.String"
  2305. abstract="false" native="false" synchronized="false"
  2306. static="false" final="false" visibility="public"
  2307. deprecated="not deprecated">
  2308. <doc>
  2309. <![CDATA[Get the owner of the file.
  2310. @return owner of the file. The string could be empty if there is no
  2311. notion of owner of a file in a filesystem or if it could not
  2312. be determined (rare).]]>
  2313. </doc>
  2314. </method>
  2315. <method name="getGroup" return="java.lang.String"
  2316. abstract="false" native="false" synchronized="false"
  2317. static="false" final="false" visibility="public"
  2318. deprecated="not deprecated">
  2319. <doc>
  2320. <![CDATA[Get the group associated with the file.
  2321. @return group for the file. The string could be empty if there is no
  2322. notion of group of a file in a filesystem or if it could not
  2323. be determined (rare).]]>
  2324. </doc>
  2325. </method>
  2326. <method name="getPath" return="org.apache.hadoop.fs.Path"
  2327. abstract="false" native="false" synchronized="false"
  2328. static="false" final="false" visibility="public"
  2329. deprecated="not deprecated">
  2330. </method>
  2331. <method name="setPermission"
  2332. abstract="false" native="false" synchronized="false"
  2333. static="false" final="false" visibility="protected"
  2334. deprecated="not deprecated">
  2335. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  2336. <doc>
  2337. <![CDATA[Sets permission.
  2338. @param permission if permission is null, default value is set]]>
  2339. </doc>
  2340. </method>
  2341. <method name="setOwner"
  2342. abstract="false" native="false" synchronized="false"
  2343. static="false" final="false" visibility="protected"
  2344. deprecated="not deprecated">
  2345. <param name="owner" type="java.lang.String"/>
  2346. <doc>
  2347. <![CDATA[Sets owner.
  2348. @param owner if it is null, default value is set]]>
  2349. </doc>
  2350. </method>
  2351. <method name="setGroup"
  2352. abstract="false" native="false" synchronized="false"
  2353. static="false" final="false" visibility="protected"
  2354. deprecated="not deprecated">
  2355. <param name="group" type="java.lang.String"/>
  2356. <doc>
  2357. <![CDATA[Sets group.
  2358. @param group if it is null, default value is set]]>
  2359. </doc>
  2360. </method>
  2361. <method name="write"
  2362. abstract="false" native="false" synchronized="false"
  2363. static="false" final="false" visibility="public"
  2364. deprecated="not deprecated">
  2365. <param name="out" type="java.io.DataOutput"/>
  2366. <exception name="IOException" type="java.io.IOException"/>
  2367. </method>
  2368. <method name="readFields"
  2369. abstract="false" native="false" synchronized="false"
  2370. static="false" final="false" visibility="public"
  2371. deprecated="not deprecated">
  2372. <param name="in" type="java.io.DataInput"/>
  2373. <exception name="IOException" type="java.io.IOException"/>
  2374. </method>
  2375. <method name="compareTo" return="int"
  2376. abstract="false" native="false" synchronized="false"
  2377. static="false" final="false" visibility="public"
  2378. deprecated="not deprecated">
  2379. <param name="o" type="java.lang.Object"/>
  2380. <doc>
  2381. <![CDATA[Compare this object to another object
  2382. @param o the object to be compared.
  2383. @return a negative integer, zero, or a positive integer as this object
  2384. is less than, equal to, or greater than the specified object.
  2385. @throws ClassCastException if the specified object's is not of
  2386. type FileStatus]]>
  2387. </doc>
  2388. </method>
  2389. <method name="equals" return="boolean"
  2390. abstract="false" native="false" synchronized="false"
  2391. static="false" final="false" visibility="public"
  2392. deprecated="not deprecated">
  2393. <param name="o" type="java.lang.Object"/>
  2394. <doc>
  2395. <![CDATA[Compare if this object is equal to another object
  2396. @param o the object to be compared.
  2397. @return true if two file status has the same path name; false if not.]]>
  2398. </doc>
  2399. </method>
  2400. <method name="hashCode" return="int"
  2401. abstract="false" native="false" synchronized="false"
  2402. static="false" final="false" visibility="public"
  2403. deprecated="not deprecated">
  2404. <doc>
  2405. <![CDATA[Returns a hash code value for the object, which is defined as
  2406. the hash code of the path name.
  2407. @return a hash code value for the path name.]]>
  2408. </doc>
  2409. </method>
  2410. <doc>
  2411. <![CDATA[Interface that represents the client side information for a file.]]>
  2412. </doc>
  2413. </class>
  2414. <!-- end class org.apache.hadoop.fs.FileStatus -->
  2415. <!-- start class org.apache.hadoop.fs.FileSystem -->
  2416. <class name="FileSystem" extends="org.apache.hadoop.conf.Configured"
  2417. abstract="true"
  2418. static="false" final="false" visibility="public"
  2419. deprecated="not deprecated">
  2420. <implements name="java.io.Closeable"/>
  2421. <constructor name="FileSystem"
  2422. static="false" final="false" visibility="protected"
  2423. deprecated="not deprecated">
  2424. </constructor>
  2425. <method name="addFileSystemForTesting"
  2426. abstract="false" native="false" synchronized="false"
  2427. static="true" final="false" visibility="public"
  2428. deprecated="not deprecated">
  2429. <param name="uri" type="java.net.URI"/>
  2430. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  2431. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  2432. <exception name="IOException" type="java.io.IOException"/>
  2433. <doc>
  2434. <![CDATA[This method adds a file system for testing so that we can find it later.
  2435. It is only for testing.
  2436. @param uri the uri to store it under
  2437. @param conf the configuration to store it under
  2438. @param fs the file system to store
  2439. @throws IOException]]>
  2440. </doc>
  2441. </method>
  2442. <method name="get" return="org.apache.hadoop.fs.FileSystem"
  2443. abstract="false" native="false" synchronized="false"
  2444. static="true" final="false" visibility="public"
  2445. deprecated="not deprecated">
  2446. <param name="uri" type="java.net.URI"/>
  2447. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  2448. <param name="user" type="java.lang.String"/>
  2449. <exception name="IOException" type="java.io.IOException"/>
  2450. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  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="conf" type="org.apache.hadoop.conf.Configuration"/>
  2457. <exception name="IOException" type="java.io.IOException"/>
  2458. <doc>
  2459. <![CDATA[Returns the configured filesystem implementation.]]>
  2460. </doc>
  2461. </method>
  2462. <method name="getDefaultUri" return="java.net.URI"
  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. <doc>
  2468. <![CDATA[Get the default filesystem URI from a configuration.
  2469. @param conf the configuration to access
  2470. @return the uri of the default filesystem]]>
  2471. </doc>
  2472. </method>
  2473. <method name="setDefaultUri"
  2474. abstract="false" native="false" synchronized="false"
  2475. static="true" final="false" visibility="public"
  2476. deprecated="not deprecated">
  2477. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  2478. <param name="uri" type="java.net.URI"/>
  2479. <doc>
  2480. <![CDATA[Set the default filesystem URI in a configuration.
  2481. @param conf the configuration to alter
  2482. @param uri the new default filesystem uri]]>
  2483. </doc>
  2484. </method>
  2485. <method name="setDefaultUri"
  2486. abstract="false" native="false" synchronized="false"
  2487. static="true" final="false" visibility="public"
  2488. deprecated="not deprecated">
  2489. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  2490. <param name="uri" type="java.lang.String"/>
  2491. <doc>
  2492. <![CDATA[Set the default filesystem URI in a configuration.
  2493. @param conf the configuration to alter
  2494. @param uri the new default filesystem uri]]>
  2495. </doc>
  2496. </method>
  2497. <method name="initialize"
  2498. abstract="false" native="false" synchronized="false"
  2499. static="false" final="false" visibility="public"
  2500. deprecated="not deprecated">
  2501. <param name="name" type="java.net.URI"/>
  2502. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  2503. <exception name="IOException" type="java.io.IOException"/>
  2504. <doc>
  2505. <![CDATA[Called after a new FileSystem instance is constructed.
  2506. @param name a uri whose authority section names the host, port, etc.
  2507. for this FileSystem
  2508. @param conf the configuration]]>
  2509. </doc>
  2510. </method>
  2511. <method name="getUri" return="java.net.URI"
  2512. abstract="true" native="false" synchronized="false"
  2513. static="false" final="false" visibility="public"
  2514. deprecated="not deprecated">
  2515. <doc>
  2516. <![CDATA[Returns a URI whose scheme and authority identify this FileSystem.]]>
  2517. </doc>
  2518. </method>
  2519. <method name="getCanonicalUri" return="java.net.URI"
  2520. abstract="false" native="false" synchronized="false"
  2521. static="false" final="false" visibility="protected"
  2522. deprecated="not deprecated">
  2523. <doc>
  2524. <![CDATA[Resolve the uri's hostname and add the default port if not in the uri
  2525. @return URI
  2526. @see NetUtils#getCanonicalUri(URI, int)]]>
  2527. </doc>
  2528. </method>
  2529. <method name="getDefaultPort" return="int"
  2530. abstract="false" native="false" synchronized="false"
  2531. static="false" final="false" visibility="protected"
  2532. deprecated="not deprecated">
  2533. <doc>
  2534. <![CDATA[Get the default port for this file system.
  2535. @return the default port or 0 if there isn't one]]>
  2536. </doc>
  2537. </method>
  2538. <method name="getCanonicalServiceName" return="java.lang.String"
  2539. abstract="false" native="false" synchronized="false"
  2540. static="false" final="false" visibility="public"
  2541. deprecated="not deprecated">
  2542. <doc>
  2543. <![CDATA[Get a canonical service name for this file system. The token cache is
  2544. the only user of this value, and uses it to lookup this filesystem's
  2545. service tokens. The token cache will not attempt to acquire tokens if the
  2546. service is null.
  2547. @return a service string that uniquely identifies this file system, null
  2548. if the filesystem does not implement tokens
  2549. @see SecurityUtil#buildDTServiceName(URI, int)]]>
  2550. </doc>
  2551. </method>
  2552. <method name="getName" return="java.lang.String"
  2553. abstract="false" native="false" synchronized="false"
  2554. static="false" final="false" visibility="public"
  2555. deprecated="call #getUri() instead.">
  2556. <doc>
  2557. <![CDATA[@deprecated call #getUri() instead.]]>
  2558. </doc>
  2559. </method>
  2560. <method name="getNamed" return="org.apache.hadoop.fs.FileSystem"
  2561. abstract="false" native="false" synchronized="false"
  2562. static="true" final="false" visibility="public"
  2563. deprecated="call #get(URI,Configuration) instead.">
  2564. <param name="name" type="java.lang.String"/>
  2565. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  2566. <exception name="IOException" type="java.io.IOException"/>
  2567. <doc>
  2568. <![CDATA[@deprecated call #get(URI,Configuration) instead.]]>
  2569. </doc>
  2570. </method>
  2571. <method name="getLocal" return="org.apache.hadoop.fs.LocalFileSystem"
  2572. abstract="false" native="false" synchronized="false"
  2573. static="true" final="false" visibility="public"
  2574. deprecated="not deprecated">
  2575. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  2576. <exception name="IOException" type="java.io.IOException"/>
  2577. <doc>
  2578. <![CDATA[Get the local file syste
  2579. @param conf the configuration to configure the file system with
  2580. @return a LocalFileSystem]]>
  2581. </doc>
  2582. </method>
  2583. <method name="get" return="org.apache.hadoop.fs.FileSystem"
  2584. abstract="false" native="false" synchronized="false"
  2585. static="true" final="false" visibility="public"
  2586. deprecated="not deprecated">
  2587. <param name="uri" type="java.net.URI"/>
  2588. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  2589. <exception name="IOException" type="java.io.IOException"/>
  2590. <doc>
  2591. <![CDATA[Returns the FileSystem for this URI's scheme and authority. The scheme
  2592. of the URI determines a configuration property name,
  2593. <tt>fs.<i>scheme</i>.class</tt> whose value names the FileSystem class.
  2594. The entire URI is passed to the FileSystem instance's initialize method.]]>
  2595. </doc>
  2596. </method>
  2597. <method name="closeAll"
  2598. abstract="false" native="false" synchronized="false"
  2599. static="true" final="false" visibility="public"
  2600. deprecated="not deprecated">
  2601. <exception name="IOException" type="java.io.IOException"/>
  2602. <doc>
  2603. <![CDATA[Close all cached filesystems. Be sure those filesystems are not
  2604. used anymore.
  2605. @throws IOException]]>
  2606. </doc>
  2607. </method>
  2608. <method name="closeAllForUGI"
  2609. abstract="false" native="false" synchronized="false"
  2610. static="true" final="false" visibility="public"
  2611. deprecated="not deprecated">
  2612. <param name="ugi" type="org.apache.hadoop.security.UserGroupInformation"/>
  2613. <exception name="IOException" type="java.io.IOException"/>
  2614. <doc>
  2615. <![CDATA[Close all cached filesystems for a given UGI. Be sure those filesystems
  2616. are not used anymore.
  2617. @param ugi
  2618. @throws IOException]]>
  2619. </doc>
  2620. </method>
  2621. <method name="makeQualified" return="org.apache.hadoop.fs.Path"
  2622. abstract="false" native="false" synchronized="false"
  2623. static="false" final="false" visibility="public"
  2624. deprecated="not deprecated">
  2625. <param name="path" type="org.apache.hadoop.fs.Path"/>
  2626. <doc>
  2627. <![CDATA[Make sure that a path specifies a FileSystem.]]>
  2628. </doc>
  2629. </method>
  2630. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  2631. abstract="false" native="false" synchronized="false"
  2632. static="true" final="false" visibility="public"
  2633. deprecated="not deprecated">
  2634. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  2635. <param name="file" type="org.apache.hadoop.fs.Path"/>
  2636. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  2637. <exception name="IOException" type="java.io.IOException"/>
  2638. <doc>
  2639. <![CDATA[create a file with the provided permission
  2640. The permission of the file is set to be the provided permission as in
  2641. setPermission, not permission&~umask
  2642. It is implemented using two RPCs. It is understood that it is inefficient,
  2643. but the implementation is thread-safe. The other option is to change the
  2644. value of umask in configuration to be 0, but it is not thread-safe.
  2645. @param fs file system handle
  2646. @param file the name of the file to be created
  2647. @param permission the permission of the file
  2648. @return an output stream
  2649. @throws IOException]]>
  2650. </doc>
  2651. </method>
  2652. <method name="mkdirs" return="boolean"
  2653. abstract="false" native="false" synchronized="false"
  2654. static="true" final="false" visibility="public"
  2655. deprecated="not deprecated">
  2656. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  2657. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  2658. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  2659. <exception name="IOException" type="java.io.IOException"/>
  2660. <doc>
  2661. <![CDATA[create a directory with the provided permission
  2662. The permission of the directory is set to be the provided permission as in
  2663. setPermission, not permission&~umask
  2664. @see #create(FileSystem, Path, FsPermission)
  2665. @param fs file system handle
  2666. @param dir the name of the directory to be created
  2667. @param permission the permission of the directory
  2668. @return true if the directory creation succeeds; false otherwise
  2669. @throws IOException]]>
  2670. </doc>
  2671. </method>
  2672. <method name="checkPath"
  2673. abstract="false" native="false" synchronized="false"
  2674. static="false" final="false" visibility="protected"
  2675. deprecated="not deprecated">
  2676. <param name="path" type="org.apache.hadoop.fs.Path"/>
  2677. <doc>
  2678. <![CDATA[Check that a Path belongs to this FileSystem.]]>
  2679. </doc>
  2680. </method>
  2681. <method name="getFileBlockLocations" return="org.apache.hadoop.fs.BlockLocation[]"
  2682. abstract="false" native="false" synchronized="false"
  2683. static="false" final="false" visibility="public"
  2684. deprecated="not deprecated">
  2685. <param name="file" type="org.apache.hadoop.fs.FileStatus"/>
  2686. <param name="start" type="long"/>
  2687. <param name="len" type="long"/>
  2688. <exception name="IOException" type="java.io.IOException"/>
  2689. <doc>
  2690. <![CDATA[Return an array containing hostnames, offset and size of
  2691. portions of the given file. For a nonexistent
  2692. file or regions, null will be returned.
  2693. This call is most helpful with DFS, where it returns
  2694. hostnames of machines that contain the given file.
  2695. The FileSystem will simply return an elt containing 'localhost'.]]>
  2696. </doc>
  2697. </method>
  2698. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  2699. abstract="true" native="false" synchronized="false"
  2700. static="false" final="false" visibility="public"
  2701. deprecated="not deprecated">
  2702. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2703. <param name="bufferSize" type="int"/>
  2704. <exception name="IOException" type="java.io.IOException"/>
  2705. <doc>
  2706. <![CDATA[Opens an FSDataInputStream at the indicated Path.
  2707. @param f the file name to open
  2708. @param bufferSize the size of the buffer to be used.]]>
  2709. </doc>
  2710. </method>
  2711. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  2712. abstract="false" native="false" synchronized="false"
  2713. static="false" final="false" visibility="public"
  2714. deprecated="not deprecated">
  2715. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2716. <exception name="IOException" type="java.io.IOException"/>
  2717. <doc>
  2718. <![CDATA[Opens an FSDataInputStream at the indicated Path.
  2719. @param f the file to open]]>
  2720. </doc>
  2721. </method>
  2722. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  2723. abstract="false" native="false" synchronized="false"
  2724. static="false" final="false" visibility="public"
  2725. deprecated="not deprecated">
  2726. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2727. <exception name="IOException" type="java.io.IOException"/>
  2728. <doc>
  2729. <![CDATA[Opens an FSDataOutputStream at the indicated Path.
  2730. Files are overwritten by default.]]>
  2731. </doc>
  2732. </method>
  2733. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  2734. abstract="false" native="false" synchronized="false"
  2735. static="false" final="false" visibility="public"
  2736. deprecated="not deprecated">
  2737. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2738. <param name="overwrite" type="boolean"/>
  2739. <exception name="IOException" type="java.io.IOException"/>
  2740. <doc>
  2741. <![CDATA[Opens an FSDataOutputStream at the indicated Path.]]>
  2742. </doc>
  2743. </method>
  2744. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  2745. abstract="false" native="false" synchronized="false"
  2746. static="false" final="false" visibility="public"
  2747. deprecated="not deprecated">
  2748. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2749. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  2750. <exception name="IOException" type="java.io.IOException"/>
  2751. <doc>
  2752. <![CDATA[Create an FSDataOutputStream at the indicated Path with write-progress
  2753. reporting.
  2754. Files are overwritten by default.]]>
  2755. </doc>
  2756. </method>
  2757. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  2758. abstract="false" native="false" synchronized="false"
  2759. static="false" final="false" visibility="public"
  2760. deprecated="not deprecated">
  2761. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2762. <param name="replication" type="short"/>
  2763. <exception name="IOException" type="java.io.IOException"/>
  2764. <doc>
  2765. <![CDATA[Opens an FSDataOutputStream at the indicated Path.
  2766. Files are overwritten by default.]]>
  2767. </doc>
  2768. </method>
  2769. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  2770. abstract="false" native="false" synchronized="false"
  2771. static="false" final="false" visibility="public"
  2772. deprecated="not deprecated">
  2773. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2774. <param name="replication" type="short"/>
  2775. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  2776. <exception name="IOException" type="java.io.IOException"/>
  2777. <doc>
  2778. <![CDATA[Opens an FSDataOutputStream at the indicated Path with write-progress
  2779. reporting.
  2780. Files are overwritten by default.]]>
  2781. </doc>
  2782. </method>
  2783. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  2784. abstract="false" native="false" synchronized="false"
  2785. static="false" final="false" visibility="public"
  2786. deprecated="not deprecated">
  2787. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2788. <param name="overwrite" type="boolean"/>
  2789. <param name="bufferSize" type="int"/>
  2790. <exception name="IOException" type="java.io.IOException"/>
  2791. <doc>
  2792. <![CDATA[Opens an FSDataOutputStream at the indicated Path.
  2793. @param f the file name to open
  2794. @param overwrite if a file with this name already exists, then if true,
  2795. the file will be overwritten, and if false an error will be thrown.
  2796. @param bufferSize the size of the buffer to be used.]]>
  2797. </doc>
  2798. </method>
  2799. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  2800. abstract="false" native="false" synchronized="false"
  2801. static="false" final="false" visibility="public"
  2802. deprecated="not deprecated">
  2803. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2804. <param name="overwrite" type="boolean"/>
  2805. <param name="bufferSize" type="int"/>
  2806. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  2807. <exception name="IOException" type="java.io.IOException"/>
  2808. <doc>
  2809. <![CDATA[Opens an FSDataOutputStream at the indicated Path with write-progress
  2810. reporting.
  2811. @param f the file name to open
  2812. @param overwrite if a file with this name already exists, then if true,
  2813. the file will be overwritten, and if false an error will be thrown.
  2814. @param bufferSize the size of the buffer to be used.]]>
  2815. </doc>
  2816. </method>
  2817. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  2818. abstract="false" native="false" synchronized="false"
  2819. static="false" final="false" visibility="public"
  2820. deprecated="not deprecated">
  2821. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2822. <param name="overwrite" type="boolean"/>
  2823. <param name="bufferSize" type="int"/>
  2824. <param name="replication" type="short"/>
  2825. <param name="blockSize" type="long"/>
  2826. <exception name="IOException" type="java.io.IOException"/>
  2827. <doc>
  2828. <![CDATA[Opens an FSDataOutputStream at the indicated Path.
  2829. @param f the file name to open
  2830. @param overwrite if a file with this name already exists, then if true,
  2831. the file will be overwritten, and if false an error will be thrown.
  2832. @param bufferSize the size of the buffer to be used.
  2833. @param replication required block replication for the file.]]>
  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. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  2846. <exception name="IOException" type="java.io.IOException"/>
  2847. <doc>
  2848. <![CDATA[Opens an FSDataOutputStream at the indicated Path with write-progress
  2849. reporting.
  2850. @param f the file name to open
  2851. @param overwrite if a file with this name already exists, then if true,
  2852. the file will be overwritten, and if false an error will be thrown.
  2853. @param bufferSize the size of the buffer to be used.
  2854. @param replication required block replication for the file.]]>
  2855. </doc>
  2856. </method>
  2857. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  2858. abstract="true" native="false" synchronized="false"
  2859. static="false" final="false" visibility="public"
  2860. deprecated="not deprecated">
  2861. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2862. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  2863. <param name="overwrite" type="boolean"/>
  2864. <param name="bufferSize" type="int"/>
  2865. <param name="replication" type="short"/>
  2866. <param name="blockSize" type="long"/>
  2867. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  2868. <exception name="IOException" type="java.io.IOException"/>
  2869. <doc>
  2870. <![CDATA[Opens an FSDataOutputStream at the indicated Path with write-progress
  2871. reporting.
  2872. @param f the file name to open
  2873. @param permission
  2874. @param overwrite if a file with this name already exists, then if true,
  2875. the file will be overwritten, and if false an error will be thrown.
  2876. @param bufferSize the size of the buffer to be used.
  2877. @param replication required block replication for the file.
  2878. @param blockSize
  2879. @param progress
  2880. @throws IOException
  2881. @see #setPermission(Path, FsPermission)]]>
  2882. </doc>
  2883. </method>
  2884. <method name="createNonRecursive" return="org.apache.hadoop.fs.FSDataOutputStream"
  2885. abstract="false" native="false" synchronized="false"
  2886. static="false" final="false" visibility="public"
  2887. deprecated="API only for 0.20-append">
  2888. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2889. <param name="overwrite" type="boolean"/>
  2890. <param name="bufferSize" type="int"/>
  2891. <param name="replication" type="short"/>
  2892. <param name="blockSize" type="long"/>
  2893. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  2894. <exception name="IOException" type="java.io.IOException"/>
  2895. <doc>
  2896. <![CDATA[Opens an FSDataOutputStream at the indicated Path with write-progress
  2897. reporting. Same as create(), except fails if parent directory doesn't
  2898. already exist.
  2899. @param f the file name to open
  2900. @param overwrite if a file with this name already exists, then if true,
  2901. the file will be overwritten, and if false an error will be thrown.
  2902. @param bufferSize the size of the buffer to be used.
  2903. @param replication required block replication for the file.
  2904. @param blockSize
  2905. @param progress
  2906. @throws IOException
  2907. @see #setPermission(Path, FsPermission)
  2908. @deprecated API only for 0.20-append]]>
  2909. </doc>
  2910. </method>
  2911. <method name="createNonRecursive" return="org.apache.hadoop.fs.FSDataOutputStream"
  2912. abstract="false" native="false" synchronized="false"
  2913. static="false" final="false" visibility="public"
  2914. deprecated="API only for 0.20-append">
  2915. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2916. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  2917. <param name="overwrite" type="boolean"/>
  2918. <param name="bufferSize" type="int"/>
  2919. <param name="replication" type="short"/>
  2920. <param name="blockSize" type="long"/>
  2921. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  2922. <exception name="IOException" type="java.io.IOException"/>
  2923. <doc>
  2924. <![CDATA[Opens an FSDataOutputStream at the indicated Path with write-progress
  2925. reporting. Same as create(), except fails if parent directory doesn't
  2926. already exist.
  2927. @param f the file name to open
  2928. @param permission
  2929. @param overwrite if a file with this name already exists, then if true,
  2930. the file will be overwritten, and if false an error will be thrown.
  2931. @param bufferSize the size of the buffer to be used.
  2932. @param replication required block replication for the file.
  2933. @param blockSize
  2934. @param progress
  2935. @throws IOException
  2936. @see #setPermission(Path, FsPermission)
  2937. @deprecated API only for 0.20-append]]>
  2938. </doc>
  2939. </method>
  2940. <method name="createNewFile" return="boolean"
  2941. abstract="false" native="false" synchronized="false"
  2942. static="false" final="false" visibility="public"
  2943. deprecated="not deprecated">
  2944. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2945. <exception name="IOException" type="java.io.IOException"/>
  2946. <doc>
  2947. <![CDATA[Creates the given Path as a brand-new zero-length file. If
  2948. create fails, or if it already existed, return false.]]>
  2949. </doc>
  2950. </method>
  2951. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  2952. abstract="false" native="false" synchronized="false"
  2953. static="false" final="false" visibility="public"
  2954. deprecated="not deprecated">
  2955. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2956. <exception name="IOException" type="java.io.IOException"/>
  2957. <doc>
  2958. <![CDATA[Append to an existing file (optional operation).
  2959. Same as append(f, getConf().getInt("io.file.buffer.size", 4096), null)
  2960. @param f the existing file to be appended.
  2961. @throws IOException]]>
  2962. </doc>
  2963. </method>
  2964. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  2965. abstract="false" native="false" synchronized="false"
  2966. static="false" final="false" visibility="public"
  2967. deprecated="not deprecated">
  2968. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2969. <param name="bufferSize" type="int"/>
  2970. <exception name="IOException" type="java.io.IOException"/>
  2971. <doc>
  2972. <![CDATA[Append to an existing file (optional operation).
  2973. Same as append(f, bufferSize, null).
  2974. @param f the existing file to be appended.
  2975. @param bufferSize the size of the buffer to be used.
  2976. @throws IOException]]>
  2977. </doc>
  2978. </method>
  2979. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  2980. abstract="true" native="false" synchronized="false"
  2981. static="false" final="false" visibility="public"
  2982. deprecated="not deprecated">
  2983. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2984. <param name="bufferSize" type="int"/>
  2985. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  2986. <exception name="IOException" type="java.io.IOException"/>
  2987. <doc>
  2988. <![CDATA[Append to an existing file (optional operation).
  2989. @param f the existing file to be appended.
  2990. @param bufferSize the size of the buffer to be used.
  2991. @param progress for reporting progress if it is not null.
  2992. @throws IOException]]>
  2993. </doc>
  2994. </method>
  2995. <method name="concat"
  2996. abstract="false" native="false" synchronized="false"
  2997. static="false" final="false" visibility="public"
  2998. deprecated="not deprecated">
  2999. <param name="trg" type="org.apache.hadoop.fs.Path"/>
  3000. <param name="srcs" type="org.apache.hadoop.fs.Path[]"/>
  3001. <exception name="IOException" type="java.io.IOException"/>
  3002. <doc>
  3003. <![CDATA[Concat existing files together.
  3004. @param trg the path to the target destination.
  3005. @param psrcs the paths to the sources to use for the concatenation.
  3006. @throws IOException]]>
  3007. </doc>
  3008. </method>
  3009. <method name="getReplication" return="short"
  3010. abstract="false" native="false" synchronized="false"
  3011. static="false" final="false" visibility="public"
  3012. deprecated="Use getFileStatus() instead">
  3013. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3014. <exception name="IOException" type="java.io.IOException"/>
  3015. <doc>
  3016. <![CDATA[Get replication.
  3017. @deprecated Use getFileStatus() instead
  3018. @param src file name
  3019. @return file replication
  3020. @throws IOException]]>
  3021. </doc>
  3022. </method>
  3023. <method name="setReplication" return="boolean"
  3024. abstract="false" native="false" synchronized="false"
  3025. static="false" final="false" visibility="public"
  3026. deprecated="not deprecated">
  3027. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3028. <param name="replication" type="short"/>
  3029. <exception name="IOException" type="java.io.IOException"/>
  3030. <doc>
  3031. <![CDATA[Set replication for an existing file.
  3032. @param src file name
  3033. @param replication new replication
  3034. @throws IOException
  3035. @return true if successful;
  3036. false if file does not exist or is a directory]]>
  3037. </doc>
  3038. </method>
  3039. <method name="rename" return="boolean"
  3040. abstract="true" native="false" synchronized="false"
  3041. static="false" final="false" visibility="public"
  3042. deprecated="not deprecated">
  3043. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3044. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3045. <exception name="IOException" type="java.io.IOException"/>
  3046. <doc>
  3047. <![CDATA[Renames Path src to Path dst. Can take place on local fs
  3048. or remote DFS.]]>
  3049. </doc>
  3050. </method>
  3051. <method name="delete" return="boolean"
  3052. abstract="true" native="false" synchronized="false"
  3053. static="false" final="false" visibility="public"
  3054. deprecated="Use delete(Path, boolean) instead">
  3055. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3056. <exception name="IOException" type="java.io.IOException"/>
  3057. <doc>
  3058. <![CDATA[@deprecated Use delete(Path, boolean) instead]]>
  3059. </doc>
  3060. </method>
  3061. <method name="delete" return="boolean"
  3062. abstract="true" native="false" synchronized="false"
  3063. static="false" final="false" visibility="public"
  3064. deprecated="not deprecated">
  3065. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3066. <param name="recursive" type="boolean"/>
  3067. <exception name="IOException" type="java.io.IOException"/>
  3068. <doc>
  3069. <![CDATA[Delete a file.
  3070. @param f the path to delete.
  3071. @param recursive if path is a directory and set to
  3072. true, the directory is deleted else throws an exception. In
  3073. case of a file the recursive can be set to either true or false.
  3074. @return true if delete is successful else false.
  3075. @throws IOException]]>
  3076. </doc>
  3077. </method>
  3078. <method name="deleteOnExit" return="boolean"
  3079. abstract="false" native="false" synchronized="false"
  3080. static="false" final="false" visibility="public"
  3081. deprecated="not deprecated">
  3082. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3083. <exception name="IOException" type="java.io.IOException"/>
  3084. <doc>
  3085. <![CDATA[Mark a path to be deleted when FileSystem is closed.
  3086. When the JVM shuts down,
  3087. all FileSystem objects will be closed automatically.
  3088. Then,
  3089. the marked path will be deleted as a result of closing the FileSystem.
  3090. The path has to exist in the file system.
  3091. @param f the path to delete.
  3092. @return true if deleteOnExit is successful, otherwise false.
  3093. @throws IOException]]>
  3094. </doc>
  3095. </method>
  3096. <method name="processDeleteOnExit"
  3097. abstract="false" native="false" synchronized="false"
  3098. static="false" final="false" visibility="protected"
  3099. deprecated="not deprecated">
  3100. <doc>
  3101. <![CDATA[Delete all files that were marked as delete-on-exit. This recursively
  3102. deletes all files in the specified paths.]]>
  3103. </doc>
  3104. </method>
  3105. <method name="exists" return="boolean"
  3106. abstract="false" native="false" synchronized="false"
  3107. static="false" final="false" visibility="public"
  3108. deprecated="not deprecated">
  3109. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3110. <exception name="IOException" type="java.io.IOException"/>
  3111. <doc>
  3112. <![CDATA[Check if exists.
  3113. @param f source file]]>
  3114. </doc>
  3115. </method>
  3116. <method name="isDirectory" return="boolean"
  3117. abstract="false" native="false" synchronized="false"
  3118. static="false" final="false" visibility="public"
  3119. deprecated="Use getFileStatus() instead">
  3120. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3121. <exception name="IOException" type="java.io.IOException"/>
  3122. <doc>
  3123. <![CDATA[@deprecated Use getFileStatus() instead]]>
  3124. </doc>
  3125. </method>
  3126. <method name="isFile" return="boolean"
  3127. abstract="false" native="false" synchronized="false"
  3128. static="false" final="false" visibility="public"
  3129. deprecated="not deprecated">
  3130. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3131. <exception name="IOException" type="java.io.IOException"/>
  3132. <doc>
  3133. <![CDATA[True iff the named path is a regular file.]]>
  3134. </doc>
  3135. </method>
  3136. <method name="getLength" return="long"
  3137. abstract="false" native="false" synchronized="false"
  3138. static="false" final="false" visibility="public"
  3139. deprecated="Use getFileStatus() instead">
  3140. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3141. <exception name="IOException" type="java.io.IOException"/>
  3142. <doc>
  3143. <![CDATA[@deprecated Use getFileStatus() instead]]>
  3144. </doc>
  3145. </method>
  3146. <method name="getContentSummary" return="org.apache.hadoop.fs.ContentSummary"
  3147. abstract="false" native="false" synchronized="false"
  3148. static="false" final="false" visibility="public"
  3149. deprecated="not deprecated">
  3150. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3151. <exception name="IOException" type="java.io.IOException"/>
  3152. <doc>
  3153. <![CDATA[Return the {@link ContentSummary} of a given {@link Path}.]]>
  3154. </doc>
  3155. </method>
  3156. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  3157. abstract="true" native="false" synchronized="false"
  3158. static="false" final="false" visibility="public"
  3159. deprecated="not deprecated">
  3160. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3161. <exception name="IOException" type="java.io.IOException"/>
  3162. <doc>
  3163. <![CDATA[List the statuses of the files/directories in the given path if the path is
  3164. a directory.
  3165. @param f
  3166. given path
  3167. @return the statuses of the files/directories in the given patch
  3168. returns null, if Path f does not exist in the FileSystem
  3169. @throws IOException]]>
  3170. </doc>
  3171. </method>
  3172. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  3173. abstract="false" native="false" synchronized="false"
  3174. static="false" final="false" visibility="public"
  3175. deprecated="not deprecated">
  3176. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3177. <param name="filter" type="org.apache.hadoop.fs.PathFilter"/>
  3178. <exception name="IOException" type="java.io.IOException"/>
  3179. <doc>
  3180. <![CDATA[Filter files/directories in the given path using the user-supplied path
  3181. filter.
  3182. @param f
  3183. a path name
  3184. @param filter
  3185. the user-supplied path filter
  3186. @return an array of FileStatus objects for the files under the given path
  3187. after applying the filter
  3188. @throws IOException
  3189. if encounter any problem while fetching the status]]>
  3190. </doc>
  3191. </method>
  3192. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  3193. abstract="false" native="false" synchronized="false"
  3194. static="false" final="false" visibility="public"
  3195. deprecated="not deprecated">
  3196. <param name="files" type="org.apache.hadoop.fs.Path[]"/>
  3197. <exception name="IOException" type="java.io.IOException"/>
  3198. <doc>
  3199. <![CDATA[Filter files/directories in the given list of paths using default
  3200. path filter.
  3201. @param files
  3202. a list of paths
  3203. @return a list of statuses for the files under the given paths after
  3204. applying the filter default Path filter
  3205. @exception IOException]]>
  3206. </doc>
  3207. </method>
  3208. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  3209. abstract="false" native="false" synchronized="false"
  3210. static="false" final="false" visibility="public"
  3211. deprecated="not deprecated">
  3212. <param name="files" type="org.apache.hadoop.fs.Path[]"/>
  3213. <param name="filter" type="org.apache.hadoop.fs.PathFilter"/>
  3214. <exception name="IOException" type="java.io.IOException"/>
  3215. <doc>
  3216. <![CDATA[Filter files/directories in the given list of paths using user-supplied
  3217. path filter.
  3218. @param files
  3219. a list of paths
  3220. @param filter
  3221. the user-supplied path filter
  3222. @return a list of statuses for the files under the given paths after
  3223. applying the filter
  3224. @exception IOException]]>
  3225. </doc>
  3226. </method>
  3227. <method name="globStatus" 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="pathPattern" type="org.apache.hadoop.fs.Path"/>
  3232. <exception name="IOException" type="java.io.IOException"/>
  3233. <doc>
  3234. <![CDATA[<p>Return all the files that match filePattern and are not checksum
  3235. files. Results are sorted by their names.
  3236. <p>
  3237. A filename pattern is composed of <i>regular</i> characters and
  3238. <i>special pattern matching</i> characters, which are:
  3239. <dl>
  3240. <dd>
  3241. <dl>
  3242. <p>
  3243. <dt> <tt> ? </tt>
  3244. <dd> Matches any single character.
  3245. <p>
  3246. <dt> <tt> * </tt>
  3247. <dd> Matches zero or more characters.
  3248. <p>
  3249. <dt> <tt> [<i>abc</i>] </tt>
  3250. <dd> Matches a single character from character set
  3251. <tt>{<i>a,b,c</i>}</tt>.
  3252. <p>
  3253. <dt> <tt> [<i>a</i>-<i>b</i>] </tt>
  3254. <dd> Matches a single character from the character range
  3255. <tt>{<i>a...b</i>}</tt>. Note that character <tt><i>a</i></tt> must be
  3256. lexicographically less than or equal to character <tt><i>b</i></tt>.
  3257. <p>
  3258. <dt> <tt> [^<i>a</i>] </tt>
  3259. <dd> Matches a single character that is not from character set or range
  3260. <tt>{<i>a</i>}</tt>. Note that the <tt>^</tt> character must occur
  3261. immediately to the right of the opening bracket.
  3262. <p>
  3263. <dt> <tt> \<i>c</i> </tt>
  3264. <dd> Removes (escapes) any special meaning of character <i>c</i>.
  3265. <p>
  3266. <dt> <tt> {ab,cd} </tt>
  3267. <dd> Matches a string from the string set <tt>{<i>ab, cd</i>} </tt>
  3268. <p>
  3269. <dt> <tt> {ab,c{de,fh}} </tt>
  3270. <dd> Matches a string from the string set <tt>{<i>ab, cde, cfh</i>}</tt>
  3271. </dl>
  3272. </dd>
  3273. </dl>
  3274. @param pathPattern a regular expression specifying a pth pattern
  3275. @return an array of paths that match the path pattern
  3276. @throws IOException]]>
  3277. </doc>
  3278. </method>
  3279. <method name="globStatus" return="org.apache.hadoop.fs.FileStatus[]"
  3280. abstract="false" native="false" synchronized="false"
  3281. static="false" final="false" visibility="public"
  3282. deprecated="not deprecated">
  3283. <param name="pathPattern" type="org.apache.hadoop.fs.Path"/>
  3284. <param name="filter" type="org.apache.hadoop.fs.PathFilter"/>
  3285. <exception name="IOException" type="java.io.IOException"/>
  3286. <doc>
  3287. <![CDATA[Return an array of FileStatus objects whose path names match pathPattern
  3288. and is accepted by the user-supplied path filter. Results are sorted by
  3289. their path names.
  3290. Return null if pathPattern has no glob and the path does not exist.
  3291. Return an empty array if pathPattern has a glob and no path matches it.
  3292. @param pathPattern
  3293. a regular expression specifying the path pattern
  3294. @param filter
  3295. a user-supplied path filter
  3296. @return an array of FileStatus objects
  3297. @throws IOException if any I/O error occurs when fetching file status]]>
  3298. </doc>
  3299. </method>
  3300. <method name="getHomeDirectory" return="org.apache.hadoop.fs.Path"
  3301. abstract="false" native="false" synchronized="false"
  3302. static="false" final="false" visibility="public"
  3303. deprecated="not deprecated">
  3304. <doc>
  3305. <![CDATA[Return the current user's home directory in this filesystem.
  3306. The default implementation returns "/user/$USER/".]]>
  3307. </doc>
  3308. </method>
  3309. <method name="getDelegationToken" return="org.apache.hadoop.security.token.Token"
  3310. abstract="false" native="false" synchronized="false"
  3311. static="false" final="false" visibility="public"
  3312. deprecated="not deprecated">
  3313. <param name="renewer" type="java.lang.String"/>
  3314. <exception name="IOException" type="java.io.IOException"/>
  3315. <doc>
  3316. <![CDATA[Get a new delegation token for this file system.
  3317. @param renewer the account name that is allowed to renew the token.
  3318. @return a new delegation token
  3319. @throws IOException]]>
  3320. </doc>
  3321. </method>
  3322. <method name="setWorkingDirectory"
  3323. abstract="true" native="false" synchronized="false"
  3324. static="false" final="false" visibility="public"
  3325. deprecated="not deprecated">
  3326. <param name="new_dir" type="org.apache.hadoop.fs.Path"/>
  3327. <doc>
  3328. <![CDATA[Set the current working directory for the given file system. All relative
  3329. paths will be resolved relative to it.
  3330. @param new_dir]]>
  3331. </doc>
  3332. </method>
  3333. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  3334. abstract="true" native="false" synchronized="false"
  3335. static="false" final="false" visibility="public"
  3336. deprecated="not deprecated">
  3337. <doc>
  3338. <![CDATA[Get the current working directory for the given file system
  3339. @return the directory pathname]]>
  3340. </doc>
  3341. </method>
  3342. <method name="mkdirs" return="boolean"
  3343. abstract="false" native="false" synchronized="false"
  3344. static="false" final="false" visibility="public"
  3345. deprecated="not deprecated">
  3346. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3347. <exception name="IOException" type="java.io.IOException"/>
  3348. <doc>
  3349. <![CDATA[Call {@link #mkdirs(Path, FsPermission)} with default permission.]]>
  3350. </doc>
  3351. </method>
  3352. <method name="mkdirs" return="boolean"
  3353. abstract="true" native="false" synchronized="false"
  3354. static="false" final="false" visibility="public"
  3355. deprecated="not deprecated">
  3356. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3357. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  3358. <exception name="IOException" type="java.io.IOException"/>
  3359. <doc>
  3360. <![CDATA[Make the given file and all non-existent parents into
  3361. directories. Has the semantics of Unix 'mkdir -p'.
  3362. Existence of the directory hierarchy is not an error.]]>
  3363. </doc>
  3364. </method>
  3365. <method name="copyFromLocalFile"
  3366. abstract="false" native="false" synchronized="false"
  3367. static="false" final="false" visibility="public"
  3368. deprecated="not deprecated">
  3369. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3370. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3371. <exception name="IOException" type="java.io.IOException"/>
  3372. <doc>
  3373. <![CDATA[The src file is on the local disk. Add it to FS at
  3374. the given dst name and the source is kept intact afterwards]]>
  3375. </doc>
  3376. </method>
  3377. <method name="moveFromLocalFile"
  3378. abstract="false" native="false" synchronized="false"
  3379. static="false" final="false" visibility="public"
  3380. deprecated="not deprecated">
  3381. <param name="srcs" type="org.apache.hadoop.fs.Path[]"/>
  3382. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3383. <exception name="IOException" type="java.io.IOException"/>
  3384. <doc>
  3385. <![CDATA[The src files is on the local disk. Add it to FS at
  3386. the given dst name, removing the source afterwards.]]>
  3387. </doc>
  3388. </method>
  3389. <method name="moveFromLocalFile"
  3390. abstract="false" native="false" synchronized="false"
  3391. static="false" final="false" visibility="public"
  3392. deprecated="not deprecated">
  3393. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3394. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3395. <exception name="IOException" type="java.io.IOException"/>
  3396. <doc>
  3397. <![CDATA[The src file is on the local disk. Add it to FS at
  3398. the given dst name, removing the source afterwards.]]>
  3399. </doc>
  3400. </method>
  3401. <method name="copyFromLocalFile"
  3402. abstract="false" native="false" synchronized="false"
  3403. static="false" final="false" visibility="public"
  3404. deprecated="not deprecated">
  3405. <param name="delSrc" type="boolean"/>
  3406. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3407. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3408. <exception name="IOException" type="java.io.IOException"/>
  3409. <doc>
  3410. <![CDATA[The src file is on the local disk. Add it to FS at
  3411. the given dst name.
  3412. delSrc indicates if the source should be removed]]>
  3413. </doc>
  3414. </method>
  3415. <method name="copyFromLocalFile"
  3416. abstract="false" native="false" synchronized="false"
  3417. static="false" final="false" visibility="public"
  3418. deprecated="not deprecated">
  3419. <param name="delSrc" type="boolean"/>
  3420. <param name="overwrite" type="boolean"/>
  3421. <param name="srcs" type="org.apache.hadoop.fs.Path[]"/>
  3422. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3423. <exception name="IOException" type="java.io.IOException"/>
  3424. <doc>
  3425. <![CDATA[The src files are on the local disk. Add it to FS at
  3426. the given dst name.
  3427. delSrc indicates if the source should be removed]]>
  3428. </doc>
  3429. </method>
  3430. <method name="copyFromLocalFile"
  3431. abstract="false" native="false" synchronized="false"
  3432. static="false" final="false" visibility="public"
  3433. deprecated="not deprecated">
  3434. <param name="delSrc" type="boolean"/>
  3435. <param name="overwrite" type="boolean"/>
  3436. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3437. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3438. <exception name="IOException" type="java.io.IOException"/>
  3439. <doc>
  3440. <![CDATA[The src file is on the local disk. Add it to FS at
  3441. the given dst name.
  3442. delSrc indicates if the source should be removed]]>
  3443. </doc>
  3444. </method>
  3445. <method name="copyToLocalFile"
  3446. abstract="false" native="false" synchronized="false"
  3447. static="false" final="false" visibility="public"
  3448. deprecated="not deprecated">
  3449. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3450. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3451. <exception name="IOException" type="java.io.IOException"/>
  3452. <doc>
  3453. <![CDATA[The src file is under FS, and the dst is on the local disk.
  3454. Copy it from FS control to the local dst name.]]>
  3455. </doc>
  3456. </method>
  3457. <method name="moveToLocalFile"
  3458. abstract="false" native="false" synchronized="false"
  3459. static="false" final="false" visibility="public"
  3460. deprecated="not deprecated">
  3461. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3462. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3463. <exception name="IOException" type="java.io.IOException"/>
  3464. <doc>
  3465. <![CDATA[The src file is under FS, and the dst is on the local disk.
  3466. Copy it from FS control to the local dst name.
  3467. Remove the source afterwards]]>
  3468. </doc>
  3469. </method>
  3470. <method name="copyToLocalFile"
  3471. abstract="false" native="false" synchronized="false"
  3472. static="false" final="false" visibility="public"
  3473. deprecated="not deprecated">
  3474. <param name="delSrc" type="boolean"/>
  3475. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3476. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3477. <exception name="IOException" type="java.io.IOException"/>
  3478. <doc>
  3479. <![CDATA[The src file is under FS, and the dst is on the local disk.
  3480. Copy it from FS control to the local dst name.
  3481. delSrc indicates if the src will be removed or not.]]>
  3482. </doc>
  3483. </method>
  3484. <method name="startLocalOutput" return="org.apache.hadoop.fs.Path"
  3485. abstract="false" native="false" synchronized="false"
  3486. static="false" final="false" visibility="public"
  3487. deprecated="not deprecated">
  3488. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  3489. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  3490. <exception name="IOException" type="java.io.IOException"/>
  3491. <doc>
  3492. <![CDATA[Returns a local File that the user can write output to. The caller
  3493. provides both the eventual FS target name and the local working
  3494. file. If the FS is local, we write directly into the target. If
  3495. the FS is remote, we write into the tmp local area.]]>
  3496. </doc>
  3497. </method>
  3498. <method name="completeLocalOutput"
  3499. abstract="false" native="false" synchronized="false"
  3500. static="false" final="false" visibility="public"
  3501. deprecated="not deprecated">
  3502. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  3503. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  3504. <exception name="IOException" type="java.io.IOException"/>
  3505. <doc>
  3506. <![CDATA[Called when we're all done writing to the target. A local FS will
  3507. do nothing, because we've written to exactly the right place. A remote
  3508. FS will copy the contents of tmpLocalFile to the correct target at
  3509. fsOutputFile.]]>
  3510. </doc>
  3511. </method>
  3512. <method name="close"
  3513. abstract="false" native="false" synchronized="false"
  3514. static="false" final="false" visibility="public"
  3515. deprecated="not deprecated">
  3516. <exception name="IOException" type="java.io.IOException"/>
  3517. <doc>
  3518. <![CDATA[No more filesystem operations are needed. Will
  3519. release any held locks.]]>
  3520. </doc>
  3521. </method>
  3522. <method name="getUsed" return="long"
  3523. abstract="false" native="false" synchronized="false"
  3524. static="false" final="false" visibility="public"
  3525. deprecated="not deprecated">
  3526. <exception name="IOException" type="java.io.IOException"/>
  3527. <doc>
  3528. <![CDATA[Return the total size of all files in the filesystem.]]>
  3529. </doc>
  3530. </method>
  3531. <method name="getBlockSize" return="long"
  3532. abstract="false" native="false" synchronized="false"
  3533. static="false" final="false" visibility="public"
  3534. deprecated="Use getFileStatus() instead">
  3535. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3536. <exception name="IOException" type="java.io.IOException"/>
  3537. <doc>
  3538. <![CDATA[@deprecated Use getFileStatus() instead]]>
  3539. </doc>
  3540. </method>
  3541. <method name="getDefaultBlockSize" return="long"
  3542. abstract="false" native="false" synchronized="false"
  3543. static="false" final="false" visibility="public"
  3544. deprecated="use {@link #getDefaultBlockSize(Path)} instead">
  3545. <doc>
  3546. <![CDATA[Return the number of bytes that large input files should be optimally
  3547. be split into to minimize i/o time.
  3548. @deprecated use {@link #getDefaultBlockSize(Path)} instead]]>
  3549. </doc>
  3550. </method>
  3551. <method name="getDefaultBlockSize" return="long"
  3552. abstract="false" native="false" synchronized="false"
  3553. static="false" final="false" visibility="public"
  3554. deprecated="not deprecated">
  3555. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3556. <doc>
  3557. <![CDATA[Return the number of bytes that large input files should be optimally
  3558. be split into to minimize i/o time.
  3559. @param f path of file
  3560. @return the default block size for the path's filesystem]]>
  3561. </doc>
  3562. </method>
  3563. <method name="getDefaultReplication" return="short"
  3564. abstract="false" native="false" synchronized="false"
  3565. static="false" final="false" visibility="public"
  3566. deprecated="use {@link #getDefaultReplication(Path)} instead">
  3567. <doc>
  3568. <![CDATA[Get the default replication.
  3569. @deprecated use {@link #getDefaultReplication(Path)} instead]]>
  3570. </doc>
  3571. </method>
  3572. <method name="getDefaultReplication" return="short"
  3573. abstract="false" native="false" synchronized="false"
  3574. static="false" final="false" visibility="public"
  3575. deprecated="not deprecated">
  3576. <param name="path" type="org.apache.hadoop.fs.Path"/>
  3577. <doc>
  3578. <![CDATA[Get the default replication.
  3579. @param path of the file
  3580. @return default replication for the path's filesystem]]>
  3581. </doc>
  3582. </method>
  3583. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  3584. abstract="true" native="false" synchronized="false"
  3585. static="false" final="false" visibility="public"
  3586. deprecated="not deprecated">
  3587. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3588. <exception name="IOException" type="java.io.IOException"/>
  3589. <doc>
  3590. <![CDATA[Return a file status object that represents the path.
  3591. @param f The path we want information from
  3592. @return a FileStatus object
  3593. @throws FileNotFoundException when the path does not exist;
  3594. IOException see specific implementation]]>
  3595. </doc>
  3596. </method>
  3597. <method name="getFileChecksum" return="org.apache.hadoop.fs.FileChecksum"
  3598. abstract="false" native="false" synchronized="false"
  3599. static="false" final="false" visibility="public"
  3600. deprecated="not deprecated">
  3601. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3602. <exception name="IOException" type="java.io.IOException"/>
  3603. <doc>
  3604. <![CDATA[Get the checksum of a file.
  3605. @param f The file path
  3606. @return The file checksum. The default return value is null,
  3607. which indicates that no checksum algorithm is implemented
  3608. in the corresponding FileSystem.]]>
  3609. </doc>
  3610. </method>
  3611. <method name="setVerifyChecksum"
  3612. abstract="false" native="false" synchronized="false"
  3613. static="false" final="false" visibility="public"
  3614. deprecated="not deprecated">
  3615. <param name="verifyChecksum" type="boolean"/>
  3616. <doc>
  3617. <![CDATA[Set the verify checksum flag. This is only applicable if the
  3618. corresponding FileSystem supports checksum. By default doesn't do anything.
  3619. @param verifyChecksum]]>
  3620. </doc>
  3621. </method>
  3622. <method name="setPermission"
  3623. abstract="false" native="false" synchronized="false"
  3624. static="false" final="false" visibility="public"
  3625. deprecated="not deprecated">
  3626. <param name="p" type="org.apache.hadoop.fs.Path"/>
  3627. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  3628. <exception name="IOException" type="java.io.IOException"/>
  3629. <doc>
  3630. <![CDATA[Set permission of a path.
  3631. @param p
  3632. @param permission]]>
  3633. </doc>
  3634. </method>
  3635. <method name="setOwner"
  3636. abstract="false" native="false" synchronized="false"
  3637. static="false" final="false" visibility="public"
  3638. deprecated="not deprecated">
  3639. <param name="p" type="org.apache.hadoop.fs.Path"/>
  3640. <param name="username" type="java.lang.String"/>
  3641. <param name="groupname" type="java.lang.String"/>
  3642. <exception name="IOException" type="java.io.IOException"/>
  3643. <doc>
  3644. <![CDATA[Set owner of a path (i.e. a file or a directory).
  3645. The parameters username and groupname cannot both be null.
  3646. @param p The path
  3647. @param username If it is null, the original username remains unchanged.
  3648. @param groupname If it is null, the original groupname remains unchanged.]]>
  3649. </doc>
  3650. </method>
  3651. <method name="setTimes"
  3652. abstract="false" native="false" synchronized="false"
  3653. static="false" final="false" visibility="public"
  3654. deprecated="not deprecated">
  3655. <param name="p" type="org.apache.hadoop.fs.Path"/>
  3656. <param name="mtime" type="long"/>
  3657. <param name="atime" type="long"/>
  3658. <exception name="IOException" type="java.io.IOException"/>
  3659. <doc>
  3660. <![CDATA[Set access time of a file
  3661. @param p The path
  3662. @param mtime Set the modification time of this file.
  3663. The number of milliseconds since Jan 1, 1970.
  3664. A value of -1 means that this call should not set modification time.
  3665. @param atime Set the access time of this file.
  3666. The number of milliseconds since Jan 1, 1970.
  3667. A value of -1 means that this call should not set access time.]]>
  3668. </doc>
  3669. </method>
  3670. <method name="getStatistics" return="java.util.Map"
  3671. abstract="false" native="false" synchronized="true"
  3672. static="true" final="false" visibility="public"
  3673. deprecated="use {@link #getAllStatistics} instead">
  3674. <doc>
  3675. <![CDATA[Get the Map of Statistics object indexed by URI Scheme.
  3676. @return a Map having a key as URI scheme and value as Statistics object
  3677. @deprecated use {@link #getAllStatistics} instead]]>
  3678. </doc>
  3679. </method>
  3680. <method name="getAllStatistics" return="java.util.List"
  3681. abstract="false" native="false" synchronized="true"
  3682. static="true" final="false" visibility="public"
  3683. deprecated="not deprecated">
  3684. <doc>
  3685. <![CDATA[Return the FileSystem classes that have Statistics]]>
  3686. </doc>
  3687. </method>
  3688. <method name="getStatistics" return="org.apache.hadoop.fs.FileSystem.Statistics"
  3689. abstract="false" native="false" synchronized="true"
  3690. static="true" final="false" visibility="public"
  3691. deprecated="not deprecated">
  3692. <param name="scheme" type="java.lang.String"/>
  3693. <param name="cls" type="java.lang.Class"/>
  3694. <doc>
  3695. <![CDATA[Get the statistics for a particular file system
  3696. @param cls the class to lookup
  3697. @return a statistics object]]>
  3698. </doc>
  3699. </method>
  3700. <method name="clearStatistics"
  3701. abstract="false" native="false" synchronized="true"
  3702. static="true" final="false" visibility="public"
  3703. deprecated="not deprecated">
  3704. </method>
  3705. <method name="printStatistics"
  3706. abstract="false" native="false" synchronized="true"
  3707. static="true" final="false" visibility="public"
  3708. deprecated="not deprecated">
  3709. <exception name="IOException" type="java.io.IOException"/>
  3710. </method>
  3711. <field name="FS_DEFAULT_NAME_KEY" type="java.lang.String"
  3712. transient="false" volatile="false"
  3713. static="true" final="true" visibility="public"
  3714. deprecated="not deprecated">
  3715. </field>
  3716. <field name="LOG" type="org.apache.commons.logging.Log"
  3717. transient="false" volatile="false"
  3718. static="true" final="true" visibility="public"
  3719. deprecated="not deprecated">
  3720. </field>
  3721. <field name="statistics" type="org.apache.hadoop.fs.FileSystem.Statistics"
  3722. transient="false" volatile="false"
  3723. static="false" final="false" visibility="protected"
  3724. deprecated="not deprecated">
  3725. <doc>
  3726. <![CDATA[The statistics for this file system.]]>
  3727. </doc>
  3728. </field>
  3729. <doc>
  3730. <![CDATA[An abstract base class for a fairly generic filesystem. It
  3731. may be implemented as a distributed filesystem, or as a "local"
  3732. one that reflects the locally-connected disk. The local version
  3733. exists for small Hadoop instances and for testing.
  3734. <p>
  3735. All user code that may potentially use the Hadoop Distributed
  3736. File System should be written to use a FileSystem object. The
  3737. Hadoop DFS is a multi-machine system that appears as a single
  3738. disk. It's useful because of its fault tolerance and potentially
  3739. very large capacity.
  3740. <p>
  3741. The local implementation is {@link LocalFileSystem} and distributed
  3742. implementation is DistributedFileSystem.]]>
  3743. </doc>
  3744. </class>
  3745. <!-- end class org.apache.hadoop.fs.FileSystem -->
  3746. <!-- start class org.apache.hadoop.fs.FileSystem.Statistics -->
  3747. <class name="FileSystem.Statistics" extends="java.lang.Object"
  3748. abstract="false"
  3749. static="true" final="true" visibility="public"
  3750. deprecated="not deprecated">
  3751. <constructor name="FileSystem.Statistics" type="java.lang.String"
  3752. static="false" final="false" visibility="public"
  3753. deprecated="not deprecated">
  3754. </constructor>
  3755. <method name="incrementBytesRead"
  3756. abstract="false" native="false" synchronized="false"
  3757. static="false" final="false" visibility="public"
  3758. deprecated="not deprecated">
  3759. <param name="newBytes" type="long"/>
  3760. <doc>
  3761. <![CDATA[Increment the bytes read in the statistics
  3762. @param newBytes the additional bytes read]]>
  3763. </doc>
  3764. </method>
  3765. <method name="incrementBytesWritten"
  3766. abstract="false" native="false" synchronized="false"
  3767. static="false" final="false" visibility="public"
  3768. deprecated="not deprecated">
  3769. <param name="newBytes" type="long"/>
  3770. <doc>
  3771. <![CDATA[Increment the bytes written in the statistics
  3772. @param newBytes the additional bytes written]]>
  3773. </doc>
  3774. </method>
  3775. <method name="incrementReadOps"
  3776. abstract="false" native="false" synchronized="false"
  3777. static="false" final="false" visibility="public"
  3778. deprecated="not deprecated">
  3779. <param name="count" type="int"/>
  3780. <doc>
  3781. <![CDATA[Increment the number of read operations
  3782. @param count number of read operations]]>
  3783. </doc>
  3784. </method>
  3785. <method name="incrementLargeReadOps"
  3786. abstract="false" native="false" synchronized="false"
  3787. static="false" final="false" visibility="public"
  3788. deprecated="not deprecated">
  3789. <param name="count" type="int"/>
  3790. <doc>
  3791. <![CDATA[Increment the number of large read operations
  3792. @param count number of large read operations]]>
  3793. </doc>
  3794. </method>
  3795. <method name="incrementWriteOps"
  3796. abstract="false" native="false" synchronized="false"
  3797. static="false" final="false" visibility="public"
  3798. deprecated="not deprecated">
  3799. <param name="count" type="int"/>
  3800. <doc>
  3801. <![CDATA[Increment the number of write operations
  3802. @param count number of write operations]]>
  3803. </doc>
  3804. </method>
  3805. <method name="getBytesRead" return="long"
  3806. abstract="false" native="false" synchronized="false"
  3807. static="false" final="false" visibility="public"
  3808. deprecated="not deprecated">
  3809. <doc>
  3810. <![CDATA[Get the total number of bytes read
  3811. @return the number of bytes]]>
  3812. </doc>
  3813. </method>
  3814. <method name="getBytesWritten" return="long"
  3815. abstract="false" native="false" synchronized="false"
  3816. static="false" final="false" visibility="public"
  3817. deprecated="not deprecated">
  3818. <doc>
  3819. <![CDATA[Get the total number of bytes written
  3820. @return the number of bytes]]>
  3821. </doc>
  3822. </method>
  3823. <method name="getReadOps" return="int"
  3824. abstract="false" native="false" synchronized="false"
  3825. static="false" final="false" visibility="public"
  3826. deprecated="not deprecated">
  3827. <doc>
  3828. <![CDATA[Get the number of file system read operations such as list files
  3829. @return number of read operations]]>
  3830. </doc>
  3831. </method>
  3832. <method name="getLargeReadOps" return="int"
  3833. abstract="false" native="false" synchronized="false"
  3834. static="false" final="false" visibility="public"
  3835. deprecated="not deprecated">
  3836. <doc>
  3837. <![CDATA[Get the number of large file system read operations such as list files
  3838. under a large directory
  3839. @return number of large read operations]]>
  3840. </doc>
  3841. </method>
  3842. <method name="getWriteOps" 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 write operations such as create, append
  3848. rename etc.
  3849. @return number of write operations]]>
  3850. </doc>
  3851. </method>
  3852. <method name="toString" return="java.lang.String"
  3853. abstract="false" native="false" synchronized="false"
  3854. static="false" final="false" visibility="public"
  3855. deprecated="not deprecated">
  3856. </method>
  3857. <method name="reset"
  3858. abstract="false" native="false" synchronized="false"
  3859. static="false" final="false" visibility="public"
  3860. deprecated="not deprecated">
  3861. <doc>
  3862. <![CDATA[Reset the counts of bytes to 0.]]>
  3863. </doc>
  3864. </method>
  3865. <method name="getScheme" return="java.lang.String"
  3866. abstract="false" native="false" synchronized="false"
  3867. static="false" final="false" visibility="public"
  3868. deprecated="not deprecated">
  3869. <doc>
  3870. <![CDATA[Get the uri scheme associated with this statistics object.
  3871. @return the schema associated with this set of statistics]]>
  3872. </doc>
  3873. </method>
  3874. </class>
  3875. <!-- end class org.apache.hadoop.fs.FileSystem.Statistics -->
  3876. <!-- start class org.apache.hadoop.fs.FileUtil -->
  3877. <class name="FileUtil" extends="java.lang.Object"
  3878. abstract="false"
  3879. static="false" final="false" visibility="public"
  3880. deprecated="not deprecated">
  3881. <constructor name="FileUtil"
  3882. static="false" final="false" visibility="public"
  3883. deprecated="not deprecated">
  3884. </constructor>
  3885. <method name="stat2Paths" return="org.apache.hadoop.fs.Path[]"
  3886. abstract="false" native="false" synchronized="false"
  3887. static="true" final="false" visibility="public"
  3888. deprecated="not deprecated">
  3889. <param name="stats" type="org.apache.hadoop.fs.FileStatus[]"/>
  3890. <doc>
  3891. <![CDATA[convert an array of FileStatus to an array of Path
  3892. @param stats
  3893. an array of FileStatus objects
  3894. @return an array of paths corresponding to the input]]>
  3895. </doc>
  3896. </method>
  3897. <method name="stat2Paths" return="org.apache.hadoop.fs.Path[]"
  3898. abstract="false" native="false" synchronized="false"
  3899. static="true" final="false" visibility="public"
  3900. deprecated="not deprecated">
  3901. <param name="stats" type="org.apache.hadoop.fs.FileStatus[]"/>
  3902. <param name="path" type="org.apache.hadoop.fs.Path"/>
  3903. <doc>
  3904. <![CDATA[convert an array of FileStatus to an array of Path.
  3905. If stats if null, return path
  3906. @param stats
  3907. an array of FileStatus objects
  3908. @param path
  3909. default path to return in stats is null
  3910. @return an array of paths corresponding to the input]]>
  3911. </doc>
  3912. </method>
  3913. <method name="fullyDelete" return="boolean"
  3914. abstract="false" native="false" synchronized="false"
  3915. static="true" final="false" visibility="public"
  3916. deprecated="not deprecated">
  3917. <param name="dir" type="java.io.File"/>
  3918. <exception name="IOException" type="java.io.IOException"/>
  3919. <doc>
  3920. <![CDATA[Delete a directory and all its contents. If
  3921. we return false, the directory may be partially-deleted.]]>
  3922. </doc>
  3923. </method>
  3924. <method name="fullyDeleteContents" return="boolean"
  3925. abstract="false" native="false" synchronized="false"
  3926. static="true" final="false" visibility="public"
  3927. deprecated="not deprecated">
  3928. <param name="dir" type="java.io.File"/>
  3929. <exception name="IOException" type="java.io.IOException"/>
  3930. <doc>
  3931. <![CDATA[Delete the contents of a directory, not the directory itself. If
  3932. we return false, the directory may be partially-deleted.]]>
  3933. </doc>
  3934. </method>
  3935. <method name="fullyDelete"
  3936. abstract="false" native="false" synchronized="false"
  3937. static="true" final="false" visibility="public"
  3938. deprecated="Use {@link FileSystem#delete(Path, boolean)}">
  3939. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  3940. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  3941. <exception name="IOException" type="java.io.IOException"/>
  3942. <doc>
  3943. <![CDATA[Recursively delete a directory.
  3944. @param fs {@link FileSystem} on which the path is present
  3945. @param dir directory to recursively delete
  3946. @throws IOException
  3947. @deprecated Use {@link FileSystem#delete(Path, boolean)}]]>
  3948. </doc>
  3949. </method>
  3950. <method name="copy" return="boolean"
  3951. abstract="false" native="false" synchronized="false"
  3952. static="true" final="false" visibility="public"
  3953. deprecated="not deprecated">
  3954. <param name="srcFS" type="org.apache.hadoop.fs.FileSystem"/>
  3955. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3956. <param name="dstFS" type="org.apache.hadoop.fs.FileSystem"/>
  3957. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3958. <param name="deleteSource" type="boolean"/>
  3959. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  3960. <exception name="IOException" type="java.io.IOException"/>
  3961. <doc>
  3962. <![CDATA[Copy files between FileSystems.]]>
  3963. </doc>
  3964. </method>
  3965. <method name="copy" return="boolean"
  3966. abstract="false" native="false" synchronized="false"
  3967. static="true" final="false" visibility="public"
  3968. deprecated="not deprecated">
  3969. <param name="srcFS" type="org.apache.hadoop.fs.FileSystem"/>
  3970. <param name="srcs" type="org.apache.hadoop.fs.Path[]"/>
  3971. <param name="dstFS" type="org.apache.hadoop.fs.FileSystem"/>
  3972. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3973. <param name="deleteSource" type="boolean"/>
  3974. <param name="overwrite" type="boolean"/>
  3975. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  3976. <exception name="IOException" type="java.io.IOException"/>
  3977. </method>
  3978. <method name="copy" return="boolean"
  3979. abstract="false" native="false" synchronized="false"
  3980. static="true" final="false" visibility="public"
  3981. deprecated="not deprecated">
  3982. <param name="srcFS" type="org.apache.hadoop.fs.FileSystem"/>
  3983. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3984. <param name="dstFS" type="org.apache.hadoop.fs.FileSystem"/>
  3985. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3986. <param name="deleteSource" type="boolean"/>
  3987. <param name="overwrite" type="boolean"/>
  3988. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  3989. <exception name="IOException" type="java.io.IOException"/>
  3990. <doc>
  3991. <![CDATA[Copy files between FileSystems.]]>
  3992. </doc>
  3993. </method>
  3994. <method name="copyMerge" return="boolean"
  3995. abstract="false" native="false" synchronized="false"
  3996. static="true" final="false" visibility="public"
  3997. deprecated="not deprecated">
  3998. <param name="srcFS" type="org.apache.hadoop.fs.FileSystem"/>
  3999. <param name="srcDir" type="org.apache.hadoop.fs.Path"/>
  4000. <param name="dstFS" type="org.apache.hadoop.fs.FileSystem"/>
  4001. <param name="dstFile" type="org.apache.hadoop.fs.Path"/>
  4002. <param name="deleteSource" type="boolean"/>
  4003. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  4004. <param name="addString" type="java.lang.String"/>
  4005. <exception name="IOException" type="java.io.IOException"/>
  4006. <doc>
  4007. <![CDATA[Copy all files in a directory to one output file (merge).]]>
  4008. </doc>
  4009. </method>
  4010. <method name="copy" return="boolean"
  4011. abstract="false" native="false" synchronized="false"
  4012. static="true" final="false" visibility="public"
  4013. deprecated="not deprecated">
  4014. <param name="src" type="java.io.File"/>
  4015. <param name="dstFS" type="org.apache.hadoop.fs.FileSystem"/>
  4016. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  4017. <param name="deleteSource" type="boolean"/>
  4018. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  4019. <exception name="IOException" type="java.io.IOException"/>
  4020. <doc>
  4021. <![CDATA[Copy local files to a FileSystem.]]>
  4022. </doc>
  4023. </method>
  4024. <method name="copy" return="boolean"
  4025. abstract="false" native="false" synchronized="false"
  4026. static="true" final="false" visibility="public"
  4027. deprecated="not deprecated">
  4028. <param name="srcFS" type="org.apache.hadoop.fs.FileSystem"/>
  4029. <param name="src" type="org.apache.hadoop.fs.Path"/>
  4030. <param name="dst" type="java.io.File"/>
  4031. <param name="deleteSource" type="boolean"/>
  4032. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  4033. <exception name="IOException" type="java.io.IOException"/>
  4034. <doc>
  4035. <![CDATA[Copy FileSystem files to local files.]]>
  4036. </doc>
  4037. </method>
  4038. <method name="makeShellPath" return="java.lang.String"
  4039. abstract="false" native="false" synchronized="false"
  4040. static="true" final="false" visibility="public"
  4041. deprecated="not deprecated">
  4042. <param name="filename" type="java.lang.String"/>
  4043. <exception name="IOException" type="java.io.IOException"/>
  4044. <doc>
  4045. <![CDATA[Convert a os-native filename to a path that works for the shell.
  4046. @param filename The filename to convert
  4047. @return The unix pathname
  4048. @throws IOException on windows, there can be problems with the subprocess]]>
  4049. </doc>
  4050. </method>
  4051. <method name="makeShellPath" return="java.lang.String"
  4052. abstract="false" native="false" synchronized="false"
  4053. static="true" final="false" visibility="public"
  4054. deprecated="not deprecated">
  4055. <param name="file" type="java.io.File"/>
  4056. <exception name="IOException" type="java.io.IOException"/>
  4057. <doc>
  4058. <![CDATA[Convert a os-native filename to a path that works for the shell.
  4059. @param file The filename to convert
  4060. @return The unix pathname
  4061. @throws IOException on windows, there can be problems with the subprocess]]>
  4062. </doc>
  4063. </method>
  4064. <method name="makeShellPath" return="java.lang.String"
  4065. abstract="false" native="false" synchronized="false"
  4066. static="true" final="false" visibility="public"
  4067. deprecated="not deprecated">
  4068. <param name="file" type="java.io.File"/>
  4069. <param name="makeCanonicalPath" type="boolean"/>
  4070. <exception name="IOException" type="java.io.IOException"/>
  4071. <doc>
  4072. <![CDATA[Convert a os-native filename to a path that works for the shell.
  4073. @param file The filename to convert
  4074. @param makeCanonicalPath
  4075. Whether to make canonical path for the file passed
  4076. @return The unix pathname
  4077. @throws IOException on windows, there can be problems with the subprocess]]>
  4078. </doc>
  4079. </method>
  4080. <method name="getDU" return="long"
  4081. abstract="false" native="false" synchronized="false"
  4082. static="true" final="false" visibility="public"
  4083. deprecated="not deprecated">
  4084. <param name="dir" type="java.io.File"/>
  4085. <doc>
  4086. <![CDATA[Takes an input dir and returns the du on that local directory. Very basic
  4087. implementation.
  4088. @param dir
  4089. The input dir to get the disk space of this local dir
  4090. @return The total disk space of the input local directory]]>
  4091. </doc>
  4092. </method>
  4093. <method name="unZip"
  4094. abstract="false" native="false" synchronized="false"
  4095. static="true" final="false" visibility="public"
  4096. deprecated="not deprecated">
  4097. <param name="inFile" type="java.io.File"/>
  4098. <param name="unzipDir" type="java.io.File"/>
  4099. <exception name="IOException" type="java.io.IOException"/>
  4100. <doc>
  4101. <![CDATA[Given a File input it will unzip the file in a the unzip directory
  4102. passed as the second parameter
  4103. @param inFile The zip file as input
  4104. @param unzipDir The unzip directory where to unzip the zip file.
  4105. @throws IOException]]>
  4106. </doc>
  4107. </method>
  4108. <method name="unTar"
  4109. abstract="false" native="false" synchronized="false"
  4110. static="true" final="false" visibility="public"
  4111. deprecated="not deprecated">
  4112. <param name="inFile" type="java.io.File"/>
  4113. <param name="untarDir" type="java.io.File"/>
  4114. <exception name="IOException" type="java.io.IOException"/>
  4115. <doc>
  4116. <![CDATA[Given a Tar File as input it will untar the file in a the untar directory
  4117. passed as the second parameter
  4118. This utility will untar ".tar" files and ".tar.gz","tgz" files.
  4119. @param inFile The tar file as input.
  4120. @param untarDir The untar directory where to untar the tar file.
  4121. @throws IOException]]>
  4122. </doc>
  4123. </method>
  4124. <method name="symLink" return="int"
  4125. abstract="false" native="false" synchronized="false"
  4126. static="true" final="false" visibility="public"
  4127. deprecated="not deprecated">
  4128. <param name="target" type="java.lang.String"/>
  4129. <param name="linkname" type="java.lang.String"/>
  4130. <exception name="IOException" type="java.io.IOException"/>
  4131. <doc>
  4132. <![CDATA[Create a soft link between a src and destination
  4133. only on a local disk. HDFS does not support this
  4134. @param target the target for symlink
  4135. @param linkname the symlink
  4136. @return value returned by the command]]>
  4137. </doc>
  4138. </method>
  4139. <method name="chmod" return="int"
  4140. abstract="false" native="false" synchronized="false"
  4141. static="true" final="false" visibility="public"
  4142. deprecated="not deprecated">
  4143. <param name="filename" type="java.lang.String"/>
  4144. <param name="perm" type="java.lang.String"/>
  4145. <exception name="IOException" type="java.io.IOException"/>
  4146. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  4147. <doc>
  4148. <![CDATA[Change the permissions on a filename.
  4149. @param filename the name of the file to change
  4150. @param perm the permission string
  4151. @return the exit code from the command
  4152. @throws IOException
  4153. @throws InterruptedException]]>
  4154. </doc>
  4155. </method>
  4156. <method name="chmod" return="int"
  4157. abstract="false" native="false" synchronized="false"
  4158. static="true" final="false" visibility="public"
  4159. deprecated="not deprecated">
  4160. <param name="filename" type="java.lang.String"/>
  4161. <param name="perm" type="java.lang.String"/>
  4162. <param name="recursive" type="boolean"/>
  4163. <exception name="IOException" type="java.io.IOException"/>
  4164. <doc>
  4165. <![CDATA[Change the permissions on a file / directory, recursively, if
  4166. needed.
  4167. @param filename name of the file whose permissions are to change
  4168. @param perm permission string
  4169. @param recursive true, if permissions should be changed recursively
  4170. @return the exit code from the command.
  4171. @throws IOException
  4172. @throws InterruptedException]]>
  4173. </doc>
  4174. </method>
  4175. <method name="setPermission"
  4176. abstract="false" native="false" synchronized="false"
  4177. static="true" final="false" visibility="public"
  4178. deprecated="not deprecated">
  4179. <param name="f" type="java.io.File"/>
  4180. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  4181. <exception name="IOException" type="java.io.IOException"/>
  4182. <doc>
  4183. <![CDATA[Set permissions to the required value. Uses the java primitives instead
  4184. of forking if group == other.
  4185. @param f the file to change
  4186. @param permission the new permissions
  4187. @throws IOException]]>
  4188. </doc>
  4189. </method>
  4190. <method name="createLocalTempFile" return="java.io.File"
  4191. abstract="false" native="false" synchronized="false"
  4192. static="true" final="true" visibility="public"
  4193. deprecated="not deprecated">
  4194. <param name="basefile" type="java.io.File"/>
  4195. <param name="prefix" type="java.lang.String"/>
  4196. <param name="isDeleteOnExit" type="boolean"/>
  4197. <exception name="IOException" type="java.io.IOException"/>
  4198. <doc>
  4199. <![CDATA[Create a tmp file for a base file.
  4200. @param basefile the base file of the tmp
  4201. @param prefix file name prefix of tmp
  4202. @param isDeleteOnExit if true, the tmp will be deleted when the VM exits
  4203. @return a newly created tmp file
  4204. @exception IOException If a tmp file cannot created
  4205. @see java.io.File#createTempFile(String, String, File)
  4206. @see java.io.File#deleteOnExit()]]>
  4207. </doc>
  4208. </method>
  4209. <method name="replaceFile"
  4210. abstract="false" native="false" synchronized="false"
  4211. static="true" final="false" visibility="public"
  4212. deprecated="not deprecated">
  4213. <param name="src" type="java.io.File"/>
  4214. <param name="target" type="java.io.File"/>
  4215. <exception name="IOException" type="java.io.IOException"/>
  4216. <doc>
  4217. <![CDATA[Move the src file to the name specified by target.
  4218. @param src the source file
  4219. @param target the target file
  4220. @exception IOException If this operation fails]]>
  4221. </doc>
  4222. </method>
  4223. <method name="listFiles" return="java.io.File[]"
  4224. abstract="false" native="false" synchronized="false"
  4225. static="true" final="false" visibility="public"
  4226. deprecated="not deprecated">
  4227. <param name="dir" type="java.io.File"/>
  4228. <exception name="IOException" type="java.io.IOException"/>
  4229. <doc>
  4230. <![CDATA[A wrapper for {@link File#listFiles()}. This java.io API returns null
  4231. when a dir is not a directory or for any I/O error. Instead of having
  4232. null check everywhere File#listFiles() is used, we will add utility API
  4233. to get around this problem. For the majority of cases where we prefer
  4234. an IOException to be thrown.
  4235. @param dir directory for which listing should be performed
  4236. @return list of files or empty list
  4237. @exception IOException for invalid directory or for a bad disk.]]>
  4238. </doc>
  4239. </method>
  4240. <method name="list" return="java.lang.String[]"
  4241. abstract="false" native="false" synchronized="false"
  4242. static="true" final="false" visibility="public"
  4243. deprecated="not deprecated">
  4244. <param name="dir" type="java.io.File"/>
  4245. <exception name="IOException" type="java.io.IOException"/>
  4246. <doc>
  4247. <![CDATA[A wrapper for {@link File#list()}. This java.io API returns null
  4248. when a dir is not a directory or for any I/O error. Instead of having
  4249. null check everywhere File#list() is used, we will add utility API
  4250. to get around this problem. For the majority of cases where we prefer
  4251. an IOException to be thrown.
  4252. @param dir directory for which listing should be performed
  4253. @return list of file names or empty string list
  4254. @exception IOException for invalid directory or for a bad disk.]]>
  4255. </doc>
  4256. </method>
  4257. <doc>
  4258. <![CDATA[A collection of file-processing util methods]]>
  4259. </doc>
  4260. </class>
  4261. <!-- end class org.apache.hadoop.fs.FileUtil -->
  4262. <!-- start class org.apache.hadoop.fs.FilterFileSystem -->
  4263. <class name="FilterFileSystem" extends="org.apache.hadoop.fs.FileSystem"
  4264. abstract="false"
  4265. static="false" final="false" visibility="public"
  4266. deprecated="not deprecated">
  4267. <constructor name="FilterFileSystem"
  4268. static="false" final="false" visibility="public"
  4269. deprecated="not deprecated">
  4270. </constructor>
  4271. <constructor name="FilterFileSystem" type="org.apache.hadoop.fs.FileSystem"
  4272. static="false" final="false" visibility="public"
  4273. deprecated="not deprecated">
  4274. </constructor>
  4275. <method name="initialize"
  4276. abstract="false" native="false" synchronized="false"
  4277. static="false" final="false" visibility="public"
  4278. deprecated="not deprecated">
  4279. <param name="name" type="java.net.URI"/>
  4280. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  4281. <exception name="IOException" type="java.io.IOException"/>
  4282. <doc>
  4283. <![CDATA[Called after a new FileSystem instance is constructed.
  4284. @param name a uri whose authority section names the host, port, etc.
  4285. for this FileSystem
  4286. @param conf the configuration]]>
  4287. </doc>
  4288. </method>
  4289. <method name="getUri" return="java.net.URI"
  4290. abstract="false" native="false" synchronized="false"
  4291. static="false" final="false" visibility="public"
  4292. deprecated="not deprecated">
  4293. <doc>
  4294. <![CDATA[Returns a URI whose scheme and authority identify this FileSystem.]]>
  4295. </doc>
  4296. </method>
  4297. <method name="getCanonicalServiceName" return="java.lang.String"
  4298. abstract="false" native="false" synchronized="false"
  4299. static="false" final="false" visibility="public"
  4300. deprecated="not deprecated">
  4301. </method>
  4302. <method name="getName" return="java.lang.String"
  4303. abstract="false" native="false" synchronized="false"
  4304. static="false" final="false" visibility="public"
  4305. deprecated="call #getUri() instead.">
  4306. <doc>
  4307. <![CDATA[@deprecated call #getUri() instead.]]>
  4308. </doc>
  4309. </method>
  4310. <method name="makeQualified" return="org.apache.hadoop.fs.Path"
  4311. abstract="false" native="false" synchronized="false"
  4312. static="false" final="false" visibility="public"
  4313. deprecated="not deprecated">
  4314. <param name="path" type="org.apache.hadoop.fs.Path"/>
  4315. <doc>
  4316. <![CDATA[Make sure that a path specifies a FileSystem.]]>
  4317. </doc>
  4318. </method>
  4319. <method name="checkPath"
  4320. abstract="false" native="false" synchronized="false"
  4321. static="false" final="false" visibility="protected"
  4322. deprecated="not deprecated">
  4323. <param name="path" type="org.apache.hadoop.fs.Path"/>
  4324. <doc>
  4325. <![CDATA[Check that a Path belongs to this FileSystem.]]>
  4326. </doc>
  4327. </method>
  4328. <method name="getFileBlockLocations" return="org.apache.hadoop.fs.BlockLocation[]"
  4329. abstract="false" native="false" synchronized="false"
  4330. static="false" final="false" visibility="public"
  4331. deprecated="not deprecated">
  4332. <param name="file" type="org.apache.hadoop.fs.FileStatus"/>
  4333. <param name="start" type="long"/>
  4334. <param name="len" type="long"/>
  4335. <exception name="IOException" type="java.io.IOException"/>
  4336. </method>
  4337. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  4338. abstract="false" native="false" synchronized="false"
  4339. static="false" final="false" visibility="public"
  4340. deprecated="not deprecated">
  4341. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4342. <param name="bufferSize" type="int"/>
  4343. <exception name="IOException" type="java.io.IOException"/>
  4344. <doc>
  4345. <![CDATA[Opens an FSDataInputStream at the indicated Path.
  4346. @param f the file name to open
  4347. @param bufferSize the size of the buffer to be used.]]>
  4348. </doc>
  4349. </method>
  4350. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  4351. abstract="false" native="false" synchronized="false"
  4352. static="false" final="false" visibility="public"
  4353. deprecated="not deprecated">
  4354. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4355. <param name="bufferSize" type="int"/>
  4356. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  4357. <exception name="IOException" type="java.io.IOException"/>
  4358. <doc>
  4359. <![CDATA[{@inheritDoc}]]>
  4360. </doc>
  4361. </method>
  4362. <method name="concat"
  4363. abstract="false" native="false" synchronized="false"
  4364. static="false" final="false" visibility="public"
  4365. deprecated="not deprecated">
  4366. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4367. <param name="psrcs" type="org.apache.hadoop.fs.Path[]"/>
  4368. <exception name="IOException" type="java.io.IOException"/>
  4369. </method>
  4370. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  4371. abstract="false" native="false" synchronized="false"
  4372. static="false" final="false" visibility="public"
  4373. deprecated="not deprecated">
  4374. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4375. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  4376. <param name="overwrite" type="boolean"/>
  4377. <param name="bufferSize" type="int"/>
  4378. <param name="replication" type="short"/>
  4379. <param name="blockSize" type="long"/>
  4380. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  4381. <exception name="IOException" type="java.io.IOException"/>
  4382. </method>
  4383. <method name="setReplication" return="boolean"
  4384. abstract="false" native="false" synchronized="false"
  4385. static="false" final="false" visibility="public"
  4386. deprecated="not deprecated">
  4387. <param name="src" type="org.apache.hadoop.fs.Path"/>
  4388. <param name="replication" type="short"/>
  4389. <exception name="IOException" type="java.io.IOException"/>
  4390. <doc>
  4391. <![CDATA[Set replication for an existing file.
  4392. @param src file name
  4393. @param replication new replication
  4394. @throws IOException
  4395. @return true if successful;
  4396. false if file does not exist or is a directory]]>
  4397. </doc>
  4398. </method>
  4399. <method name="rename" return="boolean"
  4400. abstract="false" native="false" synchronized="false"
  4401. static="false" final="false" visibility="public"
  4402. deprecated="not deprecated">
  4403. <param name="src" type="org.apache.hadoop.fs.Path"/>
  4404. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  4405. <exception name="IOException" type="java.io.IOException"/>
  4406. <doc>
  4407. <![CDATA[Renames Path src to Path dst. Can take place on local fs
  4408. or remote DFS.]]>
  4409. </doc>
  4410. </method>
  4411. <method name="delete" return="boolean"
  4412. abstract="false" native="false" synchronized="false"
  4413. static="false" final="false" visibility="public"
  4414. deprecated="not deprecated">
  4415. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4416. <exception name="IOException" type="java.io.IOException"/>
  4417. <doc>
  4418. <![CDATA[Delete a file]]>
  4419. </doc>
  4420. </method>
  4421. <method name="delete" return="boolean"
  4422. abstract="false" native="false" synchronized="false"
  4423. static="false" final="false" visibility="public"
  4424. deprecated="not deprecated">
  4425. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4426. <param name="recursive" type="boolean"/>
  4427. <exception name="IOException" type="java.io.IOException"/>
  4428. <doc>
  4429. <![CDATA[Delete a file]]>
  4430. </doc>
  4431. </method>
  4432. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  4433. abstract="false" native="false" synchronized="false"
  4434. static="false" final="false" visibility="public"
  4435. deprecated="not deprecated">
  4436. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4437. <exception name="IOException" type="java.io.IOException"/>
  4438. <doc>
  4439. <![CDATA[List files in a directory.]]>
  4440. </doc>
  4441. </method>
  4442. <method name="getHomeDirectory" return="org.apache.hadoop.fs.Path"
  4443. abstract="false" native="false" synchronized="false"
  4444. static="false" final="false" visibility="public"
  4445. deprecated="not deprecated">
  4446. </method>
  4447. <method name="setWorkingDirectory"
  4448. abstract="false" native="false" synchronized="false"
  4449. static="false" final="false" visibility="public"
  4450. deprecated="not deprecated">
  4451. <param name="newDir" type="org.apache.hadoop.fs.Path"/>
  4452. <doc>
  4453. <![CDATA[Set the current working directory for the given file system. All relative
  4454. paths will be resolved relative to it.
  4455. @param newDir]]>
  4456. </doc>
  4457. </method>
  4458. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  4459. abstract="false" native="false" synchronized="false"
  4460. static="false" final="false" visibility="public"
  4461. deprecated="not deprecated">
  4462. <doc>
  4463. <![CDATA[Get the current working directory for the given file system
  4464. @return the directory pathname]]>
  4465. </doc>
  4466. </method>
  4467. <method name="mkdirs" return="boolean"
  4468. abstract="false" native="false" synchronized="false"
  4469. static="false" final="false" visibility="public"
  4470. deprecated="not deprecated">
  4471. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4472. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  4473. <exception name="IOException" type="java.io.IOException"/>
  4474. <doc>
  4475. <![CDATA[{@inheritDoc}]]>
  4476. </doc>
  4477. </method>
  4478. <method name="copyFromLocalFile"
  4479. abstract="false" native="false" synchronized="false"
  4480. static="false" final="false" visibility="public"
  4481. deprecated="not deprecated">
  4482. <param name="delSrc" type="boolean"/>
  4483. <param name="src" type="org.apache.hadoop.fs.Path"/>
  4484. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  4485. <exception name="IOException" type="java.io.IOException"/>
  4486. <doc>
  4487. <![CDATA[The src file is on the local disk. Add it to FS at
  4488. the given dst name.
  4489. delSrc indicates if the source should be removed]]>
  4490. </doc>
  4491. </method>
  4492. <method name="copyToLocalFile"
  4493. abstract="false" native="false" synchronized="false"
  4494. static="false" final="false" visibility="public"
  4495. deprecated="not deprecated">
  4496. <param name="delSrc" type="boolean"/>
  4497. <param name="src" type="org.apache.hadoop.fs.Path"/>
  4498. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  4499. <exception name="IOException" type="java.io.IOException"/>
  4500. <doc>
  4501. <![CDATA[The src file is under FS, and the dst is on the local disk.
  4502. Copy it from FS control to the local dst name.
  4503. delSrc indicates if the src will be removed or not.]]>
  4504. </doc>
  4505. </method>
  4506. <method name="startLocalOutput" return="org.apache.hadoop.fs.Path"
  4507. abstract="false" native="false" synchronized="false"
  4508. static="false" final="false" visibility="public"
  4509. deprecated="not deprecated">
  4510. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  4511. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  4512. <exception name="IOException" type="java.io.IOException"/>
  4513. <doc>
  4514. <![CDATA[Returns a local File that the user can write output to. The caller
  4515. provides both the eventual FS target name and the local working
  4516. file. If the FS is local, we write directly into the target. If
  4517. the FS is remote, we write into the tmp local area.]]>
  4518. </doc>
  4519. </method>
  4520. <method name="completeLocalOutput"
  4521. abstract="false" native="false" synchronized="false"
  4522. static="false" final="false" visibility="public"
  4523. deprecated="not deprecated">
  4524. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  4525. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  4526. <exception name="IOException" type="java.io.IOException"/>
  4527. <doc>
  4528. <![CDATA[Called when we're all done writing to the target. A local FS will
  4529. do nothing, because we've written to exactly the right place. A remote
  4530. FS will copy the contents of tmpLocalFile to the correct target at
  4531. fsOutputFile.]]>
  4532. </doc>
  4533. </method>
  4534. <method name="getDefaultBlockSize" return="long"
  4535. abstract="false" native="false" synchronized="false"
  4536. static="false" final="false" visibility="public"
  4537. deprecated="not deprecated">
  4538. <doc>
  4539. <![CDATA[Return the number of bytes that large input files should be optimally
  4540. be split into to minimize i/o time.]]>
  4541. </doc>
  4542. </method>
  4543. <method name="getDefaultReplication" return="short"
  4544. abstract="false" native="false" synchronized="false"
  4545. static="false" final="false" visibility="public"
  4546. deprecated="not deprecated">
  4547. <doc>
  4548. <![CDATA[Get the default replication.]]>
  4549. </doc>
  4550. </method>
  4551. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  4552. abstract="false" native="false" synchronized="false"
  4553. static="false" final="false" visibility="public"
  4554. deprecated="not deprecated">
  4555. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4556. <exception name="IOException" type="java.io.IOException"/>
  4557. <doc>
  4558. <![CDATA[Get file status.]]>
  4559. </doc>
  4560. </method>
  4561. <method name="getFileChecksum" return="org.apache.hadoop.fs.FileChecksum"
  4562. abstract="false" native="false" synchronized="false"
  4563. static="false" final="false" visibility="public"
  4564. deprecated="not deprecated">
  4565. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4566. <exception name="IOException" type="java.io.IOException"/>
  4567. <doc>
  4568. <![CDATA[{@inheritDoc}]]>
  4569. </doc>
  4570. </method>
  4571. <method name="setVerifyChecksum"
  4572. abstract="false" native="false" synchronized="false"
  4573. static="false" final="false" visibility="public"
  4574. deprecated="not deprecated">
  4575. <param name="verifyChecksum" type="boolean"/>
  4576. <doc>
  4577. <![CDATA[{@inheritDoc}]]>
  4578. </doc>
  4579. </method>
  4580. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  4581. abstract="false" native="false" synchronized="false"
  4582. static="false" final="false" visibility="public"
  4583. deprecated="not deprecated">
  4584. </method>
  4585. <method name="close"
  4586. abstract="false" native="false" synchronized="false"
  4587. static="false" final="false" visibility="public"
  4588. deprecated="not deprecated">
  4589. <exception name="IOException" type="java.io.IOException"/>
  4590. </method>
  4591. <method name="setOwner"
  4592. abstract="false" native="false" synchronized="false"
  4593. static="false" final="false" visibility="public"
  4594. deprecated="not deprecated">
  4595. <param name="p" type="org.apache.hadoop.fs.Path"/>
  4596. <param name="username" type="java.lang.String"/>
  4597. <param name="groupname" type="java.lang.String"/>
  4598. <exception name="IOException" type="java.io.IOException"/>
  4599. <doc>
  4600. <![CDATA[{@inheritDoc}]]>
  4601. </doc>
  4602. </method>
  4603. <method name="setPermission"
  4604. abstract="false" native="false" synchronized="false"
  4605. static="false" final="false" visibility="public"
  4606. deprecated="not deprecated">
  4607. <param name="p" type="org.apache.hadoop.fs.Path"/>
  4608. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  4609. <exception name="IOException" type="java.io.IOException"/>
  4610. <doc>
  4611. <![CDATA[{@inheritDoc}]]>
  4612. </doc>
  4613. </method>
  4614. <field name="fs" type="org.apache.hadoop.fs.FileSystem"
  4615. transient="false" volatile="false"
  4616. static="false" final="false" visibility="protected"
  4617. deprecated="not deprecated">
  4618. </field>
  4619. <doc>
  4620. <![CDATA[A <code>FilterFileSystem</code> contains
  4621. some other file system, which it uses as
  4622. its basic file system, possibly transforming
  4623. the data along the way or providing additional
  4624. functionality. The class <code>FilterFileSystem</code>
  4625. itself simply overrides all methods of
  4626. <code>FileSystem</code> with versions that
  4627. pass all requests to the contained file
  4628. system. Subclasses of <code>FilterFileSystem</code>
  4629. may further override some of these methods
  4630. and may also provide additional methods
  4631. and fields.]]>
  4632. </doc>
  4633. </class>
  4634. <!-- end class org.apache.hadoop.fs.FilterFileSystem -->
  4635. <!-- start class org.apache.hadoop.fs.FSDataInputStream -->
  4636. <class name="FSDataInputStream" extends="java.io.DataInputStream"
  4637. abstract="false"
  4638. static="false" final="false" visibility="public"
  4639. deprecated="not deprecated">
  4640. <implements name="org.apache.hadoop.fs.Seekable"/>
  4641. <implements name="org.apache.hadoop.fs.PositionedReadable"/>
  4642. <implements name="java.io.Closeable"/>
  4643. <implements name="org.apache.hadoop.fs.HasFileDescriptor"/>
  4644. <constructor name="FSDataInputStream" type="java.io.InputStream"
  4645. static="false" final="false" visibility="public"
  4646. deprecated="not deprecated">
  4647. <exception name="IOException" type="java.io.IOException"/>
  4648. </constructor>
  4649. <method name="seek"
  4650. abstract="false" native="false" synchronized="true"
  4651. static="false" final="false" visibility="public"
  4652. deprecated="not deprecated">
  4653. <param name="desired" type="long"/>
  4654. <exception name="IOException" type="java.io.IOException"/>
  4655. </method>
  4656. <method name="getPos" return="long"
  4657. abstract="false" native="false" synchronized="false"
  4658. static="false" final="false" visibility="public"
  4659. deprecated="not deprecated">
  4660. <exception name="IOException" type="java.io.IOException"/>
  4661. </method>
  4662. <method name="read" return="int"
  4663. abstract="false" native="false" synchronized="false"
  4664. static="false" final="false" visibility="public"
  4665. deprecated="not deprecated">
  4666. <param name="position" type="long"/>
  4667. <param name="buffer" type="byte[]"/>
  4668. <param name="offset" type="int"/>
  4669. <param name="length" type="int"/>
  4670. <exception name="IOException" type="java.io.IOException"/>
  4671. </method>
  4672. <method name="readFully"
  4673. abstract="false" native="false" synchronized="false"
  4674. static="false" final="false" visibility="public"
  4675. deprecated="not deprecated">
  4676. <param name="position" type="long"/>
  4677. <param name="buffer" type="byte[]"/>
  4678. <param name="offset" type="int"/>
  4679. <param name="length" type="int"/>
  4680. <exception name="IOException" type="java.io.IOException"/>
  4681. </method>
  4682. <method name="readFully"
  4683. abstract="false" native="false" synchronized="false"
  4684. static="false" final="false" visibility="public"
  4685. deprecated="not deprecated">
  4686. <param name="position" type="long"/>
  4687. <param name="buffer" type="byte[]"/>
  4688. <exception name="IOException" type="java.io.IOException"/>
  4689. </method>
  4690. <method name="seekToNewSource" return="boolean"
  4691. abstract="false" native="false" synchronized="false"
  4692. static="false" final="false" visibility="public"
  4693. deprecated="not deprecated">
  4694. <param name="targetPos" type="long"/>
  4695. <exception name="IOException" type="java.io.IOException"/>
  4696. </method>
  4697. <method name="getFileDescriptor" return="java.io.FileDescriptor"
  4698. abstract="false" native="false" synchronized="false"
  4699. static="false" final="false" visibility="public"
  4700. deprecated="not deprecated">
  4701. <exception name="IOException" type="java.io.IOException"/>
  4702. </method>
  4703. <doc>
  4704. <![CDATA[Utility that wraps a {@link FSInputStream} in a {@link DataInputStream}
  4705. and buffers input through a {@link BufferedInputStream}.]]>
  4706. </doc>
  4707. </class>
  4708. <!-- end class org.apache.hadoop.fs.FSDataInputStream -->
  4709. <!-- start class org.apache.hadoop.fs.FSDataOutputStream -->
  4710. <class name="FSDataOutputStream" extends="java.io.DataOutputStream"
  4711. abstract="false"
  4712. static="false" final="false" visibility="public"
  4713. deprecated="not deprecated">
  4714. <implements name="org.apache.hadoop.fs.Syncable"/>
  4715. <constructor name="FSDataOutputStream" type="java.io.OutputStream"
  4716. static="false" final="false" visibility="public"
  4717. deprecated="not deprecated">
  4718. <exception name="IOException" type="java.io.IOException"/>
  4719. </constructor>
  4720. <constructor name="FSDataOutputStream" type="java.io.OutputStream, org.apache.hadoop.fs.FileSystem.Statistics"
  4721. static="false" final="false" visibility="public"
  4722. deprecated="not deprecated">
  4723. <exception name="IOException" type="java.io.IOException"/>
  4724. </constructor>
  4725. <constructor name="FSDataOutputStream" type="java.io.OutputStream, org.apache.hadoop.fs.FileSystem.Statistics, long"
  4726. static="false" final="false" visibility="public"
  4727. deprecated="not deprecated">
  4728. <exception name="IOException" type="java.io.IOException"/>
  4729. </constructor>
  4730. <method name="getPos" return="long"
  4731. abstract="false" native="false" synchronized="false"
  4732. static="false" final="false" visibility="public"
  4733. deprecated="not deprecated">
  4734. <exception name="IOException" type="java.io.IOException"/>
  4735. </method>
  4736. <method name="close"
  4737. abstract="false" native="false" synchronized="false"
  4738. static="false" final="false" visibility="public"
  4739. deprecated="not deprecated">
  4740. <exception name="IOException" type="java.io.IOException"/>
  4741. </method>
  4742. <method name="getWrappedStream" return="java.io.OutputStream"
  4743. abstract="false" native="false" synchronized="false"
  4744. static="false" final="false" visibility="public"
  4745. deprecated="not deprecated">
  4746. </method>
  4747. <method name="sync"
  4748. abstract="false" native="false" synchronized="false"
  4749. static="false" final="false" visibility="public"
  4750. deprecated="not deprecated">
  4751. <exception name="IOException" type="java.io.IOException"/>
  4752. <doc>
  4753. <![CDATA[{@inheritDoc}]]>
  4754. </doc>
  4755. </method>
  4756. <doc>
  4757. <![CDATA[Utility that wraps a {@link OutputStream} in a {@link DataOutputStream},
  4758. buffers output through a {@link BufferedOutputStream} and creates a checksum
  4759. file.]]>
  4760. </doc>
  4761. </class>
  4762. <!-- end class org.apache.hadoop.fs.FSDataOutputStream -->
  4763. <!-- start class org.apache.hadoop.fs.FSError -->
  4764. <class name="FSError" extends="java.lang.Error"
  4765. abstract="false"
  4766. static="false" final="false" visibility="public"
  4767. deprecated="not deprecated">
  4768. <doc>
  4769. <![CDATA[Thrown for unexpected filesystem errors, presumed to reflect disk errors
  4770. in the native filesystem.]]>
  4771. </doc>
  4772. </class>
  4773. <!-- end class org.apache.hadoop.fs.FSError -->
  4774. <!-- start class org.apache.hadoop.fs.FSInputChecker -->
  4775. <class name="FSInputChecker" extends="org.apache.hadoop.fs.FSInputStream"
  4776. abstract="true"
  4777. static="false" final="false" visibility="public"
  4778. deprecated="not deprecated">
  4779. <constructor name="FSInputChecker" type="org.apache.hadoop.fs.Path, int"
  4780. static="false" final="false" visibility="protected"
  4781. deprecated="not deprecated">
  4782. <doc>
  4783. <![CDATA[Constructor
  4784. @param file The name of the file to be read
  4785. @param numOfRetries Number of read retries when ChecksumError occurs]]>
  4786. </doc>
  4787. </constructor>
  4788. <constructor name="FSInputChecker" type="org.apache.hadoop.fs.Path, int, boolean, java.util.zip.Checksum, int, int"
  4789. static="false" final="false" visibility="protected"
  4790. deprecated="not deprecated">
  4791. <doc>
  4792. <![CDATA[Constructor
  4793. @param file The name of the file to be read
  4794. @param numOfRetries Number of read retries when ChecksumError occurs
  4795. @param sum the type of Checksum engine
  4796. @param chunkSize maximun chunk size
  4797. @param checksumSize the number byte of each checksum]]>
  4798. </doc>
  4799. </constructor>
  4800. <method name="readChunk" return="int"
  4801. abstract="true" native="false" synchronized="false"
  4802. static="false" final="false" visibility="protected"
  4803. deprecated="not deprecated">
  4804. <param name="pos" type="long"/>
  4805. <param name="buf" type="byte[]"/>
  4806. <param name="offset" type="int"/>
  4807. <param name="len" type="int"/>
  4808. <param name="checksum" type="byte[]"/>
  4809. <exception name="IOException" type="java.io.IOException"/>
  4810. <doc>
  4811. <![CDATA[Reads in next checksum chunk data into <code>buf</code> at <code>offset</code>
  4812. and checksum into <code>checksum</code>.
  4813. The method is used for implementing read, therefore, it should be optimized
  4814. for sequential reading
  4815. @param pos chunkPos
  4816. @param buf desitination buffer
  4817. @param offset offset in buf at which to store data
  4818. @param len maximun number of bytes to read
  4819. @return number of bytes read]]>
  4820. </doc>
  4821. </method>
  4822. <method name="getChunkPosition" return="long"
  4823. abstract="true" native="false" synchronized="false"
  4824. static="false" final="false" visibility="protected"
  4825. deprecated="not deprecated">
  4826. <param name="pos" type="long"/>
  4827. <doc>
  4828. <![CDATA[Return position of beginning of chunk containing pos.
  4829. @param pos a postion in the file
  4830. @return the starting position of the chunk which contains the byte]]>
  4831. </doc>
  4832. </method>
  4833. <method name="needChecksum" return="boolean"
  4834. abstract="false" native="false" synchronized="true"
  4835. static="false" final="false" visibility="protected"
  4836. deprecated="not deprecated">
  4837. <doc>
  4838. <![CDATA[Return true if there is a need for checksum verification]]>
  4839. </doc>
  4840. </method>
  4841. <method name="read" return="int"
  4842. abstract="false" native="false" synchronized="true"
  4843. static="false" final="false" visibility="public"
  4844. deprecated="not deprecated">
  4845. <exception name="IOException" type="java.io.IOException"/>
  4846. <doc>
  4847. <![CDATA[Read one checksum-verified byte
  4848. @return the next byte of data, or <code>-1</code> if the end of the
  4849. stream is reached.
  4850. @exception IOException if an I/O error occurs.]]>
  4851. </doc>
  4852. </method>
  4853. <method name="read" return="int"
  4854. abstract="false" native="false" synchronized="true"
  4855. static="false" final="false" visibility="public"
  4856. deprecated="not deprecated">
  4857. <param name="b" type="byte[]"/>
  4858. <param name="off" type="int"/>
  4859. <param name="len" type="int"/>
  4860. <exception name="IOException" type="java.io.IOException"/>
  4861. <doc>
  4862. <![CDATA[Read checksum verified bytes from this byte-input stream into
  4863. the specified byte array, starting at the given offset.
  4864. <p> This method implements the general contract of the corresponding
  4865. <code>{@link InputStream#read(byte[], int, int) read}</code> method of
  4866. the <code>{@link InputStream}</code> class. As an additional
  4867. convenience, it attempts to read as many bytes as possible by repeatedly
  4868. invoking the <code>read</code> method of the underlying stream. This
  4869. iterated <code>read</code> continues until one of the following
  4870. conditions becomes true: <ul>
  4871. <li> The specified number of bytes have been read,
  4872. <li> The <code>read</code> method of the underlying stream returns
  4873. <code>-1</code>, indicating end-of-file.
  4874. </ul> If the first <code>read</code> on the underlying stream returns
  4875. <code>-1</code> to indicate end-of-file then this method returns
  4876. <code>-1</code>. Otherwise this method returns the number of bytes
  4877. actually read.
  4878. @param b destination buffer.
  4879. @param off offset at which to start storing bytes.
  4880. @param len maximum number of bytes to read.
  4881. @return the number of bytes read, or <code>-1</code> if the end of
  4882. the stream has been reached.
  4883. @exception IOException if an I/O error occurs.
  4884. ChecksumException if any checksum error occurs]]>
  4885. </doc>
  4886. </method>
  4887. <method name="checksum2long" return="long"
  4888. abstract="false" native="false" synchronized="false"
  4889. static="true" final="false" visibility="public"
  4890. deprecated="not deprecated">
  4891. <param name="checksum" type="byte[]"/>
  4892. <doc>
  4893. <![CDATA[Convert a checksum byte array to a long]]>
  4894. </doc>
  4895. </method>
  4896. <method name="getPos" return="long"
  4897. abstract="false" native="false" synchronized="true"
  4898. static="false" final="false" visibility="public"
  4899. deprecated="not deprecated">
  4900. <exception name="IOException" type="java.io.IOException"/>
  4901. </method>
  4902. <method name="available" return="int"
  4903. abstract="false" native="false" synchronized="true"
  4904. static="false" final="false" visibility="public"
  4905. deprecated="not deprecated">
  4906. <exception name="IOException" type="java.io.IOException"/>
  4907. </method>
  4908. <method name="skip" return="long"
  4909. abstract="false" native="false" synchronized="true"
  4910. static="false" final="false" visibility="public"
  4911. deprecated="not deprecated">
  4912. <param name="n" type="long"/>
  4913. <exception name="IOException" type="java.io.IOException"/>
  4914. <doc>
  4915. <![CDATA[Skips over and discards <code>n</code> bytes of data from the
  4916. input stream.
  4917. <p>This method may skip more bytes than are remaining in the backing
  4918. file. This produces no exception and the number of bytes skipped
  4919. may include some number of bytes that were beyond the EOF of the
  4920. backing file. Attempting to read from the stream after skipping past
  4921. the end will result in -1 indicating the end of the file.
  4922. <p>If <code>n</code> is negative, no bytes are skipped.
  4923. @param n the number of bytes to be skipped.
  4924. @return the actual number of bytes skipped.
  4925. @exception IOException if an I/O error occurs.
  4926. ChecksumException if the chunk to skip to is corrupted]]>
  4927. </doc>
  4928. </method>
  4929. <method name="seek"
  4930. abstract="false" native="false" synchronized="true"
  4931. static="false" final="false" visibility="public"
  4932. deprecated="not deprecated">
  4933. <param name="pos" type="long"/>
  4934. <exception name="IOException" type="java.io.IOException"/>
  4935. <doc>
  4936. <![CDATA[Seek to the given position in the stream.
  4937. The next read() will be from that position.
  4938. <p>This method may seek past the end of the file.
  4939. This produces no exception and an attempt to read from
  4940. the stream will result in -1 indicating the end of the file.
  4941. @param pos the postion to seek to.
  4942. @exception IOException if an I/O error occurs.
  4943. ChecksumException if the chunk to seek to is corrupted]]>
  4944. </doc>
  4945. </method>
  4946. <method name="readFully" return="int"
  4947. abstract="false" native="false" synchronized="false"
  4948. static="true" final="false" visibility="protected"
  4949. deprecated="not deprecated">
  4950. <param name="stm" type="java.io.InputStream"/>
  4951. <param name="buf" type="byte[]"/>
  4952. <param name="offset" type="int"/>
  4953. <param name="len" type="int"/>
  4954. <exception name="IOException" type="java.io.IOException"/>
  4955. <doc>
  4956. <![CDATA[A utility function that tries to read up to <code>len</code> bytes from
  4957. <code>stm</code>
  4958. @param stm an input stream
  4959. @param buf destiniation buffer
  4960. @param offset offset at which to store data
  4961. @param len number of bytes to read
  4962. @return actual number of bytes read
  4963. @throws IOException if there is any IO error]]>
  4964. </doc>
  4965. </method>
  4966. <method name="set"
  4967. abstract="false" native="false" synchronized="true"
  4968. static="false" final="true" visibility="protected"
  4969. deprecated="not deprecated">
  4970. <param name="verifyChecksum" type="boolean"/>
  4971. <param name="sum" type="java.util.zip.Checksum"/>
  4972. <param name="maxChunkSize" type="int"/>
  4973. <param name="checksumSize" type="int"/>
  4974. <doc>
  4975. <![CDATA[Set the checksum related parameters
  4976. @param verifyChecksum whether to verify checksum
  4977. @param sum which type of checksum to use
  4978. @param maxChunkSize maximun chunk size
  4979. @param checksumSize checksum size]]>
  4980. </doc>
  4981. </method>
  4982. <method name="markSupported" return="boolean"
  4983. abstract="false" native="false" synchronized="false"
  4984. static="false" final="true" visibility="public"
  4985. deprecated="not deprecated">
  4986. </method>
  4987. <method name="mark"
  4988. abstract="false" native="false" synchronized="false"
  4989. static="false" final="true" visibility="public"
  4990. deprecated="not deprecated">
  4991. <param name="readlimit" type="int"/>
  4992. </method>
  4993. <method name="reset"
  4994. abstract="false" native="false" synchronized="false"
  4995. static="false" final="true" visibility="public"
  4996. deprecated="not deprecated">
  4997. <exception name="IOException" type="java.io.IOException"/>
  4998. </method>
  4999. <field name="LOG" type="org.apache.commons.logging.Log"
  5000. transient="false" volatile="false"
  5001. static="true" final="true" visibility="public"
  5002. deprecated="not deprecated">
  5003. </field>
  5004. <field name="file" type="org.apache.hadoop.fs.Path"
  5005. transient="false" volatile="false"
  5006. static="false" final="false" visibility="protected"
  5007. deprecated="not deprecated">
  5008. <doc>
  5009. <![CDATA[The file name from which data is read from]]>
  5010. </doc>
  5011. </field>
  5012. <doc>
  5013. <![CDATA[This is a generic input stream for verifying checksums for
  5014. data before it is read by a user.]]>
  5015. </doc>
  5016. </class>
  5017. <!-- end class org.apache.hadoop.fs.FSInputChecker -->
  5018. <!-- start class org.apache.hadoop.fs.FSInputStream -->
  5019. <class name="FSInputStream" extends="java.io.InputStream"
  5020. abstract="true"
  5021. static="false" final="false" visibility="public"
  5022. deprecated="not deprecated">
  5023. <implements name="org.apache.hadoop.fs.Seekable"/>
  5024. <implements name="org.apache.hadoop.fs.PositionedReadable"/>
  5025. <constructor name="FSInputStream"
  5026. static="false" final="false" visibility="public"
  5027. deprecated="not deprecated">
  5028. </constructor>
  5029. <method name="seek"
  5030. abstract="true" native="false" synchronized="false"
  5031. static="false" final="false" visibility="public"
  5032. deprecated="not deprecated">
  5033. <param name="pos" type="long"/>
  5034. <exception name="IOException" type="java.io.IOException"/>
  5035. <doc>
  5036. <![CDATA[Seek to the given offset from the start of the file.
  5037. The next read() will be from that location. Can't
  5038. seek past the end of the file.]]>
  5039. </doc>
  5040. </method>
  5041. <method name="getPos" return="long"
  5042. abstract="true" native="false" synchronized="false"
  5043. static="false" final="false" visibility="public"
  5044. deprecated="not deprecated">
  5045. <exception name="IOException" type="java.io.IOException"/>
  5046. <doc>
  5047. <![CDATA[Return the current offset from the start of the file]]>
  5048. </doc>
  5049. </method>
  5050. <method name="seekToNewSource" return="boolean"
  5051. abstract="true" native="false" synchronized="false"
  5052. static="false" final="false" visibility="public"
  5053. deprecated="not deprecated">
  5054. <param name="targetPos" type="long"/>
  5055. <exception name="IOException" type="java.io.IOException"/>
  5056. <doc>
  5057. <![CDATA[Seeks a different copy of the data. Returns true if
  5058. found a new source, false otherwise.]]>
  5059. </doc>
  5060. </method>
  5061. <method name="read" return="int"
  5062. abstract="false" native="false" synchronized="false"
  5063. static="false" final="false" visibility="public"
  5064. deprecated="not deprecated">
  5065. <param name="position" type="long"/>
  5066. <param name="buffer" type="byte[]"/>
  5067. <param name="offset" type="int"/>
  5068. <param name="length" type="int"/>
  5069. <exception name="IOException" type="java.io.IOException"/>
  5070. </method>
  5071. <method name="readFully"
  5072. abstract="false" native="false" synchronized="false"
  5073. static="false" final="false" visibility="public"
  5074. deprecated="not deprecated">
  5075. <param name="position" type="long"/>
  5076. <param name="buffer" type="byte[]"/>
  5077. <param name="offset" type="int"/>
  5078. <param name="length" type="int"/>
  5079. <exception name="IOException" type="java.io.IOException"/>
  5080. </method>
  5081. <method name="readFully"
  5082. abstract="false" native="false" synchronized="false"
  5083. static="false" final="false" visibility="public"
  5084. deprecated="not deprecated">
  5085. <param name="position" type="long"/>
  5086. <param name="buffer" type="byte[]"/>
  5087. <exception name="IOException" type="java.io.IOException"/>
  5088. </method>
  5089. <doc>
  5090. <![CDATA[FSInputStream is a generic old InputStream with a little bit
  5091. of RAF-style seek ability.]]>
  5092. </doc>
  5093. </class>
  5094. <!-- end class org.apache.hadoop.fs.FSInputStream -->
  5095. <!-- start class org.apache.hadoop.fs.FSOutputSummer -->
  5096. <class name="FSOutputSummer" extends="java.io.OutputStream"
  5097. abstract="true"
  5098. static="false" final="false" visibility="public"
  5099. deprecated="not deprecated">
  5100. <constructor name="FSOutputSummer" type="java.util.zip.Checksum, int, int"
  5101. static="false" final="false" visibility="protected"
  5102. deprecated="not deprecated">
  5103. </constructor>
  5104. <method name="writeChunk"
  5105. abstract="true" native="false" synchronized="false"
  5106. static="false" final="false" visibility="protected"
  5107. deprecated="not deprecated">
  5108. <param name="b" type="byte[]"/>
  5109. <param name="offset" type="int"/>
  5110. <param name="len" type="int"/>
  5111. <param name="checksum" type="byte[]"/>
  5112. <exception name="IOException" type="java.io.IOException"/>
  5113. </method>
  5114. <method name="write"
  5115. abstract="false" native="false" synchronized="true"
  5116. static="false" final="false" visibility="public"
  5117. deprecated="not deprecated">
  5118. <param name="b" type="int"/>
  5119. <exception name="IOException" type="java.io.IOException"/>
  5120. <doc>
  5121. <![CDATA[Write one byte]]>
  5122. </doc>
  5123. </method>
  5124. <method name="write"
  5125. abstract="false" native="false" synchronized="true"
  5126. static="false" final="false" visibility="public"
  5127. deprecated="not deprecated">
  5128. <param name="b" type="byte[]"/>
  5129. <param name="off" type="int"/>
  5130. <param name="len" type="int"/>
  5131. <exception name="IOException" type="java.io.IOException"/>
  5132. <doc>
  5133. <![CDATA[Writes <code>len</code> bytes from the specified byte array
  5134. starting at offset <code>off</code> and generate a checksum for
  5135. each data chunk.
  5136. <p> This method stores bytes from the given array into this
  5137. stream's buffer before it gets checksumed. The buffer gets checksumed
  5138. and flushed to the underlying output stream when all data
  5139. in a checksum chunk are in the buffer. If the buffer is empty and
  5140. requested length is at least as large as the size of next checksum chunk
  5141. size, this method will checksum and write the chunk directly
  5142. to the underlying output stream. Thus it avoids uneccessary data copy.
  5143. @param b the data.
  5144. @param off the start offset in the data.
  5145. @param len the number of bytes to write.
  5146. @exception IOException if an I/O error occurs.]]>
  5147. </doc>
  5148. </method>
  5149. <method name="flushBuffer"
  5150. abstract="false" native="false" synchronized="true"
  5151. static="false" final="false" visibility="protected"
  5152. deprecated="not deprecated">
  5153. <exception name="IOException" type="java.io.IOException"/>
  5154. </method>
  5155. <method name="flushBuffer"
  5156. abstract="false" native="false" synchronized="true"
  5157. static="false" final="false" visibility="protected"
  5158. deprecated="not deprecated">
  5159. <param name="keep" type="boolean"/>
  5160. <exception name="IOException" type="java.io.IOException"/>
  5161. </method>
  5162. <method name="convertToByteStream" return="byte[]"
  5163. abstract="false" native="false" synchronized="false"
  5164. static="true" final="false" visibility="public"
  5165. deprecated="not deprecated">
  5166. <param name="sum" type="java.util.zip.Checksum"/>
  5167. <param name="checksumSize" type="int"/>
  5168. <doc>
  5169. <![CDATA[Converts a checksum integer value to a byte stream]]>
  5170. </doc>
  5171. </method>
  5172. <method name="resetChecksumChunk"
  5173. abstract="false" native="false" synchronized="true"
  5174. static="false" final="false" visibility="protected"
  5175. deprecated="not deprecated">
  5176. <param name="size" type="int"/>
  5177. <doc>
  5178. <![CDATA[Resets existing buffer with a new one of the specified size.]]>
  5179. </doc>
  5180. </method>
  5181. <doc>
  5182. <![CDATA[This is a generic output stream for generating checksums for
  5183. data before it is written to the underlying stream]]>
  5184. </doc>
  5185. </class>
  5186. <!-- end class org.apache.hadoop.fs.FSOutputSummer -->
  5187. <!-- start class org.apache.hadoop.fs.FsShell -->
  5188. <class name="FsShell" extends="org.apache.hadoop.conf.Configured"
  5189. abstract="false"
  5190. static="false" final="false" visibility="public"
  5191. deprecated="not deprecated">
  5192. <implements name="org.apache.hadoop.util.Tool"/>
  5193. <constructor name="FsShell"
  5194. static="false" final="false" visibility="public"
  5195. deprecated="not deprecated">
  5196. </constructor>
  5197. <constructor name="FsShell" type="org.apache.hadoop.conf.Configuration"
  5198. static="false" final="false" visibility="public"
  5199. deprecated="not deprecated">
  5200. </constructor>
  5201. <method name="init"
  5202. abstract="false" native="false" synchronized="false"
  5203. static="false" final="false" visibility="protected"
  5204. deprecated="not deprecated">
  5205. <exception name="IOException" type="java.io.IOException"/>
  5206. </method>
  5207. <method name="getFS" return="org.apache.hadoop.fs.FileSystem"
  5208. abstract="false" native="false" synchronized="false"
  5209. static="false" final="false" visibility="protected"
  5210. deprecated="not deprecated">
  5211. <exception name="IOException" type="java.io.IOException"/>
  5212. </method>
  5213. <method name="getTrash" return="org.apache.hadoop.fs.Trash"
  5214. abstract="false" native="false" synchronized="false"
  5215. static="false" final="false" visibility="protected"
  5216. deprecated="not deprecated">
  5217. <exception name="IOException" type="java.io.IOException"/>
  5218. </method>
  5219. <method name="getCurrentTrashDir" return="org.apache.hadoop.fs.Path"
  5220. abstract="false" native="false" synchronized="false"
  5221. static="false" final="false" visibility="public"
  5222. deprecated="not deprecated">
  5223. <exception name="IOException" type="java.io.IOException"/>
  5224. <doc>
  5225. <![CDATA[Returns the Trash object associated with this shell.]]>
  5226. </doc>
  5227. </method>
  5228. <method name="byteDesc" return="java.lang.String"
  5229. abstract="false" native="false" synchronized="false"
  5230. static="true" final="false" visibility="public"
  5231. deprecated="Consider using {@link org.apache.hadoop.util.StringUtils#byteDesc} instead.">
  5232. <param name="len" type="long"/>
  5233. <doc>
  5234. <![CDATA[Return an abbreviated English-language desc of the byte length
  5235. @deprecated Consider using {@link org.apache.hadoop.util.StringUtils#byteDesc} instead.]]>
  5236. </doc>
  5237. </method>
  5238. <method name="limitDecimalTo2" return="java.lang.String"
  5239. abstract="false" native="false" synchronized="true"
  5240. static="true" final="false" visibility="public"
  5241. deprecated="Consider using {@link org.apache.hadoop.util.StringUtils#limitDecimalTo2} instead.">
  5242. <param name="d" type="double"/>
  5243. <doc>
  5244. <![CDATA[@deprecated Consider using {@link org.apache.hadoop.util.StringUtils#limitDecimalTo2} instead.]]>
  5245. </doc>
  5246. </method>
  5247. <method name="run" return="int"
  5248. abstract="false" native="false" synchronized="false"
  5249. static="false" final="false" visibility="public"
  5250. deprecated="not deprecated">
  5251. <param name="argv" type="java.lang.String[]"/>
  5252. <exception name="Exception" type="java.lang.Exception"/>
  5253. <doc>
  5254. <![CDATA[run]]>
  5255. </doc>
  5256. </method>
  5257. <method name="close"
  5258. abstract="false" native="false" synchronized="false"
  5259. static="false" final="false" visibility="public"
  5260. deprecated="not deprecated">
  5261. <exception name="IOException" type="java.io.IOException"/>
  5262. </method>
  5263. <method name="main"
  5264. abstract="false" native="false" synchronized="false"
  5265. static="true" final="false" visibility="public"
  5266. deprecated="not deprecated">
  5267. <param name="argv" type="java.lang.String[]"/>
  5268. <exception name="Exception" type="java.lang.Exception"/>
  5269. <doc>
  5270. <![CDATA[main() has some simple utility methods]]>
  5271. </doc>
  5272. </method>
  5273. <field name="dateForm" type="java.text.SimpleDateFormat"
  5274. transient="false" volatile="false"
  5275. static="true" final="true" visibility="public"
  5276. deprecated="not deprecated">
  5277. </field>
  5278. <field name="modifFmt" type="java.text.SimpleDateFormat"
  5279. transient="false" volatile="false"
  5280. static="true" final="true" visibility="protected"
  5281. deprecated="not deprecated">
  5282. </field>
  5283. <doc>
  5284. <![CDATA[Provide command line access to a FileSystem.]]>
  5285. </doc>
  5286. </class>
  5287. <!-- end class org.apache.hadoop.fs.FsShell -->
  5288. <!-- start class org.apache.hadoop.fs.FsUrlStreamHandlerFactory -->
  5289. <class name="FsUrlStreamHandlerFactory" extends="java.lang.Object"
  5290. abstract="false"
  5291. static="false" final="false" visibility="public"
  5292. deprecated="not deprecated">
  5293. <implements name="java.net.URLStreamHandlerFactory"/>
  5294. <constructor name="FsUrlStreamHandlerFactory"
  5295. static="false" final="false" visibility="public"
  5296. deprecated="not deprecated">
  5297. </constructor>
  5298. <constructor name="FsUrlStreamHandlerFactory" type="org.apache.hadoop.conf.Configuration"
  5299. static="false" final="false" visibility="public"
  5300. deprecated="not deprecated">
  5301. </constructor>
  5302. <method name="createURLStreamHandler" return="java.net.URLStreamHandler"
  5303. abstract="false" native="false" synchronized="false"
  5304. static="false" final="false" visibility="public"
  5305. deprecated="not deprecated">
  5306. <param name="protocol" type="java.lang.String"/>
  5307. </method>
  5308. <doc>
  5309. <![CDATA[Factory for URL stream handlers.
  5310. There is only one handler whose job is to create UrlConnections. A
  5311. FsUrlConnection relies on FileSystem to choose the appropriate FS
  5312. implementation.
  5313. Before returning our handler, we make sure that FileSystem knows an
  5314. implementation for the requested scheme/protocol.]]>
  5315. </doc>
  5316. </class>
  5317. <!-- end class org.apache.hadoop.fs.FsUrlStreamHandlerFactory -->
  5318. <!-- start class org.apache.hadoop.fs.GlobPattern -->
  5319. <class name="GlobPattern" extends="java.lang.Object"
  5320. abstract="false"
  5321. static="false" final="false" visibility="public"
  5322. deprecated="not deprecated">
  5323. <constructor name="GlobPattern" type="java.lang.String"
  5324. static="false" final="false" visibility="public"
  5325. deprecated="not deprecated">
  5326. <doc>
  5327. <![CDATA[Construct the glob pattern object with a glob pattern string
  5328. @param globPattern the glob pattern string]]>
  5329. </doc>
  5330. </constructor>
  5331. <method name="compiled" return="java.util.regex.Pattern"
  5332. abstract="false" native="false" synchronized="false"
  5333. static="false" final="false" visibility="public"
  5334. deprecated="not deprecated">
  5335. <doc>
  5336. <![CDATA[@return the compiled pattern]]>
  5337. </doc>
  5338. </method>
  5339. <method name="compile" return="java.util.regex.Pattern"
  5340. abstract="false" native="false" synchronized="false"
  5341. static="true" final="false" visibility="public"
  5342. deprecated="not deprecated">
  5343. <param name="globPattern" type="java.lang.String"/>
  5344. <doc>
  5345. <![CDATA[Compile glob pattern string
  5346. @param globPattern the glob pattern
  5347. @return the pattern object]]>
  5348. </doc>
  5349. </method>
  5350. <method name="matches" return="boolean"
  5351. abstract="false" native="false" synchronized="false"
  5352. static="false" final="false" visibility="public"
  5353. deprecated="not deprecated">
  5354. <param name="s" type="java.lang.CharSequence"/>
  5355. <doc>
  5356. <![CDATA[Match input against the compiled glob pattern
  5357. @param s input chars
  5358. @return true for successful matches]]>
  5359. </doc>
  5360. </method>
  5361. <method name="set"
  5362. abstract="false" native="false" synchronized="false"
  5363. static="false" final="false" visibility="public"
  5364. deprecated="not deprecated">
  5365. <param name="glob" type="java.lang.String"/>
  5366. <doc>
  5367. <![CDATA[Set and compile a glob pattern
  5368. @param glob the glob pattern string]]>
  5369. </doc>
  5370. </method>
  5371. <method name="hasWildcard" return="boolean"
  5372. abstract="false" native="false" synchronized="false"
  5373. static="false" final="false" visibility="public"
  5374. deprecated="not deprecated">
  5375. <doc>
  5376. <![CDATA[@return true if this is a wildcard pattern (with special chars)]]>
  5377. </doc>
  5378. </method>
  5379. <doc>
  5380. <![CDATA[A class for POSIX glob pattern with brace expansions.]]>
  5381. </doc>
  5382. </class>
  5383. <!-- end class org.apache.hadoop.fs.GlobPattern -->
  5384. <!-- start class org.apache.hadoop.fs.HardLink -->
  5385. <class name="HardLink" extends="java.lang.Object"
  5386. abstract="false"
  5387. static="false" final="false" visibility="public"
  5388. deprecated="not deprecated">
  5389. <constructor name="HardLink"
  5390. static="false" final="false" visibility="public"
  5391. deprecated="not deprecated">
  5392. </constructor>
  5393. <method name="getLinkMultArgLength" return="int"
  5394. abstract="false" native="false" synchronized="false"
  5395. static="true" final="false" visibility="protected"
  5396. deprecated="not deprecated">
  5397. <param name="fileDir" type="java.io.File"/>
  5398. <param name="fileBaseNames" type="java.lang.String[]"/>
  5399. <param name="linkDir" type="java.io.File"/>
  5400. <exception name="IOException" type="java.io.IOException"/>
  5401. <doc>
  5402. <![CDATA[Calculate the nominal length of all contributors to the total
  5403. commandstring length, including fixed overhead of the OS-dependent
  5404. command. It's protected rather than private, to assist unit testing,
  5405. but real clients are not expected to need it -- see the way
  5406. createHardLinkMult() uses it internally so the user doesn't need to worry
  5407. about it.
  5408. @param fileDir - source directory, parent of fileBaseNames
  5409. @param fileBaseNames - array of path-less file names, relative
  5410. to the source directory
  5411. @param linkDir - target directory where the hardlinks will be put
  5412. @return - total data length (must not exceed maxAllowedCmdArgLength)
  5413. @throws IOException]]>
  5414. </doc>
  5415. </method>
  5416. <method name="getMaxAllowedCmdArgLength" return="int"
  5417. abstract="false" native="false" synchronized="false"
  5418. static="true" final="false" visibility="protected"
  5419. deprecated="not deprecated">
  5420. <doc>
  5421. <![CDATA[Return this private value for use by unit tests.
  5422. Shell commands are not allowed to have a total string length
  5423. exceeding this size.]]>
  5424. </doc>
  5425. </method>
  5426. <method name="createHardLink"
  5427. abstract="false" native="false" synchronized="false"
  5428. static="true" final="false" visibility="public"
  5429. deprecated="not deprecated">
  5430. <param name="file" type="java.io.File"/>
  5431. <param name="linkName" type="java.io.File"/>
  5432. <exception name="IOException" type="java.io.IOException"/>
  5433. <doc>
  5434. <![CDATA[Creates a hardlink
  5435. @param file - existing source file
  5436. @param linkName - desired target link file]]>
  5437. </doc>
  5438. </method>
  5439. <method name="createHardLinkMult"
  5440. abstract="false" native="false" synchronized="false"
  5441. static="true" final="false" visibility="public"
  5442. deprecated="not deprecated">
  5443. <param name="parentDir" type="java.io.File"/>
  5444. <param name="fileBaseNames" type="java.lang.String[]"/>
  5445. <param name="linkDir" type="java.io.File"/>
  5446. <exception name="IOException" type="java.io.IOException"/>
  5447. <doc>
  5448. <![CDATA[Creates hardlinks from multiple existing files within one parent
  5449. directory, into one target directory.
  5450. @param parentDir - directory containing source files
  5451. @param fileBaseNames - list of path-less file names, as returned by
  5452. parentDir.list()
  5453. @param linkDir - where the hardlinks should be put. It must already exist.
  5454. If the list of files is too long (overflows maxAllowedCmdArgLength),
  5455. we will automatically split it into multiple invocations of the
  5456. underlying method.]]>
  5457. </doc>
  5458. </method>
  5459. <method name="createHardLinkMult" return="int"
  5460. abstract="false" native="false" synchronized="false"
  5461. static="true" final="false" visibility="protected"
  5462. deprecated="not deprecated">
  5463. <param name="parentDir" type="java.io.File"/>
  5464. <param name="fileBaseNames" type="java.lang.String[]"/>
  5465. <param name="linkDir" type="java.io.File"/>
  5466. <param name="maxLength" type="int"/>
  5467. <exception name="IOException" type="java.io.IOException"/>
  5468. </method>
  5469. <method name="getLinkCount" return="int"
  5470. abstract="false" native="false" synchronized="false"
  5471. static="true" final="false" visibility="public"
  5472. deprecated="not deprecated">
  5473. <param name="fileName" type="java.io.File"/>
  5474. <exception name="IOException" type="java.io.IOException"/>
  5475. <doc>
  5476. <![CDATA[Retrieves the number of links to the specified file.]]>
  5477. </doc>
  5478. </method>
  5479. <field name="osType" type="org.apache.hadoop.fs.HardLink.OSType"
  5480. transient="false" volatile="false"
  5481. static="true" final="false" visibility="public"
  5482. deprecated="not deprecated">
  5483. </field>
  5484. <field name="linkStats" type="org.apache.hadoop.fs.HardLink.LinkStats"
  5485. transient="false" volatile="false"
  5486. static="false" final="true" visibility="public"
  5487. deprecated="not deprecated">
  5488. </field>
  5489. <doc>
  5490. <![CDATA[Class for creating hardlinks.
  5491. Supports Unix/Linux, WinXP/2003/Vista via Cygwin, and Mac OS X.
  5492. The HardLink class was formerly a static inner class of FSUtil,
  5493. and the methods provided were blatantly non-thread-safe.
  5494. To enable volume-parallel Update snapshots, we now provide static
  5495. threadsafe methods that allocate new buffer string arrays
  5496. upon each call. We also provide an API to hardlink all files in a
  5497. directory with a single command, which is up to 128 times more
  5498. efficient - and minimizes the impact of the extra buffer creations.]]>
  5499. </doc>
  5500. </class>
  5501. <!-- end class org.apache.hadoop.fs.HardLink -->
  5502. <!-- start class org.apache.hadoop.fs.HardLink.LinkStats -->
  5503. <class name="HardLink.LinkStats" extends="java.lang.Object"
  5504. abstract="false"
  5505. static="true" final="false" visibility="public"
  5506. deprecated="not deprecated">
  5507. <constructor name="HardLink.LinkStats"
  5508. static="false" final="false" visibility="public"
  5509. deprecated="not deprecated">
  5510. </constructor>
  5511. <method name="clear"
  5512. abstract="false" native="false" synchronized="false"
  5513. static="false" final="false" visibility="public"
  5514. deprecated="not deprecated">
  5515. </method>
  5516. <method name="report" return="java.lang.String"
  5517. abstract="false" native="false" synchronized="false"
  5518. static="false" final="false" visibility="public"
  5519. deprecated="not deprecated">
  5520. </method>
  5521. <field name="countDirs" type="int"
  5522. transient="false" volatile="false"
  5523. static="false" final="false" visibility="public"
  5524. deprecated="not deprecated">
  5525. </field>
  5526. <field name="countSingleLinks" type="int"
  5527. transient="false" volatile="false"
  5528. static="false" final="false" visibility="public"
  5529. deprecated="not deprecated">
  5530. </field>
  5531. <field name="countMultLinks" type="int"
  5532. transient="false" volatile="false"
  5533. static="false" final="false" visibility="public"
  5534. deprecated="not deprecated">
  5535. </field>
  5536. <field name="countFilesMultLinks" type="int"
  5537. transient="false" volatile="false"
  5538. static="false" final="false" visibility="public"
  5539. deprecated="not deprecated">
  5540. </field>
  5541. <field name="countEmptyDirs" type="int"
  5542. transient="false" volatile="false"
  5543. static="false" final="false" visibility="public"
  5544. deprecated="not deprecated">
  5545. </field>
  5546. <field name="countPhysicalFileCopies" type="int"
  5547. transient="false" volatile="false"
  5548. static="false" final="false" visibility="public"
  5549. deprecated="not deprecated">
  5550. </field>
  5551. <doc>
  5552. <![CDATA[HardLink statistics counters and methods.
  5553. Not multi-thread safe, obviously.
  5554. Init is called during HardLink instantiation, above.
  5555. These are intended for use by knowledgeable clients, not internally,
  5556. because many of the internal methods are static and can't update these
  5557. per-instance counters.]]>
  5558. </doc>
  5559. </class>
  5560. <!-- end class org.apache.hadoop.fs.HardLink.LinkStats -->
  5561. <!-- start class org.apache.hadoop.fs.HardLink.OSType -->
  5562. <class name="HardLink.OSType" extends="java.lang.Enum"
  5563. abstract="false"
  5564. static="true" final="true" visibility="public"
  5565. deprecated="not deprecated">
  5566. <method name="values" return="org.apache.hadoop.fs.HardLink.OSType[]"
  5567. abstract="false" native="false" synchronized="false"
  5568. static="true" final="false" visibility="public"
  5569. deprecated="not deprecated">
  5570. </method>
  5571. <method name="valueOf" return="org.apache.hadoop.fs.HardLink.OSType"
  5572. abstract="false" native="false" synchronized="false"
  5573. static="true" final="false" visibility="public"
  5574. deprecated="not deprecated">
  5575. <param name="name" type="java.lang.String"/>
  5576. </method>
  5577. <field name="OS_TYPE_UNIX" type="org.apache.hadoop.fs.HardLink.OSType"
  5578. transient="false" volatile="false"
  5579. static="true" final="true" visibility="public"
  5580. deprecated="not deprecated">
  5581. </field>
  5582. <field name="OS_TYPE_WINXP" type="org.apache.hadoop.fs.HardLink.OSType"
  5583. transient="false" volatile="false"
  5584. static="true" final="true" visibility="public"
  5585. deprecated="not deprecated">
  5586. </field>
  5587. <field name="OS_TYPE_SOLARIS" type="org.apache.hadoop.fs.HardLink.OSType"
  5588. transient="false" volatile="false"
  5589. static="true" final="true" visibility="public"
  5590. deprecated="not deprecated">
  5591. </field>
  5592. <field name="OS_TYPE_MAC" type="org.apache.hadoop.fs.HardLink.OSType"
  5593. transient="false" volatile="false"
  5594. static="true" final="true" visibility="public"
  5595. deprecated="not deprecated">
  5596. </field>
  5597. </class>
  5598. <!-- end class org.apache.hadoop.fs.HardLink.OSType -->
  5599. <!-- start class org.apache.hadoop.fs.HarFileSystem -->
  5600. <class name="HarFileSystem" extends="org.apache.hadoop.fs.FilterFileSystem"
  5601. abstract="false"
  5602. static="false" final="false" visibility="public"
  5603. deprecated="not deprecated">
  5604. <constructor name="HarFileSystem"
  5605. static="false" final="false" visibility="public"
  5606. deprecated="not deprecated">
  5607. <doc>
  5608. <![CDATA[public construction of harfilesystem]]>
  5609. </doc>
  5610. </constructor>
  5611. <constructor name="HarFileSystem" type="org.apache.hadoop.fs.FileSystem"
  5612. static="false" final="false" visibility="public"
  5613. deprecated="not deprecated">
  5614. <doc>
  5615. <![CDATA[Constructor to create a HarFileSystem with an
  5616. underlying filesystem.
  5617. @param fs]]>
  5618. </doc>
  5619. </constructor>
  5620. <method name="initialize"
  5621. abstract="false" native="false" synchronized="false"
  5622. static="false" final="false" visibility="public"
  5623. deprecated="not deprecated">
  5624. <param name="name" type="java.net.URI"/>
  5625. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  5626. <exception name="IOException" type="java.io.IOException"/>
  5627. <doc>
  5628. <![CDATA[Initialize a Har filesystem per har archive. The
  5629. archive home directory is the top level directory
  5630. in the filesystem that contains the HAR archive.
  5631. Be careful with this method, you do not want to go
  5632. on creating new Filesystem instances per call to
  5633. path.getFileSystem().
  5634. the uri of Har is
  5635. har://underlyingfsscheme-host:port/archivepath.
  5636. or
  5637. har:///archivepath. This assumes the underlying filesystem
  5638. to be used in case not specified.]]>
  5639. </doc>
  5640. </method>
  5641. <method name="getHarVersion" return="int"
  5642. abstract="false" native="false" synchronized="false"
  5643. static="false" final="false" visibility="public"
  5644. deprecated="not deprecated">
  5645. <exception name="IOException" type="java.io.IOException"/>
  5646. </method>
  5647. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  5648. abstract="false" native="false" synchronized="false"
  5649. static="false" final="false" visibility="public"
  5650. deprecated="not deprecated">
  5651. <doc>
  5652. <![CDATA[return the top level archive.]]>
  5653. </doc>
  5654. </method>
  5655. <method name="getUri" return="java.net.URI"
  5656. abstract="false" native="false" synchronized="false"
  5657. static="false" final="false" visibility="public"
  5658. deprecated="not deprecated">
  5659. <doc>
  5660. <![CDATA[Returns the uri of this filesystem.
  5661. The uri is of the form
  5662. har://underlyingfsschema-host:port/pathintheunderlyingfs]]>
  5663. </doc>
  5664. </method>
  5665. <method name="getCanonicalServiceName" return="java.lang.String"
  5666. abstract="false" native="false" synchronized="false"
  5667. static="false" final="false" visibility="public"
  5668. deprecated="not deprecated">
  5669. </method>
  5670. <method name="makeQualified" return="org.apache.hadoop.fs.Path"
  5671. abstract="false" native="false" synchronized="false"
  5672. static="false" final="false" visibility="public"
  5673. deprecated="not deprecated">
  5674. <param name="path" type="org.apache.hadoop.fs.Path"/>
  5675. </method>
  5676. <method name="getFileBlockLocations" return="org.apache.hadoop.fs.BlockLocation[]"
  5677. abstract="false" native="false" synchronized="false"
  5678. static="false" final="false" visibility="public"
  5679. deprecated="not deprecated">
  5680. <param name="file" type="org.apache.hadoop.fs.FileStatus"/>
  5681. <param name="start" type="long"/>
  5682. <param name="len" type="long"/>
  5683. <exception name="IOException" type="java.io.IOException"/>
  5684. <doc>
  5685. <![CDATA[Get block locations from the underlying fs and fix their
  5686. offsets and lengths.
  5687. @param file the input filestatus to get block locations
  5688. @param start the start of the desired range in the contained file
  5689. @param len the length of the desired range
  5690. @return block locations for this segment of file
  5691. @throws IOException]]>
  5692. </doc>
  5693. </method>
  5694. <method name="getHarHash" return="int"
  5695. abstract="false" native="false" synchronized="false"
  5696. static="true" final="false" visibility="public"
  5697. deprecated="not deprecated">
  5698. <param name="p" type="org.apache.hadoop.fs.Path"/>
  5699. <doc>
  5700. <![CDATA[the hash of the path p inside iniside
  5701. the filesystem
  5702. @param p the path in the harfilesystem
  5703. @return the hash code of the path.]]>
  5704. </doc>
  5705. </method>
  5706. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  5707. abstract="false" native="false" synchronized="false"
  5708. static="false" final="false" visibility="public"
  5709. deprecated="not deprecated">
  5710. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5711. <exception name="IOException" type="java.io.IOException"/>
  5712. <doc>
  5713. <![CDATA[return the filestatus of files in har archive.
  5714. The permission returned are that of the archive
  5715. index files. The permissions are not persisted
  5716. while creating a hadoop archive.
  5717. @param f the path in har filesystem
  5718. @return filestatus.
  5719. @throws IOException]]>
  5720. </doc>
  5721. </method>
  5722. <method name="getFileChecksum" return="org.apache.hadoop.fs.FileChecksum"
  5723. abstract="false" native="false" synchronized="false"
  5724. static="false" final="false" visibility="public"
  5725. deprecated="not deprecated">
  5726. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5727. <doc>
  5728. <![CDATA[@return null since no checksum algorithm is implemented.]]>
  5729. </doc>
  5730. </method>
  5731. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  5732. abstract="false" native="false" synchronized="false"
  5733. static="false" final="false" visibility="public"
  5734. deprecated="not deprecated">
  5735. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5736. <param name="bufferSize" type="int"/>
  5737. <exception name="IOException" type="java.io.IOException"/>
  5738. <doc>
  5739. <![CDATA[Returns a har input stream which fakes end of
  5740. file. It reads the index files to get the part
  5741. file name and the size and start of the file.]]>
  5742. </doc>
  5743. </method>
  5744. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  5745. abstract="false" native="false" synchronized="false"
  5746. static="false" final="false" visibility="public"
  5747. deprecated="not deprecated">
  5748. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5749. <param name="bufferSize" type="int"/>
  5750. <exception name="IOException" type="java.io.IOException"/>
  5751. </method>
  5752. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  5753. abstract="false" native="false" synchronized="false"
  5754. static="false" final="false" visibility="public"
  5755. deprecated="not deprecated">
  5756. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5757. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  5758. <param name="overwrite" type="boolean"/>
  5759. <param name="bufferSize" type="int"/>
  5760. <param name="replication" type="short"/>
  5761. <param name="blockSize" type="long"/>
  5762. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  5763. <exception name="IOException" type="java.io.IOException"/>
  5764. </method>
  5765. <method name="close"
  5766. abstract="false" native="false" synchronized="false"
  5767. static="false" final="false" visibility="public"
  5768. deprecated="not deprecated">
  5769. <exception name="IOException" type="java.io.IOException"/>
  5770. </method>
  5771. <method name="setReplication" return="boolean"
  5772. abstract="false" native="false" synchronized="false"
  5773. static="false" final="false" visibility="public"
  5774. deprecated="not deprecated">
  5775. <param name="src" type="org.apache.hadoop.fs.Path"/>
  5776. <param name="replication" type="short"/>
  5777. <exception name="IOException" type="java.io.IOException"/>
  5778. <doc>
  5779. <![CDATA[Not implemented.]]>
  5780. </doc>
  5781. </method>
  5782. <method name="delete" return="boolean"
  5783. abstract="false" native="false" synchronized="false"
  5784. static="false" final="false" visibility="public"
  5785. deprecated="not deprecated">
  5786. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5787. <param name="recursive" type="boolean"/>
  5788. <exception name="IOException" type="java.io.IOException"/>
  5789. <doc>
  5790. <![CDATA[Not implemented.]]>
  5791. </doc>
  5792. </method>
  5793. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  5794. abstract="false" native="false" synchronized="false"
  5795. static="false" final="false" visibility="public"
  5796. deprecated="not deprecated">
  5797. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5798. <exception name="IOException" type="java.io.IOException"/>
  5799. <doc>
  5800. <![CDATA[liststatus returns the children of a directory
  5801. after looking up the index files.]]>
  5802. </doc>
  5803. </method>
  5804. <method name="getHomeDirectory" return="org.apache.hadoop.fs.Path"
  5805. abstract="false" native="false" synchronized="false"
  5806. static="false" final="false" visibility="public"
  5807. deprecated="not deprecated">
  5808. <doc>
  5809. <![CDATA[return the top level archive path.]]>
  5810. </doc>
  5811. </method>
  5812. <method name="setWorkingDirectory"
  5813. abstract="false" native="false" synchronized="false"
  5814. static="false" final="false" visibility="public"
  5815. deprecated="not deprecated">
  5816. <param name="newDir" type="org.apache.hadoop.fs.Path"/>
  5817. </method>
  5818. <method name="mkdirs" return="boolean"
  5819. abstract="false" native="false" synchronized="false"
  5820. static="false" final="false" visibility="public"
  5821. deprecated="not deprecated">
  5822. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5823. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  5824. <exception name="IOException" type="java.io.IOException"/>
  5825. <doc>
  5826. <![CDATA[not implemented.]]>
  5827. </doc>
  5828. </method>
  5829. <method name="copyFromLocalFile"
  5830. abstract="false" native="false" synchronized="false"
  5831. static="false" final="false" visibility="public"
  5832. deprecated="not deprecated">
  5833. <param name="delSrc" type="boolean"/>
  5834. <param name="src" type="org.apache.hadoop.fs.Path"/>
  5835. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  5836. <exception name="IOException" type="java.io.IOException"/>
  5837. <doc>
  5838. <![CDATA[not implemented.]]>
  5839. </doc>
  5840. </method>
  5841. <method name="copyToLocalFile"
  5842. abstract="false" native="false" synchronized="false"
  5843. static="false" final="false" visibility="public"
  5844. deprecated="not deprecated">
  5845. <param name="delSrc" type="boolean"/>
  5846. <param name="src" type="org.apache.hadoop.fs.Path"/>
  5847. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  5848. <exception name="IOException" type="java.io.IOException"/>
  5849. <doc>
  5850. <![CDATA[copies the file in the har filesystem to a local file.]]>
  5851. </doc>
  5852. </method>
  5853. <method name="startLocalOutput" return="org.apache.hadoop.fs.Path"
  5854. abstract="false" native="false" synchronized="false"
  5855. static="false" final="false" visibility="public"
  5856. deprecated="not deprecated">
  5857. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  5858. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  5859. <exception name="IOException" type="java.io.IOException"/>
  5860. <doc>
  5861. <![CDATA[not implemented.]]>
  5862. </doc>
  5863. </method>
  5864. <method name="completeLocalOutput"
  5865. abstract="false" native="false" synchronized="false"
  5866. static="false" final="false" visibility="public"
  5867. deprecated="not deprecated">
  5868. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  5869. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  5870. <exception name="IOException" type="java.io.IOException"/>
  5871. <doc>
  5872. <![CDATA[not implemented.]]>
  5873. </doc>
  5874. </method>
  5875. <method name="setOwner"
  5876. abstract="false" native="false" synchronized="false"
  5877. static="false" final="false" visibility="public"
  5878. deprecated="not deprecated">
  5879. <param name="p" type="org.apache.hadoop.fs.Path"/>
  5880. <param name="username" type="java.lang.String"/>
  5881. <param name="groupname" type="java.lang.String"/>
  5882. <exception name="IOException" type="java.io.IOException"/>
  5883. <doc>
  5884. <![CDATA[not implemented.]]>
  5885. </doc>
  5886. </method>
  5887. <method name="setPermission"
  5888. abstract="false" native="false" synchronized="false"
  5889. static="false" final="false" visibility="public"
  5890. deprecated="not deprecated">
  5891. <param name="p" type="org.apache.hadoop.fs.Path"/>
  5892. <param name="permisssion" type="org.apache.hadoop.fs.permission.FsPermission"/>
  5893. <exception name="IOException" type="java.io.IOException"/>
  5894. <doc>
  5895. <![CDATA[Not implemented.]]>
  5896. </doc>
  5897. </method>
  5898. <field name="VERSION" type="int"
  5899. transient="false" volatile="false"
  5900. static="true" final="true" visibility="public"
  5901. deprecated="not deprecated">
  5902. </field>
  5903. <doc>
  5904. <![CDATA[This is an implementation of the Hadoop Archive
  5905. Filesystem. This archive Filesystem has index files
  5906. of the form _index* and has contents of the form
  5907. part-*. The index files store the indexes of the
  5908. real files. The index files are of the form _masterindex
  5909. and _index. The master index is a level of indirection
  5910. in to the index file to make the look ups faster. the index
  5911. file is sorted with hash code of the paths that it contains
  5912. and the master index contains pointers to the positions in
  5913. index for ranges of hashcodes.]]>
  5914. </doc>
  5915. </class>
  5916. <!-- end class org.apache.hadoop.fs.HarFileSystem -->
  5917. <!-- start interface org.apache.hadoop.fs.HasFileDescriptor -->
  5918. <interface name="HasFileDescriptor" abstract="true"
  5919. static="false" final="false" visibility="public"
  5920. deprecated="not deprecated">
  5921. <method name="getFileDescriptor" return="java.io.FileDescriptor"
  5922. abstract="false" native="false" synchronized="false"
  5923. static="false" final="false" visibility="public"
  5924. deprecated="not deprecated">
  5925. <exception name="IOException" type="java.io.IOException"/>
  5926. <doc>
  5927. <![CDATA[@return the FileDescriptor
  5928. @throws IOException]]>
  5929. </doc>
  5930. </method>
  5931. <doc>
  5932. <![CDATA[Having a FileDescriptor]]>
  5933. </doc>
  5934. </interface>
  5935. <!-- end interface org.apache.hadoop.fs.HasFileDescriptor -->
  5936. <!-- start class org.apache.hadoop.fs.InMemoryFileSystem -->
  5937. <class name="InMemoryFileSystem" extends="org.apache.hadoop.fs.ChecksumFileSystem"
  5938. abstract="false"
  5939. static="false" final="false" visibility="public"
  5940. deprecated="not deprecated">
  5941. <constructor name="InMemoryFileSystem"
  5942. static="false" final="false" visibility="public"
  5943. deprecated="not deprecated">
  5944. </constructor>
  5945. <constructor name="InMemoryFileSystem" type="java.net.URI, org.apache.hadoop.conf.Configuration"
  5946. static="false" final="false" visibility="public"
  5947. deprecated="not deprecated">
  5948. </constructor>
  5949. <method name="reserveSpaceWithCheckSum" return="boolean"
  5950. abstract="false" native="false" synchronized="false"
  5951. static="false" final="false" visibility="public"
  5952. deprecated="not deprecated">
  5953. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5954. <param name="size" type="long"/>
  5955. <doc>
  5956. <![CDATA[Register a file with its size. This will also register a checksum for the
  5957. file that the user is trying to create. This is required since none of
  5958. the FileSystem APIs accept the size of the file as argument. But since it
  5959. is required for us to apriori know the size of the file we are going to
  5960. create, the user must call this method for each file he wants to create
  5961. and reserve memory for that file. We either succeed in reserving memory
  5962. for both the main file and the checksum file and return true, or return
  5963. false.]]>
  5964. </doc>
  5965. </method>
  5966. <method name="getFiles" return="org.apache.hadoop.fs.Path[]"
  5967. abstract="false" native="false" synchronized="false"
  5968. static="false" final="false" visibility="public"
  5969. deprecated="not deprecated">
  5970. <param name="filter" type="org.apache.hadoop.fs.PathFilter"/>
  5971. </method>
  5972. <method name="getNumFiles" return="int"
  5973. abstract="false" native="false" synchronized="false"
  5974. static="false" final="false" visibility="public"
  5975. deprecated="not deprecated">
  5976. <param name="filter" type="org.apache.hadoop.fs.PathFilter"/>
  5977. </method>
  5978. <method name="getFSSize" return="long"
  5979. abstract="false" native="false" synchronized="false"
  5980. static="false" final="false" visibility="public"
  5981. deprecated="not deprecated">
  5982. </method>
  5983. <method name="getPercentUsed" return="float"
  5984. abstract="false" native="false" synchronized="false"
  5985. static="false" final="false" visibility="public"
  5986. deprecated="not deprecated">
  5987. </method>
  5988. <doc>
  5989. <![CDATA[An implementation of the in-memory filesystem. This implementation assumes
  5990. that the file lengths are known ahead of time and the total lengths of all
  5991. the files is below a certain number (like 100 MB, configurable). Use the API
  5992. reserveSpaceWithCheckSum(Path f, int size) (see below for a description of
  5993. the API for reserving space in the FS. The uri of this filesystem starts with
  5994. ramfs:// .]]>
  5995. </doc>
  5996. </class>
  5997. <!-- end class org.apache.hadoop.fs.InMemoryFileSystem -->
  5998. <!-- start class org.apache.hadoop.fs.LocalDirAllocator -->
  5999. <class name="LocalDirAllocator" extends="java.lang.Object"
  6000. abstract="false"
  6001. static="false" final="false" visibility="public"
  6002. deprecated="not deprecated">
  6003. <constructor name="LocalDirAllocator" type="java.lang.String"
  6004. static="false" final="false" visibility="public"
  6005. deprecated="not deprecated">
  6006. <doc>
  6007. <![CDATA[Create an allocator object
  6008. @param contextCfgItemName]]>
  6009. </doc>
  6010. </constructor>
  6011. <method name="getLocalPathForWrite" return="org.apache.hadoop.fs.Path"
  6012. abstract="false" native="false" synchronized="false"
  6013. static="false" final="false" visibility="public"
  6014. deprecated="not deprecated">
  6015. <param name="pathStr" type="java.lang.String"/>
  6016. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  6017. <exception name="IOException" type="java.io.IOException"/>
  6018. <doc>
  6019. <![CDATA[Get a path from the local FS. This method should be used if the size of
  6020. the file is not known apriori. We go round-robin over the set of disks
  6021. (via the configured dirs) and return the first complete path where
  6022. we could create the parent directory of the passed path.
  6023. @param pathStr the requested path (this will be created on the first
  6024. available disk)
  6025. @param conf the Configuration object
  6026. @return the complete path to the file on a local disk
  6027. @throws IOException]]>
  6028. </doc>
  6029. </method>
  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="size" type="long"/>
  6036. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  6037. <exception name="IOException" type="java.io.IOException"/>
  6038. <doc>
  6039. <![CDATA[Get a path from the local FS. Pass size as
  6040. SIZE_UNKNOWN if not known apriori. We
  6041. round-robin over the set of disks (via the configured dirs) and return
  6042. the first complete path which has enough space
  6043. @param pathStr the requested path (this will be created on the first
  6044. available disk)
  6045. @param size the size of the file that is going to be written
  6046. @param conf the Configuration object
  6047. @return the complete path to the file on a local disk
  6048. @throws IOException]]>
  6049. </doc>
  6050. </method>
  6051. <method name="getLocalPathForWrite" return="org.apache.hadoop.fs.Path"
  6052. abstract="false" native="false" synchronized="false"
  6053. static="false" final="false" visibility="public"
  6054. deprecated="not deprecated">
  6055. <param name="pathStr" type="java.lang.String"/>
  6056. <param name="size" type="long"/>
  6057. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  6058. <param name="checkWrite" type="boolean"/>
  6059. <exception name="IOException" type="java.io.IOException"/>
  6060. <doc>
  6061. <![CDATA[Get a path from the local FS. Pass size as
  6062. SIZE_UNKNOWN if not known apriori. We
  6063. round-robin over the set of disks (via the configured dirs) and return
  6064. the first complete path which has enough space
  6065. @param pathStr the requested path (this will be created on the first
  6066. available disk)
  6067. @param size the size of the file that is going to be written
  6068. @param conf the Configuration object
  6069. @param checkWrite ensure that the path is writable
  6070. @return the complete path to the file on a local disk
  6071. @throws IOException]]>
  6072. </doc>
  6073. </method>
  6074. <method name="getLocalPathToRead" return="org.apache.hadoop.fs.Path"
  6075. abstract="false" native="false" synchronized="false"
  6076. static="false" final="false" visibility="public"
  6077. deprecated="not deprecated">
  6078. <param name="pathStr" type="java.lang.String"/>
  6079. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  6080. <exception name="IOException" type="java.io.IOException"/>
  6081. <doc>
  6082. <![CDATA[Get a path from the local FS for reading. We search through all the
  6083. configured dirs for the file's existence and return the complete
  6084. path to the file when we find one
  6085. @param pathStr the requested file (this will be searched)
  6086. @param conf the Configuration object
  6087. @return the complete path to the file on a local disk
  6088. @throws IOException]]>
  6089. </doc>
  6090. </method>
  6091. <method name="getAllLocalPathsToRead" return="java.lang.Iterable"
  6092. abstract="false" native="false" synchronized="false"
  6093. static="false" final="false" visibility="public"
  6094. deprecated="not deprecated">
  6095. <param name="pathStr" type="java.lang.String"/>
  6096. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  6097. <exception name="IOException" type="java.io.IOException"/>
  6098. <doc>
  6099. <![CDATA[Get all of the paths that currently exist in the working directories.
  6100. @param pathStr the path underneath the roots
  6101. @param conf the configuration to look up the roots in
  6102. @return all of the paths that exist under any of the roots
  6103. @throws IOException]]>
  6104. </doc>
  6105. </method>
  6106. <method name="createTmpFileForWrite" return="java.io.File"
  6107. abstract="false" native="false" synchronized="false"
  6108. static="false" final="false" visibility="public"
  6109. deprecated="not deprecated">
  6110. <param name="pathStr" type="java.lang.String"/>
  6111. <param name="size" type="long"/>
  6112. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  6113. <exception name="IOException" type="java.io.IOException"/>
  6114. <doc>
  6115. <![CDATA[Creates a temporary file in the local FS. Pass size as -1 if not known
  6116. apriori. We round-robin over the set of disks (via the configured dirs)
  6117. and select the first complete path which has enough space. A file is
  6118. created on this directory. The file is guaranteed to go away when the
  6119. JVM exits.
  6120. @param pathStr prefix for the temporary file
  6121. @param size the size of the file that is going to be written
  6122. @param conf the Configuration object
  6123. @return a unique temporary file
  6124. @throws IOException]]>
  6125. </doc>
  6126. </method>
  6127. <method name="isContextValid" return="boolean"
  6128. abstract="false" native="false" synchronized="false"
  6129. static="true" final="false" visibility="public"
  6130. deprecated="not deprecated">
  6131. <param name="contextCfgItemName" type="java.lang.String"/>
  6132. <doc>
  6133. <![CDATA[Method to check whether a context is valid
  6134. @param contextCfgItemName
  6135. @return true/false]]>
  6136. </doc>
  6137. </method>
  6138. <method name="ifExists" return="boolean"
  6139. abstract="false" native="false" synchronized="false"
  6140. static="false" final="false" visibility="public"
  6141. deprecated="not deprecated">
  6142. <param name="pathStr" type="java.lang.String"/>
  6143. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  6144. <doc>
  6145. <![CDATA[We search through all the configured dirs for the file's existence
  6146. and return true when we find
  6147. @param pathStr the requested file (this will be searched)
  6148. @param conf the Configuration object
  6149. @return true if files exist. false otherwise
  6150. @throws IOException]]>
  6151. </doc>
  6152. </method>
  6153. <field name="SIZE_UNKNOWN" type="int"
  6154. transient="false" volatile="false"
  6155. static="true" final="true" visibility="public"
  6156. deprecated="not deprecated">
  6157. <doc>
  6158. <![CDATA[Used when size of file to be allocated is unknown.]]>
  6159. </doc>
  6160. </field>
  6161. <doc>
  6162. <![CDATA[An implementation of a round-robin scheme for disk allocation for creating
  6163. files. The way it works is that it is kept track what disk was last
  6164. allocated for a file write. For the current request, the next disk from
  6165. the set of disks would be allocated if the free space on the disk is
  6166. sufficient enough to accommodate the file that is being considered for
  6167. creation. If the space requirements cannot be met, the next disk in order
  6168. would be tried and so on till a disk is found with sufficient capacity.
  6169. Once a disk with sufficient space is identified, a check is done to make
  6170. sure that the disk is writable. Also, there is an API provided that doesn't
  6171. take the space requirements into consideration but just checks whether the
  6172. disk under consideration is writable (this should be used for cases where
  6173. the file size is not known apriori). An API is provided to read a path that
  6174. was created earlier. That API works by doing a scan of all the disks for the
  6175. input pathname.
  6176. This implementation also provides the functionality of having multiple
  6177. allocators per JVM (one for each unique functionality or context, like
  6178. mapred, dfs-client, etc.). It ensures that there is only one instance of
  6179. an allocator per context per JVM.
  6180. Note:
  6181. 1. The contexts referred above are actually the configuration items defined
  6182. in the Configuration class like "mapred.local.dir" (for which we want to
  6183. control the dir allocations). The context-strings are exactly those
  6184. configuration items.
  6185. 2. This implementation does not take into consideration cases where
  6186. a disk becomes read-only or goes out of space while a file is being written
  6187. to (disks are shared between multiple processes, and so the latter situation
  6188. is probable).
  6189. 3. In the class implementation, "Disk" is referred to as "Dir", which
  6190. actually points to the configured directory on the Disk which will be the
  6191. parent for all file write/read allocations.]]>
  6192. </doc>
  6193. </class>
  6194. <!-- end class org.apache.hadoop.fs.LocalDirAllocator -->
  6195. <!-- start class org.apache.hadoop.fs.LocalFileSystem -->
  6196. <class name="LocalFileSystem" extends="org.apache.hadoop.fs.ChecksumFileSystem"
  6197. abstract="false"
  6198. static="false" final="false" visibility="public"
  6199. deprecated="not deprecated">
  6200. <constructor name="LocalFileSystem"
  6201. static="false" final="false" visibility="public"
  6202. deprecated="not deprecated">
  6203. </constructor>
  6204. <constructor name="LocalFileSystem" type="org.apache.hadoop.fs.FileSystem"
  6205. static="false" final="false" visibility="public"
  6206. deprecated="not deprecated">
  6207. </constructor>
  6208. <method name="getRaw" return="org.apache.hadoop.fs.FileSystem"
  6209. abstract="false" native="false" synchronized="false"
  6210. static="false" final="false" visibility="public"
  6211. deprecated="not deprecated">
  6212. </method>
  6213. <method name="exists" return="boolean"
  6214. abstract="false" native="false" synchronized="false"
  6215. static="false" final="false" visibility="public"
  6216. deprecated="not deprecated">
  6217. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6218. <exception name="IOException" type="java.io.IOException"/>
  6219. <doc>
  6220. <![CDATA[Get file status.]]>
  6221. </doc>
  6222. </method>
  6223. <method name="pathToFile" return="java.io.File"
  6224. abstract="false" native="false" synchronized="false"
  6225. static="false" final="false" visibility="public"
  6226. deprecated="not deprecated">
  6227. <param name="path" type="org.apache.hadoop.fs.Path"/>
  6228. <doc>
  6229. <![CDATA[Convert a path to a File.]]>
  6230. </doc>
  6231. </method>
  6232. <method name="copyFromLocalFile"
  6233. abstract="false" native="false" synchronized="false"
  6234. static="false" final="false" visibility="public"
  6235. deprecated="not deprecated">
  6236. <param name="delSrc" type="boolean"/>
  6237. <param name="src" type="org.apache.hadoop.fs.Path"/>
  6238. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  6239. <exception name="IOException" type="java.io.IOException"/>
  6240. </method>
  6241. <method name="copyToLocalFile"
  6242. abstract="false" native="false" synchronized="false"
  6243. static="false" final="false" visibility="public"
  6244. deprecated="not deprecated">
  6245. <param name="delSrc" type="boolean"/>
  6246. <param name="src" type="org.apache.hadoop.fs.Path"/>
  6247. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  6248. <exception name="IOException" type="java.io.IOException"/>
  6249. </method>
  6250. <method name="reportChecksumFailure" return="boolean"
  6251. abstract="false" native="false" synchronized="false"
  6252. static="false" final="false" visibility="public"
  6253. deprecated="not deprecated">
  6254. <param name="p" type="org.apache.hadoop.fs.Path"/>
  6255. <param name="in" type="org.apache.hadoop.fs.FSDataInputStream"/>
  6256. <param name="inPos" type="long"/>
  6257. <param name="sums" type="org.apache.hadoop.fs.FSDataInputStream"/>
  6258. <param name="sumsPos" type="long"/>
  6259. <doc>
  6260. <![CDATA[Moves files to a bad file directory on the same device, so that their
  6261. storage will not be reused.]]>
  6262. </doc>
  6263. </method>
  6264. <doc>
  6265. <![CDATA[Implement the FileSystem API for the checksumed local filesystem.]]>
  6266. </doc>
  6267. </class>
  6268. <!-- end class org.apache.hadoop.fs.LocalFileSystem -->
  6269. <!-- start class org.apache.hadoop.fs.MD5MD5CRC32FileChecksum -->
  6270. <class name="MD5MD5CRC32FileChecksum" extends="org.apache.hadoop.fs.FileChecksum"
  6271. abstract="false"
  6272. static="false" final="false" visibility="public"
  6273. deprecated="not deprecated">
  6274. <constructor name="MD5MD5CRC32FileChecksum"
  6275. static="false" final="false" visibility="public"
  6276. deprecated="not deprecated">
  6277. <doc>
  6278. <![CDATA[Same as this(0, 0, null)]]>
  6279. </doc>
  6280. </constructor>
  6281. <constructor name="MD5MD5CRC32FileChecksum" type="int, long, org.apache.hadoop.io.MD5Hash"
  6282. static="false" final="false" visibility="public"
  6283. deprecated="not deprecated">
  6284. <doc>
  6285. <![CDATA[Create a MD5FileChecksum]]>
  6286. </doc>
  6287. </constructor>
  6288. <method name="getAlgorithmName" return="java.lang.String"
  6289. abstract="false" native="false" synchronized="false"
  6290. static="false" final="false" visibility="public"
  6291. deprecated="not deprecated">
  6292. <doc>
  6293. <![CDATA[{@inheritDoc}]]>
  6294. </doc>
  6295. </method>
  6296. <method name="getLength" return="int"
  6297. abstract="false" native="false" synchronized="false"
  6298. static="false" final="false" visibility="public"
  6299. deprecated="not deprecated">
  6300. <doc>
  6301. <![CDATA[{@inheritDoc}]]>
  6302. </doc>
  6303. </method>
  6304. <method name="getBytes" return="byte[]"
  6305. abstract="false" native="false" synchronized="false"
  6306. static="false" final="false" visibility="public"
  6307. deprecated="not deprecated">
  6308. <doc>
  6309. <![CDATA[{@inheritDoc}]]>
  6310. </doc>
  6311. </method>
  6312. <method name="readFields"
  6313. abstract="false" native="false" synchronized="false"
  6314. static="false" final="false" visibility="public"
  6315. deprecated="not deprecated">
  6316. <param name="in" type="java.io.DataInput"/>
  6317. <exception name="IOException" type="java.io.IOException"/>
  6318. <doc>
  6319. <![CDATA[{@inheritDoc}]]>
  6320. </doc>
  6321. </method>
  6322. <method name="write"
  6323. abstract="false" native="false" synchronized="false"
  6324. static="false" final="false" visibility="public"
  6325. deprecated="not deprecated">
  6326. <param name="out" type="java.io.DataOutput"/>
  6327. <exception name="IOException" type="java.io.IOException"/>
  6328. <doc>
  6329. <![CDATA[{@inheritDoc}]]>
  6330. </doc>
  6331. </method>
  6332. <method name="write"
  6333. abstract="false" native="false" synchronized="false"
  6334. static="true" final="false" visibility="public"
  6335. deprecated="not deprecated">
  6336. <param name="xml" type="org.znerd.xmlenc.XMLOutputter"/>
  6337. <param name="that" type="org.apache.hadoop.fs.MD5MD5CRC32FileChecksum"/>
  6338. <exception name="IOException" type="java.io.IOException"/>
  6339. <doc>
  6340. <![CDATA[Write that object to xml output.]]>
  6341. </doc>
  6342. </method>
  6343. <method name="valueOf" return="org.apache.hadoop.fs.MD5MD5CRC32FileChecksum"
  6344. abstract="false" native="false" synchronized="false"
  6345. static="true" final="false" visibility="public"
  6346. deprecated="not deprecated">
  6347. <param name="attrs" type="org.xml.sax.Attributes"/>
  6348. <exception name="SAXException" type="org.xml.sax.SAXException"/>
  6349. <doc>
  6350. <![CDATA[Return the object represented in the attributes.]]>
  6351. </doc>
  6352. </method>
  6353. <method name="toString" return="java.lang.String"
  6354. abstract="false" native="false" synchronized="false"
  6355. static="false" final="false" visibility="public"
  6356. deprecated="not deprecated">
  6357. <doc>
  6358. <![CDATA[{@inheritDoc}]]>
  6359. </doc>
  6360. </method>
  6361. <field name="LENGTH" type="int"
  6362. transient="false" volatile="false"
  6363. static="true" final="true" visibility="public"
  6364. deprecated="not deprecated">
  6365. </field>
  6366. <doc>
  6367. <![CDATA[MD5 of MD5 of CRC32.]]>
  6368. </doc>
  6369. </class>
  6370. <!-- end class org.apache.hadoop.fs.MD5MD5CRC32FileChecksum -->
  6371. <!-- start class org.apache.hadoop.fs.Path -->
  6372. <class name="Path" extends="java.lang.Object"
  6373. abstract="false"
  6374. static="false" final="false" visibility="public"
  6375. deprecated="not deprecated">
  6376. <implements name="java.lang.Comparable"/>
  6377. <constructor name="Path" type="java.lang.String, java.lang.String"
  6378. static="false" final="false" visibility="public"
  6379. deprecated="not deprecated">
  6380. <doc>
  6381. <![CDATA[Resolve a child path against a parent path.]]>
  6382. </doc>
  6383. </constructor>
  6384. <constructor name="Path" type="org.apache.hadoop.fs.Path, java.lang.String"
  6385. static="false" final="false" visibility="public"
  6386. deprecated="not deprecated">
  6387. <doc>
  6388. <![CDATA[Resolve a child path against a parent path.]]>
  6389. </doc>
  6390. </constructor>
  6391. <constructor name="Path" type="java.lang.String, org.apache.hadoop.fs.Path"
  6392. static="false" final="false" visibility="public"
  6393. deprecated="not deprecated">
  6394. <doc>
  6395. <![CDATA[Resolve a child path against a parent path.]]>
  6396. </doc>
  6397. </constructor>
  6398. <constructor name="Path" type="org.apache.hadoop.fs.Path, org.apache.hadoop.fs.Path"
  6399. static="false" final="false" visibility="public"
  6400. deprecated="not deprecated">
  6401. <doc>
  6402. <![CDATA[Resolve a child path against a parent path.]]>
  6403. </doc>
  6404. </constructor>
  6405. <constructor name="Path" type="java.lang.String"
  6406. static="false" final="false" visibility="public"
  6407. deprecated="not deprecated">
  6408. <doc>
  6409. <![CDATA[Construct a path from a String. Path strings are URIs, but with
  6410. unescaped elements and some additional normalization.]]>
  6411. </doc>
  6412. </constructor>
  6413. <constructor name="Path" type="java.lang.String, java.lang.String, java.lang.String"
  6414. static="false" final="false" visibility="public"
  6415. deprecated="not deprecated">
  6416. <doc>
  6417. <![CDATA[Construct a Path from components.]]>
  6418. </doc>
  6419. </constructor>
  6420. <constructor name="Path" type="java.net.URI"
  6421. static="false" final="false" visibility="public"
  6422. deprecated="not deprecated">
  6423. <doc>
  6424. <![CDATA[Construct a path from a URI]]>
  6425. </doc>
  6426. </constructor>
  6427. <method name="toUri" return="java.net.URI"
  6428. abstract="false" native="false" synchronized="false"
  6429. static="false" final="false" visibility="public"
  6430. deprecated="not deprecated">
  6431. <doc>
  6432. <![CDATA[Convert this to a URI.]]>
  6433. </doc>
  6434. </method>
  6435. <method name="getFileSystem" return="org.apache.hadoop.fs.FileSystem"
  6436. abstract="false" native="false" synchronized="false"
  6437. static="false" final="false" visibility="public"
  6438. deprecated="not deprecated">
  6439. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  6440. <exception name="IOException" type="java.io.IOException"/>
  6441. <doc>
  6442. <![CDATA[Return the FileSystem that owns this Path.]]>
  6443. </doc>
  6444. </method>
  6445. <method name="isAbsolute" return="boolean"
  6446. abstract="false" native="false" synchronized="false"
  6447. static="false" final="false" visibility="public"
  6448. deprecated="not deprecated">
  6449. <doc>
  6450. <![CDATA[True if the directory of this path is absolute.]]>
  6451. </doc>
  6452. </method>
  6453. <method name="getName" return="java.lang.String"
  6454. abstract="false" native="false" synchronized="false"
  6455. static="false" final="false" visibility="public"
  6456. deprecated="not deprecated">
  6457. <doc>
  6458. <![CDATA[Returns the final component of this path.]]>
  6459. </doc>
  6460. </method>
  6461. <method name="getParent" return="org.apache.hadoop.fs.Path"
  6462. abstract="false" native="false" synchronized="false"
  6463. static="false" final="false" visibility="public"
  6464. deprecated="not deprecated">
  6465. <doc>
  6466. <![CDATA[Returns the parent of a path or null if at root.]]>
  6467. </doc>
  6468. </method>
  6469. <method name="suffix" return="org.apache.hadoop.fs.Path"
  6470. abstract="false" native="false" synchronized="false"
  6471. static="false" final="false" visibility="public"
  6472. deprecated="not deprecated">
  6473. <param name="suffix" type="java.lang.String"/>
  6474. <doc>
  6475. <![CDATA[Adds a suffix to the final name in the path.]]>
  6476. </doc>
  6477. </method>
  6478. <method name="toString" return="java.lang.String"
  6479. abstract="false" native="false" synchronized="false"
  6480. static="false" final="false" visibility="public"
  6481. deprecated="not deprecated">
  6482. </method>
  6483. <method name="equals" return="boolean"
  6484. abstract="false" native="false" synchronized="false"
  6485. static="false" final="false" visibility="public"
  6486. deprecated="not deprecated">
  6487. <param name="o" type="java.lang.Object"/>
  6488. </method>
  6489. <method name="hashCode" return="int"
  6490. abstract="false" native="false" synchronized="false"
  6491. static="false" final="false" visibility="public"
  6492. deprecated="not deprecated">
  6493. </method>
  6494. <method name="compareTo" return="int"
  6495. abstract="false" native="false" synchronized="false"
  6496. static="false" final="false" visibility="public"
  6497. deprecated="not deprecated">
  6498. <param name="o" type="java.lang.Object"/>
  6499. </method>
  6500. <method name="depth" return="int"
  6501. abstract="false" native="false" synchronized="false"
  6502. static="false" final="false" visibility="public"
  6503. deprecated="not deprecated">
  6504. <doc>
  6505. <![CDATA[Return the number of elements in this path.]]>
  6506. </doc>
  6507. </method>
  6508. <method name="makeQualified" return="org.apache.hadoop.fs.Path"
  6509. abstract="false" native="false" synchronized="false"
  6510. static="false" final="false" visibility="public"
  6511. deprecated="not deprecated">
  6512. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  6513. <doc>
  6514. <![CDATA[Returns a qualified path object.]]>
  6515. </doc>
  6516. </method>
  6517. <method name="makeQualified" return="org.apache.hadoop.fs.Path"
  6518. abstract="false" native="false" synchronized="false"
  6519. static="false" final="false" visibility="public"
  6520. deprecated="not deprecated">
  6521. <param name="defaultUri" type="java.net.URI"/>
  6522. <param name="workingDir" type="org.apache.hadoop.fs.Path"/>
  6523. <doc>
  6524. <![CDATA[Returns a qualified path object.]]>
  6525. </doc>
  6526. </method>
  6527. <field name="SEPARATOR" type="java.lang.String"
  6528. transient="false" volatile="false"
  6529. static="true" final="true" visibility="public"
  6530. deprecated="not deprecated">
  6531. <doc>
  6532. <![CDATA[The directory separator, a slash.]]>
  6533. </doc>
  6534. </field>
  6535. <field name="SEPARATOR_CHAR" type="char"
  6536. transient="false" volatile="false"
  6537. static="true" final="true" visibility="public"
  6538. deprecated="not deprecated">
  6539. </field>
  6540. <field name="CUR_DIR" type="java.lang.String"
  6541. transient="false" volatile="false"
  6542. static="true" final="true" visibility="public"
  6543. deprecated="not deprecated">
  6544. </field>
  6545. <doc>
  6546. <![CDATA[Names a file or directory in a {@link FileSystem}.
  6547. Path strings use slash as the directory separator. A path string is
  6548. absolute if it begins with a slash.]]>
  6549. </doc>
  6550. </class>
  6551. <!-- end class org.apache.hadoop.fs.Path -->
  6552. <!-- start interface org.apache.hadoop.fs.PathFilter -->
  6553. <interface name="PathFilter" abstract="true"
  6554. static="false" final="false" visibility="public"
  6555. deprecated="not deprecated">
  6556. <method name="accept" return="boolean"
  6557. abstract="false" native="false" synchronized="false"
  6558. static="false" final="false" visibility="public"
  6559. deprecated="not deprecated">
  6560. <param name="path" type="org.apache.hadoop.fs.Path"/>
  6561. <doc>
  6562. <![CDATA[Tests whether or not the specified abstract pathname should be
  6563. included in a pathname list.
  6564. @param path The abstract pathname to be tested
  6565. @return <code>true</code> if and only if <code>pathname</code>
  6566. should be included]]>
  6567. </doc>
  6568. </method>
  6569. </interface>
  6570. <!-- end interface org.apache.hadoop.fs.PathFilter -->
  6571. <!-- start interface org.apache.hadoop.fs.PositionedReadable -->
  6572. <interface name="PositionedReadable" abstract="true"
  6573. static="false" final="false" visibility="public"
  6574. deprecated="not deprecated">
  6575. <method name="read" return="int"
  6576. abstract="false" native="false" synchronized="false"
  6577. static="false" final="false" visibility="public"
  6578. deprecated="not deprecated">
  6579. <param name="position" type="long"/>
  6580. <param name="buffer" type="byte[]"/>
  6581. <param name="offset" type="int"/>
  6582. <param name="length" type="int"/>
  6583. <exception name="IOException" type="java.io.IOException"/>
  6584. <doc>
  6585. <![CDATA[Read upto the specified number of bytes, from a given
  6586. position within a file, and return the number of bytes read. This does not
  6587. change the current offset of a file, and is thread-safe.]]>
  6588. </doc>
  6589. </method>
  6590. <method name="readFully"
  6591. abstract="false" native="false" synchronized="false"
  6592. static="false" final="false" visibility="public"
  6593. deprecated="not deprecated">
  6594. <param name="position" type="long"/>
  6595. <param name="buffer" type="byte[]"/>
  6596. <param name="offset" type="int"/>
  6597. <param name="length" type="int"/>
  6598. <exception name="IOException" type="java.io.IOException"/>
  6599. <doc>
  6600. <![CDATA[Read the specified number of bytes, from a given
  6601. position within a file. This does not
  6602. change the current offset of a file, and is thread-safe.]]>
  6603. </doc>
  6604. </method>
  6605. <method name="readFully"
  6606. abstract="false" native="false" synchronized="false"
  6607. static="false" final="false" visibility="public"
  6608. deprecated="not deprecated">
  6609. <param name="position" type="long"/>
  6610. <param name="buffer" type="byte[]"/>
  6611. <exception name="IOException" type="java.io.IOException"/>
  6612. <doc>
  6613. <![CDATA[Read number of bytes equalt to the length of the buffer, from a given
  6614. position within a file. This does not
  6615. change the current offset of a file, and is thread-safe.]]>
  6616. </doc>
  6617. </method>
  6618. <doc>
  6619. <![CDATA[Stream that permits positional reading.]]>
  6620. </doc>
  6621. </interface>
  6622. <!-- end interface org.apache.hadoop.fs.PositionedReadable -->
  6623. <!-- start class org.apache.hadoop.fs.RawLocalFileSystem -->
  6624. <class name="RawLocalFileSystem" extends="org.apache.hadoop.fs.FileSystem"
  6625. abstract="false"
  6626. static="false" final="false" visibility="public"
  6627. deprecated="not deprecated">
  6628. <constructor name="RawLocalFileSystem"
  6629. static="false" final="false" visibility="public"
  6630. deprecated="not deprecated">
  6631. </constructor>
  6632. <method name="pathToFile" return="java.io.File"
  6633. abstract="false" native="false" synchronized="false"
  6634. static="false" final="false" visibility="public"
  6635. deprecated="not deprecated">
  6636. <param name="path" type="org.apache.hadoop.fs.Path"/>
  6637. <doc>
  6638. <![CDATA[Convert a path to a File.]]>
  6639. </doc>
  6640. </method>
  6641. <method name="getUri" return="java.net.URI"
  6642. abstract="false" native="false" synchronized="false"
  6643. static="false" final="false" visibility="public"
  6644. deprecated="not deprecated">
  6645. </method>
  6646. <method name="initialize"
  6647. abstract="false" native="false" synchronized="false"
  6648. static="false" final="false" visibility="public"
  6649. deprecated="not deprecated">
  6650. <param name="uri" type="java.net.URI"/>
  6651. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  6652. <exception name="IOException" type="java.io.IOException"/>
  6653. </method>
  6654. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  6655. abstract="false" native="false" synchronized="false"
  6656. static="false" final="false" visibility="public"
  6657. deprecated="not deprecated">
  6658. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6659. <param name="bufferSize" type="int"/>
  6660. <exception name="IOException" type="java.io.IOException"/>
  6661. </method>
  6662. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  6663. abstract="false" native="false" synchronized="false"
  6664. static="false" final="false" visibility="public"
  6665. deprecated="not deprecated">
  6666. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6667. <param name="bufferSize" type="int"/>
  6668. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  6669. <exception name="IOException" type="java.io.IOException"/>
  6670. <doc>
  6671. <![CDATA[{@inheritDoc}]]>
  6672. </doc>
  6673. </method>
  6674. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  6675. abstract="false" native="false" synchronized="false"
  6676. static="false" final="false" visibility="public"
  6677. deprecated="not deprecated">
  6678. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6679. <param name="overwrite" type="boolean"/>
  6680. <param name="bufferSize" type="int"/>
  6681. <param name="replication" type="short"/>
  6682. <param name="blockSize" type="long"/>
  6683. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  6684. <exception name="IOException" type="java.io.IOException"/>
  6685. <doc>
  6686. <![CDATA[{@inheritDoc}]]>
  6687. </doc>
  6688. </method>
  6689. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  6690. abstract="false" native="false" synchronized="false"
  6691. static="false" final="false" visibility="public"
  6692. deprecated="not deprecated">
  6693. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6694. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  6695. <param name="overwrite" type="boolean"/>
  6696. <param name="bufferSize" type="int"/>
  6697. <param name="replication" type="short"/>
  6698. <param name="blockSize" type="long"/>
  6699. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  6700. <exception name="IOException" type="java.io.IOException"/>
  6701. <doc>
  6702. <![CDATA[{@inheritDoc}]]>
  6703. </doc>
  6704. </method>
  6705. <method name="createNonRecursive" return="org.apache.hadoop.fs.FSDataOutputStream"
  6706. abstract="false" native="false" synchronized="false"
  6707. static="false" final="false" visibility="public"
  6708. deprecated="not deprecated">
  6709. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6710. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  6711. <param name="overwrite" type="boolean"/>
  6712. <param name="bufferSize" type="int"/>
  6713. <param name="replication" type="short"/>
  6714. <param name="blockSize" type="long"/>
  6715. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  6716. <exception name="IOException" type="java.io.IOException"/>
  6717. <doc>
  6718. <![CDATA[{@inheritDoc}]]>
  6719. </doc>
  6720. </method>
  6721. <method name="rename" return="boolean"
  6722. abstract="false" native="false" synchronized="false"
  6723. static="false" final="false" visibility="public"
  6724. deprecated="not deprecated">
  6725. <param name="src" type="org.apache.hadoop.fs.Path"/>
  6726. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  6727. <exception name="IOException" type="java.io.IOException"/>
  6728. </method>
  6729. <method name="delete" return="boolean"
  6730. abstract="false" native="false" synchronized="false"
  6731. static="false" final="false" visibility="public"
  6732. deprecated="not deprecated">
  6733. <param name="p" type="org.apache.hadoop.fs.Path"/>
  6734. <exception name="IOException" type="java.io.IOException"/>
  6735. </method>
  6736. <method name="delete" return="boolean"
  6737. abstract="false" native="false" synchronized="false"
  6738. static="false" final="false" visibility="public"
  6739. deprecated="not deprecated">
  6740. <param name="p" type="org.apache.hadoop.fs.Path"/>
  6741. <param name="recursive" type="boolean"/>
  6742. <exception name="IOException" type="java.io.IOException"/>
  6743. </method>
  6744. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  6745. abstract="false" native="false" synchronized="false"
  6746. static="false" final="false" visibility="public"
  6747. deprecated="not deprecated">
  6748. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6749. <exception name="IOException" type="java.io.IOException"/>
  6750. </method>
  6751. <method name="mkdirs" return="boolean"
  6752. abstract="false" native="false" synchronized="false"
  6753. static="false" final="false" visibility="public"
  6754. deprecated="not deprecated">
  6755. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6756. <exception name="IOException" type="java.io.IOException"/>
  6757. <doc>
  6758. <![CDATA[Creates the specified directory hierarchy. Does not
  6759. treat existence as an error.]]>
  6760. </doc>
  6761. </method>
  6762. <method name="mkdirs" return="boolean"
  6763. abstract="false" native="false" synchronized="false"
  6764. static="false" final="false" visibility="public"
  6765. deprecated="not deprecated">
  6766. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6767. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  6768. <exception name="IOException" type="java.io.IOException"/>
  6769. <doc>
  6770. <![CDATA[{@inheritDoc}]]>
  6771. </doc>
  6772. </method>
  6773. <method name="getHomeDirectory" return="org.apache.hadoop.fs.Path"
  6774. abstract="false" native="false" synchronized="false"
  6775. static="false" final="false" visibility="public"
  6776. deprecated="not deprecated">
  6777. </method>
  6778. <method name="setWorkingDirectory"
  6779. abstract="false" native="false" synchronized="false"
  6780. static="false" final="false" visibility="public"
  6781. deprecated="not deprecated">
  6782. <param name="newDir" type="org.apache.hadoop.fs.Path"/>
  6783. <doc>
  6784. <![CDATA[Set the working directory to the given directory.]]>
  6785. </doc>
  6786. </method>
  6787. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  6788. abstract="false" native="false" synchronized="false"
  6789. static="false" final="false" visibility="public"
  6790. deprecated="not deprecated">
  6791. </method>
  6792. <method name="moveFromLocalFile"
  6793. abstract="false" native="false" synchronized="false"
  6794. static="false" final="false" visibility="public"
  6795. deprecated="not deprecated">
  6796. <param name="src" type="org.apache.hadoop.fs.Path"/>
  6797. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  6798. <exception name="IOException" type="java.io.IOException"/>
  6799. </method>
  6800. <method name="startLocalOutput" return="org.apache.hadoop.fs.Path"
  6801. abstract="false" native="false" synchronized="false"
  6802. static="false" final="false" visibility="public"
  6803. deprecated="not deprecated">
  6804. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  6805. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  6806. <exception name="IOException" type="java.io.IOException"/>
  6807. </method>
  6808. <method name="completeLocalOutput"
  6809. abstract="false" native="false" synchronized="false"
  6810. static="false" final="false" visibility="public"
  6811. deprecated="not deprecated">
  6812. <param name="fsWorkingFile" type="org.apache.hadoop.fs.Path"/>
  6813. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  6814. <exception name="IOException" type="java.io.IOException"/>
  6815. </method>
  6816. <method name="close"
  6817. abstract="false" native="false" synchronized="false"
  6818. static="false" final="false" visibility="public"
  6819. deprecated="not deprecated">
  6820. <exception name="IOException" type="java.io.IOException"/>
  6821. </method>
  6822. <method name="toString" return="java.lang.String"
  6823. abstract="false" native="false" synchronized="false"
  6824. static="false" final="false" visibility="public"
  6825. deprecated="not deprecated">
  6826. </method>
  6827. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  6828. abstract="false" native="false" synchronized="false"
  6829. static="false" final="false" visibility="public"
  6830. deprecated="not deprecated">
  6831. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6832. <exception name="IOException" type="java.io.IOException"/>
  6833. </method>
  6834. <method name="setOwner"
  6835. abstract="false" native="false" synchronized="false"
  6836. static="false" final="false" visibility="public"
  6837. deprecated="not deprecated">
  6838. <param name="p" type="org.apache.hadoop.fs.Path"/>
  6839. <param name="username" type="java.lang.String"/>
  6840. <param name="groupname" type="java.lang.String"/>
  6841. <exception name="IOException" type="java.io.IOException"/>
  6842. <doc>
  6843. <![CDATA[Use the command chown to set owner.]]>
  6844. </doc>
  6845. </method>
  6846. <method name="setPermission"
  6847. abstract="false" native="false" synchronized="false"
  6848. static="false" final="false" visibility="public"
  6849. deprecated="not deprecated">
  6850. <param name="p" type="org.apache.hadoop.fs.Path"/>
  6851. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  6852. <exception name="IOException" type="java.io.IOException"/>
  6853. <doc>
  6854. <![CDATA[Use the command chmod to set permission.]]>
  6855. </doc>
  6856. </method>
  6857. <doc>
  6858. <![CDATA[Implement the FileSystem API for the raw local filesystem.]]>
  6859. </doc>
  6860. </class>
  6861. <!-- end class org.apache.hadoop.fs.RawLocalFileSystem -->
  6862. <!-- start interface org.apache.hadoop.fs.Seekable -->
  6863. <interface name="Seekable" abstract="true"
  6864. static="false" final="false" visibility="public"
  6865. deprecated="not deprecated">
  6866. <method name="seek"
  6867. abstract="false" native="false" synchronized="false"
  6868. static="false" final="false" visibility="public"
  6869. deprecated="not deprecated">
  6870. <param name="pos" type="long"/>
  6871. <exception name="IOException" type="java.io.IOException"/>
  6872. <doc>
  6873. <![CDATA[Seek to the given offset from the start of the file.
  6874. The next read() will be from that location. Can't
  6875. seek past the end of the file.]]>
  6876. </doc>
  6877. </method>
  6878. <method name="getPos" return="long"
  6879. abstract="false" native="false" synchronized="false"
  6880. static="false" final="false" visibility="public"
  6881. deprecated="not deprecated">
  6882. <exception name="IOException" type="java.io.IOException"/>
  6883. <doc>
  6884. <![CDATA[Return the current offset from the start of the file]]>
  6885. </doc>
  6886. </method>
  6887. <method name="seekToNewSource" return="boolean"
  6888. abstract="false" native="false" synchronized="false"
  6889. static="false" final="false" visibility="public"
  6890. deprecated="not deprecated">
  6891. <param name="targetPos" type="long"/>
  6892. <exception name="IOException" type="java.io.IOException"/>
  6893. <doc>
  6894. <![CDATA[Seeks a different copy of the data. Returns true if
  6895. found a new source, false otherwise.]]>
  6896. </doc>
  6897. </method>
  6898. <doc>
  6899. <![CDATA[Stream that permits seeking.]]>
  6900. </doc>
  6901. </interface>
  6902. <!-- end interface org.apache.hadoop.fs.Seekable -->
  6903. <!-- start interface org.apache.hadoop.fs.Syncable -->
  6904. <interface name="Syncable" abstract="true"
  6905. static="false" final="false" visibility="public"
  6906. deprecated="not deprecated">
  6907. <method name="sync"
  6908. abstract="false" native="false" synchronized="false"
  6909. static="false" final="false" visibility="public"
  6910. deprecated="not deprecated">
  6911. <exception name="IOException" type="java.io.IOException"/>
  6912. <doc>
  6913. <![CDATA[Synchronize all buffer with the underlying devices.
  6914. @throws IOException]]>
  6915. </doc>
  6916. </method>
  6917. <doc>
  6918. <![CDATA[This interface declare the sync() operation.]]>
  6919. </doc>
  6920. </interface>
  6921. <!-- end interface org.apache.hadoop.fs.Syncable -->
  6922. <!-- start class org.apache.hadoop.fs.Trash -->
  6923. <class name="Trash" extends="org.apache.hadoop.conf.Configured"
  6924. abstract="false"
  6925. static="false" final="false" visibility="public"
  6926. deprecated="not deprecated">
  6927. <constructor name="Trash" type="org.apache.hadoop.conf.Configuration"
  6928. static="false" final="false" visibility="public"
  6929. deprecated="not deprecated">
  6930. <exception name="IOException" type="java.io.IOException"/>
  6931. <doc>
  6932. <![CDATA[Construct a trash can accessor.
  6933. @param conf a Configuration]]>
  6934. </doc>
  6935. </constructor>
  6936. <constructor name="Trash" type="org.apache.hadoop.fs.FileSystem, org.apache.hadoop.conf.Configuration"
  6937. static="false" final="false" visibility="public"
  6938. deprecated="not deprecated">
  6939. <exception name="IOException" type="java.io.IOException"/>
  6940. <doc>
  6941. <![CDATA[Construct a trash can accessor for the FileSystem provided.]]>
  6942. </doc>
  6943. </constructor>
  6944. <method name="moveToTrash" return="boolean"
  6945. abstract="false" native="false" synchronized="false"
  6946. static="false" final="false" visibility="public"
  6947. deprecated="not deprecated">
  6948. <param name="path" type="org.apache.hadoop.fs.Path"/>
  6949. <exception name="IOException" type="java.io.IOException"/>
  6950. <doc>
  6951. <![CDATA[Move a file or directory to the current trash directory.
  6952. @return false if the item is already in the trash or trash is disabled]]>
  6953. </doc>
  6954. </method>
  6955. <method name="checkpoint"
  6956. abstract="false" native="false" synchronized="false"
  6957. static="false" final="false" visibility="public"
  6958. deprecated="not deprecated">
  6959. <exception name="IOException" type="java.io.IOException"/>
  6960. <doc>
  6961. <![CDATA[Create a trash checkpoint.]]>
  6962. </doc>
  6963. </method>
  6964. <method name="expunge"
  6965. abstract="false" native="false" synchronized="false"
  6966. static="false" final="false" visibility="public"
  6967. deprecated="not deprecated">
  6968. <exception name="IOException" type="java.io.IOException"/>
  6969. <doc>
  6970. <![CDATA[Delete old checkpoints.]]>
  6971. </doc>
  6972. </method>
  6973. <method name="getEmptier" return="java.lang.Runnable"
  6974. abstract="false" native="false" synchronized="false"
  6975. static="false" final="false" visibility="public"
  6976. deprecated="not deprecated">
  6977. <exception name="IOException" type="java.io.IOException"/>
  6978. <doc>
  6979. <![CDATA[Return a {@link Runnable} that periodically empties the trash of all
  6980. users, intended to be run by the superuser. Only one checkpoint is kept
  6981. at a time.]]>
  6982. </doc>
  6983. </method>
  6984. <method name="main"
  6985. abstract="false" native="false" synchronized="false"
  6986. static="true" final="false" visibility="public"
  6987. deprecated="not deprecated">
  6988. <param name="args" type="java.lang.String[]"/>
  6989. <exception name="Exception" type="java.lang.Exception"/>
  6990. <doc>
  6991. <![CDATA[Run an emptier.]]>
  6992. </doc>
  6993. </method>
  6994. <doc>
  6995. <![CDATA[Provides a <i>trash</i> feature. Files are moved to a user's trash
  6996. directory, a subdirectory of their home directory named ".Trash". Files are
  6997. initially moved to a <i>current</i> sub-directory of the trash directory.
  6998. Within that sub-directory their original path is preserved. Periodically
  6999. one may checkpoint the current trash and remove older checkpoints. (This
  7000. design permits trash management without enumeration of the full trash
  7001. content, without date support in the filesystem, and without clock
  7002. synchronization.)]]>
  7003. </doc>
  7004. </class>
  7005. <!-- end class org.apache.hadoop.fs.Trash -->
  7006. </package>
  7007. <package name="org.apache.hadoop.fs.ftp">
  7008. <!-- start class org.apache.hadoop.fs.ftp.FTPException -->
  7009. <class name="FTPException" extends="java.lang.RuntimeException"
  7010. abstract="false"
  7011. static="false" final="false" visibility="public"
  7012. deprecated="not deprecated">
  7013. <constructor name="FTPException" type="java.lang.String"
  7014. static="false" final="false" visibility="public"
  7015. deprecated="not deprecated">
  7016. </constructor>
  7017. <constructor name="FTPException" type="java.lang.Throwable"
  7018. static="false" final="false" visibility="public"
  7019. deprecated="not deprecated">
  7020. </constructor>
  7021. <constructor name="FTPException" type="java.lang.String, java.lang.Throwable"
  7022. static="false" final="false" visibility="public"
  7023. deprecated="not deprecated">
  7024. </constructor>
  7025. <doc>
  7026. <![CDATA[A class to wrap a {@link Throwable} into a Runtime Exception.]]>
  7027. </doc>
  7028. </class>
  7029. <!-- end class org.apache.hadoop.fs.ftp.FTPException -->
  7030. <!-- start class org.apache.hadoop.fs.ftp.FTPFileSystem -->
  7031. <class name="FTPFileSystem" extends="org.apache.hadoop.fs.FileSystem"
  7032. abstract="false"
  7033. static="false" final="false" visibility="public"
  7034. deprecated="not deprecated">
  7035. <constructor name="FTPFileSystem"
  7036. static="false" final="false" visibility="public"
  7037. deprecated="not deprecated">
  7038. </constructor>
  7039. <method name="initialize"
  7040. abstract="false" native="false" synchronized="false"
  7041. static="false" final="false" visibility="public"
  7042. deprecated="not deprecated">
  7043. <param name="uri" type="java.net.URI"/>
  7044. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  7045. <exception name="IOException" type="java.io.IOException"/>
  7046. </method>
  7047. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  7048. abstract="false" native="false" synchronized="false"
  7049. static="false" final="false" visibility="public"
  7050. deprecated="not deprecated">
  7051. <param name="file" type="org.apache.hadoop.fs.Path"/>
  7052. <param name="bufferSize" type="int"/>
  7053. <exception name="IOException" type="java.io.IOException"/>
  7054. </method>
  7055. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  7056. abstract="false" native="false" synchronized="false"
  7057. static="false" final="false" visibility="public"
  7058. deprecated="not deprecated">
  7059. <param name="file" type="org.apache.hadoop.fs.Path"/>
  7060. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  7061. <param name="overwrite" type="boolean"/>
  7062. <param name="bufferSize" type="int"/>
  7063. <param name="replication" type="short"/>
  7064. <param name="blockSize" type="long"/>
  7065. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  7066. <exception name="IOException" type="java.io.IOException"/>
  7067. <doc>
  7068. <![CDATA[A stream obtained via this call must be closed before using other APIs of
  7069. this class or else the invocation will block.]]>
  7070. </doc>
  7071. </method>
  7072. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  7073. abstract="false" native="false" synchronized="false"
  7074. static="false" final="false" visibility="public"
  7075. deprecated="not deprecated">
  7076. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7077. <param name="bufferSize" type="int"/>
  7078. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  7079. <exception name="IOException" type="java.io.IOException"/>
  7080. <doc>
  7081. <![CDATA[This optional operation is not yet supported.]]>
  7082. </doc>
  7083. </method>
  7084. <method name="delete" return="boolean"
  7085. abstract="false" native="false" synchronized="false"
  7086. static="false" final="false" visibility="public"
  7087. deprecated="Use delete(Path, boolean) instead">
  7088. <param name="file" type="org.apache.hadoop.fs.Path"/>
  7089. <exception name="IOException" type="java.io.IOException"/>
  7090. <doc>
  7091. <![CDATA[@deprecated Use delete(Path, boolean) instead]]>
  7092. </doc>
  7093. </method>
  7094. <method name="delete" return="boolean"
  7095. abstract="false" native="false" synchronized="false"
  7096. static="false" final="false" visibility="public"
  7097. deprecated="not deprecated">
  7098. <param name="file" type="org.apache.hadoop.fs.Path"/>
  7099. <param name="recursive" type="boolean"/>
  7100. <exception name="IOException" type="java.io.IOException"/>
  7101. </method>
  7102. <method name="getUri" return="java.net.URI"
  7103. abstract="false" native="false" synchronized="false"
  7104. static="false" final="false" visibility="public"
  7105. deprecated="not deprecated">
  7106. </method>
  7107. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  7108. abstract="false" native="false" synchronized="false"
  7109. static="false" final="false" visibility="public"
  7110. deprecated="not deprecated">
  7111. <param name="file" type="org.apache.hadoop.fs.Path"/>
  7112. <exception name="IOException" type="java.io.IOException"/>
  7113. </method>
  7114. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  7115. abstract="false" native="false" synchronized="false"
  7116. static="false" final="false" visibility="public"
  7117. deprecated="not deprecated">
  7118. <param name="file" type="org.apache.hadoop.fs.Path"/>
  7119. <exception name="IOException" type="java.io.IOException"/>
  7120. </method>
  7121. <method name="mkdirs" return="boolean"
  7122. abstract="false" native="false" synchronized="false"
  7123. static="false" final="false" visibility="public"
  7124. deprecated="not deprecated">
  7125. <param name="file" type="org.apache.hadoop.fs.Path"/>
  7126. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  7127. <exception name="IOException" type="java.io.IOException"/>
  7128. </method>
  7129. <method name="rename" return="boolean"
  7130. abstract="false" native="false" synchronized="false"
  7131. static="false" final="false" visibility="public"
  7132. deprecated="not deprecated">
  7133. <param name="src" type="org.apache.hadoop.fs.Path"/>
  7134. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  7135. <exception name="IOException" type="java.io.IOException"/>
  7136. </method>
  7137. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  7138. abstract="false" native="false" synchronized="false"
  7139. static="false" final="false" visibility="public"
  7140. deprecated="not deprecated">
  7141. </method>
  7142. <method name="getHomeDirectory" return="org.apache.hadoop.fs.Path"
  7143. abstract="false" native="false" synchronized="false"
  7144. static="false" final="false" visibility="public"
  7145. deprecated="not deprecated">
  7146. </method>
  7147. <method name="setWorkingDirectory"
  7148. abstract="false" native="false" synchronized="false"
  7149. static="false" final="false" visibility="public"
  7150. deprecated="not deprecated">
  7151. <param name="newDir" type="org.apache.hadoop.fs.Path"/>
  7152. </method>
  7153. <field name="LOG" type="org.apache.commons.logging.Log"
  7154. transient="false" volatile="false"
  7155. static="true" final="true" visibility="public"
  7156. deprecated="not deprecated">
  7157. </field>
  7158. <field name="DEFAULT_BUFFER_SIZE" type="int"
  7159. transient="false" volatile="false"
  7160. static="true" final="true" visibility="public"
  7161. deprecated="not deprecated">
  7162. </field>
  7163. <field name="DEFAULT_BLOCK_SIZE" type="int"
  7164. transient="false" volatile="false"
  7165. static="true" final="true" visibility="public"
  7166. deprecated="not deprecated">
  7167. </field>
  7168. <doc>
  7169. <![CDATA[<p>
  7170. A {@link FileSystem} backed by an FTP client provided by <a
  7171. href="http://commons.apache.org/net/">Apache Commons Net</a>.
  7172. </p>]]>
  7173. </doc>
  7174. </class>
  7175. <!-- end class org.apache.hadoop.fs.ftp.FTPFileSystem -->
  7176. <!-- start class org.apache.hadoop.fs.ftp.FTPInputStream -->
  7177. <class name="FTPInputStream" extends="org.apache.hadoop.fs.FSInputStream"
  7178. abstract="false"
  7179. static="false" final="false" visibility="public"
  7180. deprecated="not deprecated">
  7181. <constructor name="FTPInputStream" type="java.io.InputStream, org.apache.commons.net.ftp.FTPClient, org.apache.hadoop.fs.FileSystem.Statistics"
  7182. static="false" final="false" visibility="public"
  7183. deprecated="not deprecated">
  7184. </constructor>
  7185. <method name="getPos" return="long"
  7186. abstract="false" native="false" synchronized="false"
  7187. static="false" final="false" visibility="public"
  7188. deprecated="not deprecated">
  7189. <exception name="IOException" type="java.io.IOException"/>
  7190. </method>
  7191. <method name="seek"
  7192. abstract="false" native="false" synchronized="false"
  7193. static="false" final="false" visibility="public"
  7194. deprecated="not deprecated">
  7195. <param name="pos" type="long"/>
  7196. <exception name="IOException" type="java.io.IOException"/>
  7197. </method>
  7198. <method name="seekToNewSource" return="boolean"
  7199. abstract="false" native="false" synchronized="false"
  7200. static="false" final="false" visibility="public"
  7201. deprecated="not deprecated">
  7202. <param name="targetPos" type="long"/>
  7203. <exception name="IOException" type="java.io.IOException"/>
  7204. </method>
  7205. <method name="read" return="int"
  7206. abstract="false" native="false" synchronized="true"
  7207. static="false" final="false" visibility="public"
  7208. deprecated="not deprecated">
  7209. <exception name="IOException" type="java.io.IOException"/>
  7210. </method>
  7211. <method name="read" return="int"
  7212. abstract="false" native="false" synchronized="true"
  7213. static="false" final="false" visibility="public"
  7214. deprecated="not deprecated">
  7215. <param name="buf" type="byte[]"/>
  7216. <param name="off" type="int"/>
  7217. <param name="len" type="int"/>
  7218. <exception name="IOException" type="java.io.IOException"/>
  7219. </method>
  7220. <method name="close"
  7221. abstract="false" native="false" synchronized="true"
  7222. static="false" final="false" visibility="public"
  7223. deprecated="not deprecated">
  7224. <exception name="IOException" type="java.io.IOException"/>
  7225. </method>
  7226. <method name="markSupported" return="boolean"
  7227. abstract="false" native="false" synchronized="false"
  7228. static="false" final="false" visibility="public"
  7229. deprecated="not deprecated">
  7230. </method>
  7231. <method name="mark"
  7232. abstract="false" native="false" synchronized="false"
  7233. static="false" final="false" visibility="public"
  7234. deprecated="not deprecated">
  7235. <param name="readLimit" type="int"/>
  7236. </method>
  7237. <method name="reset"
  7238. abstract="false" native="false" synchronized="false"
  7239. static="false" final="false" visibility="public"
  7240. deprecated="not deprecated">
  7241. <exception name="IOException" type="java.io.IOException"/>
  7242. </method>
  7243. </class>
  7244. <!-- end class org.apache.hadoop.fs.ftp.FTPInputStream -->
  7245. </package>
  7246. <package name="org.apache.hadoop.fs.kfs">
  7247. <!-- start class org.apache.hadoop.fs.kfs.KosmosFileSystem -->
  7248. <class name="KosmosFileSystem" extends="org.apache.hadoop.fs.FileSystem"
  7249. abstract="false"
  7250. static="false" final="false" visibility="public"
  7251. deprecated="not deprecated">
  7252. <constructor name="KosmosFileSystem"
  7253. static="false" final="false" visibility="public"
  7254. deprecated="not deprecated">
  7255. </constructor>
  7256. <method name="getUri" return="java.net.URI"
  7257. abstract="false" native="false" synchronized="false"
  7258. static="false" final="false" visibility="public"
  7259. deprecated="not deprecated">
  7260. </method>
  7261. <method name="initialize"
  7262. abstract="false" native="false" synchronized="false"
  7263. static="false" final="false" visibility="public"
  7264. deprecated="not deprecated">
  7265. <param name="uri" type="java.net.URI"/>
  7266. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  7267. <exception name="IOException" type="java.io.IOException"/>
  7268. </method>
  7269. <method name="getName" return="java.lang.String"
  7270. abstract="false" native="false" synchronized="false"
  7271. static="false" final="false" visibility="public"
  7272. deprecated="not deprecated">
  7273. </method>
  7274. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  7275. abstract="false" native="false" synchronized="false"
  7276. static="false" final="false" visibility="public"
  7277. deprecated="not deprecated">
  7278. </method>
  7279. <method name="setWorkingDirectory"
  7280. abstract="false" native="false" synchronized="false"
  7281. static="false" final="false" visibility="public"
  7282. deprecated="not deprecated">
  7283. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  7284. </method>
  7285. <method name="mkdirs" return="boolean"
  7286. abstract="false" native="false" synchronized="false"
  7287. static="false" final="false" visibility="public"
  7288. deprecated="not deprecated">
  7289. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7290. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  7291. <exception name="IOException" type="java.io.IOException"/>
  7292. </method>
  7293. <method name="isDirectory" return="boolean"
  7294. abstract="false" native="false" synchronized="false"
  7295. static="false" final="false" visibility="public"
  7296. deprecated="not deprecated">
  7297. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7298. <exception name="IOException" type="java.io.IOException"/>
  7299. </method>
  7300. <method name="isFile" return="boolean"
  7301. abstract="false" native="false" synchronized="false"
  7302. static="false" final="false" visibility="public"
  7303. deprecated="not deprecated">
  7304. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7305. <exception name="IOException" type="java.io.IOException"/>
  7306. </method>
  7307. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  7308. abstract="false" native="false" synchronized="false"
  7309. static="false" final="false" visibility="public"
  7310. deprecated="not deprecated">
  7311. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7312. <exception name="IOException" type="java.io.IOException"/>
  7313. </method>
  7314. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  7315. abstract="false" native="false" synchronized="false"
  7316. static="false" final="false" visibility="public"
  7317. deprecated="not deprecated">
  7318. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7319. <exception name="IOException" type="java.io.IOException"/>
  7320. </method>
  7321. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  7322. abstract="false" native="false" synchronized="false"
  7323. static="false" final="false" visibility="public"
  7324. deprecated="not deprecated">
  7325. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7326. <param name="bufferSize" type="int"/>
  7327. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  7328. <exception name="IOException" type="java.io.IOException"/>
  7329. <doc>
  7330. <![CDATA[This optional operation is not yet supported.]]>
  7331. </doc>
  7332. </method>
  7333. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  7334. abstract="false" native="false" synchronized="false"
  7335. static="false" final="false" visibility="public"
  7336. deprecated="not deprecated">
  7337. <param name="file" type="org.apache.hadoop.fs.Path"/>
  7338. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  7339. <param name="overwrite" type="boolean"/>
  7340. <param name="bufferSize" type="int"/>
  7341. <param name="replication" type="short"/>
  7342. <param name="blockSize" type="long"/>
  7343. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  7344. <exception name="IOException" type="java.io.IOException"/>
  7345. </method>
  7346. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  7347. abstract="false" native="false" synchronized="false"
  7348. static="false" final="false" visibility="public"
  7349. deprecated="not deprecated">
  7350. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7351. <param name="bufferSize" type="int"/>
  7352. <exception name="IOException" type="java.io.IOException"/>
  7353. </method>
  7354. <method name="rename" return="boolean"
  7355. abstract="false" native="false" synchronized="false"
  7356. static="false" final="false" visibility="public"
  7357. deprecated="not deprecated">
  7358. <param name="src" type="org.apache.hadoop.fs.Path"/>
  7359. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  7360. <exception name="IOException" type="java.io.IOException"/>
  7361. </method>
  7362. <method name="delete" return="boolean"
  7363. abstract="false" native="false" synchronized="false"
  7364. static="false" final="false" visibility="public"
  7365. deprecated="not deprecated">
  7366. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7367. <param name="recursive" type="boolean"/>
  7368. <exception name="IOException" type="java.io.IOException"/>
  7369. </method>
  7370. <method name="delete" return="boolean"
  7371. abstract="false" native="false" synchronized="false"
  7372. static="false" final="false" visibility="public"
  7373. deprecated="not deprecated">
  7374. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7375. <exception name="IOException" type="java.io.IOException"/>
  7376. </method>
  7377. <method name="getLength" return="long"
  7378. abstract="false" native="false" synchronized="false"
  7379. static="false" final="false" visibility="public"
  7380. deprecated="not deprecated">
  7381. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7382. <exception name="IOException" type="java.io.IOException"/>
  7383. </method>
  7384. <method name="getReplication" return="short"
  7385. abstract="false" native="false" synchronized="false"
  7386. static="false" final="false" visibility="public"
  7387. deprecated="not deprecated">
  7388. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7389. <exception name="IOException" type="java.io.IOException"/>
  7390. </method>
  7391. <method name="getDefaultReplication" return="short"
  7392. abstract="false" native="false" synchronized="false"
  7393. static="false" final="false" visibility="public"
  7394. deprecated="not deprecated">
  7395. </method>
  7396. <method name="setReplication" return="boolean"
  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. <param name="replication" type="short"/>
  7402. <exception name="IOException" type="java.io.IOException"/>
  7403. </method>
  7404. <method name="getDefaultBlockSize" return="long"
  7405. abstract="false" native="false" synchronized="false"
  7406. static="false" final="false" visibility="public"
  7407. deprecated="not deprecated">
  7408. </method>
  7409. <method name="lock"
  7410. abstract="false" native="false" synchronized="false"
  7411. static="false" final="false" visibility="public"
  7412. deprecated="not deprecated">
  7413. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7414. <param name="shared" type="boolean"/>
  7415. <exception name="IOException" type="java.io.IOException"/>
  7416. </method>
  7417. <method name="release"
  7418. abstract="false" native="false" synchronized="false"
  7419. static="false" final="false" visibility="public"
  7420. deprecated="not deprecated">
  7421. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7422. <exception name="IOException" type="java.io.IOException"/>
  7423. </method>
  7424. <method name="getFileBlockLocations" return="org.apache.hadoop.fs.BlockLocation[]"
  7425. abstract="false" native="false" synchronized="false"
  7426. static="false" final="false" visibility="public"
  7427. deprecated="not deprecated">
  7428. <param name="file" type="org.apache.hadoop.fs.FileStatus"/>
  7429. <param name="start" type="long"/>
  7430. <param name="len" type="long"/>
  7431. <exception name="IOException" type="java.io.IOException"/>
  7432. <doc>
  7433. <![CDATA[Return null if the file doesn't exist; otherwise, get the
  7434. locations of the various chunks of the file file from KFS.]]>
  7435. </doc>
  7436. </method>
  7437. <method name="copyFromLocalFile"
  7438. abstract="false" native="false" synchronized="false"
  7439. static="false" final="false" visibility="public"
  7440. deprecated="not deprecated">
  7441. <param name="delSrc" type="boolean"/>
  7442. <param name="src" type="org.apache.hadoop.fs.Path"/>
  7443. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  7444. <exception name="IOException" type="java.io.IOException"/>
  7445. </method>
  7446. <method name="copyToLocalFile"
  7447. abstract="false" native="false" synchronized="false"
  7448. static="false" final="false" visibility="public"
  7449. deprecated="not deprecated">
  7450. <param name="delSrc" type="boolean"/>
  7451. <param name="src" type="org.apache.hadoop.fs.Path"/>
  7452. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  7453. <exception name="IOException" type="java.io.IOException"/>
  7454. </method>
  7455. <method name="startLocalOutput" return="org.apache.hadoop.fs.Path"
  7456. abstract="false" native="false" synchronized="false"
  7457. static="false" final="false" visibility="public"
  7458. deprecated="not deprecated">
  7459. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  7460. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  7461. <exception name="IOException" type="java.io.IOException"/>
  7462. </method>
  7463. <method name="completeLocalOutput"
  7464. abstract="false" native="false" synchronized="false"
  7465. static="false" final="false" visibility="public"
  7466. deprecated="not deprecated">
  7467. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  7468. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  7469. <exception name="IOException" type="java.io.IOException"/>
  7470. </method>
  7471. <doc>
  7472. <![CDATA[A FileSystem backed by KFS.]]>
  7473. </doc>
  7474. </class>
  7475. <!-- end class org.apache.hadoop.fs.kfs.KosmosFileSystem -->
  7476. </package>
  7477. <package name="org.apache.hadoop.fs.permission">
  7478. <!-- start class org.apache.hadoop.fs.permission.AccessControlException -->
  7479. <class name="AccessControlException" extends="java.io.IOException"
  7480. abstract="false"
  7481. static="false" final="false" visibility="public"
  7482. deprecated="Use {@link org.apache.hadoop.security.AccessControlException}
  7483. instead.">
  7484. <constructor name="AccessControlException"
  7485. static="false" final="false" visibility="public"
  7486. deprecated="not deprecated">
  7487. <doc>
  7488. <![CDATA[Default constructor is needed for unwrapping from
  7489. {@link org.apache.hadoop.ipc.RemoteException}.]]>
  7490. </doc>
  7491. </constructor>
  7492. <constructor name="AccessControlException" type="java.lang.String"
  7493. static="false" final="false" visibility="public"
  7494. deprecated="not deprecated">
  7495. <doc>
  7496. <![CDATA[Constructs an {@link AccessControlException}
  7497. with the specified detail message.
  7498. @param s the detail message.]]>
  7499. </doc>
  7500. </constructor>
  7501. <constructor name="AccessControlException" type="java.lang.Throwable"
  7502. static="false" final="false" visibility="public"
  7503. deprecated="not deprecated">
  7504. <doc>
  7505. <![CDATA[Constructs a new exception with the specified cause and a detail
  7506. message of <tt>(cause==null ? null : cause.toString())</tt> (which
  7507. typically contains the class and detail message of <tt>cause</tt>).
  7508. @param cause the cause (which is saved for later retrieval by the
  7509. {@link #getCause()} method). (A <tt>null</tt> value is
  7510. permitted, and indicates that the cause is nonexistent or
  7511. unknown.)]]>
  7512. </doc>
  7513. </constructor>
  7514. <doc>
  7515. <![CDATA[An exception class for access control related issues.
  7516. @deprecated Use {@link org.apache.hadoop.security.AccessControlException}
  7517. instead.]]>
  7518. </doc>
  7519. </class>
  7520. <!-- end class org.apache.hadoop.fs.permission.AccessControlException -->
  7521. <!-- start class org.apache.hadoop.fs.permission.ChmodParser -->
  7522. <class name="ChmodParser" extends="org.apache.hadoop.fs.permission.PermissionParser"
  7523. abstract="false"
  7524. static="false" final="false" visibility="public"
  7525. deprecated="not deprecated">
  7526. <constructor name="ChmodParser" type="java.lang.String"
  7527. static="false" final="false" visibility="public"
  7528. deprecated="not deprecated">
  7529. <exception name="IllegalArgumentException" type="java.lang.IllegalArgumentException"/>
  7530. </constructor>
  7531. <method name="applyNewPermission" return="short"
  7532. abstract="false" native="false" synchronized="false"
  7533. static="false" final="false" visibility="public"
  7534. deprecated="not deprecated">
  7535. <param name="file" type="org.apache.hadoop.fs.FileStatus"/>
  7536. <doc>
  7537. <![CDATA[Apply permission against specified file and determine what the
  7538. new mode would be
  7539. @param file File against which to apply mode
  7540. @return File's new mode if applied.]]>
  7541. </doc>
  7542. </method>
  7543. <doc>
  7544. <![CDATA[Parse a permission mode passed in from a chmod command and apply that
  7545. mode against an existing file.]]>
  7546. </doc>
  7547. </class>
  7548. <!-- end class org.apache.hadoop.fs.permission.ChmodParser -->
  7549. <!-- start class org.apache.hadoop.fs.permission.FsAction -->
  7550. <class name="FsAction" extends="java.lang.Enum"
  7551. abstract="false"
  7552. static="false" final="true" visibility="public"
  7553. deprecated="not deprecated">
  7554. <method name="values" return="org.apache.hadoop.fs.permission.FsAction[]"
  7555. abstract="false" native="false" synchronized="false"
  7556. static="true" final="false" visibility="public"
  7557. deprecated="not deprecated">
  7558. </method>
  7559. <method name="valueOf" return="org.apache.hadoop.fs.permission.FsAction"
  7560. abstract="false" native="false" synchronized="false"
  7561. static="true" final="false" visibility="public"
  7562. deprecated="not deprecated">
  7563. <param name="name" type="java.lang.String"/>
  7564. </method>
  7565. <method name="implies" return="boolean"
  7566. abstract="false" native="false" synchronized="false"
  7567. static="false" final="false" visibility="public"
  7568. deprecated="not deprecated">
  7569. <param name="that" type="org.apache.hadoop.fs.permission.FsAction"/>
  7570. <doc>
  7571. <![CDATA[Return true if this action implies that action.
  7572. @param that]]>
  7573. </doc>
  7574. </method>
  7575. <method name="and" return="org.apache.hadoop.fs.permission.FsAction"
  7576. abstract="false" native="false" synchronized="false"
  7577. static="false" final="false" visibility="public"
  7578. deprecated="not deprecated">
  7579. <param name="that" type="org.apache.hadoop.fs.permission.FsAction"/>
  7580. <doc>
  7581. <![CDATA[AND operation.]]>
  7582. </doc>
  7583. </method>
  7584. <method name="or" return="org.apache.hadoop.fs.permission.FsAction"
  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[OR operation.]]>
  7591. </doc>
  7592. </method>
  7593. <method name="not" return="org.apache.hadoop.fs.permission.FsAction"
  7594. abstract="false" native="false" synchronized="false"
  7595. static="false" final="false" visibility="public"
  7596. deprecated="not deprecated">
  7597. <doc>
  7598. <![CDATA[NOT operation.]]>
  7599. </doc>
  7600. </method>
  7601. <field name="NONE" type="org.apache.hadoop.fs.permission.FsAction"
  7602. transient="false" volatile="false"
  7603. static="true" final="true" visibility="public"
  7604. deprecated="not deprecated">
  7605. </field>
  7606. <field name="EXECUTE" type="org.apache.hadoop.fs.permission.FsAction"
  7607. transient="false" volatile="false"
  7608. static="true" final="true" visibility="public"
  7609. deprecated="not deprecated">
  7610. </field>
  7611. <field name="WRITE" type="org.apache.hadoop.fs.permission.FsAction"
  7612. transient="false" volatile="false"
  7613. static="true" final="true" visibility="public"
  7614. deprecated="not deprecated">
  7615. </field>
  7616. <field name="WRITE_EXECUTE" type="org.apache.hadoop.fs.permission.FsAction"
  7617. transient="false" volatile="false"
  7618. static="true" final="true" visibility="public"
  7619. deprecated="not deprecated">
  7620. </field>
  7621. <field name="READ" type="org.apache.hadoop.fs.permission.FsAction"
  7622. transient="false" volatile="false"
  7623. static="true" final="true" visibility="public"
  7624. deprecated="not deprecated">
  7625. </field>
  7626. <field name="READ_EXECUTE" type="org.apache.hadoop.fs.permission.FsAction"
  7627. transient="false" volatile="false"
  7628. static="true" final="true" visibility="public"
  7629. deprecated="not deprecated">
  7630. </field>
  7631. <field name="READ_WRITE" type="org.apache.hadoop.fs.permission.FsAction"
  7632. transient="false" volatile="false"
  7633. static="true" final="true" visibility="public"
  7634. deprecated="not deprecated">
  7635. </field>
  7636. <field name="ALL" type="org.apache.hadoop.fs.permission.FsAction"
  7637. transient="false" volatile="false"
  7638. static="true" final="true" visibility="public"
  7639. deprecated="not deprecated">
  7640. </field>
  7641. <field name="SYMBOL" type="java.lang.String"
  7642. transient="false" volatile="false"
  7643. static="false" final="true" visibility="public"
  7644. deprecated="not deprecated">
  7645. <doc>
  7646. <![CDATA[Symbolic representation]]>
  7647. </doc>
  7648. </field>
  7649. <doc>
  7650. <![CDATA[File system actions, e.g. read, write, etc.]]>
  7651. </doc>
  7652. </class>
  7653. <!-- end class org.apache.hadoop.fs.permission.FsAction -->
  7654. <!-- start class org.apache.hadoop.fs.permission.FsPermission -->
  7655. <class name="FsPermission" extends="java.lang.Object"
  7656. abstract="false"
  7657. static="false" final="false" visibility="public"
  7658. deprecated="not deprecated">
  7659. <implements name="org.apache.hadoop.io.Writable"/>
  7660. <constructor name="FsPermission" type="org.apache.hadoop.fs.permission.FsAction, org.apache.hadoop.fs.permission.FsAction, org.apache.hadoop.fs.permission.FsAction"
  7661. static="false" final="false" visibility="public"
  7662. deprecated="not deprecated">
  7663. <doc>
  7664. <![CDATA[Construct by the given {@link FsAction}.
  7665. @param u user action
  7666. @param g group action
  7667. @param o other action]]>
  7668. </doc>
  7669. </constructor>
  7670. <constructor name="FsPermission" type="short"
  7671. static="false" final="false" visibility="public"
  7672. deprecated="not deprecated">
  7673. <doc>
  7674. <![CDATA[Construct by the given mode.
  7675. @param mode
  7676. @see #toShort()]]>
  7677. </doc>
  7678. </constructor>
  7679. <constructor name="FsPermission" type="org.apache.hadoop.fs.permission.FsPermission"
  7680. static="false" final="false" visibility="public"
  7681. deprecated="not deprecated">
  7682. <doc>
  7683. <![CDATA[Copy constructor
  7684. @param other other permission]]>
  7685. </doc>
  7686. </constructor>
  7687. <constructor name="FsPermission" type="java.lang.String"
  7688. static="false" final="false" visibility="public"
  7689. deprecated="not deprecated">
  7690. <doc>
  7691. <![CDATA[Construct by given mode, either in octal or symbolic format.
  7692. @param mode mode as a string, either in octal or symbolic format
  7693. @throws IllegalArgumentException if <code>mode</code> is invalid]]>
  7694. </doc>
  7695. </constructor>
  7696. <method name="createImmutable" return="org.apache.hadoop.fs.permission.FsPermission"
  7697. abstract="false" native="false" synchronized="false"
  7698. static="true" final="false" visibility="public"
  7699. deprecated="not deprecated">
  7700. <param name="permission" type="short"/>
  7701. <doc>
  7702. <![CDATA[Create an immutable {@link FsPermission} object.]]>
  7703. </doc>
  7704. </method>
  7705. <method name="getUserAction" return="org.apache.hadoop.fs.permission.FsAction"
  7706. abstract="false" native="false" synchronized="false"
  7707. static="false" final="false" visibility="public"
  7708. deprecated="not deprecated">
  7709. <doc>
  7710. <![CDATA[Return user {@link FsAction}.]]>
  7711. </doc>
  7712. </method>
  7713. <method name="getGroupAction" return="org.apache.hadoop.fs.permission.FsAction"
  7714. abstract="false" native="false" synchronized="false"
  7715. static="false" final="false" visibility="public"
  7716. deprecated="not deprecated">
  7717. <doc>
  7718. <![CDATA[Return group {@link FsAction}.]]>
  7719. </doc>
  7720. </method>
  7721. <method name="getOtherAction" return="org.apache.hadoop.fs.permission.FsAction"
  7722. abstract="false" native="false" synchronized="false"
  7723. static="false" final="false" visibility="public"
  7724. deprecated="not deprecated">
  7725. <doc>
  7726. <![CDATA[Return other {@link FsAction}.]]>
  7727. </doc>
  7728. </method>
  7729. <method name="fromShort"
  7730. abstract="false" native="false" synchronized="false"
  7731. static="false" final="false" visibility="public"
  7732. deprecated="not deprecated">
  7733. <param name="n" type="short"/>
  7734. </method>
  7735. <method name="write"
  7736. abstract="false" native="false" synchronized="false"
  7737. static="false" final="false" visibility="public"
  7738. deprecated="not deprecated">
  7739. <param name="out" type="java.io.DataOutput"/>
  7740. <exception name="IOException" type="java.io.IOException"/>
  7741. <doc>
  7742. <![CDATA[{@inheritDoc}]]>
  7743. </doc>
  7744. </method>
  7745. <method name="readFields"
  7746. abstract="false" native="false" synchronized="false"
  7747. static="false" final="false" visibility="public"
  7748. deprecated="not deprecated">
  7749. <param name="in" type="java.io.DataInput"/>
  7750. <exception name="IOException" type="java.io.IOException"/>
  7751. <doc>
  7752. <![CDATA[{@inheritDoc}]]>
  7753. </doc>
  7754. </method>
  7755. <method name="read" return="org.apache.hadoop.fs.permission.FsPermission"
  7756. abstract="false" native="false" synchronized="false"
  7757. static="true" final="false" visibility="public"
  7758. deprecated="not deprecated">
  7759. <param name="in" type="java.io.DataInput"/>
  7760. <exception name="IOException" type="java.io.IOException"/>
  7761. <doc>
  7762. <![CDATA[Create and initialize a {@link FsPermission} from {@link DataInput}.]]>
  7763. </doc>
  7764. </method>
  7765. <method name="toShort" return="short"
  7766. abstract="false" native="false" synchronized="false"
  7767. static="false" final="false" visibility="public"
  7768. deprecated="not deprecated">
  7769. <doc>
  7770. <![CDATA[Encode the object to a short.]]>
  7771. </doc>
  7772. </method>
  7773. <method name="equals" return="boolean"
  7774. abstract="false" native="false" synchronized="false"
  7775. static="false" final="false" visibility="public"
  7776. deprecated="not deprecated">
  7777. <param name="obj" type="java.lang.Object"/>
  7778. <doc>
  7779. <![CDATA[{@inheritDoc}]]>
  7780. </doc>
  7781. </method>
  7782. <method name="hashCode" return="int"
  7783. abstract="false" native="false" synchronized="false"
  7784. static="false" final="false" visibility="public"
  7785. deprecated="not deprecated">
  7786. <doc>
  7787. <![CDATA[{@inheritDoc}]]>
  7788. </doc>
  7789. </method>
  7790. <method name="toString" return="java.lang.String"
  7791. abstract="false" native="false" synchronized="false"
  7792. static="false" final="false" visibility="public"
  7793. deprecated="not deprecated">
  7794. <doc>
  7795. <![CDATA[{@inheritDoc}]]>
  7796. </doc>
  7797. </method>
  7798. <method name="applyUMask" return="org.apache.hadoop.fs.permission.FsPermission"
  7799. abstract="false" native="false" synchronized="false"
  7800. static="false" final="false" visibility="public"
  7801. deprecated="not deprecated">
  7802. <param name="umask" type="org.apache.hadoop.fs.permission.FsPermission"/>
  7803. <doc>
  7804. <![CDATA[Apply a umask to this permission and return a new one]]>
  7805. </doc>
  7806. </method>
  7807. <method name="getUMask" return="org.apache.hadoop.fs.permission.FsPermission"
  7808. abstract="false" native="false" synchronized="false"
  7809. static="true" final="false" visibility="public"
  7810. deprecated="not deprecated">
  7811. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  7812. <doc>
  7813. <![CDATA[Get the user file creation mask (umask)
  7814. {@code UMASK_LABEL} config param has umask value that is either symbolic
  7815. or octal.
  7816. Symbolic umask is applied relative to file mode creation mask;
  7817. the permission op characters '+' clears the corresponding bit in the mask,
  7818. '-' sets bits in the mask.
  7819. Octal umask, the specified bits are set in the file mode creation mask.
  7820. {@code DEPRECATED_UMASK_LABEL} config param has umask value set to decimal.]]>
  7821. </doc>
  7822. </method>
  7823. <method name="setUMask"
  7824. abstract="false" native="false" synchronized="false"
  7825. static="true" final="false" visibility="public"
  7826. deprecated="not deprecated">
  7827. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  7828. <param name="umask" type="org.apache.hadoop.fs.permission.FsPermission"/>
  7829. <doc>
  7830. <![CDATA[Set the user file creation mask (umask)]]>
  7831. </doc>
  7832. </method>
  7833. <method name="getDefault" return="org.apache.hadoop.fs.permission.FsPermission"
  7834. abstract="false" native="false" synchronized="false"
  7835. static="true" final="false" visibility="public"
  7836. deprecated="not deprecated">
  7837. <doc>
  7838. <![CDATA[Get the default permission.]]>
  7839. </doc>
  7840. </method>
  7841. <method name="valueOf" return="org.apache.hadoop.fs.permission.FsPermission"
  7842. abstract="false" native="false" synchronized="false"
  7843. static="true" final="false" visibility="public"
  7844. deprecated="not deprecated">
  7845. <param name="unixSymbolicPermission" type="java.lang.String"/>
  7846. <doc>
  7847. <![CDATA[Create a FsPermission from a Unix symbolic permission string
  7848. @param unixSymbolicPermission e.g. "-rw-rw-rw-"]]>
  7849. </doc>
  7850. </method>
  7851. <field name="DEPRECATED_UMASK_LABEL" type="java.lang.String"
  7852. transient="false" volatile="false"
  7853. static="true" final="true" visibility="public"
  7854. deprecated="not deprecated">
  7855. <doc>
  7856. <![CDATA[umask property label]]>
  7857. </doc>
  7858. </field>
  7859. <field name="UMASK_LABEL" type="java.lang.String"
  7860. transient="false" volatile="false"
  7861. static="true" final="true" visibility="public"
  7862. deprecated="not deprecated">
  7863. </field>
  7864. <field name="DEFAULT_UMASK" type="int"
  7865. transient="false" volatile="false"
  7866. static="true" final="true" visibility="public"
  7867. deprecated="not deprecated">
  7868. </field>
  7869. <doc>
  7870. <![CDATA[A class for file/directory permissions.]]>
  7871. </doc>
  7872. </class>
  7873. <!-- end class org.apache.hadoop.fs.permission.FsPermission -->
  7874. <!-- start class org.apache.hadoop.fs.permission.PermissionStatus -->
  7875. <class name="PermissionStatus" extends="java.lang.Object"
  7876. abstract="false"
  7877. static="false" final="false" visibility="public"
  7878. deprecated="not deprecated">
  7879. <implements name="org.apache.hadoop.io.Writable"/>
  7880. <constructor name="PermissionStatus" type="java.lang.String, java.lang.String, org.apache.hadoop.fs.permission.FsPermission"
  7881. static="false" final="false" visibility="public"
  7882. deprecated="not deprecated">
  7883. <doc>
  7884. <![CDATA[Constructor]]>
  7885. </doc>
  7886. </constructor>
  7887. <method name="createImmutable" return="org.apache.hadoop.fs.permission.PermissionStatus"
  7888. abstract="false" native="false" synchronized="false"
  7889. static="true" final="false" visibility="public"
  7890. deprecated="not deprecated">
  7891. <param name="user" type="java.lang.String"/>
  7892. <param name="group" type="java.lang.String"/>
  7893. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  7894. <doc>
  7895. <![CDATA[Create an immutable {@link PermissionStatus} object.]]>
  7896. </doc>
  7897. </method>
  7898. <method name="getUserName" return="java.lang.String"
  7899. abstract="false" native="false" synchronized="false"
  7900. static="false" final="false" visibility="public"
  7901. deprecated="not deprecated">
  7902. <doc>
  7903. <![CDATA[Return user name]]>
  7904. </doc>
  7905. </method>
  7906. <method name="getGroupName" return="java.lang.String"
  7907. abstract="false" native="false" synchronized="false"
  7908. static="false" final="false" visibility="public"
  7909. deprecated="not deprecated">
  7910. <doc>
  7911. <![CDATA[Return group name]]>
  7912. </doc>
  7913. </method>
  7914. <method name="getPermission" return="org.apache.hadoop.fs.permission.FsPermission"
  7915. abstract="false" native="false" synchronized="false"
  7916. static="false" final="false" visibility="public"
  7917. deprecated="not deprecated">
  7918. <doc>
  7919. <![CDATA[Return permission]]>
  7920. </doc>
  7921. </method>
  7922. <method name="applyUMask" return="org.apache.hadoop.fs.permission.PermissionStatus"
  7923. abstract="false" native="false" synchronized="false"
  7924. static="false" final="false" visibility="public"
  7925. deprecated="not deprecated">
  7926. <param name="umask" type="org.apache.hadoop.fs.permission.FsPermission"/>
  7927. <doc>
  7928. <![CDATA[Apply umask.
  7929. @see FsPermission#applyUMask(FsPermission)]]>
  7930. </doc>
  7931. </method>
  7932. <method name="readFields"
  7933. abstract="false" native="false" synchronized="false"
  7934. static="false" final="false" visibility="public"
  7935. deprecated="not deprecated">
  7936. <param name="in" type="java.io.DataInput"/>
  7937. <exception name="IOException" type="java.io.IOException"/>
  7938. <doc>
  7939. <![CDATA[{@inheritDoc}]]>
  7940. </doc>
  7941. </method>
  7942. <method name="write"
  7943. abstract="false" native="false" synchronized="false"
  7944. static="false" final="false" visibility="public"
  7945. deprecated="not deprecated">
  7946. <param name="out" type="java.io.DataOutput"/>
  7947. <exception name="IOException" type="java.io.IOException"/>
  7948. <doc>
  7949. <![CDATA[{@inheritDoc}]]>
  7950. </doc>
  7951. </method>
  7952. <method name="read" return="org.apache.hadoop.fs.permission.PermissionStatus"
  7953. abstract="false" native="false" synchronized="false"
  7954. static="true" final="false" visibility="public"
  7955. deprecated="not deprecated">
  7956. <param name="in" type="java.io.DataInput"/>
  7957. <exception name="IOException" type="java.io.IOException"/>
  7958. <doc>
  7959. <![CDATA[Create and initialize a {@link PermissionStatus} from {@link DataInput}.]]>
  7960. </doc>
  7961. </method>
  7962. <method name="write"
  7963. abstract="false" native="false" synchronized="false"
  7964. static="true" final="false" visibility="public"
  7965. deprecated="not deprecated">
  7966. <param name="out" type="java.io.DataOutput"/>
  7967. <param name="username" type="java.lang.String"/>
  7968. <param name="groupname" type="java.lang.String"/>
  7969. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  7970. <exception name="IOException" type="java.io.IOException"/>
  7971. <doc>
  7972. <![CDATA[Serialize a {@link PermissionStatus} from its base components.]]>
  7973. </doc>
  7974. </method>
  7975. <method name="toString" return="java.lang.String"
  7976. abstract="false" native="false" synchronized="false"
  7977. static="false" final="false" visibility="public"
  7978. deprecated="not deprecated">
  7979. <doc>
  7980. <![CDATA[{@inheritDoc}]]>
  7981. </doc>
  7982. </method>
  7983. <doc>
  7984. <![CDATA[Store permission related information.]]>
  7985. </doc>
  7986. </class>
  7987. <!-- end class org.apache.hadoop.fs.permission.PermissionStatus -->
  7988. </package>
  7989. <package name="org.apache.hadoop.fs.s3">
  7990. <!-- start class org.apache.hadoop.fs.s3.Block -->
  7991. <class name="Block" extends="java.lang.Object"
  7992. abstract="false"
  7993. static="false" final="false" visibility="public"
  7994. deprecated="not deprecated">
  7995. <constructor name="Block" type="long, long"
  7996. static="false" final="false" visibility="public"
  7997. deprecated="not deprecated">
  7998. </constructor>
  7999. <method name="getId" return="long"
  8000. abstract="false" native="false" synchronized="false"
  8001. static="false" final="false" visibility="public"
  8002. deprecated="not deprecated">
  8003. </method>
  8004. <method name="getLength" return="long"
  8005. abstract="false" native="false" synchronized="false"
  8006. static="false" final="false" visibility="public"
  8007. deprecated="not deprecated">
  8008. </method>
  8009. <method name="toString" return="java.lang.String"
  8010. abstract="false" native="false" synchronized="false"
  8011. static="false" final="false" visibility="public"
  8012. deprecated="not deprecated">
  8013. </method>
  8014. <doc>
  8015. <![CDATA[Holds metadata about a block of data being stored in a {@link FileSystemStore}.]]>
  8016. </doc>
  8017. </class>
  8018. <!-- end class org.apache.hadoop.fs.s3.Block -->
  8019. <!-- start interface org.apache.hadoop.fs.s3.FileSystemStore -->
  8020. <interface name="FileSystemStore" abstract="true"
  8021. static="false" final="false" visibility="public"
  8022. deprecated="not deprecated">
  8023. <method name="initialize"
  8024. abstract="false" native="false" synchronized="false"
  8025. static="false" final="false" visibility="public"
  8026. deprecated="not deprecated">
  8027. <param name="uri" type="java.net.URI"/>
  8028. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  8029. <exception name="IOException" type="java.io.IOException"/>
  8030. </method>
  8031. <method name="getVersion" return="java.lang.String"
  8032. abstract="false" native="false" synchronized="false"
  8033. static="false" final="false" visibility="public"
  8034. deprecated="not deprecated">
  8035. <exception name="IOException" type="java.io.IOException"/>
  8036. </method>
  8037. <method name="storeINode"
  8038. abstract="false" native="false" synchronized="false"
  8039. static="false" final="false" visibility="public"
  8040. deprecated="not deprecated">
  8041. <param name="path" type="org.apache.hadoop.fs.Path"/>
  8042. <param name="inode" type="org.apache.hadoop.fs.s3.INode"/>
  8043. <exception name="IOException" type="java.io.IOException"/>
  8044. </method>
  8045. <method name="storeBlock"
  8046. abstract="false" native="false" synchronized="false"
  8047. static="false" final="false" visibility="public"
  8048. deprecated="not deprecated">
  8049. <param name="block" type="org.apache.hadoop.fs.s3.Block"/>
  8050. <param name="file" type="java.io.File"/>
  8051. <exception name="IOException" type="java.io.IOException"/>
  8052. </method>
  8053. <method name="inodeExists" return="boolean"
  8054. abstract="false" native="false" synchronized="false"
  8055. static="false" final="false" visibility="public"
  8056. deprecated="not deprecated">
  8057. <param name="path" type="org.apache.hadoop.fs.Path"/>
  8058. <exception name="IOException" type="java.io.IOException"/>
  8059. </method>
  8060. <method name="blockExists" return="boolean"
  8061. abstract="false" native="false" synchronized="false"
  8062. static="false" final="false" visibility="public"
  8063. deprecated="not deprecated">
  8064. <param name="blockId" type="long"/>
  8065. <exception name="IOException" type="java.io.IOException"/>
  8066. </method>
  8067. <method name="retrieveINode" return="org.apache.hadoop.fs.s3.INode"
  8068. abstract="false" native="false" synchronized="false"
  8069. static="false" final="false" visibility="public"
  8070. deprecated="not deprecated">
  8071. <param name="path" type="org.apache.hadoop.fs.Path"/>
  8072. <exception name="IOException" type="java.io.IOException"/>
  8073. </method>
  8074. <method name="retrieveBlock" return="java.io.File"
  8075. abstract="false" native="false" synchronized="false"
  8076. static="false" final="false" visibility="public"
  8077. deprecated="not deprecated">
  8078. <param name="block" type="org.apache.hadoop.fs.s3.Block"/>
  8079. <param name="byteRangeStart" type="long"/>
  8080. <exception name="IOException" type="java.io.IOException"/>
  8081. </method>
  8082. <method name="deleteINode"
  8083. abstract="false" native="false" synchronized="false"
  8084. static="false" final="false" visibility="public"
  8085. deprecated="not deprecated">
  8086. <param name="path" type="org.apache.hadoop.fs.Path"/>
  8087. <exception name="IOException" type="java.io.IOException"/>
  8088. </method>
  8089. <method name="deleteBlock"
  8090. abstract="false" native="false" synchronized="false"
  8091. static="false" final="false" visibility="public"
  8092. deprecated="not deprecated">
  8093. <param name="block" type="org.apache.hadoop.fs.s3.Block"/>
  8094. <exception name="IOException" type="java.io.IOException"/>
  8095. </method>
  8096. <method name="listSubPaths" return="java.util.Set"
  8097. abstract="false" native="false" synchronized="false"
  8098. static="false" final="false" visibility="public"
  8099. deprecated="not deprecated">
  8100. <param name="path" type="org.apache.hadoop.fs.Path"/>
  8101. <exception name="IOException" type="java.io.IOException"/>
  8102. </method>
  8103. <method name="listDeepSubPaths" return="java.util.Set"
  8104. abstract="false" native="false" synchronized="false"
  8105. static="false" final="false" visibility="public"
  8106. deprecated="not deprecated">
  8107. <param name="path" type="org.apache.hadoop.fs.Path"/>
  8108. <exception name="IOException" type="java.io.IOException"/>
  8109. </method>
  8110. <method name="purge"
  8111. abstract="false" native="false" synchronized="false"
  8112. static="false" final="false" visibility="public"
  8113. deprecated="not deprecated">
  8114. <exception name="IOException" type="java.io.IOException"/>
  8115. <doc>
  8116. <![CDATA[Delete everything. Used for testing.
  8117. @throws IOException]]>
  8118. </doc>
  8119. </method>
  8120. <method name="dump"
  8121. abstract="false" native="false" synchronized="false"
  8122. static="false" final="false" visibility="public"
  8123. deprecated="not deprecated">
  8124. <exception name="IOException" type="java.io.IOException"/>
  8125. <doc>
  8126. <![CDATA[Diagnostic method to dump all INodes to the console.
  8127. @throws IOException]]>
  8128. </doc>
  8129. </method>
  8130. <doc>
  8131. <![CDATA[A facility for storing and retrieving {@link INode}s and {@link Block}s.]]>
  8132. </doc>
  8133. </interface>
  8134. <!-- end interface org.apache.hadoop.fs.s3.FileSystemStore -->
  8135. <!-- start class org.apache.hadoop.fs.s3.INode -->
  8136. <class name="INode" extends="java.lang.Object"
  8137. abstract="false"
  8138. static="false" final="false" visibility="public"
  8139. deprecated="not deprecated">
  8140. <constructor name="INode" type="org.apache.hadoop.fs.s3.INode.FileType, org.apache.hadoop.fs.s3.Block[]"
  8141. static="false" final="false" visibility="public"
  8142. deprecated="not deprecated">
  8143. </constructor>
  8144. <method name="getBlocks" return="org.apache.hadoop.fs.s3.Block[]"
  8145. abstract="false" native="false" synchronized="false"
  8146. static="false" final="false" visibility="public"
  8147. deprecated="not deprecated">
  8148. </method>
  8149. <method name="getFileType" return="org.apache.hadoop.fs.s3.INode.FileType"
  8150. abstract="false" native="false" synchronized="false"
  8151. static="false" final="false" visibility="public"
  8152. deprecated="not deprecated">
  8153. </method>
  8154. <method name="isDirectory" return="boolean"
  8155. abstract="false" native="false" synchronized="false"
  8156. static="false" final="false" visibility="public"
  8157. deprecated="not deprecated">
  8158. </method>
  8159. <method name="isFile" return="boolean"
  8160. abstract="false" native="false" synchronized="false"
  8161. static="false" final="false" visibility="public"
  8162. deprecated="not deprecated">
  8163. </method>
  8164. <method name="getSerializedLength" return="long"
  8165. abstract="false" native="false" synchronized="false"
  8166. static="false" final="false" visibility="public"
  8167. deprecated="not deprecated">
  8168. </method>
  8169. <method name="serialize" return="java.io.InputStream"
  8170. abstract="false" native="false" synchronized="false"
  8171. static="false" final="false" visibility="public"
  8172. deprecated="not deprecated">
  8173. <exception name="IOException" type="java.io.IOException"/>
  8174. </method>
  8175. <method name="deserialize" return="org.apache.hadoop.fs.s3.INode"
  8176. abstract="false" native="false" synchronized="false"
  8177. static="true" final="false" visibility="public"
  8178. deprecated="not deprecated">
  8179. <param name="in" type="java.io.InputStream"/>
  8180. <exception name="IOException" type="java.io.IOException"/>
  8181. </method>
  8182. <field name="FILE_TYPES" type="org.apache.hadoop.fs.s3.INode.FileType[]"
  8183. transient="false" volatile="false"
  8184. static="true" final="true" visibility="public"
  8185. deprecated="not deprecated">
  8186. </field>
  8187. <field name="DIRECTORY_INODE" type="org.apache.hadoop.fs.s3.INode"
  8188. transient="false" volatile="false"
  8189. static="true" final="true" visibility="public"
  8190. deprecated="not deprecated">
  8191. </field>
  8192. <doc>
  8193. <![CDATA[Holds file metadata including type (regular file, or directory),
  8194. and the list of blocks that are pointers to the data.]]>
  8195. </doc>
  8196. </class>
  8197. <!-- end class org.apache.hadoop.fs.s3.INode -->
  8198. <!-- start class org.apache.hadoop.fs.s3.MigrationTool -->
  8199. <class name="MigrationTool" extends="org.apache.hadoop.conf.Configured"
  8200. abstract="false"
  8201. static="false" final="false" visibility="public"
  8202. deprecated="not deprecated">
  8203. <implements name="org.apache.hadoop.util.Tool"/>
  8204. <constructor name="MigrationTool"
  8205. static="false" final="false" visibility="public"
  8206. deprecated="not deprecated">
  8207. </constructor>
  8208. <method name="main"
  8209. abstract="false" native="false" synchronized="false"
  8210. static="true" final="false" visibility="public"
  8211. deprecated="not deprecated">
  8212. <param name="args" type="java.lang.String[]"/>
  8213. <exception name="Exception" type="java.lang.Exception"/>
  8214. </method>
  8215. <method name="run" return="int"
  8216. abstract="false" native="false" synchronized="false"
  8217. static="false" final="false" visibility="public"
  8218. deprecated="not deprecated">
  8219. <param name="args" type="java.lang.String[]"/>
  8220. <exception name="Exception" type="java.lang.Exception"/>
  8221. </method>
  8222. <method name="initialize"
  8223. abstract="false" native="false" synchronized="false"
  8224. static="false" final="false" visibility="public"
  8225. deprecated="not deprecated">
  8226. <param name="uri" type="java.net.URI"/>
  8227. <exception name="IOException" type="java.io.IOException"/>
  8228. </method>
  8229. <doc>
  8230. <![CDATA[<p>
  8231. This class is a tool for migrating data from an older to a newer version
  8232. of an S3 filesystem.
  8233. </p>
  8234. <p>
  8235. All files in the filesystem are migrated by re-writing the block metadata
  8236. - no datafiles are touched.
  8237. </p>]]>
  8238. </doc>
  8239. </class>
  8240. <!-- end class org.apache.hadoop.fs.s3.MigrationTool -->
  8241. <!-- start class org.apache.hadoop.fs.s3.S3Credentials -->
  8242. <class name="S3Credentials" extends="java.lang.Object"
  8243. abstract="false"
  8244. static="false" final="false" visibility="public"
  8245. deprecated="not deprecated">
  8246. <constructor name="S3Credentials"
  8247. static="false" final="false" visibility="public"
  8248. deprecated="not deprecated">
  8249. </constructor>
  8250. <method name="initialize"
  8251. abstract="false" native="false" synchronized="false"
  8252. static="false" final="false" visibility="public"
  8253. deprecated="not deprecated">
  8254. <param name="uri" type="java.net.URI"/>
  8255. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  8256. <doc>
  8257. <![CDATA[@throws IllegalArgumentException if credentials for S3 cannot be
  8258. determined.]]>
  8259. </doc>
  8260. </method>
  8261. <method name="getAccessKey" return="java.lang.String"
  8262. abstract="false" native="false" synchronized="false"
  8263. static="false" final="false" visibility="public"
  8264. deprecated="not deprecated">
  8265. </method>
  8266. <method name="getSecretAccessKey" return="java.lang.String"
  8267. abstract="false" native="false" synchronized="false"
  8268. static="false" final="false" visibility="public"
  8269. deprecated="not deprecated">
  8270. </method>
  8271. <doc>
  8272. <![CDATA[<p>
  8273. Extracts AWS credentials from the filesystem URI or configuration.
  8274. </p>]]>
  8275. </doc>
  8276. </class>
  8277. <!-- end class org.apache.hadoop.fs.s3.S3Credentials -->
  8278. <!-- start class org.apache.hadoop.fs.s3.S3Exception -->
  8279. <class name="S3Exception" extends="java.lang.RuntimeException"
  8280. abstract="false"
  8281. static="false" final="false" visibility="public"
  8282. deprecated="not deprecated">
  8283. <constructor name="S3Exception" type="java.lang.Throwable"
  8284. static="false" final="false" visibility="public"
  8285. deprecated="not deprecated">
  8286. </constructor>
  8287. <doc>
  8288. <![CDATA[Thrown if there is a problem communicating with Amazon S3.]]>
  8289. </doc>
  8290. </class>
  8291. <!-- end class org.apache.hadoop.fs.s3.S3Exception -->
  8292. <!-- start class org.apache.hadoop.fs.s3.S3FileSystem -->
  8293. <class name="S3FileSystem" extends="org.apache.hadoop.fs.FileSystem"
  8294. abstract="false"
  8295. static="false" final="false" visibility="public"
  8296. deprecated="not deprecated">
  8297. <constructor name="S3FileSystem"
  8298. static="false" final="false" visibility="public"
  8299. deprecated="not deprecated">
  8300. </constructor>
  8301. <constructor name="S3FileSystem" type="org.apache.hadoop.fs.s3.FileSystemStore"
  8302. static="false" final="false" visibility="public"
  8303. deprecated="not deprecated">
  8304. </constructor>
  8305. <method name="getUri" return="java.net.URI"
  8306. abstract="false" native="false" synchronized="false"
  8307. static="false" final="false" visibility="public"
  8308. deprecated="not deprecated">
  8309. </method>
  8310. <method name="initialize"
  8311. abstract="false" native="false" synchronized="false"
  8312. static="false" final="false" visibility="public"
  8313. deprecated="not deprecated">
  8314. <param name="uri" type="java.net.URI"/>
  8315. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  8316. <exception name="IOException" type="java.io.IOException"/>
  8317. </method>
  8318. <method name="getName" return="java.lang.String"
  8319. abstract="false" native="false" synchronized="false"
  8320. static="false" final="false" visibility="public"
  8321. deprecated="not deprecated">
  8322. </method>
  8323. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  8324. abstract="false" native="false" synchronized="false"
  8325. static="false" final="false" visibility="public"
  8326. deprecated="not deprecated">
  8327. </method>
  8328. <method name="setWorkingDirectory"
  8329. abstract="false" native="false" synchronized="false"
  8330. static="false" final="false" visibility="public"
  8331. deprecated="not deprecated">
  8332. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  8333. </method>
  8334. <method name="mkdirs" return="boolean"
  8335. abstract="false" native="false" synchronized="false"
  8336. static="false" final="false" visibility="public"
  8337. deprecated="not deprecated">
  8338. <param name="path" type="org.apache.hadoop.fs.Path"/>
  8339. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  8340. <exception name="IOException" type="java.io.IOException"/>
  8341. <doc>
  8342. <![CDATA[@param permission Currently ignored.]]>
  8343. </doc>
  8344. </method>
  8345. <method name="isFile" return="boolean"
  8346. abstract="false" native="false" synchronized="false"
  8347. static="false" final="false" visibility="public"
  8348. deprecated="not deprecated">
  8349. <param name="path" type="org.apache.hadoop.fs.Path"/>
  8350. <exception name="IOException" type="java.io.IOException"/>
  8351. </method>
  8352. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  8353. abstract="false" native="false" synchronized="false"
  8354. static="false" final="false" visibility="public"
  8355. deprecated="not deprecated">
  8356. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8357. <exception name="IOException" type="java.io.IOException"/>
  8358. </method>
  8359. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  8360. abstract="false" native="false" synchronized="false"
  8361. static="false" final="false" visibility="public"
  8362. deprecated="not deprecated">
  8363. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8364. <param name="bufferSize" type="int"/>
  8365. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  8366. <exception name="IOException" type="java.io.IOException"/>
  8367. <doc>
  8368. <![CDATA[This optional operation is not yet supported.]]>
  8369. </doc>
  8370. </method>
  8371. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  8372. abstract="false" native="false" synchronized="false"
  8373. static="false" final="false" visibility="public"
  8374. deprecated="not deprecated">
  8375. <param name="file" type="org.apache.hadoop.fs.Path"/>
  8376. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  8377. <param name="overwrite" type="boolean"/>
  8378. <param name="bufferSize" type="int"/>
  8379. <param name="replication" type="short"/>
  8380. <param name="blockSize" type="long"/>
  8381. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  8382. <exception name="IOException" type="java.io.IOException"/>
  8383. <doc>
  8384. <![CDATA[@param permission Currently ignored.]]>
  8385. </doc>
  8386. </method>
  8387. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  8388. abstract="false" native="false" synchronized="false"
  8389. static="false" final="false" visibility="public"
  8390. deprecated="not deprecated">
  8391. <param name="path" type="org.apache.hadoop.fs.Path"/>
  8392. <param name="bufferSize" type="int"/>
  8393. <exception name="IOException" type="java.io.IOException"/>
  8394. </method>
  8395. <method name="rename" return="boolean"
  8396. abstract="false" native="false" synchronized="false"
  8397. static="false" final="false" visibility="public"
  8398. deprecated="not deprecated">
  8399. <param name="src" type="org.apache.hadoop.fs.Path"/>
  8400. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  8401. <exception name="IOException" type="java.io.IOException"/>
  8402. </method>
  8403. <method name="delete" return="boolean"
  8404. abstract="false" native="false" synchronized="false"
  8405. static="false" final="false" visibility="public"
  8406. deprecated="not deprecated">
  8407. <param name="path" type="org.apache.hadoop.fs.Path"/>
  8408. <param name="recursive" type="boolean"/>
  8409. <exception name="IOException" type="java.io.IOException"/>
  8410. </method>
  8411. <method name="delete" return="boolean"
  8412. abstract="false" native="false" synchronized="false"
  8413. static="false" final="false" visibility="public"
  8414. deprecated="not deprecated">
  8415. <param name="path" type="org.apache.hadoop.fs.Path"/>
  8416. <exception name="IOException" type="java.io.IOException"/>
  8417. </method>
  8418. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  8419. abstract="false" native="false" synchronized="false"
  8420. static="false" final="false" visibility="public"
  8421. deprecated="not deprecated">
  8422. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8423. <exception name="IOException" type="java.io.IOException"/>
  8424. <doc>
  8425. <![CDATA[FileStatus for S3 file systems.]]>
  8426. </doc>
  8427. </method>
  8428. <doc>
  8429. <![CDATA[<p>
  8430. A block-based {@link FileSystem} backed by
  8431. <a href="http://aws.amazon.com/s3">Amazon S3</a>.
  8432. </p>
  8433. @see NativeS3FileSystem]]>
  8434. </doc>
  8435. </class>
  8436. <!-- end class org.apache.hadoop.fs.s3.S3FileSystem -->
  8437. <!-- start class org.apache.hadoop.fs.s3.S3FileSystemException -->
  8438. <class name="S3FileSystemException" extends="java.io.IOException"
  8439. abstract="false"
  8440. static="false" final="false" visibility="public"
  8441. deprecated="not deprecated">
  8442. <constructor name="S3FileSystemException" type="java.lang.String"
  8443. static="false" final="false" visibility="public"
  8444. deprecated="not deprecated">
  8445. </constructor>
  8446. <doc>
  8447. <![CDATA[Thrown when there is a fatal exception while using {@link S3FileSystem}.]]>
  8448. </doc>
  8449. </class>
  8450. <!-- end class org.apache.hadoop.fs.s3.S3FileSystemException -->
  8451. <!-- start class org.apache.hadoop.fs.s3.VersionMismatchException -->
  8452. <class name="VersionMismatchException" extends="org.apache.hadoop.fs.s3.S3FileSystemException"
  8453. abstract="false"
  8454. static="false" final="false" visibility="public"
  8455. deprecated="not deprecated">
  8456. <constructor name="VersionMismatchException" type="java.lang.String, java.lang.String"
  8457. static="false" final="false" visibility="public"
  8458. deprecated="not deprecated">
  8459. </constructor>
  8460. <doc>
  8461. <![CDATA[Thrown when Hadoop cannot read the version of the data stored
  8462. in {@link S3FileSystem}.]]>
  8463. </doc>
  8464. </class>
  8465. <!-- end class org.apache.hadoop.fs.s3.VersionMismatchException -->
  8466. </package>
  8467. <package name="org.apache.hadoop.fs.s3native">
  8468. <!-- start class org.apache.hadoop.fs.s3native.NativeS3FileSystem -->
  8469. <class name="NativeS3FileSystem" extends="org.apache.hadoop.fs.FileSystem"
  8470. abstract="false"
  8471. static="false" final="false" visibility="public"
  8472. deprecated="not deprecated">
  8473. <constructor name="NativeS3FileSystem"
  8474. static="false" final="false" visibility="public"
  8475. deprecated="not deprecated">
  8476. </constructor>
  8477. <constructor name="NativeS3FileSystem" type="org.apache.hadoop.fs.s3native.NativeFileSystemStore"
  8478. static="false" final="false" visibility="public"
  8479. deprecated="not deprecated">
  8480. </constructor>
  8481. <method name="initialize"
  8482. abstract="false" native="false" synchronized="false"
  8483. static="false" final="false" visibility="public"
  8484. deprecated="not deprecated">
  8485. <param name="uri" type="java.net.URI"/>
  8486. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  8487. <exception name="IOException" type="java.io.IOException"/>
  8488. </method>
  8489. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  8490. abstract="false" native="false" synchronized="false"
  8491. static="false" final="false" visibility="public"
  8492. deprecated="not deprecated">
  8493. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8494. <param name="bufferSize" type="int"/>
  8495. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  8496. <exception name="IOException" type="java.io.IOException"/>
  8497. <doc>
  8498. <![CDATA[This optional operation is not yet supported.]]>
  8499. </doc>
  8500. </method>
  8501. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  8502. abstract="false" native="false" synchronized="false"
  8503. static="false" final="false" visibility="public"
  8504. deprecated="not deprecated">
  8505. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8506. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  8507. <param name="overwrite" type="boolean"/>
  8508. <param name="bufferSize" type="int"/>
  8509. <param name="replication" type="short"/>
  8510. <param name="blockSize" type="long"/>
  8511. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  8512. <exception name="IOException" type="java.io.IOException"/>
  8513. </method>
  8514. <method name="delete" return="boolean"
  8515. abstract="false" native="false" synchronized="false"
  8516. static="false" final="false" visibility="public"
  8517. deprecated="not deprecated">
  8518. <param name="path" type="org.apache.hadoop.fs.Path"/>
  8519. <exception name="IOException" type="java.io.IOException"/>
  8520. </method>
  8521. <method name="delete" return="boolean"
  8522. abstract="false" native="false" synchronized="false"
  8523. static="false" final="false" visibility="public"
  8524. deprecated="not deprecated">
  8525. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8526. <param name="recurse" type="boolean"/>
  8527. <exception name="IOException" type="java.io.IOException"/>
  8528. </method>
  8529. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  8530. abstract="false" native="false" synchronized="false"
  8531. static="false" final="false" visibility="public"
  8532. deprecated="not deprecated">
  8533. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8534. <exception name="IOException" type="java.io.IOException"/>
  8535. </method>
  8536. <method name="getUri" return="java.net.URI"
  8537. abstract="false" native="false" synchronized="false"
  8538. static="false" final="false" visibility="public"
  8539. deprecated="not deprecated">
  8540. </method>
  8541. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  8542. abstract="false" native="false" synchronized="false"
  8543. static="false" final="false" visibility="public"
  8544. deprecated="not deprecated">
  8545. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8546. <exception name="IOException" type="java.io.IOException"/>
  8547. <doc>
  8548. <![CDATA[<p>
  8549. If <code>f</code> is a file, this method will make a single call to S3.
  8550. If <code>f</code> is a directory, this method will make a maximum of
  8551. (<i>n</i> / 1000) + 2 calls to S3, where <i>n</i> is the total number of
  8552. files and directories contained directly in <code>f</code>.
  8553. </p>]]>
  8554. </doc>
  8555. </method>
  8556. <method name="mkdirs" return="boolean"
  8557. abstract="false" native="false" synchronized="false"
  8558. static="false" final="false" visibility="public"
  8559. deprecated="not deprecated">
  8560. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8561. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  8562. <exception name="IOException" type="java.io.IOException"/>
  8563. </method>
  8564. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  8565. abstract="false" native="false" synchronized="false"
  8566. static="false" final="false" visibility="public"
  8567. deprecated="not deprecated">
  8568. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8569. <param name="bufferSize" type="int"/>
  8570. <exception name="IOException" type="java.io.IOException"/>
  8571. </method>
  8572. <method name="rename" return="boolean"
  8573. abstract="false" native="false" synchronized="false"
  8574. static="false" final="false" visibility="public"
  8575. deprecated="not deprecated">
  8576. <param name="src" type="org.apache.hadoop.fs.Path"/>
  8577. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  8578. <exception name="IOException" type="java.io.IOException"/>
  8579. </method>
  8580. <method name="setWorkingDirectory"
  8581. abstract="false" native="false" synchronized="false"
  8582. static="false" final="false" visibility="public"
  8583. deprecated="not deprecated">
  8584. <param name="newDir" type="org.apache.hadoop.fs.Path"/>
  8585. <doc>
  8586. <![CDATA[Set the working directory to the given directory.]]>
  8587. </doc>
  8588. </method>
  8589. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  8590. abstract="false" native="false" synchronized="false"
  8591. static="false" final="false" visibility="public"
  8592. deprecated="not deprecated">
  8593. </method>
  8594. <field name="LOG" type="org.apache.commons.logging.Log"
  8595. transient="false" volatile="false"
  8596. static="true" final="true" visibility="public"
  8597. deprecated="not deprecated">
  8598. </field>
  8599. <doc>
  8600. <![CDATA[<p>
  8601. A {@link FileSystem} for reading and writing files stored on
  8602. <a href="http://aws.amazon.com/s3">Amazon S3</a>.
  8603. Unlike {@link org.apache.hadoop.fs.s3.S3FileSystem} this implementation
  8604. stores files on S3 in their
  8605. native form so they can be read by other S3 tools.
  8606. A note about directories. S3 of course has no "native" support for them.
  8607. The idiom we choose then is: for any directory created by this class,
  8608. we use an empty object "#{dirpath}_$folder$" as a marker.
  8609. Further, to interoperate with other S3 tools, we also accept the following:
  8610. - an object "#{dirpath}/' denoting a directory marker
  8611. - if there exists any objects with the prefix "#{dirpath}/", then the
  8612. directory is said to exist
  8613. - if both a file with the name of a directory and a marker for that
  8614. directory exists, then the *file masks the directory*, and the directory
  8615. is never returned.
  8616. </p>
  8617. @see org.apache.hadoop.fs.s3.S3FileSystem]]>
  8618. </doc>
  8619. </class>
  8620. <!-- end class org.apache.hadoop.fs.s3native.NativeS3FileSystem -->
  8621. </package>
  8622. <package name="org.apache.hadoop.fs.shell">
  8623. <!-- start class org.apache.hadoop.fs.shell.Command -->
  8624. <class name="Command" extends="org.apache.hadoop.conf.Configured"
  8625. abstract="true"
  8626. static="false" final="false" visibility="public"
  8627. deprecated="not deprecated">
  8628. <constructor name="Command" type="org.apache.hadoop.conf.Configuration"
  8629. static="false" final="false" visibility="protected"
  8630. deprecated="not deprecated">
  8631. <doc>
  8632. <![CDATA[Constructor]]>
  8633. </doc>
  8634. </constructor>
  8635. <method name="getCommandName" return="java.lang.String"
  8636. abstract="true" native="false" synchronized="false"
  8637. static="false" final="false" visibility="public"
  8638. deprecated="not deprecated">
  8639. <doc>
  8640. <![CDATA[Return the command's name excluding the leading character -]]>
  8641. </doc>
  8642. </method>
  8643. <method name="run"
  8644. abstract="true" native="false" synchronized="false"
  8645. static="false" final="false" visibility="protected"
  8646. deprecated="not deprecated">
  8647. <param name="path" type="org.apache.hadoop.fs.Path"/>
  8648. <exception name="IOException" type="java.io.IOException"/>
  8649. <doc>
  8650. <![CDATA[Execute the command on the input path
  8651. @param path the input path
  8652. @throws IOException if any error occurs]]>
  8653. </doc>
  8654. </method>
  8655. <method name="runAll" return="int"
  8656. abstract="false" native="false" synchronized="false"
  8657. static="false" final="false" visibility="public"
  8658. deprecated="not deprecated">
  8659. <doc>
  8660. <![CDATA[For each source path, execute the command
  8661. @return 0 if it runs successfully; -1 if it fails]]>
  8662. </doc>
  8663. </method>
  8664. <field name="args" type="java.lang.String[]"
  8665. transient="false" volatile="false"
  8666. static="false" final="false" visibility="protected"
  8667. deprecated="not deprecated">
  8668. </field>
  8669. <doc>
  8670. <![CDATA[An abstract class for the execution of a file system command]]>
  8671. </doc>
  8672. </class>
  8673. <!-- end class org.apache.hadoop.fs.shell.Command -->
  8674. <!-- start class org.apache.hadoop.fs.shell.CommandFormat -->
  8675. <class name="CommandFormat" extends="java.lang.Object"
  8676. abstract="false"
  8677. static="false" final="false" visibility="public"
  8678. deprecated="not deprecated">
  8679. <constructor name="CommandFormat" type="java.lang.String, int, int, java.lang.String[]"
  8680. static="false" final="false" visibility="public"
  8681. deprecated="not deprecated">
  8682. <doc>
  8683. <![CDATA[constructor]]>
  8684. </doc>
  8685. </constructor>
  8686. <method name="parse" return="java.util.List"
  8687. abstract="false" native="false" synchronized="false"
  8688. static="false" final="false" visibility="public"
  8689. deprecated="not deprecated">
  8690. <param name="args" type="java.lang.String[]"/>
  8691. <param name="pos" type="int"/>
  8692. <doc>
  8693. <![CDATA[Parse parameters starting from the given position
  8694. @param args an array of input arguments
  8695. @param pos the position at which starts to parse
  8696. @return a list of parameters]]>
  8697. </doc>
  8698. </method>
  8699. <method name="getOpt" return="boolean"
  8700. abstract="false" native="false" synchronized="false"
  8701. static="false" final="false" visibility="public"
  8702. deprecated="not deprecated">
  8703. <param name="option" type="java.lang.String"/>
  8704. <doc>
  8705. <![CDATA[Return if the option is set or not
  8706. @param option String representation of an option
  8707. @return true is the option is set; false otherwise]]>
  8708. </doc>
  8709. </method>
  8710. <doc>
  8711. <![CDATA[Parse the args of a command and check the format of args.]]>
  8712. </doc>
  8713. </class>
  8714. <!-- end class org.apache.hadoop.fs.shell.CommandFormat -->
  8715. <!-- start class org.apache.hadoop.fs.shell.Count -->
  8716. <class name="Count" extends="org.apache.hadoop.fs.shell.Command"
  8717. abstract="false"
  8718. static="false" final="false" visibility="public"
  8719. deprecated="not deprecated">
  8720. <constructor name="Count" type="java.lang.String[], int, org.apache.hadoop.conf.Configuration"
  8721. static="false" final="false" visibility="public"
  8722. deprecated="not deprecated">
  8723. <doc>
  8724. <![CDATA[Constructor
  8725. @param cmd the count command
  8726. @param pos the starting index of the arguments]]>
  8727. </doc>
  8728. </constructor>
  8729. <method name="matches" return="boolean"
  8730. abstract="false" native="false" synchronized="false"
  8731. static="true" final="false" visibility="public"
  8732. deprecated="not deprecated">
  8733. <param name="cmd" type="java.lang.String"/>
  8734. <doc>
  8735. <![CDATA[Check if a command is the count command
  8736. @param cmd A string representation of a command starting with "-"
  8737. @return true if this is a count command; false otherwise]]>
  8738. </doc>
  8739. </method>
  8740. <method name="getCommandName" return="java.lang.String"
  8741. abstract="false" native="false" synchronized="false"
  8742. static="false" final="false" visibility="public"
  8743. deprecated="not deprecated">
  8744. </method>
  8745. <method name="run"
  8746. abstract="false" native="false" synchronized="false"
  8747. static="false" final="false" visibility="protected"
  8748. deprecated="not deprecated">
  8749. <param name="path" type="org.apache.hadoop.fs.Path"/>
  8750. <exception name="IOException" type="java.io.IOException"/>
  8751. </method>
  8752. <field name="NAME" type="java.lang.String"
  8753. transient="false" volatile="false"
  8754. static="true" final="true" visibility="public"
  8755. deprecated="not deprecated">
  8756. </field>
  8757. <field name="USAGE" type="java.lang.String"
  8758. transient="false" volatile="false"
  8759. static="true" final="true" visibility="public"
  8760. deprecated="not deprecated">
  8761. </field>
  8762. <field name="DESCRIPTION" type="java.lang.String"
  8763. transient="false" volatile="false"
  8764. static="true" final="true" visibility="public"
  8765. deprecated="not deprecated">
  8766. </field>
  8767. <doc>
  8768. <![CDATA[Count the number of directories, files, bytes, quota, and remaining quota.]]>
  8769. </doc>
  8770. </class>
  8771. <!-- end class org.apache.hadoop.fs.shell.Count -->
  8772. </package>
  8773. <package name="org.apache.hadoop.http">
  8774. <!-- start class org.apache.hadoop.http.AdminAuthorizedServlet -->
  8775. <class name="AdminAuthorizedServlet" extends="org.mortbay.jetty.servlet.DefaultServlet"
  8776. abstract="false"
  8777. static="false" final="false" visibility="public"
  8778. deprecated="not deprecated">
  8779. <constructor name="AdminAuthorizedServlet"
  8780. static="false" final="false" visibility="public"
  8781. deprecated="not deprecated">
  8782. </constructor>
  8783. <method name="doGet"
  8784. abstract="false" native="false" synchronized="false"
  8785. static="false" final="false" visibility="protected"
  8786. deprecated="not deprecated">
  8787. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  8788. <param name="response" type="javax.servlet.http.HttpServletResponse"/>
  8789. <exception name="ServletException" type="javax.servlet.ServletException"/>
  8790. <exception name="IOException" type="java.io.IOException"/>
  8791. </method>
  8792. <doc>
  8793. <![CDATA[General servlet which is admin-authorized.]]>
  8794. </doc>
  8795. </class>
  8796. <!-- end class org.apache.hadoop.http.AdminAuthorizedServlet -->
  8797. <!-- start interface org.apache.hadoop.http.FilterContainer -->
  8798. <interface name="FilterContainer" abstract="true"
  8799. static="false" final="false" visibility="public"
  8800. deprecated="not deprecated">
  8801. <method name="addFilter"
  8802. abstract="false" native="false" synchronized="false"
  8803. static="false" final="false" visibility="public"
  8804. deprecated="not deprecated">
  8805. <param name="name" type="java.lang.String"/>
  8806. <param name="classname" type="java.lang.String"/>
  8807. <param name="parameters" type="java.util.Map"/>
  8808. <doc>
  8809. <![CDATA[Add a filter to the container.
  8810. @param name Filter name
  8811. @param classname Filter class name
  8812. @param parameters a map from parameter names to initial values]]>
  8813. </doc>
  8814. </method>
  8815. <method name="addGlobalFilter"
  8816. abstract="false" native="false" synchronized="false"
  8817. static="false" final="false" visibility="public"
  8818. deprecated="not deprecated">
  8819. <param name="name" type="java.lang.String"/>
  8820. <param name="classname" type="java.lang.String"/>
  8821. <param name="parameters" type="java.util.Map"/>
  8822. <doc>
  8823. <![CDATA[Add a global filter to the container.
  8824. @param name filter name
  8825. @param classname filter class name
  8826. @param parameters a map from parameter names to initial values]]>
  8827. </doc>
  8828. </method>
  8829. <doc>
  8830. <![CDATA[A container class for javax.servlet.Filter.]]>
  8831. </doc>
  8832. </interface>
  8833. <!-- end interface org.apache.hadoop.http.FilterContainer -->
  8834. <!-- start class org.apache.hadoop.http.FilterInitializer -->
  8835. <class name="FilterInitializer" extends="java.lang.Object"
  8836. abstract="true"
  8837. static="false" final="false" visibility="public"
  8838. deprecated="not deprecated">
  8839. <constructor name="FilterInitializer"
  8840. static="false" final="false" visibility="public"
  8841. deprecated="not deprecated">
  8842. </constructor>
  8843. <method name="initFilter"
  8844. abstract="true" native="false" synchronized="false"
  8845. static="false" final="false" visibility="public"
  8846. deprecated="not deprecated">
  8847. <param name="container" type="org.apache.hadoop.http.FilterContainer"/>
  8848. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  8849. <doc>
  8850. <![CDATA[Initialize a Filter to a FilterContainer.
  8851. @param container The filter container
  8852. @param conf Configuration for run-time parameters]]>
  8853. </doc>
  8854. </method>
  8855. <doc>
  8856. <![CDATA[Initialize a javax.servlet.Filter.]]>
  8857. </doc>
  8858. </class>
  8859. <!-- end class org.apache.hadoop.http.FilterInitializer -->
  8860. <!-- start class org.apache.hadoop.http.HtmlQuoting -->
  8861. <class name="HtmlQuoting" extends="java.lang.Object"
  8862. abstract="false"
  8863. static="false" final="false" visibility="public"
  8864. deprecated="not deprecated">
  8865. <constructor name="HtmlQuoting"
  8866. static="false" final="false" visibility="public"
  8867. deprecated="not deprecated">
  8868. </constructor>
  8869. <method name="needsQuoting" return="boolean"
  8870. abstract="false" native="false" synchronized="false"
  8871. static="true" final="false" visibility="public"
  8872. deprecated="not deprecated">
  8873. <param name="data" type="byte[]"/>
  8874. <param name="off" type="int"/>
  8875. <param name="len" type="int"/>
  8876. <doc>
  8877. <![CDATA[Does the given string need to be quoted?
  8878. @param data the string to check
  8879. @param off the starting position
  8880. @param len the number of bytes to check
  8881. @return does the string contain any of the active html characters?]]>
  8882. </doc>
  8883. </method>
  8884. <method name="needsQuoting" return="boolean"
  8885. abstract="false" native="false" synchronized="false"
  8886. static="true" final="false" visibility="public"
  8887. deprecated="not deprecated">
  8888. <param name="str" type="java.lang.String"/>
  8889. <doc>
  8890. <![CDATA[Does the given string need to be quoted?
  8891. @param str the string to check
  8892. @return does the string contain any of the active html characters?]]>
  8893. </doc>
  8894. </method>
  8895. <method name="quoteHtmlChars"
  8896. abstract="false" native="false" synchronized="false"
  8897. static="true" final="false" visibility="public"
  8898. deprecated="not deprecated">
  8899. <param name="output" type="java.io.OutputStream"/>
  8900. <param name="buffer" type="byte[]"/>
  8901. <param name="off" type="int"/>
  8902. <param name="len" type="int"/>
  8903. <exception name="IOException" type="java.io.IOException"/>
  8904. <doc>
  8905. <![CDATA[Quote all of the active HTML characters in the given string as they
  8906. are added to the buffer.
  8907. @param output the stream to write the output to
  8908. @param buffer the byte array to take the characters from
  8909. @param off the index of the first byte to quote
  8910. @param len the number of bytes to quote]]>
  8911. </doc>
  8912. </method>
  8913. <method name="quoteHtmlChars" return="java.lang.String"
  8914. abstract="false" native="false" synchronized="false"
  8915. static="true" final="false" visibility="public"
  8916. deprecated="not deprecated">
  8917. <param name="item" type="java.lang.String"/>
  8918. <doc>
  8919. <![CDATA[Quote the given item to make it html-safe.
  8920. @param item the string to quote
  8921. @return the quoted string]]>
  8922. </doc>
  8923. </method>
  8924. <method name="quoteOutputStream" return="java.io.OutputStream"
  8925. abstract="false" native="false" synchronized="false"
  8926. static="true" final="false" visibility="public"
  8927. deprecated="not deprecated">
  8928. <param name="out" type="java.io.OutputStream"/>
  8929. <exception name="IOException" type="java.io.IOException"/>
  8930. <doc>
  8931. <![CDATA[Return an output stream that quotes all of the output.
  8932. @param out the stream to write the quoted output to
  8933. @return a new stream that the application show write to
  8934. @throws IOException if the underlying output fails]]>
  8935. </doc>
  8936. </method>
  8937. <method name="unquoteHtmlChars" return="java.lang.String"
  8938. abstract="false" native="false" synchronized="false"
  8939. static="true" final="false" visibility="public"
  8940. deprecated="not deprecated">
  8941. <param name="item" type="java.lang.String"/>
  8942. <doc>
  8943. <![CDATA[Remove HTML quoting from a string.
  8944. @param item the string to unquote
  8945. @return the unquoted string]]>
  8946. </doc>
  8947. </method>
  8948. <method name="main"
  8949. abstract="false" native="false" synchronized="false"
  8950. static="true" final="false" visibility="public"
  8951. deprecated="not deprecated">
  8952. <param name="args" type="java.lang.String[]"/>
  8953. <exception name="Exception" type="java.lang.Exception"/>
  8954. </method>
  8955. <doc>
  8956. <![CDATA[This class is responsible for quoting HTML characters.]]>
  8957. </doc>
  8958. </class>
  8959. <!-- end class org.apache.hadoop.http.HtmlQuoting -->
  8960. <!-- start class org.apache.hadoop.http.HttpServer -->
  8961. <class name="HttpServer" extends="java.lang.Object"
  8962. abstract="false"
  8963. static="false" final="false" visibility="public"
  8964. deprecated="not deprecated">
  8965. <implements name="org.apache.hadoop.http.FilterContainer"/>
  8966. <constructor name="HttpServer" type="java.lang.String, java.lang.String, int, boolean"
  8967. static="false" final="false" visibility="public"
  8968. deprecated="not deprecated">
  8969. <exception name="IOException" type="java.io.IOException"/>
  8970. <doc>
  8971. <![CDATA[Same as this(name, bindAddress, port, findPort, null);]]>
  8972. </doc>
  8973. </constructor>
  8974. <constructor name="HttpServer" type="java.lang.String, java.lang.String, int, boolean, org.apache.hadoop.conf.Configuration"
  8975. static="false" final="false" visibility="public"
  8976. deprecated="not deprecated">
  8977. <exception name="IOException" type="java.io.IOException"/>
  8978. </constructor>
  8979. <constructor name="HttpServer" type="java.lang.String, java.lang.String, int, boolean, org.apache.hadoop.conf.Configuration, org.mortbay.jetty.Connector"
  8980. static="false" final="false" visibility="public"
  8981. deprecated="not deprecated">
  8982. <exception name="IOException" type="java.io.IOException"/>
  8983. </constructor>
  8984. <constructor name="HttpServer" type="java.lang.String, java.lang.String, int, boolean, org.apache.hadoop.conf.Configuration, org.apache.hadoop.security.authorize.AccessControlList"
  8985. static="false" final="false" visibility="public"
  8986. deprecated="not deprecated">
  8987. <exception name="IOException" type="java.io.IOException"/>
  8988. <doc>
  8989. <![CDATA[Create a status server on the given port.
  8990. The jsp scripts are taken from src/webapps/<name>.
  8991. @param name The name of the server
  8992. @param port The port to use on the server
  8993. @param findPort whether the server should start at the given port and
  8994. increment by 1 until it finds a free port.
  8995. @param conf Configuration
  8996. @param adminsAcl {@link AccessControlList} of the admins]]>
  8997. </doc>
  8998. </constructor>
  8999. <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"
  9000. static="false" final="false" visibility="public"
  9001. deprecated="not deprecated">
  9002. <exception name="IOException" type="java.io.IOException"/>
  9003. </constructor>
  9004. <method name="createBaseListener" return="org.mortbay.jetty.Connector"
  9005. abstract="false" native="false" synchronized="false"
  9006. static="false" final="false" visibility="public"
  9007. deprecated="not deprecated">
  9008. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  9009. <exception name="IOException" type="java.io.IOException"/>
  9010. <doc>
  9011. <![CDATA[Create a required listener for the Jetty instance listening on the port
  9012. provided. This wrapper and all subclasses must create at least one
  9013. listener.]]>
  9014. </doc>
  9015. </method>
  9016. <method name="createDefaultChannelConnector" return="org.mortbay.jetty.Connector"
  9017. abstract="false" native="false" synchronized="false"
  9018. static="true" final="false" visibility="public"
  9019. deprecated="not deprecated">
  9020. </method>
  9021. <method name="addDefaultApps"
  9022. abstract="false" native="false" synchronized="false"
  9023. static="false" final="false" visibility="protected"
  9024. deprecated="not deprecated">
  9025. <param name="parent" type="org.mortbay.jetty.handler.ContextHandlerCollection"/>
  9026. <param name="appDir" type="java.lang.String"/>
  9027. <exception name="IOException" type="java.io.IOException"/>
  9028. <doc>
  9029. <![CDATA[Add default apps.
  9030. @param appDir The application directory
  9031. @throws IOException]]>
  9032. </doc>
  9033. </method>
  9034. <method name="addDefaultServlets"
  9035. abstract="false" native="false" synchronized="false"
  9036. static="false" final="false" visibility="protected"
  9037. deprecated="not deprecated">
  9038. <doc>
  9039. <![CDATA[Add default servlets.]]>
  9040. </doc>
  9041. </method>
  9042. <method name="addContext"
  9043. abstract="false" native="false" synchronized="false"
  9044. static="false" final="false" visibility="public"
  9045. deprecated="not deprecated">
  9046. <param name="ctxt" type="org.mortbay.jetty.servlet.Context"/>
  9047. <param name="isFiltered" type="boolean"/>
  9048. <exception name="IOException" type="java.io.IOException"/>
  9049. </method>
  9050. <method name="addContext"
  9051. abstract="false" native="false" synchronized="false"
  9052. static="false" final="false" visibility="protected"
  9053. deprecated="not deprecated">
  9054. <param name="pathSpec" type="java.lang.String"/>
  9055. <param name="dir" type="java.lang.String"/>
  9056. <param name="isFiltered" type="boolean"/>
  9057. <exception name="IOException" type="java.io.IOException"/>
  9058. <doc>
  9059. <![CDATA[Add a context
  9060. @param pathSpec The path spec for the context
  9061. @param dir The directory containing the context
  9062. @param isFiltered if true, the servlet is added to the filter path mapping
  9063. @throws IOException]]>
  9064. </doc>
  9065. </method>
  9066. <method name="setAttribute"
  9067. abstract="false" native="false" synchronized="false"
  9068. static="false" final="false" visibility="public"
  9069. deprecated="not deprecated">
  9070. <param name="name" type="java.lang.String"/>
  9071. <param name="value" type="java.lang.Object"/>
  9072. <doc>
  9073. <![CDATA[Set a value in the webapp context. These values are available to the jsp
  9074. pages as "application.getAttribute(name)".
  9075. @param name The name of the attribute
  9076. @param value The value of the attribute]]>
  9077. </doc>
  9078. </method>
  9079. <method name="setAttribute"
  9080. abstract="false" native="false" synchronized="false"
  9081. static="false" final="false" visibility="public"
  9082. deprecated="not deprecated">
  9083. <param name="context" type="org.mortbay.jetty.servlet.Context"/>
  9084. <param name="name" type="java.lang.String"/>
  9085. <param name="value" type="java.lang.Object"/>
  9086. <doc>
  9087. <![CDATA[Set a value in the webapp context. These values are available to the jsp
  9088. pages as "application.getAttribute(name)".
  9089. @param context Context to add attribute
  9090. @param name The name of the attribute
  9091. @param value The value of the attribute]]>
  9092. </doc>
  9093. </method>
  9094. <method name="addJerseyResourcePackage"
  9095. abstract="false" native="false" synchronized="false"
  9096. static="false" final="false" visibility="public"
  9097. deprecated="not deprecated">
  9098. <param name="packageName" type="java.lang.String"/>
  9099. <param name="pathSpec" type="java.lang.String"/>
  9100. <doc>
  9101. <![CDATA[Add a Jersey resource package.
  9102. @param packageName The Java package name containing the Jersey resource.
  9103. @param pathSpec The path spec for the servlet]]>
  9104. </doc>
  9105. </method>
  9106. <method name="addServlet"
  9107. abstract="false" native="false" synchronized="false"
  9108. static="false" final="false" visibility="public"
  9109. deprecated="not deprecated">
  9110. <param name="name" type="java.lang.String"/>
  9111. <param name="pathSpec" type="java.lang.String"/>
  9112. <param name="clazz" type="java.lang.Class"/>
  9113. <doc>
  9114. <![CDATA[Add a servlet in the server.
  9115. @param name The name of the servlet (can be passed as null)
  9116. @param pathSpec The path spec for the servlet
  9117. @param clazz The servlet class]]>
  9118. </doc>
  9119. </method>
  9120. <method name="addInternalServlet"
  9121. abstract="false" native="false" synchronized="false"
  9122. static="false" final="false" visibility="public"
  9123. deprecated="this is a temporary method">
  9124. <param name="name" type="java.lang.String"/>
  9125. <param name="pathSpec" type="java.lang.String"/>
  9126. <param name="clazz" type="java.lang.Class"/>
  9127. <doc>
  9128. <![CDATA[Add an internal servlet in the server.
  9129. @param name The name of the servlet (can be passed as null)
  9130. @param pathSpec The path spec for the servlet
  9131. @param clazz The servlet class
  9132. @deprecated this is a temporary method]]>
  9133. </doc>
  9134. </method>
  9135. <method name="addInternalServlet"
  9136. abstract="false" native="false" synchronized="false"
  9137. static="false" final="false" visibility="public"
  9138. deprecated="not deprecated">
  9139. <param name="name" type="java.lang.String"/>
  9140. <param name="pathSpec" type="java.lang.String"/>
  9141. <param name="clazz" type="java.lang.Class"/>
  9142. <param name="requireAuth" type="boolean"/>
  9143. <param name="useKsslForAuth" type="boolean"/>
  9144. <doc>
  9145. <![CDATA[Add an internal servlet in the server, specifying whether or not to
  9146. protect with Kerberos authentication.
  9147. Note: This method is to be used for adding servlets that facilitate
  9148. internal communication and not for user facing functionality. For
  9149. servlets added using this method, filters (except internal Kerberos
  9150. filters) are not enabled.
  9151. @param name The name of the servlet (can be passed as null)
  9152. @param pathSpec The path spec for the servlet
  9153. @param clazz The servlet class
  9154. @param requireAuth Require Kerberos authenticate to access servlet
  9155. @param useKsslForAuth true to use KSSL for auth, false to use SPNEGO]]>
  9156. </doc>
  9157. </method>
  9158. <method name="addFilter"
  9159. abstract="false" native="false" synchronized="false"
  9160. static="false" final="false" visibility="public"
  9161. deprecated="not deprecated">
  9162. <param name="name" type="java.lang.String"/>
  9163. <param name="classname" type="java.lang.String"/>
  9164. <param name="parameters" type="java.util.Map"/>
  9165. <doc>
  9166. <![CDATA[{@inheritDoc}]]>
  9167. </doc>
  9168. </method>
  9169. <method name="addGlobalFilter"
  9170. abstract="false" native="false" synchronized="false"
  9171. static="false" final="false" visibility="public"
  9172. deprecated="not deprecated">
  9173. <param name="name" type="java.lang.String"/>
  9174. <param name="classname" type="java.lang.String"/>
  9175. <param name="parameters" type="java.util.Map"/>
  9176. <doc>
  9177. <![CDATA[{@inheritDoc}]]>
  9178. </doc>
  9179. </method>
  9180. <method name="defineFilter"
  9181. abstract="false" native="false" synchronized="false"
  9182. static="false" final="false" visibility="protected"
  9183. deprecated="not deprecated">
  9184. <param name="ctx" type="org.mortbay.jetty.servlet.Context"/>
  9185. <param name="name" type="java.lang.String"/>
  9186. <param name="classname" type="java.lang.String"/>
  9187. <param name="parameters" type="java.util.Map"/>
  9188. <param name="urls" type="java.lang.String[]"/>
  9189. <doc>
  9190. <![CDATA[Define a filter for a context and set up default url mappings.]]>
  9191. </doc>
  9192. </method>
  9193. <method name="addFilterPathMapping"
  9194. abstract="false" native="false" synchronized="false"
  9195. static="false" final="false" visibility="protected"
  9196. deprecated="not deprecated">
  9197. <param name="pathSpec" type="java.lang.String"/>
  9198. <param name="webAppCtx" type="org.mortbay.jetty.servlet.Context"/>
  9199. <doc>
  9200. <![CDATA[Add the path spec to the filter path mapping.
  9201. @param pathSpec The path spec
  9202. @param webAppCtx The WebApplicationContext to add to]]>
  9203. </doc>
  9204. </method>
  9205. <method name="getAttribute" return="java.lang.Object"
  9206. abstract="false" native="false" synchronized="false"
  9207. static="false" final="false" visibility="public"
  9208. deprecated="not deprecated">
  9209. <param name="name" type="java.lang.String"/>
  9210. <doc>
  9211. <![CDATA[Get the value in the webapp context.
  9212. @param name The name of the attribute
  9213. @return The value of the attribute]]>
  9214. </doc>
  9215. </method>
  9216. <method name="getWebAppsPath" return="java.lang.String"
  9217. abstract="false" native="false" synchronized="false"
  9218. static="false" final="false" visibility="protected"
  9219. deprecated="not deprecated">
  9220. <exception name="IOException" type="java.io.IOException"/>
  9221. <doc>
  9222. <![CDATA[Get the pathname to the webapps files.
  9223. @return the pathname as a URL
  9224. @throws IOException if 'webapps' directory cannot be found on CLASSPATH.]]>
  9225. </doc>
  9226. </method>
  9227. <method name="getPort" return="int"
  9228. abstract="false" native="false" synchronized="false"
  9229. static="false" final="false" visibility="public"
  9230. deprecated="not deprecated">
  9231. <doc>
  9232. <![CDATA[Get the port that the server is on
  9233. @return the port]]>
  9234. </doc>
  9235. </method>
  9236. <method name="setThreads"
  9237. abstract="false" native="false" synchronized="false"
  9238. static="false" final="false" visibility="public"
  9239. deprecated="not deprecated">
  9240. <param name="min" type="int"/>
  9241. <param name="max" type="int"/>
  9242. <doc>
  9243. <![CDATA[Set the min, max number of worker threads (simultaneous connections).]]>
  9244. </doc>
  9245. </method>
  9246. <method name="addSslListener"
  9247. abstract="false" native="false" synchronized="false"
  9248. static="false" final="false" visibility="public"
  9249. deprecated="Use {@link #addSslListener(InetSocketAddress, Configuration, boolean)}">
  9250. <param name="addr" type="java.net.InetSocketAddress"/>
  9251. <param name="keystore" type="java.lang.String"/>
  9252. <param name="storPass" type="java.lang.String"/>
  9253. <param name="keyPass" type="java.lang.String"/>
  9254. <exception name="IOException" type="java.io.IOException"/>
  9255. <doc>
  9256. <![CDATA[Configure an ssl listener on the server.
  9257. @param addr address to listen on
  9258. @param keystore location of the keystore
  9259. @param storPass password for the keystore
  9260. @param keyPass password for the key
  9261. @deprecated Use {@link #addSslListener(InetSocketAddress, Configuration, boolean)}]]>
  9262. </doc>
  9263. </method>
  9264. <method name="addSslListener"
  9265. abstract="false" native="false" synchronized="false"
  9266. static="false" final="false" visibility="public"
  9267. deprecated="not deprecated">
  9268. <param name="addr" type="java.net.InetSocketAddress"/>
  9269. <param name="sslConf" type="org.apache.hadoop.conf.Configuration"/>
  9270. <param name="needClientAuth" type="boolean"/>
  9271. <exception name="IOException" type="java.io.IOException"/>
  9272. <doc>
  9273. <![CDATA[Configure an ssl listener on the server.
  9274. @param addr address to listen on
  9275. @param sslConf conf to retrieve ssl options
  9276. @param needClientAuth whether client authentication is required]]>
  9277. </doc>
  9278. </method>
  9279. <method name="addSslListener"
  9280. abstract="false" native="false" synchronized="false"
  9281. static="false" final="false" visibility="public"
  9282. deprecated="not deprecated">
  9283. <param name="addr" type="java.net.InetSocketAddress"/>
  9284. <param name="sslConf" type="org.apache.hadoop.conf.Configuration"/>
  9285. <param name="needCertsAuth" type="boolean"/>
  9286. <param name="needKrbAuth" type="boolean"/>
  9287. <exception name="IOException" type="java.io.IOException"/>
  9288. <doc>
  9289. <![CDATA[Configure an ssl listener on the server.
  9290. @param addr address to listen on
  9291. @param sslConf conf to retrieve ssl options
  9292. @param needCertsAuth whether x509 certificate authentication is required
  9293. @param needKrbAuth whether to allow kerberos auth]]>
  9294. </doc>
  9295. </method>
  9296. <method name="start"
  9297. abstract="false" native="false" synchronized="false"
  9298. static="false" final="false" visibility="public"
  9299. deprecated="not deprecated">
  9300. <exception name="IOException" type="java.io.IOException"/>
  9301. <doc>
  9302. <![CDATA[Start the server. Does not wait for the server to start.]]>
  9303. </doc>
  9304. </method>
  9305. <method name="stop"
  9306. abstract="false" native="false" synchronized="false"
  9307. static="false" final="false" visibility="public"
  9308. deprecated="not deprecated">
  9309. <exception name="Exception" type="java.lang.Exception"/>
  9310. <doc>
  9311. <![CDATA[stop the server]]>
  9312. </doc>
  9313. </method>
  9314. <method name="join"
  9315. abstract="false" native="false" synchronized="false"
  9316. static="false" final="false" visibility="public"
  9317. deprecated="not deprecated">
  9318. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  9319. </method>
  9320. <method name="isInstrumentationAccessAllowed" return="boolean"
  9321. abstract="false" native="false" synchronized="false"
  9322. static="true" final="false" visibility="public"
  9323. deprecated="not deprecated">
  9324. <param name="servletContext" type="javax.servlet.ServletContext"/>
  9325. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  9326. <param name="response" type="javax.servlet.http.HttpServletResponse"/>
  9327. <exception name="IOException" type="java.io.IOException"/>
  9328. <doc>
  9329. <![CDATA[Checks the user has privileges to access to instrumentation servlets.
  9330. <p/>
  9331. If <code>hadoop.security.instrumentation.requires.admin</code> is set to
  9332. FALSE (default value) it returns always returns TRUE.
  9333. <p/>
  9334. If <code>hadoop.security.instrumentation.requires.admin</code> is set to
  9335. TRUE it will check that if the current user is in the admin ACLS. If the
  9336. user is in the admin ACLs it returns TRUE, otherwise it returns FALSE.
  9337. @param servletContext the servlet context.
  9338. @param request the servlet request.
  9339. @param response the servlet response.
  9340. @return TRUE/FALSE based on the logic decribed above.]]>
  9341. </doc>
  9342. </method>
  9343. <method name="hasAdministratorAccess" return="boolean"
  9344. abstract="false" native="false" synchronized="false"
  9345. static="true" final="false" visibility="public"
  9346. deprecated="not deprecated">
  9347. <param name="servletContext" type="javax.servlet.ServletContext"/>
  9348. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  9349. <param name="response" type="javax.servlet.http.HttpServletResponse"/>
  9350. <exception name="IOException" type="java.io.IOException"/>
  9351. <doc>
  9352. <![CDATA[Does the user sending the HttpServletRequest has the administrator ACLs? If
  9353. it isn't the case, response will be modified to send an error to the user.
  9354. @param servletContext
  9355. @param request
  9356. @param response
  9357. @return true if admin-authorized, false otherwise
  9358. @throws IOException]]>
  9359. </doc>
  9360. </method>
  9361. <field name="LOG" type="org.apache.commons.logging.Log"
  9362. transient="false" volatile="false"
  9363. static="true" final="true" visibility="public"
  9364. deprecated="not deprecated">
  9365. </field>
  9366. <field name="CONF_CONTEXT_ATTRIBUTE" type="java.lang.String"
  9367. transient="false" volatile="false"
  9368. static="true" final="true" visibility="public"
  9369. deprecated="not deprecated">
  9370. </field>
  9371. <field name="SPNEGO_FILTER" type="java.lang.String"
  9372. transient="false" volatile="false"
  9373. static="true" final="true" visibility="public"
  9374. deprecated="not deprecated">
  9375. </field>
  9376. <field name="KRB5_FILTER" type="java.lang.String"
  9377. transient="false" volatile="false"
  9378. static="true" final="true" visibility="public"
  9379. deprecated="not deprecated">
  9380. </field>
  9381. <field name="webServer" type="org.mortbay.jetty.Server"
  9382. transient="false" volatile="false"
  9383. static="false" final="true" visibility="protected"
  9384. deprecated="not deprecated">
  9385. </field>
  9386. <field name="listener" type="org.mortbay.jetty.Connector"
  9387. transient="false" volatile="false"
  9388. static="false" final="true" visibility="protected"
  9389. deprecated="not deprecated">
  9390. </field>
  9391. <field name="webAppContext" type="org.mortbay.jetty.webapp.WebAppContext"
  9392. transient="false" volatile="false"
  9393. static="false" final="true" visibility="protected"
  9394. deprecated="not deprecated">
  9395. </field>
  9396. <field name="findPort" type="boolean"
  9397. transient="false" volatile="false"
  9398. static="false" final="true" visibility="protected"
  9399. deprecated="not deprecated">
  9400. </field>
  9401. <field name="defaultContexts" type="java.util.Map"
  9402. transient="false" volatile="false"
  9403. static="false" final="true" visibility="protected"
  9404. deprecated="not deprecated">
  9405. </field>
  9406. <field name="filterNames" type="java.util.List"
  9407. transient="false" volatile="false"
  9408. static="false" final="true" visibility="protected"
  9409. deprecated="not deprecated">
  9410. </field>
  9411. <doc>
  9412. <![CDATA[Create a Jetty embedded server to answer http requests. The primary goal
  9413. is to serve up status information for the server.
  9414. There are three contexts:
  9415. "/logs/" -> points to the log directory
  9416. "/static/" -> points to common static files (src/webapps/static)
  9417. "/" -> the jsp server code from (src/webapps/<name>)]]>
  9418. </doc>
  9419. </class>
  9420. <!-- end class org.apache.hadoop.http.HttpServer -->
  9421. <!-- start class org.apache.hadoop.http.HttpServer.QuotingInputFilter -->
  9422. <class name="HttpServer.QuotingInputFilter" extends="java.lang.Object"
  9423. abstract="false"
  9424. static="true" final="false" visibility="public"
  9425. deprecated="not deprecated">
  9426. <implements name="javax.servlet.Filter"/>
  9427. <constructor name="HttpServer.QuotingInputFilter"
  9428. static="false" final="false" visibility="public"
  9429. deprecated="not deprecated">
  9430. </constructor>
  9431. <method name="init"
  9432. abstract="false" native="false" synchronized="false"
  9433. static="false" final="false" visibility="public"
  9434. deprecated="not deprecated">
  9435. <param name="config" type="javax.servlet.FilterConfig"/>
  9436. <exception name="ServletException" type="javax.servlet.ServletException"/>
  9437. </method>
  9438. <method name="destroy"
  9439. abstract="false" native="false" synchronized="false"
  9440. static="false" final="false" visibility="public"
  9441. deprecated="not deprecated">
  9442. </method>
  9443. <method name="doFilter"
  9444. abstract="false" native="false" synchronized="false"
  9445. static="false" final="false" visibility="public"
  9446. deprecated="not deprecated">
  9447. <param name="request" type="javax.servlet.ServletRequest"/>
  9448. <param name="response" type="javax.servlet.ServletResponse"/>
  9449. <param name="chain" type="javax.servlet.FilterChain"/>
  9450. <exception name="IOException" type="java.io.IOException"/>
  9451. <exception name="ServletException" type="javax.servlet.ServletException"/>
  9452. </method>
  9453. <doc>
  9454. <![CDATA[A Servlet input filter that quotes all HTML active characters in the
  9455. parameter names and values. The goal is to quote the characters to make
  9456. all of the servlets resistant to cross-site scripting attacks.]]>
  9457. </doc>
  9458. </class>
  9459. <!-- end class org.apache.hadoop.http.HttpServer.QuotingInputFilter -->
  9460. <!-- start class org.apache.hadoop.http.HttpServer.QuotingInputFilter.RequestQuoter -->
  9461. <class name="HttpServer.QuotingInputFilter.RequestQuoter" extends="javax.servlet.http.HttpServletRequestWrapper"
  9462. abstract="false"
  9463. static="true" final="false" visibility="public"
  9464. deprecated="not deprecated">
  9465. <constructor name="HttpServer.QuotingInputFilter.RequestQuoter" type="javax.servlet.http.HttpServletRequest"
  9466. static="false" final="false" visibility="public"
  9467. deprecated="not deprecated">
  9468. </constructor>
  9469. <method name="getParameterNames" return="java.util.Enumeration"
  9470. abstract="false" native="false" synchronized="false"
  9471. static="false" final="false" visibility="public"
  9472. deprecated="not deprecated">
  9473. <doc>
  9474. <![CDATA[Return the set of parameter names, quoting each name.]]>
  9475. </doc>
  9476. </method>
  9477. <method name="getParameter" return="java.lang.String"
  9478. abstract="false" native="false" synchronized="false"
  9479. static="false" final="false" visibility="public"
  9480. deprecated="not deprecated">
  9481. <param name="name" type="java.lang.String"/>
  9482. <doc>
  9483. <![CDATA[Unquote the name and quote the value.]]>
  9484. </doc>
  9485. </method>
  9486. <method name="getParameterValues" return="java.lang.String[]"
  9487. abstract="false" native="false" synchronized="false"
  9488. static="false" final="false" visibility="public"
  9489. deprecated="not deprecated">
  9490. <param name="name" type="java.lang.String"/>
  9491. </method>
  9492. <method name="getParameterMap" return="java.util.Map"
  9493. abstract="false" native="false" synchronized="false"
  9494. static="false" final="false" visibility="public"
  9495. deprecated="not deprecated">
  9496. </method>
  9497. <method name="getRequestURL" return="java.lang.StringBuffer"
  9498. abstract="false" native="false" synchronized="false"
  9499. static="false" final="false" visibility="public"
  9500. deprecated="not deprecated">
  9501. <doc>
  9502. <![CDATA[Quote the url so that users specifying the HOST HTTP header
  9503. can't inject attacks.]]>
  9504. </doc>
  9505. </method>
  9506. <method name="getServerName" return="java.lang.String"
  9507. abstract="false" native="false" synchronized="false"
  9508. static="false" final="false" visibility="public"
  9509. deprecated="not deprecated">
  9510. <doc>
  9511. <![CDATA[Quote the server name so that users specifying the HOST HTTP header
  9512. can't inject attacks.]]>
  9513. </doc>
  9514. </method>
  9515. </class>
  9516. <!-- end class org.apache.hadoop.http.HttpServer.QuotingInputFilter.RequestQuoter -->
  9517. <!-- start class org.apache.hadoop.http.HttpServer.StackServlet -->
  9518. <class name="HttpServer.StackServlet" extends="javax.servlet.http.HttpServlet"
  9519. abstract="false"
  9520. static="true" final="false" visibility="public"
  9521. deprecated="not deprecated">
  9522. <constructor name="HttpServer.StackServlet"
  9523. static="false" final="false" visibility="public"
  9524. deprecated="not deprecated">
  9525. </constructor>
  9526. <method name="doGet"
  9527. abstract="false" native="false" synchronized="false"
  9528. static="false" final="false" visibility="public"
  9529. deprecated="not deprecated">
  9530. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  9531. <param name="response" type="javax.servlet.http.HttpServletResponse"/>
  9532. <exception name="ServletException" type="javax.servlet.ServletException"/>
  9533. <exception name="IOException" type="java.io.IOException"/>
  9534. </method>
  9535. <doc>
  9536. <![CDATA[A very simple servlet to serve up a text representation of the current
  9537. stack traces. It both returns the stacks to the caller and logs them.
  9538. Currently the stack traces are done sequentially rather than exactly the
  9539. same data.]]>
  9540. </doc>
  9541. </class>
  9542. <!-- end class org.apache.hadoop.http.HttpServer.StackServlet -->
  9543. </package>
  9544. <package name="org.apache.hadoop.http.lib">
  9545. <!-- start class org.apache.hadoop.http.lib.StaticUserWebFilter -->
  9546. <class name="StaticUserWebFilter" extends="org.apache.hadoop.http.FilterInitializer"
  9547. abstract="false"
  9548. static="false" final="false" visibility="public"
  9549. deprecated="not deprecated">
  9550. <constructor name="StaticUserWebFilter"
  9551. static="false" final="false" visibility="public"
  9552. deprecated="not deprecated">
  9553. </constructor>
  9554. <method name="initFilter"
  9555. abstract="false" native="false" synchronized="false"
  9556. static="false" final="false" visibility="public"
  9557. deprecated="not deprecated">
  9558. <param name="container" type="org.apache.hadoop.http.FilterContainer"/>
  9559. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  9560. </method>
  9561. <doc>
  9562. <![CDATA[Provides a servlet filter that pretends to authenticate a fake user (Dr.Who)
  9563. so that the web UI is usable for a secure cluster without authentication.]]>
  9564. </doc>
  9565. </class>
  9566. <!-- end class org.apache.hadoop.http.lib.StaticUserWebFilter -->
  9567. <!-- start class org.apache.hadoop.http.lib.StaticUserWebFilter.StaticUserFilter -->
  9568. <class name="StaticUserWebFilter.StaticUserFilter" extends="java.lang.Object"
  9569. abstract="false"
  9570. static="true" final="false" visibility="public"
  9571. deprecated="not deprecated">
  9572. <implements name="javax.servlet.Filter"/>
  9573. <constructor name="StaticUserWebFilter.StaticUserFilter"
  9574. static="false" final="false" visibility="public"
  9575. deprecated="not deprecated">
  9576. </constructor>
  9577. <method name="destroy"
  9578. abstract="false" native="false" synchronized="false"
  9579. static="false" final="false" visibility="public"
  9580. deprecated="not deprecated">
  9581. </method>
  9582. <method name="doFilter"
  9583. abstract="false" native="false" synchronized="false"
  9584. static="false" final="false" visibility="public"
  9585. deprecated="not deprecated">
  9586. <param name="request" type="javax.servlet.ServletRequest"/>
  9587. <param name="response" type="javax.servlet.ServletResponse"/>
  9588. <param name="chain" type="javax.servlet.FilterChain"/>
  9589. <exception name="IOException" type="java.io.IOException"/>
  9590. <exception name="ServletException" type="javax.servlet.ServletException"/>
  9591. </method>
  9592. <method name="init"
  9593. abstract="false" native="false" synchronized="false"
  9594. static="false" final="false" visibility="public"
  9595. deprecated="not deprecated">
  9596. <param name="conf" type="javax.servlet.FilterConfig"/>
  9597. <exception name="ServletException" type="javax.servlet.ServletException"/>
  9598. </method>
  9599. </class>
  9600. <!-- end class org.apache.hadoop.http.lib.StaticUserWebFilter.StaticUserFilter -->
  9601. </package>
  9602. <package name="org.apache.hadoop.io">
  9603. <!-- start class org.apache.hadoop.io.AbstractMapWritable -->
  9604. <class name="AbstractMapWritable" extends="java.lang.Object"
  9605. abstract="true"
  9606. static="false" final="false" visibility="public"
  9607. deprecated="not deprecated">
  9608. <implements name="org.apache.hadoop.io.Writable"/>
  9609. <implements name="org.apache.hadoop.conf.Configurable"/>
  9610. <constructor name="AbstractMapWritable"
  9611. static="false" final="false" visibility="protected"
  9612. deprecated="not deprecated">
  9613. <doc>
  9614. <![CDATA[constructor.]]>
  9615. </doc>
  9616. </constructor>
  9617. <method name="addToMap"
  9618. abstract="false" native="false" synchronized="true"
  9619. static="false" final="false" visibility="protected"
  9620. deprecated="not deprecated">
  9621. <param name="clazz" type="java.lang.Class"/>
  9622. <doc>
  9623. <![CDATA[Add a Class to the maps if it is not already present.]]>
  9624. </doc>
  9625. </method>
  9626. <method name="getClass" return="java.lang.Class"
  9627. abstract="false" native="false" synchronized="false"
  9628. static="false" final="false" visibility="protected"
  9629. deprecated="not deprecated">
  9630. <param name="id" type="byte"/>
  9631. <doc>
  9632. <![CDATA[@return the Class class for the specified id]]>
  9633. </doc>
  9634. </method>
  9635. <method name="getId" return="byte"
  9636. abstract="false" native="false" synchronized="false"
  9637. static="false" final="false" visibility="protected"
  9638. deprecated="not deprecated">
  9639. <param name="clazz" type="java.lang.Class"/>
  9640. <doc>
  9641. <![CDATA[@return the id for the specified Class]]>
  9642. </doc>
  9643. </method>
  9644. <method name="copy"
  9645. abstract="false" native="false" synchronized="true"
  9646. static="false" final="false" visibility="protected"
  9647. deprecated="not deprecated">
  9648. <param name="other" type="org.apache.hadoop.io.Writable"/>
  9649. <doc>
  9650. <![CDATA[Used by child copy constructors.]]>
  9651. </doc>
  9652. </method>
  9653. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  9654. abstract="false" native="false" synchronized="false"
  9655. static="false" final="false" visibility="public"
  9656. deprecated="not deprecated">
  9657. <doc>
  9658. <![CDATA[@return the conf]]>
  9659. </doc>
  9660. </method>
  9661. <method name="setConf"
  9662. abstract="false" native="false" synchronized="false"
  9663. static="false" final="false" visibility="public"
  9664. deprecated="not deprecated">
  9665. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  9666. <doc>
  9667. <![CDATA[@param conf the conf to set]]>
  9668. </doc>
  9669. </method>
  9670. <method name="write"
  9671. abstract="false" native="false" synchronized="false"
  9672. static="false" final="false" visibility="public"
  9673. deprecated="not deprecated">
  9674. <param name="out" type="java.io.DataOutput"/>
  9675. <exception name="IOException" type="java.io.IOException"/>
  9676. <doc>
  9677. <![CDATA[{@inheritDoc}]]>
  9678. </doc>
  9679. </method>
  9680. <method name="readFields"
  9681. abstract="false" native="false" synchronized="false"
  9682. static="false" final="false" visibility="public"
  9683. deprecated="not deprecated">
  9684. <param name="in" type="java.io.DataInput"/>
  9685. <exception name="IOException" type="java.io.IOException"/>
  9686. <doc>
  9687. <![CDATA[{@inheritDoc}]]>
  9688. </doc>
  9689. </method>
  9690. <doc>
  9691. <![CDATA[Abstract base class for MapWritable and SortedMapWritable
  9692. Unlike org.apache.nutch.crawl.MapWritable, this class allows creation of
  9693. MapWritable&lt;Writable, MapWritable&gt; so the CLASS_TO_ID and ID_TO_CLASS
  9694. maps travel with the class instead of being static.
  9695. Class ids range from 1 to 127 so there can be at most 127 distinct classes
  9696. in any specific map instance.]]>
  9697. </doc>
  9698. </class>
  9699. <!-- end class org.apache.hadoop.io.AbstractMapWritable -->
  9700. <!-- start class org.apache.hadoop.io.ArrayFile -->
  9701. <class name="ArrayFile" extends="org.apache.hadoop.io.MapFile"
  9702. abstract="false"
  9703. static="false" final="false" visibility="public"
  9704. deprecated="not deprecated">
  9705. <constructor name="ArrayFile"
  9706. static="false" final="false" visibility="protected"
  9707. deprecated="not deprecated">
  9708. </constructor>
  9709. <doc>
  9710. <![CDATA[A dense file-based mapping from integers to values.]]>
  9711. </doc>
  9712. </class>
  9713. <!-- end class org.apache.hadoop.io.ArrayFile -->
  9714. <!-- start class org.apache.hadoop.io.ArrayFile.Reader -->
  9715. <class name="ArrayFile.Reader" extends="org.apache.hadoop.io.MapFile.Reader"
  9716. abstract="false"
  9717. static="true" final="false" visibility="public"
  9718. deprecated="not deprecated">
  9719. <constructor name="ArrayFile.Reader" type="org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.conf.Configuration"
  9720. static="false" final="false" visibility="public"
  9721. deprecated="not deprecated">
  9722. <exception name="IOException" type="java.io.IOException"/>
  9723. <doc>
  9724. <![CDATA[Construct an array reader for the named file.]]>
  9725. </doc>
  9726. </constructor>
  9727. <method name="seek"
  9728. abstract="false" native="false" synchronized="true"
  9729. static="false" final="false" visibility="public"
  9730. deprecated="not deprecated">
  9731. <param name="n" type="long"/>
  9732. <exception name="IOException" type="java.io.IOException"/>
  9733. <doc>
  9734. <![CDATA[Positions the reader before its <code>n</code>th value.]]>
  9735. </doc>
  9736. </method>
  9737. <method name="next" return="org.apache.hadoop.io.Writable"
  9738. abstract="false" native="false" synchronized="true"
  9739. static="false" final="false" visibility="public"
  9740. deprecated="not deprecated">
  9741. <param name="value" type="org.apache.hadoop.io.Writable"/>
  9742. <exception name="IOException" type="java.io.IOException"/>
  9743. <doc>
  9744. <![CDATA[Read and return the next value in the file.]]>
  9745. </doc>
  9746. </method>
  9747. <method name="key" return="long"
  9748. abstract="false" native="false" synchronized="true"
  9749. static="false" final="false" visibility="public"
  9750. deprecated="not deprecated">
  9751. <exception name="IOException" type="java.io.IOException"/>
  9752. <doc>
  9753. <![CDATA[Returns the key associated with the most recent call to {@link
  9754. #seek(long)}, {@link #next(Writable)}, or {@link
  9755. #get(long,Writable)}.]]>
  9756. </doc>
  9757. </method>
  9758. <method name="get" return="org.apache.hadoop.io.Writable"
  9759. abstract="false" native="false" synchronized="true"
  9760. static="false" final="false" visibility="public"
  9761. deprecated="not deprecated">
  9762. <param name="n" type="long"/>
  9763. <param name="value" type="org.apache.hadoop.io.Writable"/>
  9764. <exception name="IOException" type="java.io.IOException"/>
  9765. <doc>
  9766. <![CDATA[Return the <code>n</code>th value in the file.]]>
  9767. </doc>
  9768. </method>
  9769. <doc>
  9770. <![CDATA[Provide access to an existing array file.]]>
  9771. </doc>
  9772. </class>
  9773. <!-- end class org.apache.hadoop.io.ArrayFile.Reader -->
  9774. <!-- start class org.apache.hadoop.io.ArrayFile.Writer -->
  9775. <class name="ArrayFile.Writer" extends="org.apache.hadoop.io.MapFile.Writer"
  9776. abstract="false"
  9777. static="true" final="false" visibility="public"
  9778. deprecated="not deprecated">
  9779. <constructor name="ArrayFile.Writer" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.FileSystem, java.lang.String, java.lang.Class"
  9780. static="false" final="false" visibility="public"
  9781. deprecated="not deprecated">
  9782. <exception name="IOException" type="java.io.IOException"/>
  9783. <doc>
  9784. <![CDATA[Create the named file for values of the named class.]]>
  9785. </doc>
  9786. </constructor>
  9787. <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"
  9788. static="false" final="false" visibility="public"
  9789. deprecated="not deprecated">
  9790. <exception name="IOException" type="java.io.IOException"/>
  9791. <doc>
  9792. <![CDATA[Create the named file for values of the named class.]]>
  9793. </doc>
  9794. </constructor>
  9795. <method name="append"
  9796. abstract="false" native="false" synchronized="true"
  9797. static="false" final="false" visibility="public"
  9798. deprecated="not deprecated">
  9799. <param name="value" type="org.apache.hadoop.io.Writable"/>
  9800. <exception name="IOException" type="java.io.IOException"/>
  9801. <doc>
  9802. <![CDATA[Append a value to the file.]]>
  9803. </doc>
  9804. </method>
  9805. <doc>
  9806. <![CDATA[Write a new array file.]]>
  9807. </doc>
  9808. </class>
  9809. <!-- end class org.apache.hadoop.io.ArrayFile.Writer -->
  9810. <!-- start class org.apache.hadoop.io.ArrayWritable -->
  9811. <class name="ArrayWritable" extends="java.lang.Object"
  9812. abstract="false"
  9813. static="false" final="false" visibility="public"
  9814. deprecated="not deprecated">
  9815. <implements name="org.apache.hadoop.io.Writable"/>
  9816. <constructor name="ArrayWritable" type="java.lang.Class"
  9817. static="false" final="false" visibility="public"
  9818. deprecated="not deprecated">
  9819. </constructor>
  9820. <constructor name="ArrayWritable" type="java.lang.Class, org.apache.hadoop.io.Writable[]"
  9821. static="false" final="false" visibility="public"
  9822. deprecated="not deprecated">
  9823. </constructor>
  9824. <constructor name="ArrayWritable" type="java.lang.String[]"
  9825. static="false" final="false" visibility="public"
  9826. deprecated="not deprecated">
  9827. </constructor>
  9828. <method name="getValueClass" return="java.lang.Class"
  9829. abstract="false" native="false" synchronized="false"
  9830. static="false" final="false" visibility="public"
  9831. deprecated="not deprecated">
  9832. </method>
  9833. <method name="toStrings" return="java.lang.String[]"
  9834. abstract="false" native="false" synchronized="false"
  9835. static="false" final="false" visibility="public"
  9836. deprecated="not deprecated">
  9837. </method>
  9838. <method name="toArray" return="java.lang.Object"
  9839. abstract="false" native="false" synchronized="false"
  9840. static="false" final="false" visibility="public"
  9841. deprecated="not deprecated">
  9842. </method>
  9843. <method name="set"
  9844. abstract="false" native="false" synchronized="false"
  9845. static="false" final="false" visibility="public"
  9846. deprecated="not deprecated">
  9847. <param name="values" type="org.apache.hadoop.io.Writable[]"/>
  9848. </method>
  9849. <method name="get" return="org.apache.hadoop.io.Writable[]"
  9850. abstract="false" native="false" synchronized="false"
  9851. static="false" final="false" visibility="public"
  9852. deprecated="not deprecated">
  9853. </method>
  9854. <method name="readFields"
  9855. abstract="false" native="false" synchronized="false"
  9856. static="false" final="false" visibility="public"
  9857. deprecated="not deprecated">
  9858. <param name="in" type="java.io.DataInput"/>
  9859. <exception name="IOException" type="java.io.IOException"/>
  9860. </method>
  9861. <method name="write"
  9862. abstract="false" native="false" synchronized="false"
  9863. static="false" final="false" visibility="public"
  9864. deprecated="not deprecated">
  9865. <param name="out" type="java.io.DataOutput"/>
  9866. <exception name="IOException" type="java.io.IOException"/>
  9867. </method>
  9868. <doc>
  9869. <![CDATA[A Writable for arrays containing instances of a class. The elements of this
  9870. writable must all be instances of the same class. If this writable will be
  9871. the input for a Reducer, you will need to create a subclass that sets the
  9872. value to be of the proper type.
  9873. For example:
  9874. <code>
  9875. public class IntArrayWritable extends ArrayWritable {
  9876. public IntArrayWritable() {
  9877. super(IntWritable.class);
  9878. }
  9879. }
  9880. </code>]]>
  9881. </doc>
  9882. </class>
  9883. <!-- end class org.apache.hadoop.io.ArrayWritable -->
  9884. <!-- start class org.apache.hadoop.io.BinaryComparable -->
  9885. <class name="BinaryComparable" extends="java.lang.Object"
  9886. abstract="true"
  9887. static="false" final="false" visibility="public"
  9888. deprecated="not deprecated">
  9889. <implements name="java.lang.Comparable"/>
  9890. <constructor name="BinaryComparable"
  9891. static="false" final="false" visibility="public"
  9892. deprecated="not deprecated">
  9893. </constructor>
  9894. <method name="getLength" return="int"
  9895. abstract="true" native="false" synchronized="false"
  9896. static="false" final="false" visibility="public"
  9897. deprecated="not deprecated">
  9898. <doc>
  9899. <![CDATA[Return n st bytes 0..n-1 from {#getBytes()} are valid.]]>
  9900. </doc>
  9901. </method>
  9902. <method name="getBytes" return="byte[]"
  9903. abstract="true" native="false" synchronized="false"
  9904. static="false" final="false" visibility="public"
  9905. deprecated="not deprecated">
  9906. <doc>
  9907. <![CDATA[Return representative byte array for this instance.]]>
  9908. </doc>
  9909. </method>
  9910. <method name="compareTo" return="int"
  9911. abstract="false" native="false" synchronized="false"
  9912. static="false" final="false" visibility="public"
  9913. deprecated="not deprecated">
  9914. <param name="other" type="org.apache.hadoop.io.BinaryComparable"/>
  9915. <doc>
  9916. <![CDATA[Compare bytes from {#getBytes()}.
  9917. @see org.apache.hadoop.io.WritableComparator#compareBytes(byte[],int,int,byte[],int,int)]]>
  9918. </doc>
  9919. </method>
  9920. <method name="compareTo" return="int"
  9921. abstract="false" native="false" synchronized="false"
  9922. static="false" final="false" visibility="public"
  9923. deprecated="not deprecated">
  9924. <param name="other" type="byte[]"/>
  9925. <param name="off" type="int"/>
  9926. <param name="len" type="int"/>
  9927. <doc>
  9928. <![CDATA[Compare bytes from {#getBytes()} to those provided.]]>
  9929. </doc>
  9930. </method>
  9931. <method name="equals" return="boolean"
  9932. abstract="false" native="false" synchronized="false"
  9933. static="false" final="false" visibility="public"
  9934. deprecated="not deprecated">
  9935. <param name="other" type="java.lang.Object"/>
  9936. <doc>
  9937. <![CDATA[Return true if bytes from {#getBytes()} match.]]>
  9938. </doc>
  9939. </method>
  9940. <method name="hashCode" return="int"
  9941. abstract="false" native="false" synchronized="false"
  9942. static="false" final="false" visibility="public"
  9943. deprecated="not deprecated">
  9944. <doc>
  9945. <![CDATA[Return a hash of the bytes returned from {#getBytes()}.
  9946. @see org.apache.hadoop.io.WritableComparator#hashBytes(byte[],int)]]>
  9947. </doc>
  9948. </method>
  9949. <doc>
  9950. <![CDATA[Interface supported by {@link org.apache.hadoop.io.WritableComparable}
  9951. types supporting ordering/permutation by a representative set of bytes.]]>
  9952. </doc>
  9953. </class>
  9954. <!-- end class org.apache.hadoop.io.BinaryComparable -->
  9955. <!-- start class org.apache.hadoop.io.BloomMapFile -->
  9956. <class name="BloomMapFile" extends="java.lang.Object"
  9957. abstract="false"
  9958. static="false" final="false" visibility="public"
  9959. deprecated="not deprecated">
  9960. <constructor name="BloomMapFile"
  9961. static="false" final="false" visibility="public"
  9962. deprecated="not deprecated">
  9963. </constructor>
  9964. <method name="delete"
  9965. abstract="false" native="false" synchronized="false"
  9966. static="true" final="false" visibility="public"
  9967. deprecated="not deprecated">
  9968. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  9969. <param name="name" type="java.lang.String"/>
  9970. <exception name="IOException" type="java.io.IOException"/>
  9971. </method>
  9972. <field name="BLOOM_FILE_NAME" type="java.lang.String"
  9973. transient="false" volatile="false"
  9974. static="true" final="true" visibility="public"
  9975. deprecated="not deprecated">
  9976. </field>
  9977. <field name="HASH_COUNT" type="int"
  9978. transient="false" volatile="false"
  9979. static="true" final="true" visibility="public"
  9980. deprecated="not deprecated">
  9981. </field>
  9982. <doc>
  9983. <![CDATA[This class extends {@link MapFile} and provides very much the same
  9984. functionality. However, it uses dynamic Bloom filters to provide
  9985. quick membership test for keys, and it offers a fast version of
  9986. {@link Reader#get(WritableComparable, Writable)} operation, especially in
  9987. case of sparsely populated MapFile-s.]]>
  9988. </doc>
  9989. </class>
  9990. <!-- end class org.apache.hadoop.io.BloomMapFile -->
  9991. <!-- start class org.apache.hadoop.io.BloomMapFile.Reader -->
  9992. <class name="BloomMapFile.Reader" extends="org.apache.hadoop.io.MapFile.Reader"
  9993. abstract="false"
  9994. static="true" final="false" visibility="public"
  9995. deprecated="not deprecated">
  9996. <constructor name="BloomMapFile.Reader" type="org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.conf.Configuration"
  9997. static="false" final="false" visibility="public"
  9998. deprecated="not deprecated">
  9999. <exception name="IOException" type="java.io.IOException"/>
  10000. </constructor>
  10001. <constructor name="BloomMapFile.Reader" type="org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.io.WritableComparator, org.apache.hadoop.conf.Configuration, boolean"
  10002. static="false" final="false" visibility="public"
  10003. deprecated="not deprecated">
  10004. <exception name="IOException" type="java.io.IOException"/>
  10005. </constructor>
  10006. <constructor name="BloomMapFile.Reader" type="org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.io.WritableComparator, org.apache.hadoop.conf.Configuration"
  10007. static="false" final="false" visibility="public"
  10008. deprecated="not deprecated">
  10009. <exception name="IOException" type="java.io.IOException"/>
  10010. </constructor>
  10011. <method name="probablyHasKey" return="boolean"
  10012. abstract="false" native="false" synchronized="false"
  10013. static="false" final="false" visibility="public"
  10014. deprecated="not deprecated">
  10015. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  10016. <exception name="IOException" type="java.io.IOException"/>
  10017. <doc>
  10018. <![CDATA[Checks if this MapFile has the indicated key. The membership test is
  10019. performed using a Bloom filter, so the result has always non-zero
  10020. probability of false positives.
  10021. @param key key to check
  10022. @return false iff key doesn't exist, true if key probably exists.
  10023. @throws IOException]]>
  10024. </doc>
  10025. </method>
  10026. <method name="get" return="org.apache.hadoop.io.Writable"
  10027. abstract="false" native="false" synchronized="true"
  10028. static="false" final="false" visibility="public"
  10029. deprecated="not deprecated">
  10030. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  10031. <param name="val" type="org.apache.hadoop.io.Writable"/>
  10032. <exception name="IOException" type="java.io.IOException"/>
  10033. <doc>
  10034. <![CDATA[Fast version of the
  10035. {@link MapFile.Reader#get(WritableComparable, Writable)} method. First
  10036. it checks the Bloom filter for the existence of the key, and only if
  10037. present it performs the real get operation. This yields significant
  10038. performance improvements for get operations on sparsely populated files.]]>
  10039. </doc>
  10040. </method>
  10041. <method name="getBloomFilter" return="org.apache.hadoop.util.bloom.Filter"
  10042. abstract="false" native="false" synchronized="false"
  10043. static="false" final="false" visibility="public"
  10044. deprecated="not deprecated">
  10045. <doc>
  10046. <![CDATA[Retrieve the Bloom filter used by this instance of the Reader.
  10047. @return a Bloom filter (see {@link Filter})]]>
  10048. </doc>
  10049. </method>
  10050. </class>
  10051. <!-- end class org.apache.hadoop.io.BloomMapFile.Reader -->
  10052. <!-- start class org.apache.hadoop.io.BloomMapFile.Writer -->
  10053. <class name="BloomMapFile.Writer" extends="org.apache.hadoop.io.MapFile.Writer"
  10054. abstract="false"
  10055. static="true" final="false" visibility="public"
  10056. deprecated="not deprecated">
  10057. <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"
  10058. static="false" final="false" visibility="public"
  10059. deprecated="not deprecated">
  10060. <exception name="IOException" type="java.io.IOException"/>
  10061. </constructor>
  10062. <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"
  10063. static="false" final="false" visibility="public"
  10064. deprecated="not deprecated">
  10065. <exception name="IOException" type="java.io.IOException"/>
  10066. </constructor>
  10067. <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"
  10068. static="false" final="false" visibility="public"
  10069. deprecated="not deprecated">
  10070. <exception name="IOException" type="java.io.IOException"/>
  10071. </constructor>
  10072. <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"
  10073. static="false" final="false" visibility="public"
  10074. deprecated="not deprecated">
  10075. <exception name="IOException" type="java.io.IOException"/>
  10076. </constructor>
  10077. <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"
  10078. static="false" final="false" visibility="public"
  10079. deprecated="not deprecated">
  10080. <exception name="IOException" type="java.io.IOException"/>
  10081. </constructor>
  10082. <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"
  10083. static="false" final="false" visibility="public"
  10084. deprecated="not deprecated">
  10085. <exception name="IOException" type="java.io.IOException"/>
  10086. </constructor>
  10087. <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"
  10088. static="false" final="false" visibility="public"
  10089. deprecated="not deprecated">
  10090. <exception name="IOException" type="java.io.IOException"/>
  10091. </constructor>
  10092. <constructor name="BloomMapFile.Writer" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.FileSystem, java.lang.String, java.lang.Class, java.lang.Class"
  10093. static="false" final="false" visibility="public"
  10094. deprecated="not deprecated">
  10095. <exception name="IOException" type="java.io.IOException"/>
  10096. </constructor>
  10097. <method name="append"
  10098. abstract="false" native="false" synchronized="true"
  10099. static="false" final="false" visibility="public"
  10100. deprecated="not deprecated">
  10101. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  10102. <param name="val" type="org.apache.hadoop.io.Writable"/>
  10103. <exception name="IOException" type="java.io.IOException"/>
  10104. </method>
  10105. <method name="close"
  10106. abstract="false" native="false" synchronized="true"
  10107. static="false" final="false" visibility="public"
  10108. deprecated="not deprecated">
  10109. <exception name="IOException" type="java.io.IOException"/>
  10110. </method>
  10111. </class>
  10112. <!-- end class org.apache.hadoop.io.BloomMapFile.Writer -->
  10113. <!-- start class org.apache.hadoop.io.BooleanWritable -->
  10114. <class name="BooleanWritable" extends="java.lang.Object"
  10115. abstract="false"
  10116. static="false" final="false" visibility="public"
  10117. deprecated="not deprecated">
  10118. <implements name="org.apache.hadoop.io.WritableComparable"/>
  10119. <constructor name="BooleanWritable"
  10120. static="false" final="false" visibility="public"
  10121. deprecated="not deprecated">
  10122. </constructor>
  10123. <constructor name="BooleanWritable" type="boolean"
  10124. static="false" final="false" visibility="public"
  10125. deprecated="not deprecated">
  10126. </constructor>
  10127. <method name="set"
  10128. abstract="false" native="false" synchronized="false"
  10129. static="false" final="false" visibility="public"
  10130. deprecated="not deprecated">
  10131. <param name="value" type="boolean"/>
  10132. <doc>
  10133. <![CDATA[Set the value of the BooleanWritable]]>
  10134. </doc>
  10135. </method>
  10136. <method name="get" return="boolean"
  10137. abstract="false" native="false" synchronized="false"
  10138. static="false" final="false" visibility="public"
  10139. deprecated="not deprecated">
  10140. <doc>
  10141. <![CDATA[Returns the value of the BooleanWritable]]>
  10142. </doc>
  10143. </method>
  10144. <method name="readFields"
  10145. abstract="false" native="false" synchronized="false"
  10146. static="false" final="false" visibility="public"
  10147. deprecated="not deprecated">
  10148. <param name="in" type="java.io.DataInput"/>
  10149. <exception name="IOException" type="java.io.IOException"/>
  10150. </method>
  10151. <method name="write"
  10152. abstract="false" native="false" synchronized="false"
  10153. static="false" final="false" visibility="public"
  10154. deprecated="not deprecated">
  10155. <param name="out" type="java.io.DataOutput"/>
  10156. <exception name="IOException" type="java.io.IOException"/>
  10157. </method>
  10158. <method name="equals" return="boolean"
  10159. abstract="false" native="false" synchronized="false"
  10160. static="false" final="false" visibility="public"
  10161. deprecated="not deprecated">
  10162. <param name="o" type="java.lang.Object"/>
  10163. </method>
  10164. <method name="hashCode" return="int"
  10165. abstract="false" native="false" synchronized="false"
  10166. static="false" final="false" visibility="public"
  10167. deprecated="not deprecated">
  10168. </method>
  10169. <method name="compareTo" return="int"
  10170. abstract="false" native="false" synchronized="false"
  10171. static="false" final="false" visibility="public"
  10172. deprecated="not deprecated">
  10173. <param name="o" type="java.lang.Object"/>
  10174. </method>
  10175. <method name="toString" return="java.lang.String"
  10176. abstract="false" native="false" synchronized="false"
  10177. static="false" final="false" visibility="public"
  10178. deprecated="not deprecated">
  10179. </method>
  10180. <doc>
  10181. <![CDATA[A WritableComparable for booleans.]]>
  10182. </doc>
  10183. </class>
  10184. <!-- end class org.apache.hadoop.io.BooleanWritable -->
  10185. <!-- start class org.apache.hadoop.io.BooleanWritable.Comparator -->
  10186. <class name="BooleanWritable.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  10187. abstract="false"
  10188. static="true" final="false" visibility="public"
  10189. deprecated="not deprecated">
  10190. <constructor name="BooleanWritable.Comparator"
  10191. static="false" final="false" visibility="public"
  10192. deprecated="not deprecated">
  10193. </constructor>
  10194. <method name="compare" return="int"
  10195. abstract="false" native="false" synchronized="false"
  10196. static="false" final="false" visibility="public"
  10197. deprecated="not deprecated">
  10198. <param name="b1" type="byte[]"/>
  10199. <param name="s1" type="int"/>
  10200. <param name="l1" type="int"/>
  10201. <param name="b2" type="byte[]"/>
  10202. <param name="s2" type="int"/>
  10203. <param name="l2" type="int"/>
  10204. </method>
  10205. <doc>
  10206. <![CDATA[A Comparator optimized for BooleanWritable.]]>
  10207. </doc>
  10208. </class>
  10209. <!-- end class org.apache.hadoop.io.BooleanWritable.Comparator -->
  10210. <!-- start class org.apache.hadoop.io.BytesWritable -->
  10211. <class name="BytesWritable" extends="org.apache.hadoop.io.BinaryComparable"
  10212. abstract="false"
  10213. static="false" final="false" visibility="public"
  10214. deprecated="not deprecated">
  10215. <implements name="org.apache.hadoop.io.WritableComparable"/>
  10216. <constructor name="BytesWritable"
  10217. static="false" final="false" visibility="public"
  10218. deprecated="not deprecated">
  10219. <doc>
  10220. <![CDATA[Create a zero-size sequence.]]>
  10221. </doc>
  10222. </constructor>
  10223. <constructor name="BytesWritable" type="byte[]"
  10224. static="false" final="false" visibility="public"
  10225. deprecated="not deprecated">
  10226. <doc>
  10227. <![CDATA[Create a BytesWritable using the byte array as the initial value.
  10228. @param bytes This array becomes the backing storage for the object.]]>
  10229. </doc>
  10230. </constructor>
  10231. <method name="getBytes" return="byte[]"
  10232. abstract="false" native="false" synchronized="false"
  10233. static="false" final="false" visibility="public"
  10234. deprecated="not deprecated">
  10235. <doc>
  10236. <![CDATA[Get the data from the BytesWritable.
  10237. @return The data is only valid between 0 and getLength() - 1.]]>
  10238. </doc>
  10239. </method>
  10240. <method name="get" return="byte[]"
  10241. abstract="false" native="false" synchronized="false"
  10242. static="false" final="false" visibility="public"
  10243. deprecated="Use {@link #getBytes()} instead.">
  10244. <doc>
  10245. <![CDATA[Get the data from the BytesWritable.
  10246. @deprecated Use {@link #getBytes()} instead.]]>
  10247. </doc>
  10248. </method>
  10249. <method name="getLength" return="int"
  10250. abstract="false" native="false" synchronized="false"
  10251. static="false" final="false" visibility="public"
  10252. deprecated="not deprecated">
  10253. <doc>
  10254. <![CDATA[Get the current size of the buffer.]]>
  10255. </doc>
  10256. </method>
  10257. <method name="getSize" return="int"
  10258. abstract="false" native="false" synchronized="false"
  10259. static="false" final="false" visibility="public"
  10260. deprecated="Use {@link #getLength()} instead.">
  10261. <doc>
  10262. <![CDATA[Get the current size of the buffer.
  10263. @deprecated Use {@link #getLength()} instead.]]>
  10264. </doc>
  10265. </method>
  10266. <method name="setSize"
  10267. abstract="false" native="false" synchronized="false"
  10268. static="false" final="false" visibility="public"
  10269. deprecated="not deprecated">
  10270. <param name="size" type="int"/>
  10271. <doc>
  10272. <![CDATA[Change the size of the buffer. The values in the old range are preserved
  10273. and any new values are undefined. The capacity is changed if it is
  10274. necessary.
  10275. @param size The new number of bytes]]>
  10276. </doc>
  10277. </method>
  10278. <method name="getCapacity" return="int"
  10279. abstract="false" native="false" synchronized="false"
  10280. static="false" final="false" visibility="public"
  10281. deprecated="not deprecated">
  10282. <doc>
  10283. <![CDATA[Get the capacity, which is the maximum size that could handled without
  10284. resizing the backing storage.
  10285. @return The number of bytes]]>
  10286. </doc>
  10287. </method>
  10288. <method name="setCapacity"
  10289. abstract="false" native="false" synchronized="false"
  10290. static="false" final="false" visibility="public"
  10291. deprecated="not deprecated">
  10292. <param name="new_cap" type="int"/>
  10293. <doc>
  10294. <![CDATA[Change the capacity of the backing storage.
  10295. The data is preserved.
  10296. @param new_cap The new capacity in bytes.]]>
  10297. </doc>
  10298. </method>
  10299. <method name="set"
  10300. abstract="false" native="false" synchronized="false"
  10301. static="false" final="false" visibility="public"
  10302. deprecated="not deprecated">
  10303. <param name="newData" type="org.apache.hadoop.io.BytesWritable"/>
  10304. <doc>
  10305. <![CDATA[Set the BytesWritable to the contents of the given newData.
  10306. @param newData the value to set this BytesWritable to.]]>
  10307. </doc>
  10308. </method>
  10309. <method name="set"
  10310. abstract="false" native="false" synchronized="false"
  10311. static="false" final="false" visibility="public"
  10312. deprecated="not deprecated">
  10313. <param name="newData" type="byte[]"/>
  10314. <param name="offset" type="int"/>
  10315. <param name="length" type="int"/>
  10316. <doc>
  10317. <![CDATA[Set the value to a copy of the given byte range
  10318. @param newData the new values to copy in
  10319. @param offset the offset in newData to start at
  10320. @param length the number of bytes to copy]]>
  10321. </doc>
  10322. </method>
  10323. <method name="readFields"
  10324. abstract="false" native="false" synchronized="false"
  10325. static="false" final="false" visibility="public"
  10326. deprecated="not deprecated">
  10327. <param name="in" type="java.io.DataInput"/>
  10328. <exception name="IOException" type="java.io.IOException"/>
  10329. </method>
  10330. <method name="write"
  10331. abstract="false" native="false" synchronized="false"
  10332. static="false" final="false" visibility="public"
  10333. deprecated="not deprecated">
  10334. <param name="out" type="java.io.DataOutput"/>
  10335. <exception name="IOException" type="java.io.IOException"/>
  10336. </method>
  10337. <method name="hashCode" return="int"
  10338. abstract="false" native="false" synchronized="false"
  10339. static="false" final="false" visibility="public"
  10340. deprecated="not deprecated">
  10341. </method>
  10342. <method name="equals" return="boolean"
  10343. abstract="false" native="false" synchronized="false"
  10344. static="false" final="false" visibility="public"
  10345. deprecated="not deprecated">
  10346. <param name="right_obj" type="java.lang.Object"/>
  10347. <doc>
  10348. <![CDATA[Are the two byte sequences equal?]]>
  10349. </doc>
  10350. </method>
  10351. <method name="toString" return="java.lang.String"
  10352. abstract="false" native="false" synchronized="false"
  10353. static="false" final="false" visibility="public"
  10354. deprecated="not deprecated">
  10355. <doc>
  10356. <![CDATA[Generate the stream of bytes as hex pairs separated by ' '.]]>
  10357. </doc>
  10358. </method>
  10359. <doc>
  10360. <![CDATA[A byte sequence that is usable as a key or value.
  10361. It is resizable and distinguishes between the size of the seqeunce and
  10362. the current capacity. The hash function is the front of the md5 of the
  10363. buffer. The sort order is the same as memcmp.]]>
  10364. </doc>
  10365. </class>
  10366. <!-- end class org.apache.hadoop.io.BytesWritable -->
  10367. <!-- start class org.apache.hadoop.io.BytesWritable.Comparator -->
  10368. <class name="BytesWritable.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  10369. abstract="false"
  10370. static="true" final="false" visibility="public"
  10371. deprecated="not deprecated">
  10372. <constructor name="BytesWritable.Comparator"
  10373. static="false" final="false" visibility="public"
  10374. deprecated="not deprecated">
  10375. </constructor>
  10376. <method name="compare" return="int"
  10377. abstract="false" native="false" synchronized="false"
  10378. static="false" final="false" visibility="public"
  10379. deprecated="not deprecated">
  10380. <param name="b1" type="byte[]"/>
  10381. <param name="s1" type="int"/>
  10382. <param name="l1" type="int"/>
  10383. <param name="b2" type="byte[]"/>
  10384. <param name="s2" type="int"/>
  10385. <param name="l2" type="int"/>
  10386. <doc>
  10387. <![CDATA[Compare the buffers in serialized form.]]>
  10388. </doc>
  10389. </method>
  10390. <doc>
  10391. <![CDATA[A Comparator optimized for BytesWritable.]]>
  10392. </doc>
  10393. </class>
  10394. <!-- end class org.apache.hadoop.io.BytesWritable.Comparator -->
  10395. <!-- start class org.apache.hadoop.io.ByteWritable -->
  10396. <class name="ByteWritable" extends="java.lang.Object"
  10397. abstract="false"
  10398. static="false" final="false" visibility="public"
  10399. deprecated="not deprecated">
  10400. <implements name="org.apache.hadoop.io.WritableComparable"/>
  10401. <constructor name="ByteWritable"
  10402. static="false" final="false" visibility="public"
  10403. deprecated="not deprecated">
  10404. </constructor>
  10405. <constructor name="ByteWritable" type="byte"
  10406. static="false" final="false" visibility="public"
  10407. deprecated="not deprecated">
  10408. </constructor>
  10409. <method name="set"
  10410. abstract="false" native="false" synchronized="false"
  10411. static="false" final="false" visibility="public"
  10412. deprecated="not deprecated">
  10413. <param name="value" type="byte"/>
  10414. <doc>
  10415. <![CDATA[Set the value of this ByteWritable.]]>
  10416. </doc>
  10417. </method>
  10418. <method name="get" return="byte"
  10419. abstract="false" native="false" synchronized="false"
  10420. static="false" final="false" visibility="public"
  10421. deprecated="not deprecated">
  10422. <doc>
  10423. <![CDATA[Return the value of this ByteWritable.]]>
  10424. </doc>
  10425. </method>
  10426. <method name="readFields"
  10427. abstract="false" native="false" synchronized="false"
  10428. static="false" final="false" visibility="public"
  10429. deprecated="not deprecated">
  10430. <param name="in" type="java.io.DataInput"/>
  10431. <exception name="IOException" type="java.io.IOException"/>
  10432. </method>
  10433. <method name="write"
  10434. abstract="false" native="false" synchronized="false"
  10435. static="false" final="false" visibility="public"
  10436. deprecated="not deprecated">
  10437. <param name="out" type="java.io.DataOutput"/>
  10438. <exception name="IOException" type="java.io.IOException"/>
  10439. </method>
  10440. <method name="equals" return="boolean"
  10441. abstract="false" native="false" synchronized="false"
  10442. static="false" final="false" visibility="public"
  10443. deprecated="not deprecated">
  10444. <param name="o" type="java.lang.Object"/>
  10445. <doc>
  10446. <![CDATA[Returns true iff <code>o</code> is a ByteWritable with the same value.]]>
  10447. </doc>
  10448. </method>
  10449. <method name="hashCode" return="int"
  10450. abstract="false" native="false" synchronized="false"
  10451. static="false" final="false" visibility="public"
  10452. deprecated="not deprecated">
  10453. </method>
  10454. <method name="compareTo" return="int"
  10455. abstract="false" native="false" synchronized="false"
  10456. static="false" final="false" visibility="public"
  10457. deprecated="not deprecated">
  10458. <param name="o" type="java.lang.Object"/>
  10459. <doc>
  10460. <![CDATA[Compares two ByteWritables.]]>
  10461. </doc>
  10462. </method>
  10463. <method name="toString" return="java.lang.String"
  10464. abstract="false" native="false" synchronized="false"
  10465. static="false" final="false" visibility="public"
  10466. deprecated="not deprecated">
  10467. </method>
  10468. <doc>
  10469. <![CDATA[A WritableComparable for a single byte.]]>
  10470. </doc>
  10471. </class>
  10472. <!-- end class org.apache.hadoop.io.ByteWritable -->
  10473. <!-- start class org.apache.hadoop.io.ByteWritable.Comparator -->
  10474. <class name="ByteWritable.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  10475. abstract="false"
  10476. static="true" final="false" visibility="public"
  10477. deprecated="not deprecated">
  10478. <constructor name="ByteWritable.Comparator"
  10479. static="false" final="false" visibility="public"
  10480. deprecated="not deprecated">
  10481. </constructor>
  10482. <method name="compare" return="int"
  10483. abstract="false" native="false" synchronized="false"
  10484. static="false" final="false" visibility="public"
  10485. deprecated="not deprecated">
  10486. <param name="b1" type="byte[]"/>
  10487. <param name="s1" type="int"/>
  10488. <param name="l1" type="int"/>
  10489. <param name="b2" type="byte[]"/>
  10490. <param name="s2" type="int"/>
  10491. <param name="l2" type="int"/>
  10492. </method>
  10493. <doc>
  10494. <![CDATA[A Comparator optimized for ByteWritable.]]>
  10495. </doc>
  10496. </class>
  10497. <!-- end class org.apache.hadoop.io.ByteWritable.Comparator -->
  10498. <!-- start interface org.apache.hadoop.io.Closeable -->
  10499. <interface name="Closeable" abstract="true"
  10500. static="false" final="false" visibility="public"
  10501. deprecated="use java.io.Closeable">
  10502. <implements name="java.io.Closeable"/>
  10503. <doc>
  10504. <![CDATA[@deprecated use java.io.Closeable]]>
  10505. </doc>
  10506. </interface>
  10507. <!-- end interface org.apache.hadoop.io.Closeable -->
  10508. <!-- start class org.apache.hadoop.io.CompressedWritable -->
  10509. <class name="CompressedWritable" extends="java.lang.Object"
  10510. abstract="true"
  10511. static="false" final="false" visibility="public"
  10512. deprecated="not deprecated">
  10513. <implements name="org.apache.hadoop.io.Writable"/>
  10514. <constructor name="CompressedWritable"
  10515. static="false" final="false" visibility="public"
  10516. deprecated="not deprecated">
  10517. </constructor>
  10518. <method name="readFields"
  10519. abstract="false" native="false" synchronized="false"
  10520. static="false" final="true" visibility="public"
  10521. deprecated="not deprecated">
  10522. <param name="in" type="java.io.DataInput"/>
  10523. <exception name="IOException" type="java.io.IOException"/>
  10524. </method>
  10525. <method name="ensureInflated"
  10526. abstract="false" native="false" synchronized="false"
  10527. static="false" final="false" visibility="protected"
  10528. deprecated="not deprecated">
  10529. <doc>
  10530. <![CDATA[Must be called by all methods which access fields to ensure that the data
  10531. has been uncompressed.]]>
  10532. </doc>
  10533. </method>
  10534. <method name="readFieldsCompressed"
  10535. abstract="true" native="false" synchronized="false"
  10536. static="false" final="false" visibility="protected"
  10537. deprecated="not deprecated">
  10538. <param name="in" type="java.io.DataInput"/>
  10539. <exception name="IOException" type="java.io.IOException"/>
  10540. <doc>
  10541. <![CDATA[Subclasses implement this instead of {@link #readFields(DataInput)}.]]>
  10542. </doc>
  10543. </method>
  10544. <method name="write"
  10545. abstract="false" native="false" synchronized="false"
  10546. static="false" final="true" visibility="public"
  10547. deprecated="not deprecated">
  10548. <param name="out" type="java.io.DataOutput"/>
  10549. <exception name="IOException" type="java.io.IOException"/>
  10550. </method>
  10551. <method name="writeCompressed"
  10552. abstract="true" native="false" synchronized="false"
  10553. static="false" final="false" visibility="protected"
  10554. deprecated="not deprecated">
  10555. <param name="out" type="java.io.DataOutput"/>
  10556. <exception name="IOException" type="java.io.IOException"/>
  10557. <doc>
  10558. <![CDATA[Subclasses implement this instead of {@link #write(DataOutput)}.]]>
  10559. </doc>
  10560. </method>
  10561. <doc>
  10562. <![CDATA[A base-class for Writables which store themselves compressed and lazily
  10563. inflate on field access. This is useful for large objects whose fields are
  10564. not be altered during a map or reduce operation: leaving the field data
  10565. compressed makes copying the instance from one file to another much
  10566. faster.]]>
  10567. </doc>
  10568. </class>
  10569. <!-- end class org.apache.hadoop.io.CompressedWritable -->
  10570. <!-- start class org.apache.hadoop.io.DataInputBuffer -->
  10571. <class name="DataInputBuffer" extends="java.io.DataInputStream"
  10572. abstract="false"
  10573. static="false" final="false" visibility="public"
  10574. deprecated="not deprecated">
  10575. <constructor name="DataInputBuffer"
  10576. static="false" final="false" visibility="public"
  10577. deprecated="not deprecated">
  10578. <doc>
  10579. <![CDATA[Constructs a new empty buffer.]]>
  10580. </doc>
  10581. </constructor>
  10582. <method name="reset"
  10583. abstract="false" native="false" synchronized="false"
  10584. static="false" final="false" visibility="public"
  10585. deprecated="not deprecated">
  10586. <param name="input" type="byte[]"/>
  10587. <param name="length" type="int"/>
  10588. <doc>
  10589. <![CDATA[Resets the data that the buffer reads.]]>
  10590. </doc>
  10591. </method>
  10592. <method name="reset"
  10593. abstract="false" native="false" synchronized="false"
  10594. static="false" final="false" visibility="public"
  10595. deprecated="not deprecated">
  10596. <param name="input" type="byte[]"/>
  10597. <param name="start" type="int"/>
  10598. <param name="length" type="int"/>
  10599. <doc>
  10600. <![CDATA[Resets the data that the buffer reads.]]>
  10601. </doc>
  10602. </method>
  10603. <method name="getData" return="byte[]"
  10604. abstract="false" native="false" synchronized="false"
  10605. static="false" final="false" visibility="public"
  10606. deprecated="not deprecated">
  10607. </method>
  10608. <method name="getPosition" return="int"
  10609. abstract="false" native="false" synchronized="false"
  10610. static="false" final="false" visibility="public"
  10611. deprecated="not deprecated">
  10612. <doc>
  10613. <![CDATA[Returns the current position in the input.]]>
  10614. </doc>
  10615. </method>
  10616. <method name="getLength" return="int"
  10617. abstract="false" native="false" synchronized="false"
  10618. static="false" final="false" visibility="public"
  10619. deprecated="not deprecated">
  10620. <doc>
  10621. <![CDATA[Returns the length of the input.]]>
  10622. </doc>
  10623. </method>
  10624. <doc>
  10625. <![CDATA[A reusable {@link DataInput} implementation that reads from an in-memory
  10626. buffer.
  10627. <p>This saves memory over creating a new DataInputStream and
  10628. ByteArrayInputStream each time data is read.
  10629. <p>Typical usage is something like the following:<pre>
  10630. DataInputBuffer buffer = new DataInputBuffer();
  10631. while (... loop condition ...) {
  10632. byte[] data = ... get data ...;
  10633. int dataLength = ... get data length ...;
  10634. buffer.reset(data, dataLength);
  10635. ... read buffer using DataInput methods ...
  10636. }
  10637. </pre>]]>
  10638. </doc>
  10639. </class>
  10640. <!-- end class org.apache.hadoop.io.DataInputBuffer -->
  10641. <!-- start class org.apache.hadoop.io.DataOutputBuffer -->
  10642. <class name="DataOutputBuffer" extends="java.io.DataOutputStream"
  10643. abstract="false"
  10644. static="false" final="false" visibility="public"
  10645. deprecated="not deprecated">
  10646. <constructor name="DataOutputBuffer"
  10647. static="false" final="false" visibility="public"
  10648. deprecated="not deprecated">
  10649. <doc>
  10650. <![CDATA[Constructs a new empty buffer.]]>
  10651. </doc>
  10652. </constructor>
  10653. <constructor name="DataOutputBuffer" type="int"
  10654. static="false" final="false" visibility="public"
  10655. deprecated="not deprecated">
  10656. </constructor>
  10657. <method name="getData" return="byte[]"
  10658. abstract="false" native="false" synchronized="false"
  10659. static="false" final="false" visibility="public"
  10660. deprecated="not deprecated">
  10661. <doc>
  10662. <![CDATA[Returns the current contents of the buffer.
  10663. Data is only valid to {@link #getLength()}.]]>
  10664. </doc>
  10665. </method>
  10666. <method name="getLength" return="int"
  10667. abstract="false" native="false" synchronized="false"
  10668. static="false" final="false" visibility="public"
  10669. deprecated="not deprecated">
  10670. <doc>
  10671. <![CDATA[Returns the length of the valid data currently in the buffer.]]>
  10672. </doc>
  10673. </method>
  10674. <method name="reset" return="org.apache.hadoop.io.DataOutputBuffer"
  10675. abstract="false" native="false" synchronized="false"
  10676. static="false" final="false" visibility="public"
  10677. deprecated="not deprecated">
  10678. <doc>
  10679. <![CDATA[Resets the buffer to empty.]]>
  10680. </doc>
  10681. </method>
  10682. <method name="write"
  10683. abstract="false" native="false" synchronized="false"
  10684. static="false" final="false" visibility="public"
  10685. deprecated="not deprecated">
  10686. <param name="in" type="java.io.DataInput"/>
  10687. <param name="length" type="int"/>
  10688. <exception name="IOException" type="java.io.IOException"/>
  10689. <doc>
  10690. <![CDATA[Writes bytes from a DataInput directly into the buffer.]]>
  10691. </doc>
  10692. </method>
  10693. <method name="writeTo"
  10694. abstract="false" native="false" synchronized="false"
  10695. static="false" final="false" visibility="public"
  10696. deprecated="not deprecated">
  10697. <param name="out" type="java.io.OutputStream"/>
  10698. <exception name="IOException" type="java.io.IOException"/>
  10699. <doc>
  10700. <![CDATA[Write to a file stream]]>
  10701. </doc>
  10702. </method>
  10703. <doc>
  10704. <![CDATA[A reusable {@link DataOutput} implementation that writes to an in-memory
  10705. buffer.
  10706. <p>This saves memory over creating a new DataOutputStream and
  10707. ByteArrayOutputStream each time data is written.
  10708. <p>Typical usage is something like the following:<pre>
  10709. DataOutputBuffer buffer = new DataOutputBuffer();
  10710. while (... loop condition ...) {
  10711. buffer.reset();
  10712. ... write buffer using DataOutput methods ...
  10713. byte[] data = buffer.getData();
  10714. int dataLength = buffer.getLength();
  10715. ... write data to its ultimate destination ...
  10716. }
  10717. </pre>]]>
  10718. </doc>
  10719. </class>
  10720. <!-- end class org.apache.hadoop.io.DataOutputBuffer -->
  10721. <!-- start class org.apache.hadoop.io.DefaultStringifier -->
  10722. <class name="DefaultStringifier" extends="java.lang.Object"
  10723. abstract="false"
  10724. static="false" final="false" visibility="public"
  10725. deprecated="not deprecated">
  10726. <implements name="org.apache.hadoop.io.Stringifier"/>
  10727. <constructor name="DefaultStringifier" type="org.apache.hadoop.conf.Configuration, java.lang.Class"
  10728. static="false" final="false" visibility="public"
  10729. deprecated="not deprecated">
  10730. </constructor>
  10731. <method name="fromString" return="java.lang.Object"
  10732. abstract="false" native="false" synchronized="false"
  10733. static="false" final="false" visibility="public"
  10734. deprecated="not deprecated">
  10735. <param name="str" type="java.lang.String"/>
  10736. <exception name="IOException" type="java.io.IOException"/>
  10737. </method>
  10738. <method name="toString" return="java.lang.String"
  10739. abstract="false" native="false" synchronized="false"
  10740. static="false" final="false" visibility="public"
  10741. deprecated="not deprecated">
  10742. <param name="obj" type="java.lang.Object"/>
  10743. <exception name="IOException" type="java.io.IOException"/>
  10744. </method>
  10745. <method name="close"
  10746. abstract="false" native="false" synchronized="false"
  10747. static="false" final="false" visibility="public"
  10748. deprecated="not deprecated">
  10749. <exception name="IOException" type="java.io.IOException"/>
  10750. </method>
  10751. <method name="store"
  10752. abstract="false" native="false" synchronized="false"
  10753. static="true" final="false" visibility="public"
  10754. deprecated="not deprecated">
  10755. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  10756. <param name="item" type="java.lang.Object"/>
  10757. <param name="keyName" type="java.lang.String"/>
  10758. <exception name="IOException" type="java.io.IOException"/>
  10759. <doc>
  10760. <![CDATA[Stores the item in the configuration with the given keyName.
  10761. @param <K> the class of the item
  10762. @param conf the configuration to store
  10763. @param item the object to be stored
  10764. @param keyName the name of the key to use
  10765. @throws IOException : forwards Exceptions from the underlying
  10766. {@link Serialization} classes.]]>
  10767. </doc>
  10768. </method>
  10769. <method name="load" return="java.lang.Object"
  10770. abstract="false" native="false" synchronized="false"
  10771. static="true" final="false" visibility="public"
  10772. deprecated="not deprecated">
  10773. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  10774. <param name="keyName" type="java.lang.String"/>
  10775. <param name="itemClass" type="java.lang.Class"/>
  10776. <exception name="IOException" type="java.io.IOException"/>
  10777. <doc>
  10778. <![CDATA[Restores the object from the configuration.
  10779. @param <K> the class of the item
  10780. @param conf the configuration to use
  10781. @param keyName the name of the key to use
  10782. @param itemClass the class of the item
  10783. @return restored object
  10784. @throws IOException : forwards Exceptions from the underlying
  10785. {@link Serialization} classes.]]>
  10786. </doc>
  10787. </method>
  10788. <method name="storeArray"
  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="items" type="java.lang.Object[]"/>
  10794. <param name="keyName" type="java.lang.String"/>
  10795. <exception name="IOException" type="java.io.IOException"/>
  10796. <doc>
  10797. <![CDATA[Stores the array of items in the configuration with the given keyName.
  10798. @param <K> the class of the item
  10799. @param conf the configuration to use
  10800. @param items the objects to be stored
  10801. @param keyName the name of the key to use
  10802. @throws IndexOutOfBoundsException if the items array is empty
  10803. @throws IOException : forwards Exceptions from the underlying
  10804. {@link Serialization} classes.]]>
  10805. </doc>
  10806. </method>
  10807. <method name="loadArray" return="java.lang.Object[]"
  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="keyName" type="java.lang.String"/>
  10813. <param name="itemClass" type="java.lang.Class"/>
  10814. <exception name="IOException" type="java.io.IOException"/>
  10815. <doc>
  10816. <![CDATA[Restores the array of objects from the configuration.
  10817. @param <K> the class of the item
  10818. @param conf the configuration to use
  10819. @param keyName the name of the key to use
  10820. @param itemClass the class of the item
  10821. @return restored object
  10822. @throws IOException : forwards Exceptions from the underlying
  10823. {@link Serialization} classes.]]>
  10824. </doc>
  10825. </method>
  10826. <doc>
  10827. <![CDATA[DefaultStringifier is the default implementation of the {@link Stringifier}
  10828. interface which stringifies the objects using base64 encoding of the
  10829. serialized version of the objects. The {@link Serializer} and
  10830. {@link Deserializer} are obtained from the {@link SerializationFactory}.
  10831. <br>
  10832. DefaultStringifier offers convenience methods to store/load objects to/from
  10833. the configuration.
  10834. @param <T> the class of the objects to stringify]]>
  10835. </doc>
  10836. </class>
  10837. <!-- end class org.apache.hadoop.io.DefaultStringifier -->
  10838. <!-- start class org.apache.hadoop.io.DoubleWritable -->
  10839. <class name="DoubleWritable" extends="java.lang.Object"
  10840. abstract="false"
  10841. static="false" final="false" visibility="public"
  10842. deprecated="not deprecated">
  10843. <implements name="org.apache.hadoop.io.WritableComparable"/>
  10844. <constructor name="DoubleWritable"
  10845. static="false" final="false" visibility="public"
  10846. deprecated="not deprecated">
  10847. </constructor>
  10848. <constructor name="DoubleWritable" type="double"
  10849. static="false" final="false" visibility="public"
  10850. deprecated="not deprecated">
  10851. </constructor>
  10852. <method name="readFields"
  10853. abstract="false" native="false" synchronized="false"
  10854. static="false" final="false" visibility="public"
  10855. deprecated="not deprecated">
  10856. <param name="in" type="java.io.DataInput"/>
  10857. <exception name="IOException" type="java.io.IOException"/>
  10858. </method>
  10859. <method name="write"
  10860. abstract="false" native="false" synchronized="false"
  10861. static="false" final="false" visibility="public"
  10862. deprecated="not deprecated">
  10863. <param name="out" type="java.io.DataOutput"/>
  10864. <exception name="IOException" type="java.io.IOException"/>
  10865. </method>
  10866. <method name="set"
  10867. abstract="false" native="false" synchronized="false"
  10868. static="false" final="false" visibility="public"
  10869. deprecated="not deprecated">
  10870. <param name="value" type="double"/>
  10871. </method>
  10872. <method name="get" return="double"
  10873. abstract="false" native="false" synchronized="false"
  10874. static="false" final="false" visibility="public"
  10875. deprecated="not deprecated">
  10876. </method>
  10877. <method name="equals" return="boolean"
  10878. abstract="false" native="false" synchronized="false"
  10879. static="false" final="false" visibility="public"
  10880. deprecated="not deprecated">
  10881. <param name="o" type="java.lang.Object"/>
  10882. <doc>
  10883. <![CDATA[Returns true iff <code>o</code> is a DoubleWritable with the same value.]]>
  10884. </doc>
  10885. </method>
  10886. <method name="hashCode" return="int"
  10887. abstract="false" native="false" synchronized="false"
  10888. static="false" final="false" visibility="public"
  10889. deprecated="not deprecated">
  10890. </method>
  10891. <method name="compareTo" return="int"
  10892. abstract="false" native="false" synchronized="false"
  10893. static="false" final="false" visibility="public"
  10894. deprecated="not deprecated">
  10895. <param name="o" type="java.lang.Object"/>
  10896. </method>
  10897. <method name="toString" return="java.lang.String"
  10898. abstract="false" native="false" synchronized="false"
  10899. static="false" final="false" visibility="public"
  10900. deprecated="not deprecated">
  10901. </method>
  10902. <doc>
  10903. <![CDATA[Writable for Double values.]]>
  10904. </doc>
  10905. </class>
  10906. <!-- end class org.apache.hadoop.io.DoubleWritable -->
  10907. <!-- start class org.apache.hadoop.io.DoubleWritable.Comparator -->
  10908. <class name="DoubleWritable.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  10909. abstract="false"
  10910. static="true" final="false" visibility="public"
  10911. deprecated="not deprecated">
  10912. <constructor name="DoubleWritable.Comparator"
  10913. static="false" final="false" visibility="public"
  10914. deprecated="not deprecated">
  10915. </constructor>
  10916. <method name="compare" return="int"
  10917. abstract="false" native="false" synchronized="false"
  10918. static="false" final="false" visibility="public"
  10919. deprecated="not deprecated">
  10920. <param name="b1" type="byte[]"/>
  10921. <param name="s1" type="int"/>
  10922. <param name="l1" type="int"/>
  10923. <param name="b2" type="byte[]"/>
  10924. <param name="s2" type="int"/>
  10925. <param name="l2" type="int"/>
  10926. </method>
  10927. <doc>
  10928. <![CDATA[A Comparator optimized for DoubleWritable.]]>
  10929. </doc>
  10930. </class>
  10931. <!-- end class org.apache.hadoop.io.DoubleWritable.Comparator -->
  10932. <!-- start class org.apache.hadoop.io.FloatWritable -->
  10933. <class name="FloatWritable" extends="java.lang.Object"
  10934. abstract="false"
  10935. static="false" final="false" visibility="public"
  10936. deprecated="not deprecated">
  10937. <implements name="org.apache.hadoop.io.WritableComparable"/>
  10938. <constructor name="FloatWritable"
  10939. static="false" final="false" visibility="public"
  10940. deprecated="not deprecated">
  10941. </constructor>
  10942. <constructor name="FloatWritable" type="float"
  10943. static="false" final="false" visibility="public"
  10944. deprecated="not deprecated">
  10945. </constructor>
  10946. <method name="set"
  10947. abstract="false" native="false" synchronized="false"
  10948. static="false" final="false" visibility="public"
  10949. deprecated="not deprecated">
  10950. <param name="value" type="float"/>
  10951. <doc>
  10952. <![CDATA[Set the value of this FloatWritable.]]>
  10953. </doc>
  10954. </method>
  10955. <method name="get" return="float"
  10956. abstract="false" native="false" synchronized="false"
  10957. static="false" final="false" visibility="public"
  10958. deprecated="not deprecated">
  10959. <doc>
  10960. <![CDATA[Return the value of this FloatWritable.]]>
  10961. </doc>
  10962. </method>
  10963. <method name="readFields"
  10964. abstract="false" native="false" synchronized="false"
  10965. static="false" final="false" visibility="public"
  10966. deprecated="not deprecated">
  10967. <param name="in" type="java.io.DataInput"/>
  10968. <exception name="IOException" type="java.io.IOException"/>
  10969. </method>
  10970. <method name="write"
  10971. abstract="false" native="false" synchronized="false"
  10972. static="false" final="false" visibility="public"
  10973. deprecated="not deprecated">
  10974. <param name="out" type="java.io.DataOutput"/>
  10975. <exception name="IOException" type="java.io.IOException"/>
  10976. </method>
  10977. <method name="equals" return="boolean"
  10978. abstract="false" native="false" synchronized="false"
  10979. static="false" final="false" visibility="public"
  10980. deprecated="not deprecated">
  10981. <param name="o" type="java.lang.Object"/>
  10982. <doc>
  10983. <![CDATA[Returns true iff <code>o</code> is a FloatWritable with the same value.]]>
  10984. </doc>
  10985. </method>
  10986. <method name="hashCode" return="int"
  10987. abstract="false" native="false" synchronized="false"
  10988. static="false" final="false" visibility="public"
  10989. deprecated="not deprecated">
  10990. </method>
  10991. <method name="compareTo" return="int"
  10992. abstract="false" native="false" synchronized="false"
  10993. static="false" final="false" visibility="public"
  10994. deprecated="not deprecated">
  10995. <param name="o" type="java.lang.Object"/>
  10996. <doc>
  10997. <![CDATA[Compares two FloatWritables.]]>
  10998. </doc>
  10999. </method>
  11000. <method name="toString" return="java.lang.String"
  11001. abstract="false" native="false" synchronized="false"
  11002. static="false" final="false" visibility="public"
  11003. deprecated="not deprecated">
  11004. </method>
  11005. <doc>
  11006. <![CDATA[A WritableComparable for floats.]]>
  11007. </doc>
  11008. </class>
  11009. <!-- end class org.apache.hadoop.io.FloatWritable -->
  11010. <!-- start class org.apache.hadoop.io.FloatWritable.Comparator -->
  11011. <class name="FloatWritable.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  11012. abstract="false"
  11013. static="true" final="false" visibility="public"
  11014. deprecated="not deprecated">
  11015. <constructor name="FloatWritable.Comparator"
  11016. static="false" final="false" visibility="public"
  11017. deprecated="not deprecated">
  11018. </constructor>
  11019. <method name="compare" return="int"
  11020. abstract="false" native="false" synchronized="false"
  11021. static="false" final="false" visibility="public"
  11022. deprecated="not deprecated">
  11023. <param name="b1" type="byte[]"/>
  11024. <param name="s1" type="int"/>
  11025. <param name="l1" type="int"/>
  11026. <param name="b2" type="byte[]"/>
  11027. <param name="s2" type="int"/>
  11028. <param name="l2" type="int"/>
  11029. </method>
  11030. <doc>
  11031. <![CDATA[A Comparator optimized for FloatWritable.]]>
  11032. </doc>
  11033. </class>
  11034. <!-- end class org.apache.hadoop.io.FloatWritable.Comparator -->
  11035. <!-- start class org.apache.hadoop.io.GenericWritable -->
  11036. <class name="GenericWritable" extends="java.lang.Object"
  11037. abstract="true"
  11038. static="false" final="false" visibility="public"
  11039. deprecated="not deprecated">
  11040. <implements name="org.apache.hadoop.io.Writable"/>
  11041. <implements name="org.apache.hadoop.conf.Configurable"/>
  11042. <constructor name="GenericWritable"
  11043. static="false" final="false" visibility="public"
  11044. deprecated="not deprecated">
  11045. </constructor>
  11046. <method name="set"
  11047. abstract="false" native="false" synchronized="false"
  11048. static="false" final="false" visibility="public"
  11049. deprecated="not deprecated">
  11050. <param name="obj" type="org.apache.hadoop.io.Writable"/>
  11051. <doc>
  11052. <![CDATA[Set the instance that is wrapped.
  11053. @param obj]]>
  11054. </doc>
  11055. </method>
  11056. <method name="get" return="org.apache.hadoop.io.Writable"
  11057. abstract="false" native="false" synchronized="false"
  11058. static="false" final="false" visibility="public"
  11059. deprecated="not deprecated">
  11060. <doc>
  11061. <![CDATA[Return the wrapped instance.]]>
  11062. </doc>
  11063. </method>
  11064. <method name="toString" return="java.lang.String"
  11065. abstract="false" native="false" synchronized="false"
  11066. static="false" final="false" visibility="public"
  11067. deprecated="not deprecated">
  11068. </method>
  11069. <method name="readFields"
  11070. abstract="false" native="false" synchronized="false"
  11071. static="false" final="false" visibility="public"
  11072. deprecated="not deprecated">
  11073. <param name="in" type="java.io.DataInput"/>
  11074. <exception name="IOException" type="java.io.IOException"/>
  11075. </method>
  11076. <method name="write"
  11077. abstract="false" native="false" synchronized="false"
  11078. static="false" final="false" visibility="public"
  11079. deprecated="not deprecated">
  11080. <param name="out" type="java.io.DataOutput"/>
  11081. <exception name="IOException" type="java.io.IOException"/>
  11082. </method>
  11083. <method name="getTypes" return="java.lang.Class[]"
  11084. abstract="true" native="false" synchronized="false"
  11085. static="false" final="false" visibility="protected"
  11086. deprecated="not deprecated">
  11087. <doc>
  11088. <![CDATA[Return all classes that may be wrapped. Subclasses should implement this
  11089. to return a constant array of classes.]]>
  11090. </doc>
  11091. </method>
  11092. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  11093. abstract="false" native="false" synchronized="false"
  11094. static="false" final="false" visibility="public"
  11095. deprecated="not deprecated">
  11096. </method>
  11097. <method name="setConf"
  11098. abstract="false" native="false" synchronized="false"
  11099. static="false" final="false" visibility="public"
  11100. deprecated="not deprecated">
  11101. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  11102. </method>
  11103. <doc>
  11104. <![CDATA[A wrapper for Writable instances.
  11105. <p>
  11106. When two sequence files, which have same Key type but different Value
  11107. types, are mapped out to reduce, multiple Value types is not allowed.
  11108. In this case, this class can help you wrap instances with different types.
  11109. </p>
  11110. <p>
  11111. Compared with <code>ObjectWritable</code>, this class is much more effective,
  11112. because <code>ObjectWritable</code> will append the class declaration as a String
  11113. into the output file in every Key-Value pair.
  11114. </p>
  11115. <p>
  11116. Generic Writable implements {@link Configurable} interface, so that it will be
  11117. configured by the framework. The configuration is passed to the wrapped objects
  11118. implementing {@link Configurable} interface <i>before deserialization</i>.
  11119. </p>
  11120. how to use it: <br>
  11121. 1. Write your own class, such as GenericObject, which extends GenericWritable.<br>
  11122. 2. Implements the abstract method <code>getTypes()</code>, defines
  11123. the classes which will be wrapped in GenericObject in application.
  11124. Attention: this classes defined in <code>getTypes()</code> method, must
  11125. implement <code>Writable</code> interface.
  11126. <br><br>
  11127. The code looks like this:
  11128. <blockquote><pre>
  11129. public class GenericObject extends GenericWritable {
  11130. private static Class[] CLASSES = {
  11131. ClassType1.class,
  11132. ClassType2.class,
  11133. ClassType3.class,
  11134. };
  11135. protected Class[] getTypes() {
  11136. return CLASSES;
  11137. }
  11138. }
  11139. </pre></blockquote>
  11140. @since Nov 8, 2006]]>
  11141. </doc>
  11142. </class>
  11143. <!-- end class org.apache.hadoop.io.GenericWritable -->
  11144. <!-- start class org.apache.hadoop.io.InputBuffer -->
  11145. <class name="InputBuffer" extends="java.io.FilterInputStream"
  11146. abstract="false"
  11147. static="false" final="false" visibility="public"
  11148. deprecated="not deprecated">
  11149. <constructor name="InputBuffer"
  11150. static="false" final="false" visibility="public"
  11151. deprecated="not deprecated">
  11152. <doc>
  11153. <![CDATA[Constructs a new empty buffer.]]>
  11154. </doc>
  11155. </constructor>
  11156. <method name="reset"
  11157. abstract="false" native="false" synchronized="false"
  11158. static="false" final="false" visibility="public"
  11159. deprecated="not deprecated">
  11160. <param name="input" type="byte[]"/>
  11161. <param name="length" type="int"/>
  11162. <doc>
  11163. <![CDATA[Resets the data that the buffer reads.]]>
  11164. </doc>
  11165. </method>
  11166. <method name="reset"
  11167. abstract="false" native="false" synchronized="false"
  11168. static="false" final="false" visibility="public"
  11169. deprecated="not deprecated">
  11170. <param name="input" type="byte[]"/>
  11171. <param name="start" type="int"/>
  11172. <param name="length" type="int"/>
  11173. <doc>
  11174. <![CDATA[Resets the data that the buffer reads.]]>
  11175. </doc>
  11176. </method>
  11177. <method name="getPosition" return="int"
  11178. abstract="false" native="false" synchronized="false"
  11179. static="false" final="false" visibility="public"
  11180. deprecated="not deprecated">
  11181. <doc>
  11182. <![CDATA[Returns the current position in the input.]]>
  11183. </doc>
  11184. </method>
  11185. <method name="getLength" return="int"
  11186. abstract="false" native="false" synchronized="false"
  11187. static="false" final="false" visibility="public"
  11188. deprecated="not deprecated">
  11189. <doc>
  11190. <![CDATA[Returns the length of the input.]]>
  11191. </doc>
  11192. </method>
  11193. <doc>
  11194. <![CDATA[A reusable {@link InputStream} implementation that reads from an in-memory
  11195. buffer.
  11196. <p>This saves memory over creating a new InputStream and
  11197. ByteArrayInputStream each time data is read.
  11198. <p>Typical usage is something like the following:<pre>
  11199. InputBuffer buffer = new InputBuffer();
  11200. while (... loop condition ...) {
  11201. byte[] data = ... get data ...;
  11202. int dataLength = ... get data length ...;
  11203. buffer.reset(data, dataLength);
  11204. ... read buffer using InputStream methods ...
  11205. }
  11206. </pre>
  11207. @see DataInputBuffer
  11208. @see DataOutput]]>
  11209. </doc>
  11210. </class>
  11211. <!-- end class org.apache.hadoop.io.InputBuffer -->
  11212. <!-- start class org.apache.hadoop.io.IntWritable -->
  11213. <class name="IntWritable" extends="java.lang.Object"
  11214. abstract="false"
  11215. static="false" final="false" visibility="public"
  11216. deprecated="not deprecated">
  11217. <implements name="org.apache.hadoop.io.WritableComparable"/>
  11218. <constructor name="IntWritable"
  11219. static="false" final="false" visibility="public"
  11220. deprecated="not deprecated">
  11221. </constructor>
  11222. <constructor name="IntWritable" type="int"
  11223. static="false" final="false" visibility="public"
  11224. deprecated="not deprecated">
  11225. </constructor>
  11226. <method name="set"
  11227. abstract="false" native="false" synchronized="false"
  11228. static="false" final="false" visibility="public"
  11229. deprecated="not deprecated">
  11230. <param name="value" type="int"/>
  11231. <doc>
  11232. <![CDATA[Set the value of this IntWritable.]]>
  11233. </doc>
  11234. </method>
  11235. <method name="get" return="int"
  11236. abstract="false" native="false" synchronized="false"
  11237. static="false" final="false" visibility="public"
  11238. deprecated="not deprecated">
  11239. <doc>
  11240. <![CDATA[Return the value of this IntWritable.]]>
  11241. </doc>
  11242. </method>
  11243. <method name="readFields"
  11244. abstract="false" native="false" synchronized="false"
  11245. static="false" final="false" visibility="public"
  11246. deprecated="not deprecated">
  11247. <param name="in" type="java.io.DataInput"/>
  11248. <exception name="IOException" type="java.io.IOException"/>
  11249. </method>
  11250. <method name="write"
  11251. abstract="false" native="false" synchronized="false"
  11252. static="false" final="false" visibility="public"
  11253. deprecated="not deprecated">
  11254. <param name="out" type="java.io.DataOutput"/>
  11255. <exception name="IOException" type="java.io.IOException"/>
  11256. </method>
  11257. <method name="equals" return="boolean"
  11258. abstract="false" native="false" synchronized="false"
  11259. static="false" final="false" visibility="public"
  11260. deprecated="not deprecated">
  11261. <param name="o" type="java.lang.Object"/>
  11262. <doc>
  11263. <![CDATA[Returns true iff <code>o</code> is a IntWritable with the same value.]]>
  11264. </doc>
  11265. </method>
  11266. <method name="hashCode" return="int"
  11267. abstract="false" native="false" synchronized="false"
  11268. static="false" final="false" visibility="public"
  11269. deprecated="not deprecated">
  11270. </method>
  11271. <method name="compareTo" return="int"
  11272. abstract="false" native="false" synchronized="false"
  11273. static="false" final="false" visibility="public"
  11274. deprecated="not deprecated">
  11275. <param name="o" type="java.lang.Object"/>
  11276. <doc>
  11277. <![CDATA[Compares two IntWritables.]]>
  11278. </doc>
  11279. </method>
  11280. <method name="toString" return="java.lang.String"
  11281. abstract="false" native="false" synchronized="false"
  11282. static="false" final="false" visibility="public"
  11283. deprecated="not deprecated">
  11284. </method>
  11285. <doc>
  11286. <![CDATA[A WritableComparable for ints.]]>
  11287. </doc>
  11288. </class>
  11289. <!-- end class org.apache.hadoop.io.IntWritable -->
  11290. <!-- start class org.apache.hadoop.io.IntWritable.Comparator -->
  11291. <class name="IntWritable.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  11292. abstract="false"
  11293. static="true" final="false" visibility="public"
  11294. deprecated="not deprecated">
  11295. <constructor name="IntWritable.Comparator"
  11296. static="false" final="false" visibility="public"
  11297. deprecated="not deprecated">
  11298. </constructor>
  11299. <method name="compare" return="int"
  11300. abstract="false" native="false" synchronized="false"
  11301. static="false" final="false" visibility="public"
  11302. deprecated="not deprecated">
  11303. <param name="b1" type="byte[]"/>
  11304. <param name="s1" type="int"/>
  11305. <param name="l1" type="int"/>
  11306. <param name="b2" type="byte[]"/>
  11307. <param name="s2" type="int"/>
  11308. <param name="l2" type="int"/>
  11309. </method>
  11310. <doc>
  11311. <![CDATA[A Comparator optimized for IntWritable.]]>
  11312. </doc>
  11313. </class>
  11314. <!-- end class org.apache.hadoop.io.IntWritable.Comparator -->
  11315. <!-- start class org.apache.hadoop.io.IOUtils -->
  11316. <class name="IOUtils" extends="java.lang.Object"
  11317. abstract="false"
  11318. static="false" final="false" visibility="public"
  11319. deprecated="not deprecated">
  11320. <constructor name="IOUtils"
  11321. static="false" final="false" visibility="public"
  11322. deprecated="not deprecated">
  11323. </constructor>
  11324. <method name="copyBytes"
  11325. abstract="false" native="false" synchronized="false"
  11326. static="true" final="false" visibility="public"
  11327. deprecated="not deprecated">
  11328. <param name="in" type="java.io.InputStream"/>
  11329. <param name="out" type="java.io.OutputStream"/>
  11330. <param name="buffSize" type="int"/>
  11331. <param name="close" type="boolean"/>
  11332. <exception name="IOException" type="java.io.IOException"/>
  11333. <doc>
  11334. <![CDATA[Copies from one stream to another.
  11335. @param in InputStrem to read from
  11336. @param out OutputStream to write to
  11337. @param buffSize the size of the buffer
  11338. @param close whether or not close the InputStream and
  11339. OutputStream at the end. The streams are closed in the finally clause.]]>
  11340. </doc>
  11341. </method>
  11342. <method name="copyBytes"
  11343. abstract="false" native="false" synchronized="false"
  11344. static="true" final="false" visibility="public"
  11345. deprecated="not deprecated">
  11346. <param name="in" type="java.io.InputStream"/>
  11347. <param name="out" type="java.io.OutputStream"/>
  11348. <param name="buffSize" type="int"/>
  11349. <exception name="IOException" type="java.io.IOException"/>
  11350. <doc>
  11351. <![CDATA[Copies from one stream to another.
  11352. @param in InputStrem to read from
  11353. @param out OutputStream to write to
  11354. @param buffSize the size of the buffer]]>
  11355. </doc>
  11356. </method>
  11357. <method name="copyBytes"
  11358. abstract="false" native="false" synchronized="false"
  11359. static="true" final="false" visibility="public"
  11360. deprecated="not deprecated">
  11361. <param name="in" type="java.io.InputStream"/>
  11362. <param name="out" type="java.io.OutputStream"/>
  11363. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  11364. <exception name="IOException" type="java.io.IOException"/>
  11365. <doc>
  11366. <![CDATA[Copies from one stream to another. <strong>closes the input and output streams
  11367. at the end</strong>.
  11368. @param in InputStrem to read from
  11369. @param out OutputStream to write to
  11370. @param conf the Configuration object]]>
  11371. </doc>
  11372. </method>
  11373. <method name="copyBytes"
  11374. abstract="false" native="false" synchronized="false"
  11375. static="true" final="false" visibility="public"
  11376. deprecated="not deprecated">
  11377. <param name="in" type="java.io.InputStream"/>
  11378. <param name="out" type="java.io.OutputStream"/>
  11379. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  11380. <param name="close" type="boolean"/>
  11381. <exception name="IOException" type="java.io.IOException"/>
  11382. <doc>
  11383. <![CDATA[Copies from one stream to another.
  11384. @param in InputStrem to read from
  11385. @param out OutputStream to write to
  11386. @param conf the Configuration object
  11387. @param close whether or not close the InputStream and
  11388. OutputStream at the end. The streams are closed in the finally clause.]]>
  11389. </doc>
  11390. </method>
  11391. <method name="copyBytes"
  11392. abstract="false" native="false" synchronized="false"
  11393. static="true" final="false" visibility="public"
  11394. deprecated="not deprecated">
  11395. <param name="in" type="java.io.InputStream"/>
  11396. <param name="out" type="java.io.OutputStream"/>
  11397. <param name="length" type="long"/>
  11398. <param name="bufferSize" type="int"/>
  11399. <param name="close" type="boolean"/>
  11400. <exception name="IOException" type="java.io.IOException"/>
  11401. <doc>
  11402. <![CDATA[Copies the specified length of bytes from in to out.
  11403. @param in InputStream to read from
  11404. @param out OutputStream to write to
  11405. @param length number of bytes to copy
  11406. @param bufferSize the size of the buffer
  11407. @param close whether to close the streams
  11408. @throws IOException if bytes can not be read or written]]>
  11409. </doc>
  11410. </method>
  11411. <method name="wrappedReadForCompressedData" return="int"
  11412. abstract="false" native="false" synchronized="false"
  11413. static="true" final="false" visibility="public"
  11414. deprecated="not deprecated">
  11415. <param name="is" type="java.io.InputStream"/>
  11416. <param name="buf" type="byte[]"/>
  11417. <param name="off" type="int"/>
  11418. <param name="len" type="int"/>
  11419. <exception name="IOException" type="java.io.IOException"/>
  11420. <doc>
  11421. <![CDATA[Utility wrapper for reading from {@link InputStream}. It catches any errors
  11422. thrown by the underlying stream (either IO or decompression-related), and
  11423. re-throws as an IOException.
  11424. @param is - InputStream to be read from
  11425. @param buf - buffer the data is read into
  11426. @param off - offset within buf
  11427. @param len - amount of data to be read
  11428. @return number of bytes read]]>
  11429. </doc>
  11430. </method>
  11431. <method name="readFully"
  11432. abstract="false" native="false" synchronized="false"
  11433. static="true" final="false" visibility="public"
  11434. deprecated="not deprecated">
  11435. <param name="in" type="java.io.InputStream"/>
  11436. <param name="buf" type="byte[]"/>
  11437. <param name="off" type="int"/>
  11438. <param name="len" type="int"/>
  11439. <exception name="IOException" type="java.io.IOException"/>
  11440. <doc>
  11441. <![CDATA[Reads len bytes in a loop.
  11442. @param in The InputStream to read from
  11443. @param buf The buffer to fill
  11444. @param off offset from the buffer
  11445. @param len the length of bytes to read
  11446. @throws IOException if it could not read requested number of bytes
  11447. for any reason (including EOF)]]>
  11448. </doc>
  11449. </method>
  11450. <method name="readFileChannelFully"
  11451. abstract="false" native="false" synchronized="false"
  11452. static="true" final="false" visibility="public"
  11453. deprecated="not deprecated">
  11454. <param name="fileChannel" type="java.nio.channels.FileChannel"/>
  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 using the channel of the stream
  11461. @param fileChannel a FileChannel to read len bytes into buf
  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="skipFully"
  11470. abstract="false" native="false" synchronized="false"
  11471. static="true" final="false" visibility="public"
  11472. deprecated="not deprecated">
  11473. <param name="in" type="java.io.InputStream"/>
  11474. <param name="len" type="long"/>
  11475. <exception name="IOException" type="java.io.IOException"/>
  11476. <doc>
  11477. <![CDATA[Similar to readFully(). Skips bytes in a loop.
  11478. @param in The InputStream to skip bytes from
  11479. @param len number of bytes to skip.
  11480. @throws IOException if it could not skip requested number of bytes
  11481. for any reason (including EOF)]]>
  11482. </doc>
  11483. </method>
  11484. <method name="cleanup"
  11485. abstract="false" native="false" synchronized="false"
  11486. static="true" final="false" visibility="public"
  11487. deprecated="not deprecated">
  11488. <param name="log" type="org.apache.commons.logging.Log"/>
  11489. <param name="closeables" type="java.io.Closeable[]"/>
  11490. <doc>
  11491. <![CDATA[Close the Closeable objects and <b>ignore</b> any {@link IOException} or
  11492. null pointers. Must only be used for cleanup in exception handlers.
  11493. @param log the log to record problems to at debug level. Can be null.
  11494. @param closeables the objects to close]]>
  11495. </doc>
  11496. </method>
  11497. <method name="closeStream"
  11498. abstract="false" native="false" synchronized="false"
  11499. static="true" final="false" visibility="public"
  11500. deprecated="not deprecated">
  11501. <param name="stream" type="java.io.Closeable"/>
  11502. <doc>
  11503. <![CDATA[Closes the stream ignoring {@link IOException}.
  11504. Must only be called in cleaning up from exception handlers.
  11505. @param stream the Stream to close]]>
  11506. </doc>
  11507. </method>
  11508. <method name="closeSocket"
  11509. abstract="false" native="false" synchronized="false"
  11510. static="true" final="false" visibility="public"
  11511. deprecated="not deprecated">
  11512. <param name="sock" type="java.net.Socket"/>
  11513. <doc>
  11514. <![CDATA[Closes the socket ignoring {@link IOException}
  11515. @param sock the Socket to close]]>
  11516. </doc>
  11517. </method>
  11518. <doc>
  11519. <![CDATA[An utility class for I/O related functionality.]]>
  11520. </doc>
  11521. </class>
  11522. <!-- end class org.apache.hadoop.io.IOUtils -->
  11523. <!-- start class org.apache.hadoop.io.IOUtils.NullOutputStream -->
  11524. <class name="IOUtils.NullOutputStream" extends="java.io.OutputStream"
  11525. abstract="false"
  11526. static="true" final="false" visibility="public"
  11527. deprecated="not deprecated">
  11528. <constructor name="IOUtils.NullOutputStream"
  11529. static="false" final="false" visibility="public"
  11530. deprecated="not deprecated">
  11531. </constructor>
  11532. <method name="write"
  11533. abstract="false" native="false" synchronized="false"
  11534. static="false" final="false" visibility="public"
  11535. deprecated="not deprecated">
  11536. <param name="b" type="byte[]"/>
  11537. <param name="off" type="int"/>
  11538. <param name="len" type="int"/>
  11539. <exception name="IOException" type="java.io.IOException"/>
  11540. </method>
  11541. <method name="write"
  11542. abstract="false" native="false" synchronized="false"
  11543. static="false" final="false" visibility="public"
  11544. deprecated="not deprecated">
  11545. <param name="b" type="int"/>
  11546. <exception name="IOException" type="java.io.IOException"/>
  11547. </method>
  11548. <doc>
  11549. <![CDATA[/dev/null of OutputStreams.]]>
  11550. </doc>
  11551. </class>
  11552. <!-- end class org.apache.hadoop.io.IOUtils.NullOutputStream -->
  11553. <!-- start class org.apache.hadoop.io.LongWritable -->
  11554. <class name="LongWritable" extends="java.lang.Object"
  11555. abstract="false"
  11556. static="false" final="false" visibility="public"
  11557. deprecated="not deprecated">
  11558. <implements name="org.apache.hadoop.io.WritableComparable"/>
  11559. <constructor name="LongWritable"
  11560. static="false" final="false" visibility="public"
  11561. deprecated="not deprecated">
  11562. </constructor>
  11563. <constructor name="LongWritable" type="long"
  11564. static="false" final="false" visibility="public"
  11565. deprecated="not deprecated">
  11566. </constructor>
  11567. <method name="set"
  11568. abstract="false" native="false" synchronized="false"
  11569. static="false" final="false" visibility="public"
  11570. deprecated="not deprecated">
  11571. <param name="value" type="long"/>
  11572. <doc>
  11573. <![CDATA[Set the value of this LongWritable.]]>
  11574. </doc>
  11575. </method>
  11576. <method name="get" return="long"
  11577. abstract="false" native="false" synchronized="false"
  11578. static="false" final="false" visibility="public"
  11579. deprecated="not deprecated">
  11580. <doc>
  11581. <![CDATA[Return the value of this LongWritable.]]>
  11582. </doc>
  11583. </method>
  11584. <method name="readFields"
  11585. abstract="false" native="false" synchronized="false"
  11586. static="false" final="false" visibility="public"
  11587. deprecated="not deprecated">
  11588. <param name="in" type="java.io.DataInput"/>
  11589. <exception name="IOException" type="java.io.IOException"/>
  11590. </method>
  11591. <method name="write"
  11592. abstract="false" native="false" synchronized="false"
  11593. static="false" final="false" visibility="public"
  11594. deprecated="not deprecated">
  11595. <param name="out" type="java.io.DataOutput"/>
  11596. <exception name="IOException" type="java.io.IOException"/>
  11597. </method>
  11598. <method name="equals" return="boolean"
  11599. abstract="false" native="false" synchronized="false"
  11600. static="false" final="false" visibility="public"
  11601. deprecated="not deprecated">
  11602. <param name="o" type="java.lang.Object"/>
  11603. <doc>
  11604. <![CDATA[Returns true iff <code>o</code> is a LongWritable with the same value.]]>
  11605. </doc>
  11606. </method>
  11607. <method name="hashCode" return="int"
  11608. abstract="false" native="false" synchronized="false"
  11609. static="false" final="false" visibility="public"
  11610. deprecated="not deprecated">
  11611. </method>
  11612. <method name="compareTo" return="int"
  11613. abstract="false" native="false" synchronized="false"
  11614. static="false" final="false" visibility="public"
  11615. deprecated="not deprecated">
  11616. <param name="o" type="java.lang.Object"/>
  11617. <doc>
  11618. <![CDATA[Compares two LongWritables.]]>
  11619. </doc>
  11620. </method>
  11621. <method name="toString" return="java.lang.String"
  11622. abstract="false" native="false" synchronized="false"
  11623. static="false" final="false" visibility="public"
  11624. deprecated="not deprecated">
  11625. </method>
  11626. <doc>
  11627. <![CDATA[A WritableComparable for longs.]]>
  11628. </doc>
  11629. </class>
  11630. <!-- end class org.apache.hadoop.io.LongWritable -->
  11631. <!-- start class org.apache.hadoop.io.LongWritable.Comparator -->
  11632. <class name="LongWritable.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  11633. abstract="false"
  11634. static="true" final="false" visibility="public"
  11635. deprecated="not deprecated">
  11636. <constructor name="LongWritable.Comparator"
  11637. static="false" final="false" visibility="public"
  11638. deprecated="not deprecated">
  11639. </constructor>
  11640. <method name="compare" return="int"
  11641. abstract="false" native="false" synchronized="false"
  11642. static="false" final="false" visibility="public"
  11643. deprecated="not deprecated">
  11644. <param name="b1" type="byte[]"/>
  11645. <param name="s1" type="int"/>
  11646. <param name="l1" type="int"/>
  11647. <param name="b2" type="byte[]"/>
  11648. <param name="s2" type="int"/>
  11649. <param name="l2" type="int"/>
  11650. </method>
  11651. <doc>
  11652. <![CDATA[A Comparator optimized for LongWritable.]]>
  11653. </doc>
  11654. </class>
  11655. <!-- end class org.apache.hadoop.io.LongWritable.Comparator -->
  11656. <!-- start class org.apache.hadoop.io.LongWritable.DecreasingComparator -->
  11657. <class name="LongWritable.DecreasingComparator" extends="org.apache.hadoop.io.LongWritable.Comparator"
  11658. abstract="false"
  11659. static="true" final="false" visibility="public"
  11660. deprecated="not deprecated">
  11661. <constructor name="LongWritable.DecreasingComparator"
  11662. static="false" final="false" visibility="public"
  11663. deprecated="not deprecated">
  11664. </constructor>
  11665. <method name="compare" return="int"
  11666. abstract="false" native="false" synchronized="false"
  11667. static="false" final="false" visibility="public"
  11668. deprecated="not deprecated">
  11669. <param name="a" type="org.apache.hadoop.io.WritableComparable"/>
  11670. <param name="b" type="org.apache.hadoop.io.WritableComparable"/>
  11671. </method>
  11672. <method name="compare" return="int"
  11673. abstract="false" native="false" synchronized="false"
  11674. static="false" final="false" visibility="public"
  11675. deprecated="not deprecated">
  11676. <param name="b1" type="byte[]"/>
  11677. <param name="s1" type="int"/>
  11678. <param name="l1" type="int"/>
  11679. <param name="b2" type="byte[]"/>
  11680. <param name="s2" type="int"/>
  11681. <param name="l2" type="int"/>
  11682. </method>
  11683. <doc>
  11684. <![CDATA[A decreasing Comparator optimized for LongWritable.]]>
  11685. </doc>
  11686. </class>
  11687. <!-- end class org.apache.hadoop.io.LongWritable.DecreasingComparator -->
  11688. <!-- start class org.apache.hadoop.io.MapFile -->
  11689. <class name="MapFile" extends="java.lang.Object"
  11690. abstract="false"
  11691. static="false" final="false" visibility="public"
  11692. deprecated="not deprecated">
  11693. <constructor name="MapFile"
  11694. static="false" final="false" visibility="protected"
  11695. deprecated="not deprecated">
  11696. </constructor>
  11697. <method name="rename"
  11698. abstract="false" native="false" synchronized="false"
  11699. static="true" final="false" visibility="public"
  11700. deprecated="not deprecated">
  11701. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  11702. <param name="oldName" type="java.lang.String"/>
  11703. <param name="newName" type="java.lang.String"/>
  11704. <exception name="IOException" type="java.io.IOException"/>
  11705. <doc>
  11706. <![CDATA[Renames an existing map directory.]]>
  11707. </doc>
  11708. </method>
  11709. <method name="delete"
  11710. abstract="false" native="false" synchronized="false"
  11711. static="true" final="false" visibility="public"
  11712. deprecated="not deprecated">
  11713. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  11714. <param name="name" type="java.lang.String"/>
  11715. <exception name="IOException" type="java.io.IOException"/>
  11716. <doc>
  11717. <![CDATA[Deletes the named map file.]]>
  11718. </doc>
  11719. </method>
  11720. <method name="fix" return="long"
  11721. abstract="false" native="false" synchronized="false"
  11722. static="true" final="false" visibility="public"
  11723. deprecated="not deprecated">
  11724. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  11725. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  11726. <param name="keyClass" type="java.lang.Class"/>
  11727. <param name="valueClass" type="java.lang.Class"/>
  11728. <param name="dryrun" type="boolean"/>
  11729. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  11730. <exception name="Exception" type="java.lang.Exception"/>
  11731. <doc>
  11732. <![CDATA[This method attempts to fix a corrupt MapFile by re-creating its index.
  11733. @param fs filesystem
  11734. @param dir directory containing the MapFile data and index
  11735. @param keyClass key class (has to be a subclass of Writable)
  11736. @param valueClass value class (has to be a subclass of Writable)
  11737. @param dryrun do not perform any changes, just report what needs to be done
  11738. @return number of valid entries in this MapFile, or -1 if no fixing was needed
  11739. @throws Exception]]>
  11740. </doc>
  11741. </method>
  11742. <method name="main"
  11743. abstract="false" native="false" synchronized="false"
  11744. static="true" final="false" visibility="public"
  11745. deprecated="not deprecated">
  11746. <param name="args" type="java.lang.String[]"/>
  11747. <exception name="Exception" type="java.lang.Exception"/>
  11748. </method>
  11749. <field name="INDEX_FILE_NAME" type="java.lang.String"
  11750. transient="false" volatile="false"
  11751. static="true" final="true" visibility="public"
  11752. deprecated="not deprecated">
  11753. <doc>
  11754. <![CDATA[The name of the index file.]]>
  11755. </doc>
  11756. </field>
  11757. <field name="DATA_FILE_NAME" type="java.lang.String"
  11758. transient="false" volatile="false"
  11759. static="true" final="true" visibility="public"
  11760. deprecated="not deprecated">
  11761. <doc>
  11762. <![CDATA[The name of the data file.]]>
  11763. </doc>
  11764. </field>
  11765. <doc>
  11766. <![CDATA[A file-based map from keys to values.
  11767. <p>A map is a directory containing two files, the <code>data</code> file,
  11768. containing all keys and values in the map, and a smaller <code>index</code>
  11769. file, containing a fraction of the keys. The fraction is determined by
  11770. {@link Writer#getIndexInterval()}.
  11771. <p>The index file is read entirely into memory. Thus key implementations
  11772. should try to keep themselves small.
  11773. <p>Map files are created by adding entries in-order. To maintain a large
  11774. database, perform updates by copying the previous version of a database and
  11775. merging in a sorted change list, to create a new version of the database in
  11776. a new file. Sorting large change lists can be done with {@link
  11777. SequenceFile.Sorter}.]]>
  11778. </doc>
  11779. </class>
  11780. <!-- end class org.apache.hadoop.io.MapFile -->
  11781. <!-- start class org.apache.hadoop.io.MapFile.Reader -->
  11782. <class name="MapFile.Reader" extends="java.lang.Object"
  11783. abstract="false"
  11784. static="true" final="false" visibility="public"
  11785. deprecated="not deprecated">
  11786. <implements name="java.io.Closeable"/>
  11787. <constructor name="MapFile.Reader" type="org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.conf.Configuration"
  11788. static="false" final="false" visibility="public"
  11789. deprecated="not deprecated">
  11790. <exception name="IOException" type="java.io.IOException"/>
  11791. <doc>
  11792. <![CDATA[Construct a map reader for the named map.]]>
  11793. </doc>
  11794. </constructor>
  11795. <constructor name="MapFile.Reader" type="org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.io.WritableComparator, org.apache.hadoop.conf.Configuration"
  11796. static="false" final="false" visibility="public"
  11797. deprecated="not deprecated">
  11798. <exception name="IOException" type="java.io.IOException"/>
  11799. <doc>
  11800. <![CDATA[Construct a map reader for the named map using the named comparator.]]>
  11801. </doc>
  11802. </constructor>
  11803. <constructor name="MapFile.Reader" type="org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.io.WritableComparator, org.apache.hadoop.conf.Configuration, boolean"
  11804. static="false" final="false" visibility="protected"
  11805. deprecated="not deprecated">
  11806. <exception name="IOException" type="java.io.IOException"/>
  11807. <doc>
  11808. <![CDATA[Hook to allow subclasses to defer opening streams until further
  11809. initialization is complete.
  11810. @see #createDataFileReader(FileSystem, Path, Configuration)]]>
  11811. </doc>
  11812. </constructor>
  11813. <method name="getKeyClass" return="java.lang.Class"
  11814. abstract="false" native="false" synchronized="false"
  11815. static="false" final="false" visibility="public"
  11816. deprecated="not deprecated">
  11817. <doc>
  11818. <![CDATA[Returns the class of keys in this file.]]>
  11819. </doc>
  11820. </method>
  11821. <method name="getValueClass" return="java.lang.Class"
  11822. abstract="false" native="false" synchronized="false"
  11823. static="false" final="false" visibility="public"
  11824. deprecated="not deprecated">
  11825. <doc>
  11826. <![CDATA[Returns the class of values in this file.]]>
  11827. </doc>
  11828. </method>
  11829. <method name="open"
  11830. abstract="false" native="false" synchronized="true"
  11831. static="false" final="false" visibility="protected"
  11832. deprecated="not deprecated">
  11833. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  11834. <param name="dirName" type="java.lang.String"/>
  11835. <param name="comparator" type="org.apache.hadoop.io.WritableComparator"/>
  11836. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  11837. <exception name="IOException" type="java.io.IOException"/>
  11838. </method>
  11839. <method name="createDataFileReader" return="org.apache.hadoop.io.SequenceFile.Reader"
  11840. abstract="false" native="false" synchronized="false"
  11841. static="false" final="false" visibility="protected"
  11842. deprecated="not deprecated">
  11843. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  11844. <param name="dataFile" type="org.apache.hadoop.fs.Path"/>
  11845. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  11846. <exception name="IOException" type="java.io.IOException"/>
  11847. <doc>
  11848. <![CDATA[Override this method to specialize the type of
  11849. {@link SequenceFile.Reader} returned.]]>
  11850. </doc>
  11851. </method>
  11852. <method name="reset"
  11853. abstract="false" native="false" synchronized="true"
  11854. static="false" final="false" visibility="public"
  11855. deprecated="not deprecated">
  11856. <exception name="IOException" type="java.io.IOException"/>
  11857. <doc>
  11858. <![CDATA[Re-positions the reader before its first key.]]>
  11859. </doc>
  11860. </method>
  11861. <method name="midKey" return="org.apache.hadoop.io.WritableComparable"
  11862. abstract="false" native="false" synchronized="true"
  11863. static="false" final="false" visibility="public"
  11864. deprecated="not deprecated">
  11865. <exception name="IOException" type="java.io.IOException"/>
  11866. <doc>
  11867. <![CDATA[Get the key at approximately the middle of the file.
  11868. @throws IOException]]>
  11869. </doc>
  11870. </method>
  11871. <method name="finalKey"
  11872. abstract="false" native="false" synchronized="true"
  11873. static="false" final="false" visibility="public"
  11874. deprecated="not deprecated">
  11875. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  11876. <exception name="IOException" type="java.io.IOException"/>
  11877. <doc>
  11878. <![CDATA[Reads the final key from the file.
  11879. @param key key to read into]]>
  11880. </doc>
  11881. </method>
  11882. <method name="seek" return="boolean"
  11883. abstract="false" native="false" synchronized="true"
  11884. static="false" final="false" visibility="public"
  11885. deprecated="not deprecated">
  11886. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  11887. <exception name="IOException" type="java.io.IOException"/>
  11888. <doc>
  11889. <![CDATA[Positions the reader at the named key, or if none such exists, at the
  11890. first entry after the named key. Returns true iff the named key exists
  11891. in this map.]]>
  11892. </doc>
  11893. </method>
  11894. <method name="next" return="boolean"
  11895. abstract="false" native="false" synchronized="true"
  11896. static="false" final="false" visibility="public"
  11897. deprecated="not deprecated">
  11898. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  11899. <param name="val" type="org.apache.hadoop.io.Writable"/>
  11900. <exception name="IOException" type="java.io.IOException"/>
  11901. <doc>
  11902. <![CDATA[Read the next key/value pair in the map into <code>key</code> and
  11903. <code>val</code>. Returns true if such a pair exists and false when at
  11904. the end of the map]]>
  11905. </doc>
  11906. </method>
  11907. <method name="get" return="org.apache.hadoop.io.Writable"
  11908. abstract="false" native="false" synchronized="true"
  11909. static="false" final="false" visibility="public"
  11910. deprecated="not deprecated">
  11911. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  11912. <param name="val" type="org.apache.hadoop.io.Writable"/>
  11913. <exception name="IOException" type="java.io.IOException"/>
  11914. <doc>
  11915. <![CDATA[Return the value for the named key, or null if none exists.]]>
  11916. </doc>
  11917. </method>
  11918. <method name="getClosest" return="org.apache.hadoop.io.WritableComparable"
  11919. abstract="false" native="false" synchronized="true"
  11920. static="false" final="false" visibility="public"
  11921. deprecated="not deprecated">
  11922. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  11923. <param name="val" type="org.apache.hadoop.io.Writable"/>
  11924. <exception name="IOException" type="java.io.IOException"/>
  11925. <doc>
  11926. <![CDATA[Finds the record that is the closest match to the specified key.
  11927. Returns <code>key</code> or if it does not exist, at the first entry
  11928. after the named key.
  11929. - * @param key - key that we're trying to find
  11930. - * @param val - data value if key is found
  11931. - * @return - the key that was the closest match or null if eof.]]>
  11932. </doc>
  11933. </method>
  11934. <method name="getClosest" return="org.apache.hadoop.io.WritableComparable"
  11935. abstract="false" native="false" synchronized="true"
  11936. static="false" final="false" visibility="public"
  11937. deprecated="not deprecated">
  11938. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  11939. <param name="val" type="org.apache.hadoop.io.Writable"/>
  11940. <param name="before" type="boolean"/>
  11941. <exception name="IOException" type="java.io.IOException"/>
  11942. <doc>
  11943. <![CDATA[Finds the record that is the closest match to the specified key.
  11944. @param key - key that we're trying to find
  11945. @param val - data value if key is found
  11946. @param before - IF true, and <code>key</code> does not exist, return
  11947. the first entry that falls just before the <code>key</code>. Otherwise,
  11948. return the record that sorts just after.
  11949. @return - the key that was the closest match or null if eof.]]>
  11950. </doc>
  11951. </method>
  11952. <method name="close"
  11953. abstract="false" native="false" synchronized="true"
  11954. static="false" final="false" visibility="public"
  11955. deprecated="not deprecated">
  11956. <exception name="IOException" type="java.io.IOException"/>
  11957. <doc>
  11958. <![CDATA[Close the map.]]>
  11959. </doc>
  11960. </method>
  11961. <doc>
  11962. <![CDATA[Provide access to an existing map.]]>
  11963. </doc>
  11964. </class>
  11965. <!-- end class org.apache.hadoop.io.MapFile.Reader -->
  11966. <!-- start class org.apache.hadoop.io.MapFile.Writer -->
  11967. <class name="MapFile.Writer" extends="java.lang.Object"
  11968. abstract="false"
  11969. static="true" final="false" visibility="public"
  11970. deprecated="not deprecated">
  11971. <implements name="java.io.Closeable"/>
  11972. <constructor name="MapFile.Writer" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.FileSystem, java.lang.String, java.lang.Class, java.lang.Class"
  11973. static="false" final="false" visibility="public"
  11974. deprecated="not deprecated">
  11975. <exception name="IOException" type="java.io.IOException"/>
  11976. <doc>
  11977. <![CDATA[Create the named map for keys of the named class.]]>
  11978. </doc>
  11979. </constructor>
  11980. <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"
  11981. static="false" final="false" visibility="public"
  11982. deprecated="not deprecated">
  11983. <exception name="IOException" type="java.io.IOException"/>
  11984. <doc>
  11985. <![CDATA[Create the named map for keys of the named class.]]>
  11986. </doc>
  11987. </constructor>
  11988. <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"
  11989. static="false" final="false" visibility="public"
  11990. deprecated="not deprecated">
  11991. <exception name="IOException" type="java.io.IOException"/>
  11992. <doc>
  11993. <![CDATA[Create the named map for keys of the named class.]]>
  11994. </doc>
  11995. </constructor>
  11996. <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"
  11997. static="false" final="false" visibility="public"
  11998. deprecated="not deprecated">
  11999. <exception name="IOException" type="java.io.IOException"/>
  12000. <doc>
  12001. <![CDATA[Create the named map for keys of the named class.]]>
  12002. </doc>
  12003. </constructor>
  12004. <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"
  12005. static="false" final="false" visibility="public"
  12006. deprecated="not deprecated">
  12007. <exception name="IOException" type="java.io.IOException"/>
  12008. <doc>
  12009. <![CDATA[Create the named map using the named key comparator.]]>
  12010. </doc>
  12011. </constructor>
  12012. <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"
  12013. static="false" final="false" visibility="public"
  12014. deprecated="not deprecated">
  12015. <exception name="IOException" type="java.io.IOException"/>
  12016. <doc>
  12017. <![CDATA[Create the named map using the named key comparator.]]>
  12018. </doc>
  12019. </constructor>
  12020. <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"
  12021. static="false" final="false" visibility="public"
  12022. deprecated="not deprecated">
  12023. <exception name="IOException" type="java.io.IOException"/>
  12024. <doc>
  12025. <![CDATA[Create the named map using the named key comparator.]]>
  12026. </doc>
  12027. </constructor>
  12028. <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"
  12029. static="false" final="false" visibility="public"
  12030. deprecated="not deprecated">
  12031. <exception name="IOException" type="java.io.IOException"/>
  12032. <doc>
  12033. <![CDATA[Create the named map using the named key comparator.]]>
  12034. </doc>
  12035. </constructor>
  12036. <method name="getIndexInterval" return="int"
  12037. abstract="false" native="false" synchronized="false"
  12038. static="false" final="false" visibility="public"
  12039. deprecated="not deprecated">
  12040. <doc>
  12041. <![CDATA[The number of entries that are added before an index entry is added.]]>
  12042. </doc>
  12043. </method>
  12044. <method name="setIndexInterval"
  12045. abstract="false" native="false" synchronized="false"
  12046. static="false" final="false" visibility="public"
  12047. deprecated="not deprecated">
  12048. <param name="interval" type="int"/>
  12049. <doc>
  12050. <![CDATA[Sets the index interval.
  12051. @see #getIndexInterval()]]>
  12052. </doc>
  12053. </method>
  12054. <method name="setIndexInterval"
  12055. abstract="false" native="false" synchronized="false"
  12056. static="true" final="false" visibility="public"
  12057. deprecated="not deprecated">
  12058. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  12059. <param name="interval" type="int"/>
  12060. <doc>
  12061. <![CDATA[Sets the index interval and stores it in conf
  12062. @see #getIndexInterval()]]>
  12063. </doc>
  12064. </method>
  12065. <method name="close"
  12066. abstract="false" native="false" synchronized="true"
  12067. static="false" final="false" visibility="public"
  12068. deprecated="not deprecated">
  12069. <exception name="IOException" type="java.io.IOException"/>
  12070. <doc>
  12071. <![CDATA[Close the map.]]>
  12072. </doc>
  12073. </method>
  12074. <method name="append"
  12075. abstract="false" native="false" synchronized="true"
  12076. static="false" final="false" visibility="public"
  12077. deprecated="not deprecated">
  12078. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  12079. <param name="val" type="org.apache.hadoop.io.Writable"/>
  12080. <exception name="IOException" type="java.io.IOException"/>
  12081. <doc>
  12082. <![CDATA[Append a key/value pair to the map. The key must be greater or equal
  12083. to the previous key added to the map.]]>
  12084. </doc>
  12085. </method>
  12086. <doc>
  12087. <![CDATA[Writes a new map.]]>
  12088. </doc>
  12089. </class>
  12090. <!-- end class org.apache.hadoop.io.MapFile.Writer -->
  12091. <!-- start class org.apache.hadoop.io.MapWritable -->
  12092. <class name="MapWritable" extends="org.apache.hadoop.io.AbstractMapWritable"
  12093. abstract="false"
  12094. static="false" final="false" visibility="public"
  12095. deprecated="not deprecated">
  12096. <implements name="java.util.Map"/>
  12097. <constructor name="MapWritable"
  12098. static="false" final="false" visibility="public"
  12099. deprecated="not deprecated">
  12100. <doc>
  12101. <![CDATA[Default constructor.]]>
  12102. </doc>
  12103. </constructor>
  12104. <constructor name="MapWritable" type="org.apache.hadoop.io.MapWritable"
  12105. static="false" final="false" visibility="public"
  12106. deprecated="not deprecated">
  12107. <doc>
  12108. <![CDATA[Copy constructor.
  12109. @param other the map to copy from]]>
  12110. </doc>
  12111. </constructor>
  12112. <method name="clear"
  12113. abstract="false" native="false" synchronized="false"
  12114. static="false" final="false" visibility="public"
  12115. deprecated="not deprecated">
  12116. <doc>
  12117. <![CDATA[{@inheritDoc}]]>
  12118. </doc>
  12119. </method>
  12120. <method name="containsKey" return="boolean"
  12121. abstract="false" native="false" synchronized="false"
  12122. static="false" final="false" visibility="public"
  12123. deprecated="not deprecated">
  12124. <param name="key" type="java.lang.Object"/>
  12125. <doc>
  12126. <![CDATA[{@inheritDoc}]]>
  12127. </doc>
  12128. </method>
  12129. <method name="containsValue" return="boolean"
  12130. abstract="false" native="false" synchronized="false"
  12131. static="false" final="false" visibility="public"
  12132. deprecated="not deprecated">
  12133. <param name="value" type="java.lang.Object"/>
  12134. <doc>
  12135. <![CDATA[{@inheritDoc}]]>
  12136. </doc>
  12137. </method>
  12138. <method name="entrySet" return="java.util.Set"
  12139. abstract="false" native="false" synchronized="false"
  12140. static="false" final="false" visibility="public"
  12141. deprecated="not deprecated">
  12142. <doc>
  12143. <![CDATA[{@inheritDoc}]]>
  12144. </doc>
  12145. </method>
  12146. <method name="get" return="org.apache.hadoop.io.Writable"
  12147. abstract="false" native="false" synchronized="false"
  12148. static="false" final="false" visibility="public"
  12149. deprecated="not deprecated">
  12150. <param name="key" type="java.lang.Object"/>
  12151. <doc>
  12152. <![CDATA[{@inheritDoc}]]>
  12153. </doc>
  12154. </method>
  12155. <method name="isEmpty" return="boolean"
  12156. abstract="false" native="false" synchronized="false"
  12157. static="false" final="false" visibility="public"
  12158. deprecated="not deprecated">
  12159. <doc>
  12160. <![CDATA[{@inheritDoc}]]>
  12161. </doc>
  12162. </method>
  12163. <method name="keySet" return="java.util.Set"
  12164. abstract="false" native="false" synchronized="false"
  12165. static="false" final="false" visibility="public"
  12166. deprecated="not deprecated">
  12167. <doc>
  12168. <![CDATA[{@inheritDoc}]]>
  12169. </doc>
  12170. </method>
  12171. <method name="put" return="org.apache.hadoop.io.Writable"
  12172. abstract="false" native="false" synchronized="false"
  12173. static="false" final="false" visibility="public"
  12174. deprecated="not deprecated">
  12175. <param name="key" type="org.apache.hadoop.io.Writable"/>
  12176. <param name="value" type="org.apache.hadoop.io.Writable"/>
  12177. <doc>
  12178. <![CDATA[{@inheritDoc}]]>
  12179. </doc>
  12180. </method>
  12181. <method name="putAll"
  12182. abstract="false" native="false" synchronized="false"
  12183. static="false" final="false" visibility="public"
  12184. deprecated="not deprecated">
  12185. <param name="t" type="java.util.Map"/>
  12186. <doc>
  12187. <![CDATA[{@inheritDoc}]]>
  12188. </doc>
  12189. </method>
  12190. <method name="remove" 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="java.lang.Object"/>
  12195. <doc>
  12196. <![CDATA[{@inheritDoc}]]>
  12197. </doc>
  12198. </method>
  12199. <method name="size" return="int"
  12200. abstract="false" native="false" synchronized="false"
  12201. static="false" final="false" visibility="public"
  12202. deprecated="not deprecated">
  12203. <doc>
  12204. <![CDATA[{@inheritDoc}]]>
  12205. </doc>
  12206. </method>
  12207. <method name="values" return="java.util.Collection"
  12208. abstract="false" native="false" synchronized="false"
  12209. static="false" final="false" visibility="public"
  12210. deprecated="not deprecated">
  12211. <doc>
  12212. <![CDATA[{@inheritDoc}]]>
  12213. </doc>
  12214. </method>
  12215. <method name="write"
  12216. abstract="false" native="false" synchronized="false"
  12217. static="false" final="false" visibility="public"
  12218. deprecated="not deprecated">
  12219. <param name="out" type="java.io.DataOutput"/>
  12220. <exception name="IOException" type="java.io.IOException"/>
  12221. <doc>
  12222. <![CDATA[{@inheritDoc}]]>
  12223. </doc>
  12224. </method>
  12225. <method name="readFields"
  12226. abstract="false" native="false" synchronized="false"
  12227. static="false" final="false" visibility="public"
  12228. deprecated="not deprecated">
  12229. <param name="in" type="java.io.DataInput"/>
  12230. <exception name="IOException" type="java.io.IOException"/>
  12231. <doc>
  12232. <![CDATA[{@inheritDoc}]]>
  12233. </doc>
  12234. </method>
  12235. <doc>
  12236. <![CDATA[A Writable Map.]]>
  12237. </doc>
  12238. </class>
  12239. <!-- end class org.apache.hadoop.io.MapWritable -->
  12240. <!-- start class org.apache.hadoop.io.MD5Hash -->
  12241. <class name="MD5Hash" extends="java.lang.Object"
  12242. abstract="false"
  12243. static="false" final="false" visibility="public"
  12244. deprecated="not deprecated">
  12245. <implements name="org.apache.hadoop.io.WritableComparable"/>
  12246. <constructor name="MD5Hash"
  12247. static="false" final="false" visibility="public"
  12248. deprecated="not deprecated">
  12249. <doc>
  12250. <![CDATA[Constructs an MD5Hash.]]>
  12251. </doc>
  12252. </constructor>
  12253. <constructor name="MD5Hash" type="java.lang.String"
  12254. static="false" final="false" visibility="public"
  12255. deprecated="not deprecated">
  12256. <doc>
  12257. <![CDATA[Constructs an MD5Hash from a hex string.]]>
  12258. </doc>
  12259. </constructor>
  12260. <constructor name="MD5Hash" type="byte[]"
  12261. static="false" final="false" visibility="public"
  12262. deprecated="not deprecated">
  12263. <doc>
  12264. <![CDATA[Constructs an MD5Hash with a specified value.]]>
  12265. </doc>
  12266. </constructor>
  12267. <method name="readFields"
  12268. abstract="false" native="false" synchronized="false"
  12269. static="false" final="false" visibility="public"
  12270. deprecated="not deprecated">
  12271. <param name="in" type="java.io.DataInput"/>
  12272. <exception name="IOException" type="java.io.IOException"/>
  12273. </method>
  12274. <method name="read" return="org.apache.hadoop.io.MD5Hash"
  12275. abstract="false" native="false" synchronized="false"
  12276. static="true" final="false" visibility="public"
  12277. deprecated="not deprecated">
  12278. <param name="in" type="java.io.DataInput"/>
  12279. <exception name="IOException" type="java.io.IOException"/>
  12280. <doc>
  12281. <![CDATA[Constructs, reads and returns an instance.]]>
  12282. </doc>
  12283. </method>
  12284. <method name="write"
  12285. abstract="false" native="false" synchronized="false"
  12286. static="false" final="false" visibility="public"
  12287. deprecated="not deprecated">
  12288. <param name="out" type="java.io.DataOutput"/>
  12289. <exception name="IOException" type="java.io.IOException"/>
  12290. </method>
  12291. <method name="set"
  12292. abstract="false" native="false" synchronized="false"
  12293. static="false" final="false" visibility="public"
  12294. deprecated="not deprecated">
  12295. <param name="that" type="org.apache.hadoop.io.MD5Hash"/>
  12296. <doc>
  12297. <![CDATA[Copy the contents of another instance into this instance.]]>
  12298. </doc>
  12299. </method>
  12300. <method name="getDigest" return="byte[]"
  12301. abstract="false" native="false" synchronized="false"
  12302. static="false" final="false" visibility="public"
  12303. deprecated="not deprecated">
  12304. <doc>
  12305. <![CDATA[Returns the digest bytes.]]>
  12306. </doc>
  12307. </method>
  12308. <method name="digest" return="org.apache.hadoop.io.MD5Hash"
  12309. abstract="false" native="false" synchronized="false"
  12310. static="true" final="false" visibility="public"
  12311. deprecated="not deprecated">
  12312. <param name="data" type="byte[]"/>
  12313. <doc>
  12314. <![CDATA[Construct a hash value for a byte array.]]>
  12315. </doc>
  12316. </method>
  12317. <method name="getDigester" return="java.security.MessageDigest"
  12318. abstract="false" native="false" synchronized="false"
  12319. static="true" final="false" visibility="public"
  12320. deprecated="not deprecated">
  12321. <doc>
  12322. <![CDATA[Create a thread local MD5 digester]]>
  12323. </doc>
  12324. </method>
  12325. <method name="digest" return="org.apache.hadoop.io.MD5Hash"
  12326. abstract="false" native="false" synchronized="false"
  12327. static="true" final="false" visibility="public"
  12328. deprecated="not deprecated">
  12329. <param name="in" type="java.io.InputStream"/>
  12330. <exception name="IOException" type="java.io.IOException"/>
  12331. <doc>
  12332. <![CDATA[Construct a hash value for the content from the InputStream.]]>
  12333. </doc>
  12334. </method>
  12335. <method name="digest" return="org.apache.hadoop.io.MD5Hash"
  12336. abstract="false" native="false" synchronized="false"
  12337. static="true" final="false" visibility="public"
  12338. deprecated="not deprecated">
  12339. <param name="data" type="byte[]"/>
  12340. <param name="start" type="int"/>
  12341. <param name="len" type="int"/>
  12342. <doc>
  12343. <![CDATA[Construct a hash value for a byte array.]]>
  12344. </doc>
  12345. </method>
  12346. <method name="digest" return="org.apache.hadoop.io.MD5Hash"
  12347. abstract="false" native="false" synchronized="false"
  12348. static="true" final="false" visibility="public"
  12349. deprecated="not deprecated">
  12350. <param name="string" type="java.lang.String"/>
  12351. <doc>
  12352. <![CDATA[Construct a hash value for a String.]]>
  12353. </doc>
  12354. </method>
  12355. <method name="digest" return="org.apache.hadoop.io.MD5Hash"
  12356. abstract="false" native="false" synchronized="false"
  12357. static="true" final="false" visibility="public"
  12358. deprecated="not deprecated">
  12359. <param name="utf8" type="org.apache.hadoop.io.UTF8"/>
  12360. <doc>
  12361. <![CDATA[Construct a hash value for a String.]]>
  12362. </doc>
  12363. </method>
  12364. <method name="halfDigest" return="long"
  12365. abstract="false" native="false" synchronized="false"
  12366. static="false" final="false" visibility="public"
  12367. deprecated="not deprecated">
  12368. <doc>
  12369. <![CDATA[Construct a half-sized version of this MD5. Fits in a long]]>
  12370. </doc>
  12371. </method>
  12372. <method name="quarterDigest" return="int"
  12373. abstract="false" native="false" synchronized="false"
  12374. static="false" final="false" visibility="public"
  12375. deprecated="not deprecated">
  12376. <doc>
  12377. <![CDATA[Return a 32-bit digest of the MD5.
  12378. @return the first 4 bytes of the md5]]>
  12379. </doc>
  12380. </method>
  12381. <method name="equals" return="boolean"
  12382. abstract="false" native="false" synchronized="false"
  12383. static="false" final="false" visibility="public"
  12384. deprecated="not deprecated">
  12385. <param name="o" type="java.lang.Object"/>
  12386. <doc>
  12387. <![CDATA[Returns true iff <code>o</code> is an MD5Hash whose digest contains the
  12388. same values.]]>
  12389. </doc>
  12390. </method>
  12391. <method name="hashCode" return="int"
  12392. abstract="false" native="false" synchronized="false"
  12393. static="false" final="false" visibility="public"
  12394. deprecated="not deprecated">
  12395. <doc>
  12396. <![CDATA[Returns a hash code value for this object.
  12397. Only uses the first 4 bytes, since md5s are evenly distributed.]]>
  12398. </doc>
  12399. </method>
  12400. <method name="compareTo" return="int"
  12401. abstract="false" native="false" synchronized="false"
  12402. static="false" final="false" visibility="public"
  12403. deprecated="not deprecated">
  12404. <param name="that" type="org.apache.hadoop.io.MD5Hash"/>
  12405. <doc>
  12406. <![CDATA[Compares this object with the specified object for order.]]>
  12407. </doc>
  12408. </method>
  12409. <method name="toString" return="java.lang.String"
  12410. abstract="false" native="false" synchronized="false"
  12411. static="false" final="false" visibility="public"
  12412. deprecated="not deprecated">
  12413. <doc>
  12414. <![CDATA[Returns a string representation of this object.]]>
  12415. </doc>
  12416. </method>
  12417. <method name="setDigest"
  12418. abstract="false" native="false" synchronized="false"
  12419. static="false" final="false" visibility="public"
  12420. deprecated="not deprecated">
  12421. <param name="hex" type="java.lang.String"/>
  12422. <doc>
  12423. <![CDATA[Sets the digest value from a hex string.]]>
  12424. </doc>
  12425. </method>
  12426. <field name="MD5_LEN" type="int"
  12427. transient="false" volatile="false"
  12428. static="true" final="true" visibility="public"
  12429. deprecated="not deprecated">
  12430. </field>
  12431. <doc>
  12432. <![CDATA[A Writable for MD5 hash values.]]>
  12433. </doc>
  12434. </class>
  12435. <!-- end class org.apache.hadoop.io.MD5Hash -->
  12436. <!-- start class org.apache.hadoop.io.MD5Hash.Comparator -->
  12437. <class name="MD5Hash.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  12438. abstract="false"
  12439. static="true" final="false" visibility="public"
  12440. deprecated="not deprecated">
  12441. <constructor name="MD5Hash.Comparator"
  12442. static="false" final="false" visibility="public"
  12443. deprecated="not deprecated">
  12444. </constructor>
  12445. <method name="compare" return="int"
  12446. abstract="false" native="false" synchronized="false"
  12447. static="false" final="false" visibility="public"
  12448. deprecated="not deprecated">
  12449. <param name="b1" type="byte[]"/>
  12450. <param name="s1" type="int"/>
  12451. <param name="l1" type="int"/>
  12452. <param name="b2" type="byte[]"/>
  12453. <param name="s2" type="int"/>
  12454. <param name="l2" type="int"/>
  12455. </method>
  12456. <doc>
  12457. <![CDATA[A WritableComparator optimized for MD5Hash keys.]]>
  12458. </doc>
  12459. </class>
  12460. <!-- end class org.apache.hadoop.io.MD5Hash.Comparator -->
  12461. <!-- start class org.apache.hadoop.io.MultipleIOException -->
  12462. <class name="MultipleIOException" extends="java.io.IOException"
  12463. abstract="false"
  12464. static="false" final="false" visibility="public"
  12465. deprecated="not deprecated">
  12466. <method name="getExceptions" return="java.util.List"
  12467. abstract="false" native="false" synchronized="false"
  12468. static="false" final="false" visibility="public"
  12469. deprecated="not deprecated">
  12470. <doc>
  12471. <![CDATA[@return the underlying exceptions]]>
  12472. </doc>
  12473. </method>
  12474. <method name="createIOException" return="java.io.IOException"
  12475. abstract="false" native="false" synchronized="false"
  12476. static="true" final="false" visibility="public"
  12477. deprecated="not deprecated">
  12478. <param name="exceptions" type="java.util.List"/>
  12479. <doc>
  12480. <![CDATA[A convenient method to create an {@link IOException}.]]>
  12481. </doc>
  12482. </method>
  12483. <doc>
  12484. <![CDATA[Encapsulate a list of {@link IOException} into an {@link IOException}]]>
  12485. </doc>
  12486. </class>
  12487. <!-- end class org.apache.hadoop.io.MultipleIOException -->
  12488. <!-- start class org.apache.hadoop.io.NullWritable -->
  12489. <class name="NullWritable" extends="java.lang.Object"
  12490. abstract="false"
  12491. static="false" final="false" visibility="public"
  12492. deprecated="not deprecated">
  12493. <implements name="org.apache.hadoop.io.WritableComparable"/>
  12494. <method name="get" return="org.apache.hadoop.io.NullWritable"
  12495. abstract="false" native="false" synchronized="false"
  12496. static="true" final="false" visibility="public"
  12497. deprecated="not deprecated">
  12498. <doc>
  12499. <![CDATA[Returns the single instance of this class.]]>
  12500. </doc>
  12501. </method>
  12502. <method name="toString" return="java.lang.String"
  12503. abstract="false" native="false" synchronized="false"
  12504. static="false" final="false" visibility="public"
  12505. deprecated="not deprecated">
  12506. </method>
  12507. <method name="hashCode" return="int"
  12508. abstract="false" native="false" synchronized="false"
  12509. static="false" final="false" visibility="public"
  12510. deprecated="not deprecated">
  12511. </method>
  12512. <method name="compareTo" return="int"
  12513. abstract="false" native="false" synchronized="false"
  12514. static="false" final="false" visibility="public"
  12515. deprecated="not deprecated">
  12516. <param name="other" type="java.lang.Object"/>
  12517. </method>
  12518. <method name="equals" return="boolean"
  12519. abstract="false" native="false" synchronized="false"
  12520. static="false" final="false" visibility="public"
  12521. deprecated="not deprecated">
  12522. <param name="other" type="java.lang.Object"/>
  12523. </method>
  12524. <method name="readFields"
  12525. abstract="false" native="false" synchronized="false"
  12526. static="false" final="false" visibility="public"
  12527. deprecated="not deprecated">
  12528. <param name="in" type="java.io.DataInput"/>
  12529. <exception name="IOException" type="java.io.IOException"/>
  12530. </method>
  12531. <method name="write"
  12532. abstract="false" native="false" synchronized="false"
  12533. static="false" final="false" visibility="public"
  12534. deprecated="not deprecated">
  12535. <param name="out" type="java.io.DataOutput"/>
  12536. <exception name="IOException" type="java.io.IOException"/>
  12537. </method>
  12538. <doc>
  12539. <![CDATA[Singleton Writable with no data.]]>
  12540. </doc>
  12541. </class>
  12542. <!-- end class org.apache.hadoop.io.NullWritable -->
  12543. <!-- start class org.apache.hadoop.io.NullWritable.Comparator -->
  12544. <class name="NullWritable.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  12545. abstract="false"
  12546. static="true" final="false" visibility="public"
  12547. deprecated="not deprecated">
  12548. <constructor name="NullWritable.Comparator"
  12549. static="false" final="false" visibility="public"
  12550. deprecated="not deprecated">
  12551. </constructor>
  12552. <method name="compare" return="int"
  12553. abstract="false" native="false" synchronized="false"
  12554. static="false" final="false" visibility="public"
  12555. deprecated="not deprecated">
  12556. <param name="b1" type="byte[]"/>
  12557. <param name="s1" type="int"/>
  12558. <param name="l1" type="int"/>
  12559. <param name="b2" type="byte[]"/>
  12560. <param name="s2" type="int"/>
  12561. <param name="l2" type="int"/>
  12562. <doc>
  12563. <![CDATA[Compare the buffers in serialized form.]]>
  12564. </doc>
  12565. </method>
  12566. <doc>
  12567. <![CDATA[A Comparator &quot;optimized&quot; for NullWritable.]]>
  12568. </doc>
  12569. </class>
  12570. <!-- end class org.apache.hadoop.io.NullWritable.Comparator -->
  12571. <!-- start class org.apache.hadoop.io.ObjectWritable -->
  12572. <class name="ObjectWritable" extends="java.lang.Object"
  12573. abstract="false"
  12574. static="false" final="false" visibility="public"
  12575. deprecated="not deprecated">
  12576. <implements name="org.apache.hadoop.io.Writable"/>
  12577. <implements name="org.apache.hadoop.conf.Configurable"/>
  12578. <constructor name="ObjectWritable"
  12579. static="false" final="false" visibility="public"
  12580. deprecated="not deprecated">
  12581. </constructor>
  12582. <constructor name="ObjectWritable" type="java.lang.Object"
  12583. static="false" final="false" visibility="public"
  12584. deprecated="not deprecated">
  12585. </constructor>
  12586. <constructor name="ObjectWritable" type="java.lang.Class, java.lang.Object"
  12587. static="false" final="false" visibility="public"
  12588. deprecated="not deprecated">
  12589. </constructor>
  12590. <method name="get" return="java.lang.Object"
  12591. abstract="false" native="false" synchronized="false"
  12592. static="false" final="false" visibility="public"
  12593. deprecated="not deprecated">
  12594. <doc>
  12595. <![CDATA[Return the instance, or null if none.]]>
  12596. </doc>
  12597. </method>
  12598. <method name="getDeclaredClass" return="java.lang.Class"
  12599. abstract="false" native="false" synchronized="false"
  12600. static="false" final="false" visibility="public"
  12601. deprecated="not deprecated">
  12602. <doc>
  12603. <![CDATA[Return the class this is meant to be.]]>
  12604. </doc>
  12605. </method>
  12606. <method name="set"
  12607. abstract="false" native="false" synchronized="false"
  12608. static="false" final="false" visibility="public"
  12609. deprecated="not deprecated">
  12610. <param name="instance" type="java.lang.Object"/>
  12611. <doc>
  12612. <![CDATA[Reset the instance.]]>
  12613. </doc>
  12614. </method>
  12615. <method name="toString" return="java.lang.String"
  12616. abstract="false" native="false" synchronized="false"
  12617. static="false" final="false" visibility="public"
  12618. deprecated="not deprecated">
  12619. </method>
  12620. <method name="readFields"
  12621. abstract="false" native="false" synchronized="false"
  12622. static="false" final="false" visibility="public"
  12623. deprecated="not deprecated">
  12624. <param name="in" type="java.io.DataInput"/>
  12625. <exception name="IOException" type="java.io.IOException"/>
  12626. </method>
  12627. <method name="write"
  12628. abstract="false" native="false" synchronized="false"
  12629. static="false" final="false" visibility="public"
  12630. deprecated="not deprecated">
  12631. <param name="out" type="java.io.DataOutput"/>
  12632. <exception name="IOException" type="java.io.IOException"/>
  12633. </method>
  12634. <method name="writeObject"
  12635. abstract="false" native="false" synchronized="false"
  12636. static="true" final="false" visibility="public"
  12637. deprecated="not deprecated">
  12638. <param name="out" type="java.io.DataOutput"/>
  12639. <param name="instance" type="java.lang.Object"/>
  12640. <param name="declaredClass" type="java.lang.Class"/>
  12641. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  12642. <exception name="IOException" type="java.io.IOException"/>
  12643. <doc>
  12644. <![CDATA[Write a {@link Writable}, {@link String}, primitive type, or an array of
  12645. the preceding.]]>
  12646. </doc>
  12647. </method>
  12648. <method name="readObject" return="java.lang.Object"
  12649. abstract="false" native="false" synchronized="false"
  12650. static="true" final="false" visibility="public"
  12651. deprecated="not deprecated">
  12652. <param name="in" type="java.io.DataInput"/>
  12653. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  12654. <exception name="IOException" type="java.io.IOException"/>
  12655. <doc>
  12656. <![CDATA[Read a {@link Writable}, {@link String}, primitive type, or an array of
  12657. the preceding.]]>
  12658. </doc>
  12659. </method>
  12660. <method name="readObject" return="java.lang.Object"
  12661. abstract="false" native="false" synchronized="false"
  12662. static="true" final="false" visibility="public"
  12663. deprecated="not deprecated">
  12664. <param name="in" type="java.io.DataInput"/>
  12665. <param name="objectWritable" type="org.apache.hadoop.io.ObjectWritable"/>
  12666. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  12667. <exception name="IOException" type="java.io.IOException"/>
  12668. <doc>
  12669. <![CDATA[Read a {@link Writable}, {@link String}, primitive type, or an array of
  12670. the preceding.]]>
  12671. </doc>
  12672. </method>
  12673. <method name="setConf"
  12674. abstract="false" native="false" synchronized="false"
  12675. static="false" final="false" visibility="public"
  12676. deprecated="not deprecated">
  12677. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  12678. </method>
  12679. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  12680. abstract="false" native="false" synchronized="false"
  12681. static="false" final="false" visibility="public"
  12682. deprecated="not deprecated">
  12683. </method>
  12684. <doc>
  12685. <![CDATA[A polymorphic Writable that writes an instance with it's class name.
  12686. Handles arrays, strings and primitive types without a Writable wrapper.]]>
  12687. </doc>
  12688. </class>
  12689. <!-- end class org.apache.hadoop.io.ObjectWritable -->
  12690. <!-- start class org.apache.hadoop.io.OutputBuffer -->
  12691. <class name="OutputBuffer" extends="java.io.FilterOutputStream"
  12692. abstract="false"
  12693. static="false" final="false" visibility="public"
  12694. deprecated="not deprecated">
  12695. <constructor name="OutputBuffer"
  12696. static="false" final="false" visibility="public"
  12697. deprecated="not deprecated">
  12698. <doc>
  12699. <![CDATA[Constructs a new empty buffer.]]>
  12700. </doc>
  12701. </constructor>
  12702. <method name="getData" return="byte[]"
  12703. abstract="false" native="false" synchronized="false"
  12704. static="false" final="false" visibility="public"
  12705. deprecated="not deprecated">
  12706. <doc>
  12707. <![CDATA[Returns the current contents of the buffer.
  12708. Data is only valid to {@link #getLength()}.]]>
  12709. </doc>
  12710. </method>
  12711. <method name="getLength" return="int"
  12712. abstract="false" native="false" synchronized="false"
  12713. static="false" final="false" visibility="public"
  12714. deprecated="not deprecated">
  12715. <doc>
  12716. <![CDATA[Returns the length of the valid data currently in the buffer.]]>
  12717. </doc>
  12718. </method>
  12719. <method name="reset" return="org.apache.hadoop.io.OutputBuffer"
  12720. abstract="false" native="false" synchronized="false"
  12721. static="false" final="false" visibility="public"
  12722. deprecated="not deprecated">
  12723. <doc>
  12724. <![CDATA[Resets the buffer to empty.]]>
  12725. </doc>
  12726. </method>
  12727. <method name="write"
  12728. abstract="false" native="false" synchronized="false"
  12729. static="false" final="false" visibility="public"
  12730. deprecated="not deprecated">
  12731. <param name="in" type="java.io.InputStream"/>
  12732. <param name="length" type="int"/>
  12733. <exception name="IOException" type="java.io.IOException"/>
  12734. <doc>
  12735. <![CDATA[Writes bytes from a InputStream directly into the buffer.]]>
  12736. </doc>
  12737. </method>
  12738. <doc>
  12739. <![CDATA[A reusable {@link OutputStream} implementation that writes to an in-memory
  12740. buffer.
  12741. <p>This saves memory over creating a new OutputStream and
  12742. ByteArrayOutputStream each time data is written.
  12743. <p>Typical usage is something like the following:<pre>
  12744. OutputBuffer buffer = new OutputBuffer();
  12745. while (... loop condition ...) {
  12746. buffer.reset();
  12747. ... write buffer using OutputStream methods ...
  12748. byte[] data = buffer.getData();
  12749. int dataLength = buffer.getLength();
  12750. ... write data to its ultimate destination ...
  12751. }
  12752. </pre>
  12753. @see DataOutputBuffer
  12754. @see InputBuffer]]>
  12755. </doc>
  12756. </class>
  12757. <!-- end class org.apache.hadoop.io.OutputBuffer -->
  12758. <!-- start interface org.apache.hadoop.io.RawComparator -->
  12759. <interface name="RawComparator" abstract="true"
  12760. static="false" final="false" visibility="public"
  12761. deprecated="not deprecated">
  12762. <implements name="java.util.Comparator"/>
  12763. <method name="compare" return="int"
  12764. abstract="false" native="false" synchronized="false"
  12765. static="false" final="false" visibility="public"
  12766. deprecated="not deprecated">
  12767. <param name="b1" type="byte[]"/>
  12768. <param name="s1" type="int"/>
  12769. <param name="l1" type="int"/>
  12770. <param name="b2" type="byte[]"/>
  12771. <param name="s2" type="int"/>
  12772. <param name="l2" type="int"/>
  12773. </method>
  12774. <doc>
  12775. <![CDATA[<p>
  12776. A {@link Comparator} that operates directly on byte representations of
  12777. objects.
  12778. </p>
  12779. @param <T>
  12780. @see DeserializerComparator]]>
  12781. </doc>
  12782. </interface>
  12783. <!-- end interface org.apache.hadoop.io.RawComparator -->
  12784. <!-- start class org.apache.hadoop.io.ReadaheadPool -->
  12785. <class name="ReadaheadPool" extends="java.lang.Object"
  12786. abstract="false"
  12787. static="false" final="false" visibility="public"
  12788. deprecated="not deprecated">
  12789. <method name="getInstance" return="org.apache.hadoop.io.ReadaheadPool"
  12790. abstract="false" native="false" synchronized="false"
  12791. static="true" final="false" visibility="public"
  12792. deprecated="not deprecated">
  12793. <doc>
  12794. <![CDATA[Return the singleton instance for the current process.]]>
  12795. </doc>
  12796. </method>
  12797. <method name="readaheadStream" return="org.apache.hadoop.io.ReadaheadPool.ReadaheadRequest"
  12798. abstract="false" native="false" synchronized="false"
  12799. static="false" final="false" visibility="public"
  12800. deprecated="not deprecated">
  12801. <param name="identifier" type="java.lang.String"/>
  12802. <param name="fd" type="java.io.FileDescriptor"/>
  12803. <param name="curPos" type="long"/>
  12804. <param name="readaheadLength" type="long"/>
  12805. <param name="maxOffsetToRead" type="long"/>
  12806. <param name="lastReadahead" type="org.apache.hadoop.io.ReadaheadPool.ReadaheadRequest"/>
  12807. <doc>
  12808. <![CDATA[Issue a request to readahead on the given file descriptor.
  12809. @param identifier a textual identifier that will be used in error
  12810. messages (e.g. the file name)
  12811. @param fd the file descriptor to read ahead
  12812. @param curPos the current offset at which reads are being issued
  12813. @param readaheadLength the configured length to read ahead
  12814. @param maxOffsetToRead the maximum offset that will be readahead
  12815. (useful if, for example, only some segment of the file is
  12816. requested by the user). Pass {@link Long.MAX_VALUE} to allow
  12817. readahead to the end of the file.
  12818. @param lastReadahead the result returned by the previous invocation
  12819. of this function on this file descriptor, or null if this is
  12820. the first call
  12821. @return an object representing this outstanding request, or null
  12822. if no readahead was performed]]>
  12823. </doc>
  12824. </method>
  12825. <method name="submitReadahead" return="org.apache.hadoop.io.ReadaheadPool.ReadaheadRequest"
  12826. abstract="false" native="false" synchronized="false"
  12827. static="false" final="false" visibility="public"
  12828. deprecated="not deprecated">
  12829. <param name="identifier" type="java.lang.String"/>
  12830. <param name="fd" type="java.io.FileDescriptor"/>
  12831. <param name="off" type="long"/>
  12832. <param name="len" type="long"/>
  12833. <doc>
  12834. <![CDATA[Submit a request to readahead on the given file descriptor.
  12835. @param identifier a textual identifier used in error messages, etc.
  12836. @param fd the file descriptor to readahead
  12837. @param off the offset at which to start the readahead
  12838. @param len the number of bytes to read
  12839. @return an object representing this pending request]]>
  12840. </doc>
  12841. </method>
  12842. <doc>
  12843. <![CDATA[Manages a pool of threads which can issue readahead requests on file descriptors.]]>
  12844. </doc>
  12845. </class>
  12846. <!-- end class org.apache.hadoop.io.ReadaheadPool -->
  12847. <!-- start interface org.apache.hadoop.io.ReadaheadPool.ReadaheadRequest -->
  12848. <interface name="ReadaheadPool.ReadaheadRequest" abstract="true"
  12849. static="true" final="false" visibility="public"
  12850. deprecated="not deprecated">
  12851. <method name="cancel"
  12852. abstract="false" native="false" synchronized="false"
  12853. static="false" final="false" visibility="public"
  12854. deprecated="not deprecated">
  12855. <doc>
  12856. <![CDATA[Cancels the request for readahead. This should be used
  12857. if the reader no longer needs the requested data, <em>before</em>
  12858. closing the related file descriptor.
  12859. It is safe to use even if the readahead request has already
  12860. been fulfilled.]]>
  12861. </doc>
  12862. </method>
  12863. <method name="getOffset" return="long"
  12864. abstract="false" native="false" synchronized="false"
  12865. static="false" final="false" visibility="public"
  12866. deprecated="not deprecated">
  12867. <doc>
  12868. <![CDATA[@return the requested offset]]>
  12869. </doc>
  12870. </method>
  12871. <method name="getLength" return="long"
  12872. abstract="false" native="false" synchronized="false"
  12873. static="false" final="false" visibility="public"
  12874. deprecated="not deprecated">
  12875. <doc>
  12876. <![CDATA[@return the requested length]]>
  12877. </doc>
  12878. </method>
  12879. <doc>
  12880. <![CDATA[An outstanding readahead request that has been submitted to
  12881. the pool. This request may be pending or may have been
  12882. completed.]]>
  12883. </doc>
  12884. </interface>
  12885. <!-- end interface org.apache.hadoop.io.ReadaheadPool.ReadaheadRequest -->
  12886. <!-- start class org.apache.hadoop.io.SecureIOUtils -->
  12887. <class name="SecureIOUtils" extends="java.lang.Object"
  12888. abstract="false"
  12889. static="false" final="false" visibility="public"
  12890. deprecated="not deprecated">
  12891. <constructor name="SecureIOUtils"
  12892. static="false" final="false" visibility="public"
  12893. deprecated="not deprecated">
  12894. </constructor>
  12895. <method name="openForRead" return="java.io.FileInputStream"
  12896. abstract="false" native="false" synchronized="false"
  12897. static="true" final="false" visibility="public"
  12898. deprecated="not deprecated">
  12899. <param name="f" type="java.io.File"/>
  12900. <param name="expectedOwner" type="java.lang.String"/>
  12901. <exception name="IOException" type="java.io.IOException"/>
  12902. <doc>
  12903. <![CDATA[Open the given File for read access, verifying the expected user
  12904. constraints.
  12905. @param f the file that we are trying to open
  12906. @param expectedOwner the expected user owner for the file
  12907. @throws IOException if an IO Error occurred, or the user does not
  12908. match]]>
  12909. </doc>
  12910. </method>
  12911. <method name="createForWrite" return="java.io.FileOutputStream"
  12912. abstract="false" native="false" synchronized="false"
  12913. static="true" final="false" visibility="public"
  12914. deprecated="not deprecated">
  12915. <param name="f" type="java.io.File"/>
  12916. <param name="permissions" type="int"/>
  12917. <exception name="IOException" type="java.io.IOException"/>
  12918. <doc>
  12919. <![CDATA[Open the specified File for write access, ensuring that it does not exist.
  12920. @param f the file that we want to create
  12921. @param permissions we want to have on the file (if security is enabled)
  12922. @throws AlreadyExistsException if the file already exists
  12923. @throws IOException if any other error occurred]]>
  12924. </doc>
  12925. </method>
  12926. <doc>
  12927. <![CDATA[This class provides secure APIs for opening and creating files on the local
  12928. disk. The main issue this class tries to handle is that of symlink traversal.
  12929. <br/>
  12930. An example of such an attack is:
  12931. <ol>
  12932. <li> Malicious user removes his task's syslog file, and puts a link to the
  12933. jobToken file of a target user.</li>
  12934. <li> Malicious user tries to open the syslog file via the servlet on the
  12935. tasktracker.</li>
  12936. <li> The tasktracker is unaware of the symlink, and simply streams the contents
  12937. of the jobToken file. The malicious user can now access potentially sensitive
  12938. map outputs, etc. of the target user's job.</li>
  12939. </ol>
  12940. A similar attack is possible involving the
  12941. {@link org.apache.hadoop.mapred.TaskLogsTruncater}, but here it is to do
  12942. with unsecure write to a file.
  12943. <br/>]]>
  12944. </doc>
  12945. </class>
  12946. <!-- end class org.apache.hadoop.io.SecureIOUtils -->
  12947. <!-- start class org.apache.hadoop.io.SecureIOUtils.AlreadyExistsException -->
  12948. <class name="SecureIOUtils.AlreadyExistsException" extends="java.io.IOException"
  12949. abstract="false"
  12950. static="true" final="false" visibility="public"
  12951. deprecated="not deprecated">
  12952. <constructor name="SecureIOUtils.AlreadyExistsException" type="java.lang.String"
  12953. static="false" final="false" visibility="public"
  12954. deprecated="not deprecated">
  12955. </constructor>
  12956. <constructor name="SecureIOUtils.AlreadyExistsException" type="java.lang.Throwable"
  12957. static="false" final="false" visibility="public"
  12958. deprecated="not deprecated">
  12959. </constructor>
  12960. <doc>
  12961. <![CDATA[Signals that an attempt to create a file at a given pathname has failed
  12962. because another file already existed at that path.]]>
  12963. </doc>
  12964. </class>
  12965. <!-- end class org.apache.hadoop.io.SecureIOUtils.AlreadyExistsException -->
  12966. <!-- start class org.apache.hadoop.io.SequenceFile -->
  12967. <class name="SequenceFile" extends="java.lang.Object"
  12968. abstract="false"
  12969. static="false" final="false" visibility="public"
  12970. deprecated="not deprecated">
  12971. <method name="getCompressionType" return="org.apache.hadoop.io.SequenceFile.CompressionType"
  12972. abstract="false" native="false" synchronized="false"
  12973. static="true" final="false" visibility="public"
  12974. deprecated="Use
  12975. {@link org.apache.hadoop.mapred.SequenceFileOutputFormat#getOutputCompressionType(org.apache.hadoop.mapred.JobConf)}
  12976. to get {@link CompressionType} for job-outputs.">
  12977. <param name="job" type="org.apache.hadoop.conf.Configuration"/>
  12978. <doc>
  12979. <![CDATA[Get the compression type for the reduce outputs
  12980. @param job the job config to look in
  12981. @return the kind of compression to use
  12982. @deprecated Use
  12983. {@link org.apache.hadoop.mapred.SequenceFileOutputFormat#getOutputCompressionType(org.apache.hadoop.mapred.JobConf)}
  12984. to get {@link CompressionType} for job-outputs.]]>
  12985. </doc>
  12986. </method>
  12987. <method name="setCompressionType"
  12988. abstract="false" native="false" synchronized="false"
  12989. static="true" final="false" visibility="public"
  12990. deprecated="Use the one of the many SequenceFile.createWriter methods to specify
  12991. the {@link CompressionType} while creating the {@link SequenceFile} or
  12992. {@link org.apache.hadoop.mapred.SequenceFileOutputFormat#setOutputCompressionType(org.apache.hadoop.mapred.JobConf, org.apache.hadoop.io.SequenceFile.CompressionType)}
  12993. to specify the {@link CompressionType} for job-outputs.
  12994. or">
  12995. <param name="job" type="org.apache.hadoop.conf.Configuration"/>
  12996. <param name="val" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  12997. <doc>
  12998. <![CDATA[Set the compression type for sequence files.
  12999. @param job the configuration to modify
  13000. @param val the new compression type (none, block, record)
  13001. @deprecated Use the one of the many SequenceFile.createWriter methods to specify
  13002. the {@link CompressionType} while creating the {@link SequenceFile} or
  13003. {@link org.apache.hadoop.mapred.SequenceFileOutputFormat#setOutputCompressionType(org.apache.hadoop.mapred.JobConf, org.apache.hadoop.io.SequenceFile.CompressionType)}
  13004. to specify the {@link CompressionType} for job-outputs.
  13005. or]]>
  13006. </doc>
  13007. </method>
  13008. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  13009. abstract="false" native="false" synchronized="false"
  13010. static="true" final="false" visibility="public"
  13011. deprecated="not deprecated">
  13012. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  13013. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  13014. <param name="name" type="org.apache.hadoop.fs.Path"/>
  13015. <param name="keyClass" type="java.lang.Class"/>
  13016. <param name="valClass" type="java.lang.Class"/>
  13017. <exception name="IOException" type="java.io.IOException"/>
  13018. <doc>
  13019. <![CDATA[Construct the preferred type of SequenceFile Writer.
  13020. @param fs The configured filesystem.
  13021. @param conf The configuration.
  13022. @param name The name of the file.
  13023. @param keyClass The 'key' type.
  13024. @param valClass The 'value' type.
  13025. @return Returns the handle to the constructed SequenceFile Writer.
  13026. @throws IOException]]>
  13027. </doc>
  13028. </method>
  13029. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  13030. abstract="false" native="false" synchronized="false"
  13031. static="true" final="false" visibility="public"
  13032. deprecated="not deprecated">
  13033. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  13034. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  13035. <param name="name" type="org.apache.hadoop.fs.Path"/>
  13036. <param name="keyClass" type="java.lang.Class"/>
  13037. <param name="valClass" type="java.lang.Class"/>
  13038. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  13039. <exception name="IOException" type="java.io.IOException"/>
  13040. <doc>
  13041. <![CDATA[Construct the preferred type of SequenceFile Writer.
  13042. @param fs The configured filesystem.
  13043. @param conf The configuration.
  13044. @param name The name of the file.
  13045. @param keyClass The 'key' type.
  13046. @param valClass The 'value' type.
  13047. @param compressionType The compression type.
  13048. @return Returns the handle to the constructed SequenceFile Writer.
  13049. @throws IOException]]>
  13050. </doc>
  13051. </method>
  13052. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  13053. abstract="false" native="false" synchronized="false"
  13054. static="true" final="false" visibility="public"
  13055. deprecated="not deprecated">
  13056. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  13057. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  13058. <param name="name" type="org.apache.hadoop.fs.Path"/>
  13059. <param name="keyClass" type="java.lang.Class"/>
  13060. <param name="valClass" type="java.lang.Class"/>
  13061. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  13062. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  13063. <exception name="IOException" type="java.io.IOException"/>
  13064. <doc>
  13065. <![CDATA[Construct the preferred type of SequenceFile Writer.
  13066. @param fs The configured filesystem.
  13067. @param conf The configuration.
  13068. @param name The name of the file.
  13069. @param keyClass The 'key' type.
  13070. @param valClass The 'value' type.
  13071. @param compressionType The compression type.
  13072. @param progress The Progressable object to track progress.
  13073. @return Returns the handle to the constructed SequenceFile Writer.
  13074. @throws IOException]]>
  13075. </doc>
  13076. </method>
  13077. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  13078. abstract="false" native="false" synchronized="false"
  13079. static="true" final="false" visibility="public"
  13080. deprecated="not deprecated">
  13081. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  13082. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  13083. <param name="name" type="org.apache.hadoop.fs.Path"/>
  13084. <param name="keyClass" type="java.lang.Class"/>
  13085. <param name="valClass" type="java.lang.Class"/>
  13086. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  13087. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  13088. <exception name="IOException" type="java.io.IOException"/>
  13089. <doc>
  13090. <![CDATA[Construct the preferred type of SequenceFile Writer.
  13091. @param fs The configured filesystem.
  13092. @param conf The configuration.
  13093. @param name The name of the file.
  13094. @param keyClass The 'key' type.
  13095. @param valClass The 'value' type.
  13096. @param compressionType The compression type.
  13097. @param codec The compression codec.
  13098. @return Returns the handle to the constructed SequenceFile Writer.
  13099. @throws IOException]]>
  13100. </doc>
  13101. </method>
  13102. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  13103. abstract="false" native="false" synchronized="false"
  13104. static="true" final="false" visibility="public"
  13105. deprecated="not deprecated">
  13106. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  13107. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  13108. <param name="name" type="org.apache.hadoop.fs.Path"/>
  13109. <param name="keyClass" type="java.lang.Class"/>
  13110. <param name="valClass" type="java.lang.Class"/>
  13111. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  13112. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  13113. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  13114. <param name="metadata" type="org.apache.hadoop.io.SequenceFile.Metadata"/>
  13115. <exception name="IOException" type="java.io.IOException"/>
  13116. <doc>
  13117. <![CDATA[Construct the preferred type of SequenceFile Writer.
  13118. @param fs The configured filesystem.
  13119. @param conf The configuration.
  13120. @param name The name of the file.
  13121. @param keyClass The 'key' type.
  13122. @param valClass The 'value' type.
  13123. @param compressionType The compression type.
  13124. @param codec The compression codec.
  13125. @param progress The Progressable object to track progress.
  13126. @param metadata The metadata of the file.
  13127. @return Returns the handle to the constructed SequenceFile Writer.
  13128. @throws IOException]]>
  13129. </doc>
  13130. </method>
  13131. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  13132. abstract="false" native="false" synchronized="false"
  13133. static="true" final="false" visibility="public"
  13134. deprecated="not deprecated">
  13135. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  13136. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  13137. <param name="name" type="org.apache.hadoop.fs.Path"/>
  13138. <param name="keyClass" type="java.lang.Class"/>
  13139. <param name="valClass" type="java.lang.Class"/>
  13140. <param name="bufferSize" type="int"/>
  13141. <param name="replication" type="short"/>
  13142. <param name="blockSize" type="long"/>
  13143. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  13144. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  13145. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  13146. <param name="metadata" type="org.apache.hadoop.io.SequenceFile.Metadata"/>
  13147. <exception name="IOException" type="java.io.IOException"/>
  13148. <doc>
  13149. <![CDATA[Construct the preferred type of SequenceFile Writer.
  13150. @param fs The configured filesystem.
  13151. @param conf The configuration.
  13152. @param name The name of the file.
  13153. @param keyClass The 'key' type.
  13154. @param valClass The 'value' type.
  13155. @param bufferSize buffer size for the underlaying outputstream.
  13156. @param replication replication factor for the file.
  13157. @param blockSize block size for the file.
  13158. @param compressionType The compression type.
  13159. @param codec The compression codec.
  13160. @param progress The Progressable object to track progress.
  13161. @param metadata The metadata of the file.
  13162. @return Returns the handle to the constructed SequenceFile Writer.
  13163. @throws IOException]]>
  13164. </doc>
  13165. </method>
  13166. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  13167. abstract="false" native="false" synchronized="false"
  13168. static="true" final="false" visibility="public"
  13169. deprecated="not deprecated">
  13170. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  13171. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  13172. <param name="name" type="org.apache.hadoop.fs.Path"/>
  13173. <param name="keyClass" type="java.lang.Class"/>
  13174. <param name="valClass" type="java.lang.Class"/>
  13175. <param name="bufferSize" type="int"/>
  13176. <param name="replication" type="short"/>
  13177. <param name="blockSize" type="long"/>
  13178. <param name="createParent" type="boolean"/>
  13179. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  13180. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  13181. <param name="metadata" type="org.apache.hadoop.io.SequenceFile.Metadata"/>
  13182. <exception name="IOException" type="java.io.IOException"/>
  13183. <doc>
  13184. <![CDATA[Construct the preferred type of SequenceFile Writer.
  13185. @param fs The configured filesystem.
  13186. @param conf The configuration.
  13187. @param name The name of the file.
  13188. @param keyClass The 'key' type.
  13189. @param valClass The 'value' type.
  13190. @param bufferSize buffer size for the underlaying outputstream.
  13191. @param replication replication factor for the file.
  13192. @param blockSize block size for the file.
  13193. @param createParent create parent directory if non-existent
  13194. @param compressionType The compression type.
  13195. @param codec The compression codec.
  13196. @param metadata The metadata of the file.
  13197. @return Returns the handle to the constructed SequenceFile Writer.
  13198. @throws IOException]]>
  13199. </doc>
  13200. </method>
  13201. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  13202. abstract="false" native="false" synchronized="false"
  13203. static="true" final="false" visibility="public"
  13204. deprecated="not deprecated">
  13205. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  13206. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  13207. <param name="name" type="org.apache.hadoop.fs.Path"/>
  13208. <param name="keyClass" type="java.lang.Class"/>
  13209. <param name="valClass" type="java.lang.Class"/>
  13210. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  13211. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  13212. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  13213. <exception name="IOException" type="java.io.IOException"/>
  13214. <doc>
  13215. <![CDATA[Construct the preferred type of SequenceFile Writer.
  13216. @param fs The configured filesystem.
  13217. @param conf The configuration.
  13218. @param name The name of the file.
  13219. @param keyClass The 'key' type.
  13220. @param valClass The 'value' type.
  13221. @param compressionType The compression type.
  13222. @param codec The compression codec.
  13223. @param progress The Progressable object to track progress.
  13224. @return Returns the handle to the constructed SequenceFile Writer.
  13225. @throws IOException]]>
  13226. </doc>
  13227. </method>
  13228. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  13229. abstract="false" native="false" synchronized="false"
  13230. static="true" final="false" visibility="public"
  13231. deprecated="not deprecated">
  13232. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  13233. <param name="out" type="org.apache.hadoop.fs.FSDataOutputStream"/>
  13234. <param name="keyClass" type="java.lang.Class"/>
  13235. <param name="valClass" type="java.lang.Class"/>
  13236. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  13237. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  13238. <param name="metadata" type="org.apache.hadoop.io.SequenceFile.Metadata"/>
  13239. <exception name="IOException" type="java.io.IOException"/>
  13240. <doc>
  13241. <![CDATA[Construct the preferred type of 'raw' SequenceFile Writer.
  13242. @param conf The configuration.
  13243. @param out The stream on top which the writer is to be constructed.
  13244. @param keyClass The 'key' type.
  13245. @param valClass The 'value' type.
  13246. @param compressionType The compression type.
  13247. @param codec The compression codec.
  13248. @param metadata The metadata of the file.
  13249. @return Returns the handle to the constructed SequenceFile Writer.
  13250. @throws IOException]]>
  13251. </doc>
  13252. </method>
  13253. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  13254. abstract="false" native="false" synchronized="false"
  13255. static="true" final="false" visibility="public"
  13256. deprecated="not deprecated">
  13257. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  13258. <param name="out" type="org.apache.hadoop.fs.FSDataOutputStream"/>
  13259. <param name="keyClass" type="java.lang.Class"/>
  13260. <param name="valClass" type="java.lang.Class"/>
  13261. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  13262. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  13263. <exception name="IOException" type="java.io.IOException"/>
  13264. <doc>
  13265. <![CDATA[Construct the preferred type of 'raw' SequenceFile Writer.
  13266. @param conf The configuration.
  13267. @param out The stream on top which the writer is to be constructed.
  13268. @param keyClass The 'key' type.
  13269. @param valClass The 'value' type.
  13270. @param compressionType The compression type.
  13271. @param codec The compression codec.
  13272. @return Returns the handle to the constructed SequenceFile Writer.
  13273. @throws IOException]]>
  13274. </doc>
  13275. </method>
  13276. <field name="SYNC_INTERVAL" type="int"
  13277. transient="false" volatile="false"
  13278. static="true" final="true" visibility="public"
  13279. deprecated="not deprecated">
  13280. <doc>
  13281. <![CDATA[The number of bytes between sync points.]]>
  13282. </doc>
  13283. </field>
  13284. <doc>
  13285. <![CDATA[<code>SequenceFile</code>s are flat files consisting of binary key/value
  13286. pairs.
  13287. <p><code>SequenceFile</code> provides {@link Writer}, {@link Reader} and
  13288. {@link Sorter} classes for writing, reading and sorting respectively.</p>
  13289. There are three <code>SequenceFile</code> <code>Writer</code>s based on the
  13290. {@link CompressionType} used to compress key/value pairs:
  13291. <ol>
  13292. <li>
  13293. <code>Writer</code> : Uncompressed records.
  13294. </li>
  13295. <li>
  13296. <code>RecordCompressWriter</code> : Record-compressed files, only compress
  13297. values.
  13298. </li>
  13299. <li>
  13300. <code>BlockCompressWriter</code> : Block-compressed files, both keys &
  13301. values are collected in 'blocks'
  13302. separately and compressed. The size of
  13303. the 'block' is configurable.
  13304. </ol>
  13305. <p>The actual compression algorithm used to compress key and/or values can be
  13306. specified by using the appropriate {@link CompressionCodec}.</p>
  13307. <p>The recommended way is to use the static <tt>createWriter</tt> methods
  13308. provided by the <code>SequenceFile</code> to chose the preferred format.</p>
  13309. <p>The {@link Reader} acts as the bridge and can read any of the above
  13310. <code>SequenceFile</code> formats.</p>
  13311. <h4 id="Formats">SequenceFile Formats</h4>
  13312. <p>Essentially there are 3 different formats for <code>SequenceFile</code>s
  13313. depending on the <code>CompressionType</code> specified. All of them share a
  13314. <a href="#Header">common header</a> described below.
  13315. <h5 id="Header">SequenceFile Header</h5>
  13316. <ul>
  13317. <li>
  13318. version - 3 bytes of magic header <b>SEQ</b>, followed by 1 byte of actual
  13319. version number (e.g. SEQ4 or SEQ6)
  13320. </li>
  13321. <li>
  13322. keyClassName -key class
  13323. </li>
  13324. <li>
  13325. valueClassName - value class
  13326. </li>
  13327. <li>
  13328. compression - A boolean which specifies if compression is turned on for
  13329. keys/values in this file.
  13330. </li>
  13331. <li>
  13332. blockCompression - A boolean which specifies if block-compression is
  13333. turned on for keys/values in this file.
  13334. </li>
  13335. <li>
  13336. compression codec - <code>CompressionCodec</code> class which is used for
  13337. compression of keys and/or values (if compression is
  13338. enabled).
  13339. </li>
  13340. <li>
  13341. metadata - {@link Metadata} for this file.
  13342. </li>
  13343. <li>
  13344. sync - A sync marker to denote end of the header.
  13345. </li>
  13346. </ul>
  13347. <h5 id="#UncompressedFormat">Uncompressed SequenceFile Format</h5>
  13348. <ul>
  13349. <li>
  13350. <a href="#Header">Header</a>
  13351. </li>
  13352. <li>
  13353. Record
  13354. <ul>
  13355. <li>Record length</li>
  13356. <li>Key length</li>
  13357. <li>Key</li>
  13358. <li>Value</li>
  13359. </ul>
  13360. </li>
  13361. <li>
  13362. A sync-marker every few <code>100</code> bytes or so.
  13363. </li>
  13364. </ul>
  13365. <h5 id="#RecordCompressedFormat">Record-Compressed SequenceFile Format</h5>
  13366. <ul>
  13367. <li>
  13368. <a href="#Header">Header</a>
  13369. </li>
  13370. <li>
  13371. Record
  13372. <ul>
  13373. <li>Record length</li>
  13374. <li>Key length</li>
  13375. <li>Key</li>
  13376. <li><i>Compressed</i> Value</li>
  13377. </ul>
  13378. </li>
  13379. <li>
  13380. A sync-marker every few <code>100</code> bytes or so.
  13381. </li>
  13382. </ul>
  13383. <h5 id="#BlockCompressedFormat">Block-Compressed SequenceFile Format</h5>
  13384. <ul>
  13385. <li>
  13386. <a href="#Header">Header</a>
  13387. </li>
  13388. <li>
  13389. Record <i>Block</i>
  13390. <ul>
  13391. <li>Compressed key-lengths block-size</li>
  13392. <li>Compressed key-lengths block</li>
  13393. <li>Compressed keys block-size</li>
  13394. <li>Compressed keys block</li>
  13395. <li>Compressed value-lengths block-size</li>
  13396. <li>Compressed value-lengths block</li>
  13397. <li>Compressed values block-size</li>
  13398. <li>Compressed values block</li>
  13399. </ul>
  13400. </li>
  13401. <li>
  13402. A sync-marker every few <code>100</code> bytes or so.
  13403. </li>
  13404. </ul>
  13405. <p>The compressed blocks of key lengths and value lengths consist of the
  13406. actual lengths of individual keys/values encoded in ZeroCompressedInteger
  13407. format.</p>
  13408. @see CompressionCodec]]>
  13409. </doc>
  13410. </class>
  13411. <!-- end class org.apache.hadoop.io.SequenceFile -->
  13412. <!-- start class org.apache.hadoop.io.SequenceFile.CompressionType -->
  13413. <class name="SequenceFile.CompressionType" extends="java.lang.Enum"
  13414. abstract="false"
  13415. static="true" final="true" visibility="public"
  13416. deprecated="not deprecated">
  13417. <method name="values" return="org.apache.hadoop.io.SequenceFile.CompressionType[]"
  13418. abstract="false" native="false" synchronized="false"
  13419. static="true" final="false" visibility="public"
  13420. deprecated="not deprecated">
  13421. </method>
  13422. <method name="valueOf" return="org.apache.hadoop.io.SequenceFile.CompressionType"
  13423. abstract="false" native="false" synchronized="false"
  13424. static="true" final="false" visibility="public"
  13425. deprecated="not deprecated">
  13426. <param name="name" type="java.lang.String"/>
  13427. </method>
  13428. <field name="NONE" type="org.apache.hadoop.io.SequenceFile.CompressionType"
  13429. transient="false" volatile="false"
  13430. static="true" final="true" visibility="public"
  13431. deprecated="not deprecated">
  13432. <doc>
  13433. <![CDATA[Do not compress records.]]>
  13434. </doc>
  13435. </field>
  13436. <field name="RECORD" type="org.apache.hadoop.io.SequenceFile.CompressionType"
  13437. transient="false" volatile="false"
  13438. static="true" final="true" visibility="public"
  13439. deprecated="not deprecated">
  13440. <doc>
  13441. <![CDATA[Compress values only, each separately.]]>
  13442. </doc>
  13443. </field>
  13444. <field name="BLOCK" type="org.apache.hadoop.io.SequenceFile.CompressionType"
  13445. transient="false" volatile="false"
  13446. static="true" final="true" visibility="public"
  13447. deprecated="not deprecated">
  13448. <doc>
  13449. <![CDATA[Compress sequences of records together in blocks.]]>
  13450. </doc>
  13451. </field>
  13452. <doc>
  13453. <![CDATA[The compression type used to compress key/value pairs in the
  13454. {@link SequenceFile}.
  13455. @see SequenceFile.Writer]]>
  13456. </doc>
  13457. </class>
  13458. <!-- end class org.apache.hadoop.io.SequenceFile.CompressionType -->
  13459. <!-- start class org.apache.hadoop.io.SequenceFile.Metadata -->
  13460. <class name="SequenceFile.Metadata" extends="java.lang.Object"
  13461. abstract="false"
  13462. static="true" final="false" visibility="public"
  13463. deprecated="not deprecated">
  13464. <implements name="org.apache.hadoop.io.Writable"/>
  13465. <constructor name="SequenceFile.Metadata"
  13466. static="false" final="false" visibility="public"
  13467. deprecated="not deprecated">
  13468. </constructor>
  13469. <constructor name="SequenceFile.Metadata" type="java.util.TreeMap"
  13470. static="false" final="false" visibility="public"
  13471. deprecated="not deprecated">
  13472. </constructor>
  13473. <method name="get" return="org.apache.hadoop.io.Text"
  13474. abstract="false" native="false" synchronized="false"
  13475. static="false" final="false" visibility="public"
  13476. deprecated="not deprecated">
  13477. <param name="name" type="org.apache.hadoop.io.Text"/>
  13478. </method>
  13479. <method name="set"
  13480. abstract="false" native="false" synchronized="false"
  13481. static="false" final="false" visibility="public"
  13482. deprecated="not deprecated">
  13483. <param name="name" type="org.apache.hadoop.io.Text"/>
  13484. <param name="value" type="org.apache.hadoop.io.Text"/>
  13485. </method>
  13486. <method name="getMetadata" return="java.util.TreeMap"
  13487. abstract="false" native="false" synchronized="false"
  13488. static="false" final="false" visibility="public"
  13489. deprecated="not deprecated">
  13490. </method>
  13491. <method name="write"
  13492. abstract="false" native="false" synchronized="false"
  13493. static="false" final="false" visibility="public"
  13494. deprecated="not deprecated">
  13495. <param name="out" type="java.io.DataOutput"/>
  13496. <exception name="IOException" type="java.io.IOException"/>
  13497. </method>
  13498. <method name="readFields"
  13499. abstract="false" native="false" synchronized="false"
  13500. static="false" final="false" visibility="public"
  13501. deprecated="not deprecated">
  13502. <param name="in" type="java.io.DataInput"/>
  13503. <exception name="IOException" type="java.io.IOException"/>
  13504. </method>
  13505. <method name="equals" return="boolean"
  13506. abstract="false" native="false" synchronized="false"
  13507. static="false" final="false" visibility="public"
  13508. deprecated="not deprecated">
  13509. <param name="other" type="org.apache.hadoop.io.SequenceFile.Metadata"/>
  13510. </method>
  13511. <method name="hashCode" return="int"
  13512. abstract="false" native="false" synchronized="false"
  13513. static="false" final="false" visibility="public"
  13514. deprecated="not deprecated">
  13515. </method>
  13516. <method name="toString" return="java.lang.String"
  13517. abstract="false" native="false" synchronized="false"
  13518. static="false" final="false" visibility="public"
  13519. deprecated="not deprecated">
  13520. </method>
  13521. <doc>
  13522. <![CDATA[The class encapsulating with the metadata of a file.
  13523. The metadata of a file is a list of attribute name/value
  13524. pairs of Text type.]]>
  13525. </doc>
  13526. </class>
  13527. <!-- end class org.apache.hadoop.io.SequenceFile.Metadata -->
  13528. <!-- start class org.apache.hadoop.io.SequenceFile.Reader -->
  13529. <class name="SequenceFile.Reader" extends="java.lang.Object"
  13530. abstract="false"
  13531. static="true" final="false" visibility="public"
  13532. deprecated="not deprecated">
  13533. <implements name="java.io.Closeable"/>
  13534. <constructor name="SequenceFile.Reader" type="org.apache.hadoop.fs.FileSystem, org.apache.hadoop.fs.Path, org.apache.hadoop.conf.Configuration"
  13535. static="false" final="false" visibility="public"
  13536. deprecated="not deprecated">
  13537. <exception name="IOException" type="java.io.IOException"/>
  13538. <doc>
  13539. <![CDATA[Open the named file.]]>
  13540. </doc>
  13541. </constructor>
  13542. <method name="openFile" return="org.apache.hadoop.fs.FSDataInputStream"
  13543. abstract="false" native="false" synchronized="false"
  13544. static="false" final="false" visibility="protected"
  13545. deprecated="not deprecated">
  13546. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  13547. <param name="file" type="org.apache.hadoop.fs.Path"/>
  13548. <param name="bufferSize" type="int"/>
  13549. <param name="length" type="long"/>
  13550. <exception name="IOException" type="java.io.IOException"/>
  13551. <doc>
  13552. <![CDATA[Override this method to specialize the type of
  13553. {@link FSDataInputStream} returned.]]>
  13554. </doc>
  13555. </method>
  13556. <method name="close"
  13557. abstract="false" native="false" synchronized="true"
  13558. static="false" final="false" visibility="public"
  13559. deprecated="not deprecated">
  13560. <exception name="IOException" type="java.io.IOException"/>
  13561. <doc>
  13562. <![CDATA[Close the file.]]>
  13563. </doc>
  13564. </method>
  13565. <method name="getKeyClassName" return="java.lang.String"
  13566. abstract="false" native="false" synchronized="false"
  13567. static="false" final="false" visibility="public"
  13568. deprecated="not deprecated">
  13569. <doc>
  13570. <![CDATA[Returns the name of the key class.]]>
  13571. </doc>
  13572. </method>
  13573. <method name="getKeyClass" return="java.lang.Class"
  13574. abstract="false" native="false" synchronized="true"
  13575. static="false" final="false" visibility="public"
  13576. deprecated="not deprecated">
  13577. <doc>
  13578. <![CDATA[Returns the class of keys in this file.]]>
  13579. </doc>
  13580. </method>
  13581. <method name="getValueClassName" return="java.lang.String"
  13582. abstract="false" native="false" synchronized="false"
  13583. static="false" final="false" visibility="public"
  13584. deprecated="not deprecated">
  13585. <doc>
  13586. <![CDATA[Returns the name of the value class.]]>
  13587. </doc>
  13588. </method>
  13589. <method name="getValueClass" return="java.lang.Class"
  13590. abstract="false" native="false" synchronized="true"
  13591. static="false" final="false" visibility="public"
  13592. deprecated="not deprecated">
  13593. <doc>
  13594. <![CDATA[Returns the class of values in this file.]]>
  13595. </doc>
  13596. </method>
  13597. <method name="isCompressed" return="boolean"
  13598. abstract="false" native="false" synchronized="false"
  13599. static="false" final="false" visibility="public"
  13600. deprecated="not deprecated">
  13601. <doc>
  13602. <![CDATA[Returns true if values are compressed.]]>
  13603. </doc>
  13604. </method>
  13605. <method name="isBlockCompressed" return="boolean"
  13606. abstract="false" native="false" synchronized="false"
  13607. static="false" final="false" visibility="public"
  13608. deprecated="not deprecated">
  13609. <doc>
  13610. <![CDATA[Returns true if records are block-compressed.]]>
  13611. </doc>
  13612. </method>
  13613. <method name="getCompressionCodec" return="org.apache.hadoop.io.compress.CompressionCodec"
  13614. abstract="false" native="false" synchronized="false"
  13615. static="false" final="false" visibility="public"
  13616. deprecated="not deprecated">
  13617. <doc>
  13618. <![CDATA[Returns the compression codec of data in this file.]]>
  13619. </doc>
  13620. </method>
  13621. <method name="getMetadata" return="org.apache.hadoop.io.SequenceFile.Metadata"
  13622. abstract="false" native="false" synchronized="false"
  13623. static="false" final="false" visibility="public"
  13624. deprecated="not deprecated">
  13625. <doc>
  13626. <![CDATA[Returns the metadata object of the file]]>
  13627. </doc>
  13628. </method>
  13629. <method name="getCurrentValue"
  13630. abstract="false" native="false" synchronized="true"
  13631. static="false" final="false" visibility="public"
  13632. deprecated="not deprecated">
  13633. <param name="val" type="org.apache.hadoop.io.Writable"/>
  13634. <exception name="IOException" type="java.io.IOException"/>
  13635. <doc>
  13636. <![CDATA[Get the 'value' corresponding to the last read 'key'.
  13637. @param val : The 'value' to be read.
  13638. @throws IOException]]>
  13639. </doc>
  13640. </method>
  13641. <method name="getCurrentValue" return="java.lang.Object"
  13642. abstract="false" native="false" synchronized="true"
  13643. static="false" final="false" visibility="public"
  13644. deprecated="not deprecated">
  13645. <param name="val" type="java.lang.Object"/>
  13646. <exception name="IOException" type="java.io.IOException"/>
  13647. <doc>
  13648. <![CDATA[Get the 'value' corresponding to the last read 'key'.
  13649. @param val : The 'value' to be read.
  13650. @throws IOException]]>
  13651. </doc>
  13652. </method>
  13653. <method name="next" return="boolean"
  13654. abstract="false" native="false" synchronized="true"
  13655. static="false" final="false" visibility="public"
  13656. deprecated="not deprecated">
  13657. <param name="key" type="org.apache.hadoop.io.Writable"/>
  13658. <exception name="IOException" type="java.io.IOException"/>
  13659. <doc>
  13660. <![CDATA[Read the next key in the file into <code>key</code>, skipping its
  13661. value. True if another entry exists, and false at end of file.]]>
  13662. </doc>
  13663. </method>
  13664. <method name="next" return="boolean"
  13665. abstract="false" native="false" synchronized="true"
  13666. static="false" final="false" visibility="public"
  13667. deprecated="not deprecated">
  13668. <param name="key" type="org.apache.hadoop.io.Writable"/>
  13669. <param name="val" type="org.apache.hadoop.io.Writable"/>
  13670. <exception name="IOException" type="java.io.IOException"/>
  13671. <doc>
  13672. <![CDATA[Read the next key/value pair in the file into <code>key</code> and
  13673. <code>val</code>. Returns true if such a pair exists and false when at
  13674. end of file]]>
  13675. </doc>
  13676. </method>
  13677. <method name="next" return="int"
  13678. abstract="false" native="false" synchronized="true"
  13679. static="false" final="false" visibility="public"
  13680. deprecated="Call {@link #nextRaw(DataOutputBuffer,SequenceFile.ValueBytes)}.">
  13681. <param name="buffer" type="org.apache.hadoop.io.DataOutputBuffer"/>
  13682. <exception name="IOException" type="java.io.IOException"/>
  13683. <doc>
  13684. <![CDATA[@deprecated Call {@link #nextRaw(DataOutputBuffer,SequenceFile.ValueBytes)}.]]>
  13685. </doc>
  13686. </method>
  13687. <method name="createValueBytes" return="org.apache.hadoop.io.SequenceFile.ValueBytes"
  13688. abstract="false" native="false" synchronized="false"
  13689. static="false" final="false" visibility="public"
  13690. deprecated="not deprecated">
  13691. </method>
  13692. <method name="nextRaw" return="int"
  13693. abstract="false" native="false" synchronized="true"
  13694. static="false" final="false" visibility="public"
  13695. deprecated="not deprecated">
  13696. <param name="key" type="org.apache.hadoop.io.DataOutputBuffer"/>
  13697. <param name="val" type="org.apache.hadoop.io.SequenceFile.ValueBytes"/>
  13698. <exception name="IOException" type="java.io.IOException"/>
  13699. <doc>
  13700. <![CDATA[Read 'raw' records.
  13701. @param key - The buffer into which the key is read
  13702. @param val - The 'raw' value
  13703. @return Returns the total record length or -1 for end of file
  13704. @throws IOException]]>
  13705. </doc>
  13706. </method>
  13707. <method name="nextRawKey" return="int"
  13708. abstract="false" native="false" synchronized="false"
  13709. static="false" final="false" visibility="public"
  13710. deprecated="not deprecated">
  13711. <param name="key" type="org.apache.hadoop.io.DataOutputBuffer"/>
  13712. <exception name="IOException" type="java.io.IOException"/>
  13713. <doc>
  13714. <![CDATA[Read 'raw' keys.
  13715. @param key - The buffer into which the key is read
  13716. @return Returns the key length or -1 for end of file
  13717. @throws IOException]]>
  13718. </doc>
  13719. </method>
  13720. <method name="next" return="java.lang.Object"
  13721. abstract="false" native="false" synchronized="true"
  13722. static="false" final="false" visibility="public"
  13723. deprecated="not deprecated">
  13724. <param name="key" type="java.lang.Object"/>
  13725. <exception name="IOException" type="java.io.IOException"/>
  13726. <doc>
  13727. <![CDATA[Read the next key in the file, skipping its
  13728. value. Return null at end of file.]]>
  13729. </doc>
  13730. </method>
  13731. <method name="nextRawValue" return="int"
  13732. abstract="false" native="false" synchronized="true"
  13733. static="false" final="false" visibility="public"
  13734. deprecated="not deprecated">
  13735. <param name="val" type="org.apache.hadoop.io.SequenceFile.ValueBytes"/>
  13736. <exception name="IOException" type="java.io.IOException"/>
  13737. <doc>
  13738. <![CDATA[Read 'raw' values.
  13739. @param val - The 'raw' value
  13740. @return Returns the value length
  13741. @throws IOException]]>
  13742. </doc>
  13743. </method>
  13744. <method name="seek"
  13745. abstract="false" native="false" synchronized="true"
  13746. static="false" final="false" visibility="public"
  13747. deprecated="not deprecated">
  13748. <param name="position" type="long"/>
  13749. <exception name="IOException" type="java.io.IOException"/>
  13750. <doc>
  13751. <![CDATA[Set the current byte position in the input file.
  13752. <p>The position passed must be a position returned by {@link
  13753. SequenceFile.Writer#getLength()} when writing this file. To seek to an arbitrary
  13754. position, use {@link SequenceFile.Reader#sync(long)}.]]>
  13755. </doc>
  13756. </method>
  13757. <method name="sync"
  13758. abstract="false" native="false" synchronized="true"
  13759. static="false" final="false" visibility="public"
  13760. deprecated="not deprecated">
  13761. <param name="position" type="long"/>
  13762. <exception name="IOException" type="java.io.IOException"/>
  13763. <doc>
  13764. <![CDATA[Seek to the next sync mark past a given position.]]>
  13765. </doc>
  13766. </method>
  13767. <method name="syncSeen" return="boolean"
  13768. abstract="false" native="false" synchronized="false"
  13769. static="false" final="false" visibility="public"
  13770. deprecated="not deprecated">
  13771. <doc>
  13772. <![CDATA[Returns true iff the previous call to next passed a sync mark.]]>
  13773. </doc>
  13774. </method>
  13775. <method name="getPosition" return="long"
  13776. abstract="false" native="false" synchronized="true"
  13777. static="false" final="false" visibility="public"
  13778. deprecated="not deprecated">
  13779. <exception name="IOException" type="java.io.IOException"/>
  13780. <doc>
  13781. <![CDATA[Return the current byte position in the input file.]]>
  13782. </doc>
  13783. </method>
  13784. <method name="toString" return="java.lang.String"
  13785. abstract="false" native="false" synchronized="false"
  13786. static="false" final="false" visibility="public"
  13787. deprecated="not deprecated">
  13788. <doc>
  13789. <![CDATA[Returns the name of the file.]]>
  13790. </doc>
  13791. </method>
  13792. <doc>
  13793. <![CDATA[Reads key/value pairs from a sequence-format file.]]>
  13794. </doc>
  13795. </class>
  13796. <!-- end class org.apache.hadoop.io.SequenceFile.Reader -->
  13797. <!-- start class org.apache.hadoop.io.SequenceFile.Sorter -->
  13798. <class name="SequenceFile.Sorter" extends="java.lang.Object"
  13799. abstract="false"
  13800. static="true" final="false" visibility="public"
  13801. deprecated="not deprecated">
  13802. <constructor name="SequenceFile.Sorter" type="org.apache.hadoop.fs.FileSystem, java.lang.Class, java.lang.Class, org.apache.hadoop.conf.Configuration"
  13803. static="false" final="false" visibility="public"
  13804. deprecated="not deprecated">
  13805. <doc>
  13806. <![CDATA[Sort and merge files containing the named classes.]]>
  13807. </doc>
  13808. </constructor>
  13809. <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"
  13810. static="false" final="false" visibility="public"
  13811. deprecated="not deprecated">
  13812. <doc>
  13813. <![CDATA[Sort and merge using an arbitrary {@link RawComparator}.]]>
  13814. </doc>
  13815. </constructor>
  13816. <method name="setFactor"
  13817. abstract="false" native="false" synchronized="false"
  13818. static="false" final="false" visibility="public"
  13819. deprecated="not deprecated">
  13820. <param name="factor" type="int"/>
  13821. <doc>
  13822. <![CDATA[Set the number of streams to merge at once.]]>
  13823. </doc>
  13824. </method>
  13825. <method name="getFactor" return="int"
  13826. abstract="false" native="false" synchronized="false"
  13827. static="false" final="false" visibility="public"
  13828. deprecated="not deprecated">
  13829. <doc>
  13830. <![CDATA[Get the number of streams to merge at once.]]>
  13831. </doc>
  13832. </method>
  13833. <method name="setMemory"
  13834. abstract="false" native="false" synchronized="false"
  13835. static="false" final="false" visibility="public"
  13836. deprecated="not deprecated">
  13837. <param name="memory" type="int"/>
  13838. <doc>
  13839. <![CDATA[Set the total amount of buffer memory, in bytes.]]>
  13840. </doc>
  13841. </method>
  13842. <method name="getMemory" return="int"
  13843. abstract="false" native="false" synchronized="false"
  13844. static="false" final="false" visibility="public"
  13845. deprecated="not deprecated">
  13846. <doc>
  13847. <![CDATA[Get the total amount of buffer memory, in bytes.]]>
  13848. </doc>
  13849. </method>
  13850. <method name="setProgressable"
  13851. abstract="false" native="false" synchronized="false"
  13852. static="false" final="false" visibility="public"
  13853. deprecated="not deprecated">
  13854. <param name="progressable" type="org.apache.hadoop.util.Progressable"/>
  13855. <doc>
  13856. <![CDATA[Set the progressable object in order to report progress.]]>
  13857. </doc>
  13858. </method>
  13859. <method name="sort"
  13860. abstract="false" native="false" synchronized="false"
  13861. static="false" final="false" visibility="public"
  13862. deprecated="not deprecated">
  13863. <param name="inFiles" type="org.apache.hadoop.fs.Path[]"/>
  13864. <param name="outFile" type="org.apache.hadoop.fs.Path"/>
  13865. <param name="deleteInput" type="boolean"/>
  13866. <exception name="IOException" type="java.io.IOException"/>
  13867. <doc>
  13868. <![CDATA[Perform a file sort from a set of input files into an output file.
  13869. @param inFiles the files to be sorted
  13870. @param outFile the sorted output file
  13871. @param deleteInput should the input files be deleted as they are read?]]>
  13872. </doc>
  13873. </method>
  13874. <method name="sortAndIterate" return="org.apache.hadoop.io.SequenceFile.Sorter.RawKeyValueIterator"
  13875. abstract="false" native="false" synchronized="false"
  13876. static="false" final="false" visibility="public"
  13877. deprecated="not deprecated">
  13878. <param name="inFiles" type="org.apache.hadoop.fs.Path[]"/>
  13879. <param name="tempDir" type="org.apache.hadoop.fs.Path"/>
  13880. <param name="deleteInput" type="boolean"/>
  13881. <exception name="IOException" type="java.io.IOException"/>
  13882. <doc>
  13883. <![CDATA[Perform a file sort from a set of input files and return an iterator.
  13884. @param inFiles the files to be sorted
  13885. @param tempDir the directory where temp files are created during sort
  13886. @param deleteInput should the input files be deleted as they are read?
  13887. @return iterator the RawKeyValueIterator]]>
  13888. </doc>
  13889. </method>
  13890. <method name="sort"
  13891. abstract="false" native="false" synchronized="false"
  13892. static="false" final="false" visibility="public"
  13893. deprecated="not deprecated">
  13894. <param name="inFile" type="org.apache.hadoop.fs.Path"/>
  13895. <param name="outFile" type="org.apache.hadoop.fs.Path"/>
  13896. <exception name="IOException" type="java.io.IOException"/>
  13897. <doc>
  13898. <![CDATA[The backwards compatible interface to sort.
  13899. @param inFile the input file to sort
  13900. @param outFile the sorted output file]]>
  13901. </doc>
  13902. </method>
  13903. <method name="merge" return="org.apache.hadoop.io.SequenceFile.Sorter.RawKeyValueIterator"
  13904. abstract="false" native="false" synchronized="false"
  13905. static="false" final="false" visibility="public"
  13906. deprecated="not deprecated">
  13907. <param name="segments" type="java.util.List"/>
  13908. <param name="tmpDir" type="org.apache.hadoop.fs.Path"/>
  13909. <exception name="IOException" type="java.io.IOException"/>
  13910. <doc>
  13911. <![CDATA[Merges the list of segments of type <code>SegmentDescriptor</code>
  13912. @param segments the list of SegmentDescriptors
  13913. @param tmpDir the directory to write temporary files into
  13914. @return RawKeyValueIterator
  13915. @throws IOException]]>
  13916. </doc>
  13917. </method>
  13918. <method name="merge" return="org.apache.hadoop.io.SequenceFile.Sorter.RawKeyValueIterator"
  13919. abstract="false" native="false" synchronized="false"
  13920. static="false" final="false" visibility="public"
  13921. deprecated="not deprecated">
  13922. <param name="inNames" type="org.apache.hadoop.fs.Path[]"/>
  13923. <param name="deleteInputs" type="boolean"/>
  13924. <param name="tmpDir" type="org.apache.hadoop.fs.Path"/>
  13925. <exception name="IOException" type="java.io.IOException"/>
  13926. <doc>
  13927. <![CDATA[Merges the contents of files passed in Path[] using a max factor value
  13928. that is already set
  13929. @param inNames the array of path names
  13930. @param deleteInputs true if the input files should be deleted when
  13931. unnecessary
  13932. @param tmpDir the directory to write temporary files into
  13933. @return RawKeyValueIteratorMergeQueue
  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="factor" type="int"/>
  13944. <param name="tmpDir" type="org.apache.hadoop.fs.Path"/>
  13945. <exception name="IOException" type="java.io.IOException"/>
  13946. <doc>
  13947. <![CDATA[Merges the contents of files passed in Path[]
  13948. @param inNames the array of path names
  13949. @param deleteInputs true if the input files should be deleted when
  13950. unnecessary
  13951. @param factor the factor that will be used as the maximum merge fan-in
  13952. @param tmpDir the directory to write temporary files into
  13953. @return RawKeyValueIteratorMergeQueue
  13954. @throws IOException]]>
  13955. </doc>
  13956. </method>
  13957. <method name="merge" return="org.apache.hadoop.io.SequenceFile.Sorter.RawKeyValueIterator"
  13958. abstract="false" native="false" synchronized="false"
  13959. static="false" final="false" visibility="public"
  13960. deprecated="not deprecated">
  13961. <param name="inNames" type="org.apache.hadoop.fs.Path[]"/>
  13962. <param name="tempDir" type="org.apache.hadoop.fs.Path"/>
  13963. <param name="deleteInputs" type="boolean"/>
  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 tempDir the directory for creating temp files during merge
  13969. @param deleteInputs true if the input files should be deleted when
  13970. unnecessary
  13971. @return RawKeyValueIteratorMergeQueue
  13972. @throws IOException]]>
  13973. </doc>
  13974. </method>
  13975. <method name="cloneFileAttributes" return="org.apache.hadoop.io.SequenceFile.Writer"
  13976. abstract="false" native="false" synchronized="false"
  13977. static="false" final="false" visibility="public"
  13978. deprecated="not deprecated">
  13979. <param name="inputFile" type="org.apache.hadoop.fs.Path"/>
  13980. <param name="outputFile" type="org.apache.hadoop.fs.Path"/>
  13981. <param name="prog" type="org.apache.hadoop.util.Progressable"/>
  13982. <exception name="IOException" type="java.io.IOException"/>
  13983. <doc>
  13984. <![CDATA[Clones the attributes (like compression of the input file and creates a
  13985. corresponding Writer
  13986. @param inputFile the path of the input file whose attributes should be
  13987. cloned
  13988. @param outputFile the path of the output file
  13989. @param prog the Progressable to report status during the file write
  13990. @return Writer
  13991. @throws IOException]]>
  13992. </doc>
  13993. </method>
  13994. <method name="writeFile"
  13995. abstract="false" native="false" synchronized="false"
  13996. static="false" final="false" visibility="public"
  13997. deprecated="not deprecated">
  13998. <param name="records" type="org.apache.hadoop.io.SequenceFile.Sorter.RawKeyValueIterator"/>
  13999. <param name="writer" type="org.apache.hadoop.io.SequenceFile.Writer"/>
  14000. <exception name="IOException" type="java.io.IOException"/>
  14001. <doc>
  14002. <![CDATA[Writes records from RawKeyValueIterator into a file represented by the
  14003. passed writer
  14004. @param records the RawKeyValueIterator
  14005. @param writer the Writer created earlier
  14006. @throws IOException]]>
  14007. </doc>
  14008. </method>
  14009. <method name="merge"
  14010. abstract="false" native="false" synchronized="false"
  14011. static="false" final="false" visibility="public"
  14012. deprecated="not deprecated">
  14013. <param name="inFiles" type="org.apache.hadoop.fs.Path[]"/>
  14014. <param name="outFile" type="org.apache.hadoop.fs.Path"/>
  14015. <exception name="IOException" type="java.io.IOException"/>
  14016. <doc>
  14017. <![CDATA[Merge the provided files.
  14018. @param inFiles the array of input path names
  14019. @param outFile the final output file
  14020. @throws IOException]]>
  14021. </doc>
  14022. </method>
  14023. <doc>
  14024. <![CDATA[Sorts key/value pairs in a sequence-format file.
  14025. <p>For best performance, applications should make sure that the {@link
  14026. Writable#readFields(DataInput)} implementation of their keys is
  14027. very efficient. In particular, it should avoid allocating memory.]]>
  14028. </doc>
  14029. </class>
  14030. <!-- end class org.apache.hadoop.io.SequenceFile.Sorter -->
  14031. <!-- start interface org.apache.hadoop.io.SequenceFile.Sorter.RawKeyValueIterator -->
  14032. <interface name="SequenceFile.Sorter.RawKeyValueIterator" abstract="true"
  14033. static="true" final="false" visibility="public"
  14034. deprecated="not deprecated">
  14035. <method name="getKey" return="org.apache.hadoop.io.DataOutputBuffer"
  14036. abstract="false" native="false" synchronized="false"
  14037. static="false" final="false" visibility="public"
  14038. deprecated="not deprecated">
  14039. <exception name="IOException" type="java.io.IOException"/>
  14040. <doc>
  14041. <![CDATA[Gets the current raw key
  14042. @return DataOutputBuffer
  14043. @throws IOException]]>
  14044. </doc>
  14045. </method>
  14046. <method name="getValue" return="org.apache.hadoop.io.SequenceFile.ValueBytes"
  14047. abstract="false" native="false" synchronized="false"
  14048. static="false" final="false" visibility="public"
  14049. deprecated="not deprecated">
  14050. <exception name="IOException" type="java.io.IOException"/>
  14051. <doc>
  14052. <![CDATA[Gets the current raw value
  14053. @return ValueBytes
  14054. @throws IOException]]>
  14055. </doc>
  14056. </method>
  14057. <method name="next" return="boolean"
  14058. abstract="false" native="false" synchronized="false"
  14059. static="false" final="false" visibility="public"
  14060. deprecated="not deprecated">
  14061. <exception name="IOException" type="java.io.IOException"/>
  14062. <doc>
  14063. <![CDATA[Sets up the current key and value (for getKey and getValue)
  14064. @return true if there exists a key/value, false otherwise
  14065. @throws IOException]]>
  14066. </doc>
  14067. </method>
  14068. <method name="close"
  14069. abstract="false" native="false" synchronized="false"
  14070. static="false" final="false" visibility="public"
  14071. deprecated="not deprecated">
  14072. <exception name="IOException" type="java.io.IOException"/>
  14073. <doc>
  14074. <![CDATA[closes the iterator so that the underlying streams can be closed
  14075. @throws IOException]]>
  14076. </doc>
  14077. </method>
  14078. <method name="getProgress" return="org.apache.hadoop.util.Progress"
  14079. abstract="false" native="false" synchronized="false"
  14080. static="false" final="false" visibility="public"
  14081. deprecated="not deprecated">
  14082. <doc>
  14083. <![CDATA[Gets the Progress object; this has a float (0.0 - 1.0)
  14084. indicating the bytes processed by the iterator so far]]>
  14085. </doc>
  14086. </method>
  14087. <doc>
  14088. <![CDATA[The interface to iterate over raw keys/values of SequenceFiles.]]>
  14089. </doc>
  14090. </interface>
  14091. <!-- end interface org.apache.hadoop.io.SequenceFile.Sorter.RawKeyValueIterator -->
  14092. <!-- start class org.apache.hadoop.io.SequenceFile.Sorter.SegmentDescriptor -->
  14093. <class name="SequenceFile.Sorter.SegmentDescriptor" extends="java.lang.Object"
  14094. abstract="false"
  14095. static="false" final="false" visibility="public"
  14096. deprecated="not deprecated">
  14097. <implements name="java.lang.Comparable"/>
  14098. <constructor name="SequenceFile.Sorter.SegmentDescriptor" type="long, long, org.apache.hadoop.fs.Path"
  14099. static="false" final="false" visibility="public"
  14100. deprecated="not deprecated">
  14101. <doc>
  14102. <![CDATA[Constructs a segment
  14103. @param segmentOffset the offset of the segment in the file
  14104. @param segmentLength the length of the segment
  14105. @param segmentPathName the path name of the file containing the segment]]>
  14106. </doc>
  14107. </constructor>
  14108. <method name="doSync"
  14109. abstract="false" native="false" synchronized="false"
  14110. static="false" final="false" visibility="public"
  14111. deprecated="not deprecated">
  14112. <doc>
  14113. <![CDATA[Do the sync checks]]>
  14114. </doc>
  14115. </method>
  14116. <method name="preserveInput"
  14117. abstract="false" native="false" synchronized="false"
  14118. static="false" final="false" visibility="public"
  14119. deprecated="not deprecated">
  14120. <param name="preserve" type="boolean"/>
  14121. <doc>
  14122. <![CDATA[Whether to delete the files when no longer needed]]>
  14123. </doc>
  14124. </method>
  14125. <method name="shouldPreserveInput" return="boolean"
  14126. abstract="false" native="false" synchronized="false"
  14127. static="false" final="false" visibility="public"
  14128. deprecated="not deprecated">
  14129. </method>
  14130. <method name="compareTo" return="int"
  14131. abstract="false" native="false" synchronized="false"
  14132. static="false" final="false" visibility="public"
  14133. deprecated="not deprecated">
  14134. <param name="o" type="java.lang.Object"/>
  14135. </method>
  14136. <method name="equals" return="boolean"
  14137. abstract="false" native="false" synchronized="false"
  14138. static="false" final="false" visibility="public"
  14139. deprecated="not deprecated">
  14140. <param name="o" type="java.lang.Object"/>
  14141. </method>
  14142. <method name="hashCode" return="int"
  14143. abstract="false" native="false" synchronized="false"
  14144. static="false" final="false" visibility="public"
  14145. deprecated="not deprecated">
  14146. </method>
  14147. <method name="nextRawKey" return="boolean"
  14148. abstract="false" native="false" synchronized="false"
  14149. static="false" final="false" visibility="public"
  14150. deprecated="not deprecated">
  14151. <exception name="IOException" type="java.io.IOException"/>
  14152. <doc>
  14153. <![CDATA[Fills up the rawKey object with the key returned by the Reader
  14154. @return true if there is a key returned; false, otherwise
  14155. @throws IOException]]>
  14156. </doc>
  14157. </method>
  14158. <method name="nextRawValue" return="int"
  14159. abstract="false" native="false" synchronized="false"
  14160. static="false" final="false" visibility="public"
  14161. deprecated="not deprecated">
  14162. <param name="rawValue" type="org.apache.hadoop.io.SequenceFile.ValueBytes"/>
  14163. <exception name="IOException" type="java.io.IOException"/>
  14164. <doc>
  14165. <![CDATA[Fills up the passed rawValue with the value corresponding to the key
  14166. read earlier
  14167. @param rawValue
  14168. @return the length of the value
  14169. @throws IOException]]>
  14170. </doc>
  14171. </method>
  14172. <method name="getKey" return="org.apache.hadoop.io.DataOutputBuffer"
  14173. abstract="false" native="false" synchronized="false"
  14174. static="false" final="false" visibility="public"
  14175. deprecated="not deprecated">
  14176. <doc>
  14177. <![CDATA[Returns the stored rawKey]]>
  14178. </doc>
  14179. </method>
  14180. <method name="cleanup"
  14181. abstract="false" native="false" synchronized="false"
  14182. static="false" final="false" visibility="public"
  14183. deprecated="not deprecated">
  14184. <exception name="IOException" type="java.io.IOException"/>
  14185. <doc>
  14186. <![CDATA[The default cleanup. Subclasses can override this with a custom
  14187. cleanup]]>
  14188. </doc>
  14189. </method>
  14190. <doc>
  14191. <![CDATA[This class defines a merge segment. This class can be subclassed to
  14192. provide a customized cleanup method implementation. In this
  14193. implementation, cleanup closes the file handle and deletes the file]]>
  14194. </doc>
  14195. </class>
  14196. <!-- end class org.apache.hadoop.io.SequenceFile.Sorter.SegmentDescriptor -->
  14197. <!-- start interface org.apache.hadoop.io.SequenceFile.ValueBytes -->
  14198. <interface name="SequenceFile.ValueBytes" abstract="true"
  14199. static="true" final="false" visibility="public"
  14200. deprecated="not deprecated">
  14201. <method name="writeUncompressedBytes"
  14202. abstract="false" native="false" synchronized="false"
  14203. static="false" final="false" visibility="public"
  14204. deprecated="not deprecated">
  14205. <param name="outStream" type="java.io.DataOutputStream"/>
  14206. <exception name="IOException" type="java.io.IOException"/>
  14207. <doc>
  14208. <![CDATA[Writes the uncompressed bytes to the outStream.
  14209. @param outStream : Stream to write uncompressed bytes into.
  14210. @throws IOException]]>
  14211. </doc>
  14212. </method>
  14213. <method name="writeCompressedBytes"
  14214. abstract="false" native="false" synchronized="false"
  14215. static="false" final="false" visibility="public"
  14216. deprecated="not deprecated">
  14217. <param name="outStream" type="java.io.DataOutputStream"/>
  14218. <exception name="IllegalArgumentException" type="java.lang.IllegalArgumentException"/>
  14219. <exception name="IOException" type="java.io.IOException"/>
  14220. <doc>
  14221. <![CDATA[Write compressed bytes to outStream.
  14222. Note: that it will NOT compress the bytes if they are not compressed.
  14223. @param outStream : Stream to write compressed bytes into.]]>
  14224. </doc>
  14225. </method>
  14226. <method name="getSize" return="int"
  14227. abstract="false" native="false" synchronized="false"
  14228. static="false" final="false" visibility="public"
  14229. deprecated="not deprecated">
  14230. <doc>
  14231. <![CDATA[Size of stored data.]]>
  14232. </doc>
  14233. </method>
  14234. <doc>
  14235. <![CDATA[The interface to 'raw' values of SequenceFiles.]]>
  14236. </doc>
  14237. </interface>
  14238. <!-- end interface org.apache.hadoop.io.SequenceFile.ValueBytes -->
  14239. <!-- start class org.apache.hadoop.io.SequenceFile.Writer -->
  14240. <class name="SequenceFile.Writer" extends="java.lang.Object"
  14241. abstract="false"
  14242. static="true" final="false" visibility="public"
  14243. deprecated="not deprecated">
  14244. <implements name="java.io.Closeable"/>
  14245. <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"
  14246. static="false" final="false" visibility="public"
  14247. deprecated="not deprecated">
  14248. <exception name="IOException" type="java.io.IOException"/>
  14249. <doc>
  14250. <![CDATA[Create the named file.]]>
  14251. </doc>
  14252. </constructor>
  14253. <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"
  14254. static="false" final="false" visibility="public"
  14255. deprecated="not deprecated">
  14256. <exception name="IOException" type="java.io.IOException"/>
  14257. <doc>
  14258. <![CDATA[Create the named file with write-progress reporter.]]>
  14259. </doc>
  14260. </constructor>
  14261. <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"
  14262. static="false" final="false" visibility="public"
  14263. deprecated="not deprecated">
  14264. <exception name="IOException" type="java.io.IOException"/>
  14265. <doc>
  14266. <![CDATA[Create the named file with write-progress reporter.]]>
  14267. </doc>
  14268. </constructor>
  14269. <method name="getKeyClass" return="java.lang.Class"
  14270. abstract="false" native="false" synchronized="false"
  14271. static="false" final="false" visibility="public"
  14272. deprecated="not deprecated">
  14273. <doc>
  14274. <![CDATA[Returns the class of keys in this file.]]>
  14275. </doc>
  14276. </method>
  14277. <method name="getValueClass" return="java.lang.Class"
  14278. abstract="false" native="false" synchronized="false"
  14279. static="false" final="false" visibility="public"
  14280. deprecated="not deprecated">
  14281. <doc>
  14282. <![CDATA[Returns the class of values in this file.]]>
  14283. </doc>
  14284. </method>
  14285. <method name="getCompressionCodec" return="org.apache.hadoop.io.compress.CompressionCodec"
  14286. abstract="false" native="false" synchronized="false"
  14287. static="false" final="false" visibility="public"
  14288. deprecated="not deprecated">
  14289. <doc>
  14290. <![CDATA[Returns the compression codec of data in this file.]]>
  14291. </doc>
  14292. </method>
  14293. <method name="sync"
  14294. abstract="false" native="false" synchronized="false"
  14295. static="false" final="false" visibility="public"
  14296. deprecated="not deprecated">
  14297. <exception name="IOException" type="java.io.IOException"/>
  14298. <doc>
  14299. <![CDATA[create a sync point]]>
  14300. </doc>
  14301. </method>
  14302. <method name="syncFs"
  14303. abstract="false" native="false" synchronized="false"
  14304. static="false" final="false" visibility="public"
  14305. deprecated="not deprecated">
  14306. <exception name="IOException" type="java.io.IOException"/>
  14307. <doc>
  14308. <![CDATA[flush all currently written data to the file system]]>
  14309. </doc>
  14310. </method>
  14311. <method name="close"
  14312. abstract="false" native="false" synchronized="true"
  14313. static="false" final="false" visibility="public"
  14314. deprecated="not deprecated">
  14315. <exception name="IOException" type="java.io.IOException"/>
  14316. <doc>
  14317. <![CDATA[Close the file.]]>
  14318. </doc>
  14319. </method>
  14320. <method name="append"
  14321. abstract="false" native="false" synchronized="true"
  14322. static="false" final="false" visibility="public"
  14323. deprecated="not deprecated">
  14324. <param name="key" type="org.apache.hadoop.io.Writable"/>
  14325. <param name="val" type="org.apache.hadoop.io.Writable"/>
  14326. <exception name="IOException" type="java.io.IOException"/>
  14327. <doc>
  14328. <![CDATA[Append a key/value pair.]]>
  14329. </doc>
  14330. </method>
  14331. <method name="append"
  14332. abstract="false" native="false" synchronized="true"
  14333. static="false" final="false" visibility="public"
  14334. deprecated="not deprecated">
  14335. <param name="key" type="java.lang.Object"/>
  14336. <param name="val" type="java.lang.Object"/>
  14337. <exception name="IOException" type="java.io.IOException"/>
  14338. <doc>
  14339. <![CDATA[Append a key/value pair.]]>
  14340. </doc>
  14341. </method>
  14342. <method name="appendRaw"
  14343. abstract="false" native="false" synchronized="true"
  14344. static="false" final="false" visibility="public"
  14345. deprecated="not deprecated">
  14346. <param name="keyData" type="byte[]"/>
  14347. <param name="keyOffset" type="int"/>
  14348. <param name="keyLength" type="int"/>
  14349. <param name="val" type="org.apache.hadoop.io.SequenceFile.ValueBytes"/>
  14350. <exception name="IOException" type="java.io.IOException"/>
  14351. </method>
  14352. <method name="getLength" return="long"
  14353. abstract="false" native="false" synchronized="true"
  14354. static="false" final="false" visibility="public"
  14355. deprecated="not deprecated">
  14356. <exception name="IOException" type="java.io.IOException"/>
  14357. <doc>
  14358. <![CDATA[Returns the current length of the output file.
  14359. <p>This always returns a synchronized position. In other words,
  14360. immediately after calling {@link SequenceFile.Reader#seek(long)} with a position
  14361. returned by this method, {@link SequenceFile.Reader#next(Writable)} may be called. However
  14362. the key may be earlier in the file than key last written when this
  14363. method was called (e.g., with block-compression, it may be the first key
  14364. in the block that was being written when this method was called).]]>
  14365. </doc>
  14366. </method>
  14367. <field name="keySerializer" type="org.apache.hadoop.io.serializer.Serializer"
  14368. transient="false" volatile="false"
  14369. static="false" final="false" visibility="protected"
  14370. deprecated="not deprecated">
  14371. </field>
  14372. <field name="uncompressedValSerializer" type="org.apache.hadoop.io.serializer.Serializer"
  14373. transient="false" volatile="false"
  14374. static="false" final="false" visibility="protected"
  14375. deprecated="not deprecated">
  14376. </field>
  14377. <field name="compressedValSerializer" type="org.apache.hadoop.io.serializer.Serializer"
  14378. transient="false" volatile="false"
  14379. static="false" final="false" visibility="protected"
  14380. deprecated="not deprecated">
  14381. </field>
  14382. <doc>
  14383. <![CDATA[Write key/value pairs to a sequence-format file.]]>
  14384. </doc>
  14385. </class>
  14386. <!-- end class org.apache.hadoop.io.SequenceFile.Writer -->
  14387. <!-- start class org.apache.hadoop.io.SetFile -->
  14388. <class name="SetFile" extends="org.apache.hadoop.io.MapFile"
  14389. abstract="false"
  14390. static="false" final="false" visibility="public"
  14391. deprecated="not deprecated">
  14392. <constructor name="SetFile"
  14393. static="false" final="false" visibility="protected"
  14394. deprecated="not deprecated">
  14395. </constructor>
  14396. <doc>
  14397. <![CDATA[A file-based set of keys.]]>
  14398. </doc>
  14399. </class>
  14400. <!-- end class org.apache.hadoop.io.SetFile -->
  14401. <!-- start class org.apache.hadoop.io.SetFile.Reader -->
  14402. <class name="SetFile.Reader" extends="org.apache.hadoop.io.MapFile.Reader"
  14403. abstract="false"
  14404. static="true" final="false" visibility="public"
  14405. deprecated="not deprecated">
  14406. <constructor name="SetFile.Reader" type="org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.conf.Configuration"
  14407. static="false" final="false" visibility="public"
  14408. deprecated="not deprecated">
  14409. <exception name="IOException" type="java.io.IOException"/>
  14410. <doc>
  14411. <![CDATA[Construct a set reader for the named set.]]>
  14412. </doc>
  14413. </constructor>
  14414. <constructor name="SetFile.Reader" type="org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.io.WritableComparator, org.apache.hadoop.conf.Configuration"
  14415. static="false" final="false" visibility="public"
  14416. deprecated="not deprecated">
  14417. <exception name="IOException" type="java.io.IOException"/>
  14418. <doc>
  14419. <![CDATA[Construct a set reader for the named set using the named comparator.]]>
  14420. </doc>
  14421. </constructor>
  14422. <method name="seek" return="boolean"
  14423. abstract="false" native="false" synchronized="false"
  14424. static="false" final="false" visibility="public"
  14425. deprecated="not deprecated">
  14426. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  14427. <exception name="IOException" type="java.io.IOException"/>
  14428. </method>
  14429. <method name="next" return="boolean"
  14430. abstract="false" native="false" synchronized="false"
  14431. static="false" final="false" visibility="public"
  14432. deprecated="not deprecated">
  14433. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  14434. <exception name="IOException" type="java.io.IOException"/>
  14435. <doc>
  14436. <![CDATA[Read the next key in a set into <code>key</code>. Returns
  14437. true if such a key exists and false when at the end of the set.]]>
  14438. </doc>
  14439. </method>
  14440. <method name="get" return="org.apache.hadoop.io.WritableComparable"
  14441. abstract="false" native="false" synchronized="false"
  14442. static="false" final="false" visibility="public"
  14443. deprecated="not deprecated">
  14444. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  14445. <exception name="IOException" type="java.io.IOException"/>
  14446. <doc>
  14447. <![CDATA[Read the matching key from a set into <code>key</code>.
  14448. Returns <code>key</code>, or null if no match exists.]]>
  14449. </doc>
  14450. </method>
  14451. <doc>
  14452. <![CDATA[Provide access to an existing set file.]]>
  14453. </doc>
  14454. </class>
  14455. <!-- end class org.apache.hadoop.io.SetFile.Reader -->
  14456. <!-- start class org.apache.hadoop.io.SetFile.Writer -->
  14457. <class name="SetFile.Writer" extends="org.apache.hadoop.io.MapFile.Writer"
  14458. abstract="false"
  14459. static="true" final="false" visibility="public"
  14460. deprecated="not deprecated">
  14461. <constructor name="SetFile.Writer" type="org.apache.hadoop.fs.FileSystem, java.lang.String, java.lang.Class"
  14462. static="false" final="false" visibility="public"
  14463. deprecated="pass a Configuration too">
  14464. <exception name="IOException" type="java.io.IOException"/>
  14465. <doc>
  14466. <![CDATA[Create the named set for keys of the named class.
  14467. @deprecated pass a Configuration too]]>
  14468. </doc>
  14469. </constructor>
  14470. <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"
  14471. static="false" final="false" visibility="public"
  14472. deprecated="not deprecated">
  14473. <exception name="IOException" type="java.io.IOException"/>
  14474. <doc>
  14475. <![CDATA[Create a set naming the element class and compression type.]]>
  14476. </doc>
  14477. </constructor>
  14478. <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"
  14479. static="false" final="false" visibility="public"
  14480. deprecated="not deprecated">
  14481. <exception name="IOException" type="java.io.IOException"/>
  14482. <doc>
  14483. <![CDATA[Create a set naming the element comparator and compression type.]]>
  14484. </doc>
  14485. </constructor>
  14486. <method name="append"
  14487. abstract="false" native="false" synchronized="false"
  14488. static="false" final="false" visibility="public"
  14489. deprecated="not deprecated">
  14490. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  14491. <exception name="IOException" type="java.io.IOException"/>
  14492. <doc>
  14493. <![CDATA[Append a key to a set. The key must be strictly greater than the
  14494. previous key added to the set.]]>
  14495. </doc>
  14496. </method>
  14497. <doc>
  14498. <![CDATA[Write a new set file.]]>
  14499. </doc>
  14500. </class>
  14501. <!-- end class org.apache.hadoop.io.SetFile.Writer -->
  14502. <!-- start class org.apache.hadoop.io.SortedMapWritable -->
  14503. <class name="SortedMapWritable" extends="org.apache.hadoop.io.AbstractMapWritable"
  14504. abstract="false"
  14505. static="false" final="false" visibility="public"
  14506. deprecated="not deprecated">
  14507. <implements name="java.util.SortedMap"/>
  14508. <constructor name="SortedMapWritable"
  14509. static="false" final="false" visibility="public"
  14510. deprecated="not deprecated">
  14511. <doc>
  14512. <![CDATA[default constructor.]]>
  14513. </doc>
  14514. </constructor>
  14515. <constructor name="SortedMapWritable" type="org.apache.hadoop.io.SortedMapWritable"
  14516. static="false" final="false" visibility="public"
  14517. deprecated="not deprecated">
  14518. <doc>
  14519. <![CDATA[Copy constructor.
  14520. @param other the map to copy from]]>
  14521. </doc>
  14522. </constructor>
  14523. <method name="comparator" return="java.util.Comparator"
  14524. abstract="false" native="false" synchronized="false"
  14525. static="false" final="false" visibility="public"
  14526. deprecated="not deprecated">
  14527. <doc>
  14528. <![CDATA[{@inheritDoc}]]>
  14529. </doc>
  14530. </method>
  14531. <method name="firstKey" return="org.apache.hadoop.io.WritableComparable"
  14532. abstract="false" native="false" synchronized="false"
  14533. static="false" final="false" visibility="public"
  14534. deprecated="not deprecated">
  14535. <doc>
  14536. <![CDATA[{@inheritDoc}]]>
  14537. </doc>
  14538. </method>
  14539. <method name="headMap" return="java.util.SortedMap"
  14540. abstract="false" native="false" synchronized="false"
  14541. static="false" final="false" visibility="public"
  14542. deprecated="not deprecated">
  14543. <param name="toKey" type="org.apache.hadoop.io.WritableComparable"/>
  14544. <doc>
  14545. <![CDATA[{@inheritDoc}]]>
  14546. </doc>
  14547. </method>
  14548. <method name="lastKey" return="org.apache.hadoop.io.WritableComparable"
  14549. abstract="false" native="false" synchronized="false"
  14550. static="false" final="false" visibility="public"
  14551. deprecated="not deprecated">
  14552. <doc>
  14553. <![CDATA[{@inheritDoc}]]>
  14554. </doc>
  14555. </method>
  14556. <method name="subMap" return="java.util.SortedMap"
  14557. abstract="false" native="false" synchronized="false"
  14558. static="false" final="false" visibility="public"
  14559. deprecated="not deprecated">
  14560. <param name="fromKey" type="org.apache.hadoop.io.WritableComparable"/>
  14561. <param name="toKey" type="org.apache.hadoop.io.WritableComparable"/>
  14562. <doc>
  14563. <![CDATA[{@inheritDoc}]]>
  14564. </doc>
  14565. </method>
  14566. <method name="tailMap" return="java.util.SortedMap"
  14567. abstract="false" native="false" synchronized="false"
  14568. static="false" final="false" visibility="public"
  14569. deprecated="not deprecated">
  14570. <param name="fromKey" type="org.apache.hadoop.io.WritableComparable"/>
  14571. <doc>
  14572. <![CDATA[{@inheritDoc}]]>
  14573. </doc>
  14574. </method>
  14575. <method name="clear"
  14576. abstract="false" native="false" synchronized="false"
  14577. static="false" final="false" visibility="public"
  14578. deprecated="not deprecated">
  14579. <doc>
  14580. <![CDATA[{@inheritDoc}]]>
  14581. </doc>
  14582. </method>
  14583. <method name="containsKey" return="boolean"
  14584. abstract="false" native="false" synchronized="false"
  14585. static="false" final="false" visibility="public"
  14586. deprecated="not deprecated">
  14587. <param name="key" type="java.lang.Object"/>
  14588. <doc>
  14589. <![CDATA[{@inheritDoc}]]>
  14590. </doc>
  14591. </method>
  14592. <method name="containsValue" return="boolean"
  14593. abstract="false" native="false" synchronized="false"
  14594. static="false" final="false" visibility="public"
  14595. deprecated="not deprecated">
  14596. <param name="value" type="java.lang.Object"/>
  14597. <doc>
  14598. <![CDATA[{@inheritDoc}]]>
  14599. </doc>
  14600. </method>
  14601. <method name="entrySet" return="java.util.Set"
  14602. abstract="false" native="false" synchronized="false"
  14603. static="false" final="false" visibility="public"
  14604. deprecated="not deprecated">
  14605. <doc>
  14606. <![CDATA[{@inheritDoc}]]>
  14607. </doc>
  14608. </method>
  14609. <method name="get" return="org.apache.hadoop.io.Writable"
  14610. abstract="false" native="false" synchronized="false"
  14611. static="false" final="false" visibility="public"
  14612. deprecated="not deprecated">
  14613. <param name="key" type="java.lang.Object"/>
  14614. <doc>
  14615. <![CDATA[{@inheritDoc}]]>
  14616. </doc>
  14617. </method>
  14618. <method name="isEmpty" return="boolean"
  14619. abstract="false" native="false" synchronized="false"
  14620. static="false" final="false" visibility="public"
  14621. deprecated="not deprecated">
  14622. <doc>
  14623. <![CDATA[{@inheritDoc}]]>
  14624. </doc>
  14625. </method>
  14626. <method name="keySet" return="java.util.Set"
  14627. abstract="false" native="false" synchronized="false"
  14628. static="false" final="false" visibility="public"
  14629. deprecated="not deprecated">
  14630. <doc>
  14631. <![CDATA[{@inheritDoc}]]>
  14632. </doc>
  14633. </method>
  14634. <method name="put" return="org.apache.hadoop.io.Writable"
  14635. abstract="false" native="false" synchronized="false"
  14636. static="false" final="false" visibility="public"
  14637. deprecated="not deprecated">
  14638. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  14639. <param name="value" type="org.apache.hadoop.io.Writable"/>
  14640. <doc>
  14641. <![CDATA[{@inheritDoc}]]>
  14642. </doc>
  14643. </method>
  14644. <method name="putAll"
  14645. abstract="false" native="false" synchronized="false"
  14646. static="false" final="false" visibility="public"
  14647. deprecated="not deprecated">
  14648. <param name="t" type="java.util.Map"/>
  14649. <doc>
  14650. <![CDATA[{@inheritDoc}]]>
  14651. </doc>
  14652. </method>
  14653. <method name="remove" 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="java.lang.Object"/>
  14658. <doc>
  14659. <![CDATA[{@inheritDoc}]]>
  14660. </doc>
  14661. </method>
  14662. <method name="size" return="int"
  14663. abstract="false" native="false" synchronized="false"
  14664. static="false" final="false" visibility="public"
  14665. deprecated="not deprecated">
  14666. <doc>
  14667. <![CDATA[{@inheritDoc}]]>
  14668. </doc>
  14669. </method>
  14670. <method name="values" return="java.util.Collection"
  14671. abstract="false" native="false" synchronized="false"
  14672. static="false" final="false" visibility="public"
  14673. deprecated="not deprecated">
  14674. <doc>
  14675. <![CDATA[{@inheritDoc}]]>
  14676. </doc>
  14677. </method>
  14678. <method name="readFields"
  14679. abstract="false" native="false" synchronized="false"
  14680. static="false" final="false" visibility="public"
  14681. deprecated="not deprecated">
  14682. <param name="in" type="java.io.DataInput"/>
  14683. <exception name="IOException" type="java.io.IOException"/>
  14684. <doc>
  14685. <![CDATA[{@inheritDoc}]]>
  14686. </doc>
  14687. </method>
  14688. <method name="write"
  14689. abstract="false" native="false" synchronized="false"
  14690. static="false" final="false" visibility="public"
  14691. deprecated="not deprecated">
  14692. <param name="out" type="java.io.DataOutput"/>
  14693. <exception name="IOException" type="java.io.IOException"/>
  14694. <doc>
  14695. <![CDATA[{@inheritDoc}]]>
  14696. </doc>
  14697. </method>
  14698. <method name="equals" return="boolean"
  14699. abstract="false" native="false" synchronized="false"
  14700. static="false" final="false" visibility="public"
  14701. deprecated="not deprecated">
  14702. <param name="obj" type="java.lang.Object"/>
  14703. </method>
  14704. <method name="hashCode" return="int"
  14705. abstract="false" native="false" synchronized="false"
  14706. static="false" final="false" visibility="public"
  14707. deprecated="not deprecated">
  14708. </method>
  14709. <doc>
  14710. <![CDATA[A Writable SortedMap.]]>
  14711. </doc>
  14712. </class>
  14713. <!-- end class org.apache.hadoop.io.SortedMapWritable -->
  14714. <!-- start interface org.apache.hadoop.io.Stringifier -->
  14715. <interface name="Stringifier" abstract="true"
  14716. static="false" final="false" visibility="public"
  14717. deprecated="not deprecated">
  14718. <implements name="java.io.Closeable"/>
  14719. <method name="toString" return="java.lang.String"
  14720. abstract="false" native="false" synchronized="false"
  14721. static="false" final="false" visibility="public"
  14722. deprecated="not deprecated">
  14723. <param name="obj" type="java.lang.Object"/>
  14724. <exception name="IOException" type="java.io.IOException"/>
  14725. <doc>
  14726. <![CDATA[Converts the object to a string representation
  14727. @param obj the object to convert
  14728. @return the string representation of the object
  14729. @throws IOException if the object cannot be converted]]>
  14730. </doc>
  14731. </method>
  14732. <method name="fromString" return="java.lang.Object"
  14733. abstract="false" native="false" synchronized="false"
  14734. static="false" final="false" visibility="public"
  14735. deprecated="not deprecated">
  14736. <param name="str" type="java.lang.String"/>
  14737. <exception name="IOException" type="java.io.IOException"/>
  14738. <doc>
  14739. <![CDATA[Restores the object from its string representation.
  14740. @param str the string representation of the object
  14741. @return restored object
  14742. @throws IOException if the object cannot be restored]]>
  14743. </doc>
  14744. </method>
  14745. <method name="close"
  14746. abstract="false" native="false" synchronized="false"
  14747. static="false" final="false" visibility="public"
  14748. deprecated="not deprecated">
  14749. <exception name="IOException" type="java.io.IOException"/>
  14750. <doc>
  14751. <![CDATA[Closes this object.
  14752. @throws IOException if an I/O error occurs]]>
  14753. </doc>
  14754. </method>
  14755. <doc>
  14756. <![CDATA[Stringifier interface offers two methods to convert an object
  14757. to a string representation and restore the object given its
  14758. string representation.
  14759. @param <T> the class of the objects to stringify]]>
  14760. </doc>
  14761. </interface>
  14762. <!-- end interface org.apache.hadoop.io.Stringifier -->
  14763. <!-- start class org.apache.hadoop.io.Text -->
  14764. <class name="Text" extends="org.apache.hadoop.io.BinaryComparable"
  14765. abstract="false"
  14766. static="false" final="false" visibility="public"
  14767. deprecated="not deprecated">
  14768. <implements name="org.apache.hadoop.io.WritableComparable"/>
  14769. <constructor name="Text"
  14770. static="false" final="false" visibility="public"
  14771. deprecated="not deprecated">
  14772. </constructor>
  14773. <constructor name="Text" type="java.lang.String"
  14774. static="false" final="false" visibility="public"
  14775. deprecated="not deprecated">
  14776. <doc>
  14777. <![CDATA[Construct from a string.]]>
  14778. </doc>
  14779. </constructor>
  14780. <constructor name="Text" type="org.apache.hadoop.io.Text"
  14781. static="false" final="false" visibility="public"
  14782. deprecated="not deprecated">
  14783. <doc>
  14784. <![CDATA[Construct from another text.]]>
  14785. </doc>
  14786. </constructor>
  14787. <constructor name="Text" type="byte[]"
  14788. static="false" final="false" visibility="public"
  14789. deprecated="not deprecated">
  14790. <doc>
  14791. <![CDATA[Construct from a byte array.]]>
  14792. </doc>
  14793. </constructor>
  14794. <method name="getBytes" return="byte[]"
  14795. abstract="false" native="false" synchronized="false"
  14796. static="false" final="false" visibility="public"
  14797. deprecated="not deprecated">
  14798. <doc>
  14799. <![CDATA[Returns the raw bytes; however, only data up to {@link #getLength()} is
  14800. valid.]]>
  14801. </doc>
  14802. </method>
  14803. <method name="getLength" return="int"
  14804. abstract="false" native="false" synchronized="false"
  14805. static="false" final="false" visibility="public"
  14806. deprecated="not deprecated">
  14807. <doc>
  14808. <![CDATA[Returns the number of bytes in the byte array]]>
  14809. </doc>
  14810. </method>
  14811. <method name="charAt" return="int"
  14812. abstract="false" native="false" synchronized="false"
  14813. static="false" final="false" visibility="public"
  14814. deprecated="not deprecated">
  14815. <param name="position" type="int"/>
  14816. <doc>
  14817. <![CDATA[Returns the Unicode Scalar Value (32-bit integer value)
  14818. for the character at <code>position</code>. Note that this
  14819. method avoids using the converter or doing String instatiation
  14820. @return the Unicode scalar value at position or -1
  14821. if the position is invalid or points to a
  14822. trailing byte]]>
  14823. </doc>
  14824. </method>
  14825. <method name="find" return="int"
  14826. abstract="false" native="false" synchronized="false"
  14827. static="false" final="false" visibility="public"
  14828. deprecated="not deprecated">
  14829. <param name="what" type="java.lang.String"/>
  14830. </method>
  14831. <method name="find" return="int"
  14832. abstract="false" native="false" synchronized="false"
  14833. static="false" final="false" visibility="public"
  14834. deprecated="not deprecated">
  14835. <param name="what" type="java.lang.String"/>
  14836. <param name="start" type="int"/>
  14837. <doc>
  14838. <![CDATA[Finds any occurence of <code>what</code> in the backing
  14839. buffer, starting as position <code>start</code>. The starting
  14840. position is measured in bytes and the return value is in
  14841. terms of byte position in the buffer. The backing buffer is
  14842. not converted to a string for this operation.
  14843. @return byte position of the first occurence of the search
  14844. string in the UTF-8 buffer or -1 if not found]]>
  14845. </doc>
  14846. </method>
  14847. <method name="set"
  14848. abstract="false" native="false" synchronized="false"
  14849. static="false" final="false" visibility="public"
  14850. deprecated="not deprecated">
  14851. <param name="string" type="java.lang.String"/>
  14852. <doc>
  14853. <![CDATA[Set to contain the contents of a string.]]>
  14854. </doc>
  14855. </method>
  14856. <method name="set"
  14857. abstract="false" native="false" synchronized="false"
  14858. static="false" final="false" visibility="public"
  14859. deprecated="not deprecated">
  14860. <param name="utf8" type="byte[]"/>
  14861. <doc>
  14862. <![CDATA[Set to a utf8 byte array]]>
  14863. </doc>
  14864. </method>
  14865. <method name="set"
  14866. abstract="false" native="false" synchronized="false"
  14867. static="false" final="false" visibility="public"
  14868. deprecated="not deprecated">
  14869. <param name="other" type="org.apache.hadoop.io.Text"/>
  14870. <doc>
  14871. <![CDATA[copy a text.]]>
  14872. </doc>
  14873. </method>
  14874. <method name="set"
  14875. abstract="false" native="false" synchronized="false"
  14876. static="false" final="false" visibility="public"
  14877. deprecated="not deprecated">
  14878. <param name="utf8" type="byte[]"/>
  14879. <param name="start" type="int"/>
  14880. <param name="len" type="int"/>
  14881. <doc>
  14882. <![CDATA[Set the Text to range of bytes
  14883. @param utf8 the data to copy from
  14884. @param start the first position of the new string
  14885. @param len the number of bytes of the new string]]>
  14886. </doc>
  14887. </method>
  14888. <method name="append"
  14889. abstract="false" native="false" synchronized="false"
  14890. static="false" final="false" visibility="public"
  14891. deprecated="not deprecated">
  14892. <param name="utf8" type="byte[]"/>
  14893. <param name="start" type="int"/>
  14894. <param name="len" type="int"/>
  14895. <doc>
  14896. <![CDATA[Append a range of bytes to the end of the given text
  14897. @param utf8 the data to copy from
  14898. @param start the first position to append from utf8
  14899. @param len the number of bytes to append]]>
  14900. </doc>
  14901. </method>
  14902. <method name="clear"
  14903. abstract="false" native="false" synchronized="false"
  14904. static="false" final="false" visibility="public"
  14905. deprecated="not deprecated">
  14906. <doc>
  14907. <![CDATA[Clear the string to empty.]]>
  14908. </doc>
  14909. </method>
  14910. <method name="toString" return="java.lang.String"
  14911. abstract="false" native="false" synchronized="false"
  14912. static="false" final="false" visibility="public"
  14913. deprecated="not deprecated">
  14914. <doc>
  14915. <![CDATA[Convert text back to string
  14916. @see java.lang.Object#toString()]]>
  14917. </doc>
  14918. </method>
  14919. <method name="readFields"
  14920. abstract="false" native="false" synchronized="false"
  14921. static="false" final="false" visibility="public"
  14922. deprecated="not deprecated">
  14923. <param name="in" type="java.io.DataInput"/>
  14924. <exception name="IOException" type="java.io.IOException"/>
  14925. <doc>
  14926. <![CDATA[deserialize]]>
  14927. </doc>
  14928. </method>
  14929. <method name="skip"
  14930. abstract="false" native="false" synchronized="false"
  14931. static="true" final="false" visibility="public"
  14932. deprecated="not deprecated">
  14933. <param name="in" type="java.io.DataInput"/>
  14934. <exception name="IOException" type="java.io.IOException"/>
  14935. <doc>
  14936. <![CDATA[Skips over one Text in the input.]]>
  14937. </doc>
  14938. </method>
  14939. <method name="write"
  14940. abstract="false" native="false" synchronized="false"
  14941. static="false" final="false" visibility="public"
  14942. deprecated="not deprecated">
  14943. <param name="out" type="java.io.DataOutput"/>
  14944. <exception name="IOException" type="java.io.IOException"/>
  14945. <doc>
  14946. <![CDATA[serialize
  14947. write this object to out
  14948. length uses zero-compressed encoding
  14949. @see Writable#write(DataOutput)]]>
  14950. </doc>
  14951. </method>
  14952. <method name="equals" return="boolean"
  14953. abstract="false" native="false" synchronized="false"
  14954. static="false" final="false" visibility="public"
  14955. deprecated="not deprecated">
  14956. <param name="o" type="java.lang.Object"/>
  14957. <doc>
  14958. <![CDATA[Returns true iff <code>o</code> is a Text with the same contents.]]>
  14959. </doc>
  14960. </method>
  14961. <method name="hashCode" return="int"
  14962. abstract="false" native="false" synchronized="false"
  14963. static="false" final="false" visibility="public"
  14964. deprecated="not deprecated">
  14965. </method>
  14966. <method name="decode" return="java.lang.String"
  14967. abstract="false" native="false" synchronized="false"
  14968. static="true" final="false" visibility="public"
  14969. deprecated="not deprecated">
  14970. <param name="utf8" type="byte[]"/>
  14971. <exception name="CharacterCodingException" type="java.nio.charset.CharacterCodingException"/>
  14972. <doc>
  14973. <![CDATA[Converts the provided byte array to a String using the
  14974. UTF-8 encoding. If the input is malformed,
  14975. replace by a default value.]]>
  14976. </doc>
  14977. </method>
  14978. <method name="decode" return="java.lang.String"
  14979. abstract="false" native="false" synchronized="false"
  14980. static="true" final="false" visibility="public"
  14981. deprecated="not deprecated">
  14982. <param name="utf8" type="byte[]"/>
  14983. <param name="start" type="int"/>
  14984. <param name="length" type="int"/>
  14985. <exception name="CharacterCodingException" type="java.nio.charset.CharacterCodingException"/>
  14986. </method>
  14987. <method name="decode" return="java.lang.String"
  14988. abstract="false" native="false" synchronized="false"
  14989. static="true" final="false" visibility="public"
  14990. deprecated="not deprecated">
  14991. <param name="utf8" type="byte[]"/>
  14992. <param name="start" type="int"/>
  14993. <param name="length" type="int"/>
  14994. <param name="replace" type="boolean"/>
  14995. <exception name="CharacterCodingException" type="java.nio.charset.CharacterCodingException"/>
  14996. <doc>
  14997. <![CDATA[Converts the provided byte array to a String using the
  14998. UTF-8 encoding. If <code>replace</code> is true, then
  14999. malformed input is replaced with the
  15000. substitution character, which is U+FFFD. Otherwise the
  15001. method throws a MalformedInputException.]]>
  15002. </doc>
  15003. </method>
  15004. <method name="encode" return="java.nio.ByteBuffer"
  15005. abstract="false" native="false" synchronized="false"
  15006. static="true" final="false" visibility="public"
  15007. deprecated="not deprecated">
  15008. <param name="string" type="java.lang.String"/>
  15009. <exception name="CharacterCodingException" type="java.nio.charset.CharacterCodingException"/>
  15010. <doc>
  15011. <![CDATA[Converts the provided String to bytes using the
  15012. UTF-8 encoding. If the input is malformed,
  15013. invalid chars are replaced by a default value.
  15014. @return ByteBuffer: bytes stores at ByteBuffer.array()
  15015. and length is ByteBuffer.limit()]]>
  15016. </doc>
  15017. </method>
  15018. <method name="encode" return="java.nio.ByteBuffer"
  15019. abstract="false" native="false" synchronized="false"
  15020. static="true" final="false" visibility="public"
  15021. deprecated="not deprecated">
  15022. <param name="string" type="java.lang.String"/>
  15023. <param name="replace" type="boolean"/>
  15024. <exception name="CharacterCodingException" type="java.nio.charset.CharacterCodingException"/>
  15025. <doc>
  15026. <![CDATA[Converts the provided String to bytes using the
  15027. UTF-8 encoding. If <code>replace</code> is true, then
  15028. malformed input is replaced with the
  15029. substitution character, which is U+FFFD. Otherwise the
  15030. method throws a MalformedInputException.
  15031. @return ByteBuffer: bytes stores at ByteBuffer.array()
  15032. and length is ByteBuffer.limit()]]>
  15033. </doc>
  15034. </method>
  15035. <method name="readString" return="java.lang.String"
  15036. abstract="false" native="false" synchronized="false"
  15037. static="true" final="false" visibility="public"
  15038. deprecated="not deprecated">
  15039. <param name="in" type="java.io.DataInput"/>
  15040. <exception name="IOException" type="java.io.IOException"/>
  15041. <doc>
  15042. <![CDATA[Read a UTF8 encoded string from in]]>
  15043. </doc>
  15044. </method>
  15045. <method name="writeString" return="int"
  15046. abstract="false" native="false" synchronized="false"
  15047. static="true" final="false" visibility="public"
  15048. deprecated="not deprecated">
  15049. <param name="out" type="java.io.DataOutput"/>
  15050. <param name="s" type="java.lang.String"/>
  15051. <exception name="IOException" type="java.io.IOException"/>
  15052. <doc>
  15053. <![CDATA[Write a UTF8 encoded string to out]]>
  15054. </doc>
  15055. </method>
  15056. <method name="validateUTF8"
  15057. abstract="false" native="false" synchronized="false"
  15058. static="true" final="false" visibility="public"
  15059. deprecated="not deprecated">
  15060. <param name="utf8" type="byte[]"/>
  15061. <exception name="MalformedInputException" type="java.nio.charset.MalformedInputException"/>
  15062. <doc>
  15063. <![CDATA[Check if a byte array contains valid utf-8
  15064. @param utf8 byte array
  15065. @throws MalformedInputException if the byte array contains invalid utf-8]]>
  15066. </doc>
  15067. </method>
  15068. <method name="validateUTF8"
  15069. abstract="false" native="false" synchronized="false"
  15070. static="true" final="false" visibility="public"
  15071. deprecated="not deprecated">
  15072. <param name="utf8" type="byte[]"/>
  15073. <param name="start" type="int"/>
  15074. <param name="len" type="int"/>
  15075. <exception name="MalformedInputException" type="java.nio.charset.MalformedInputException"/>
  15076. <doc>
  15077. <![CDATA[Check to see if a byte array is valid utf-8
  15078. @param utf8 the array of bytes
  15079. @param start the offset of the first byte in the array
  15080. @param len the length of the byte sequence
  15081. @throws MalformedInputException if the byte array contains invalid bytes]]>
  15082. </doc>
  15083. </method>
  15084. <method name="bytesToCodePoint" return="int"
  15085. abstract="false" native="false" synchronized="false"
  15086. static="true" final="false" visibility="public"
  15087. deprecated="not deprecated">
  15088. <param name="bytes" type="java.nio.ByteBuffer"/>
  15089. <doc>
  15090. <![CDATA[Returns the next code point at the current position in
  15091. the buffer. The buffer's position will be incremented.
  15092. Any mark set on this buffer will be changed by this method!]]>
  15093. </doc>
  15094. </method>
  15095. <method name="utf8Length" return="int"
  15096. abstract="false" native="false" synchronized="false"
  15097. static="true" final="false" visibility="public"
  15098. deprecated="not deprecated">
  15099. <param name="string" type="java.lang.String"/>
  15100. <doc>
  15101. <![CDATA[For the given string, returns the number of UTF-8 bytes
  15102. required to encode the string.
  15103. @param string text to encode
  15104. @return number of UTF-8 bytes required to encode]]>
  15105. </doc>
  15106. </method>
  15107. <doc>
  15108. <![CDATA[This class stores text using standard UTF8 encoding. It provides methods
  15109. to serialize, deserialize, and compare texts at byte level. The type of
  15110. length is integer and is serialized using zero-compressed format. <p>In
  15111. addition, it provides methods for string traversal without converting the
  15112. byte array to a string. <p>Also includes utilities for
  15113. serializing/deserialing a string, coding/decoding a string, checking if a
  15114. byte array contains valid UTF8 code, calculating the length of an encoded
  15115. string.]]>
  15116. </doc>
  15117. </class>
  15118. <!-- end class org.apache.hadoop.io.Text -->
  15119. <!-- start class org.apache.hadoop.io.Text.Comparator -->
  15120. <class name="Text.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  15121. abstract="false"
  15122. static="true" final="false" visibility="public"
  15123. deprecated="not deprecated">
  15124. <constructor name="Text.Comparator"
  15125. static="false" final="false" visibility="public"
  15126. deprecated="not deprecated">
  15127. </constructor>
  15128. <method name="compare" return="int"
  15129. abstract="false" native="false" synchronized="false"
  15130. static="false" final="false" visibility="public"
  15131. deprecated="not deprecated">
  15132. <param name="b1" type="byte[]"/>
  15133. <param name="s1" type="int"/>
  15134. <param name="l1" type="int"/>
  15135. <param name="b2" type="byte[]"/>
  15136. <param name="s2" type="int"/>
  15137. <param name="l2" type="int"/>
  15138. </method>
  15139. <doc>
  15140. <![CDATA[A WritableComparator optimized for Text keys.]]>
  15141. </doc>
  15142. </class>
  15143. <!-- end class org.apache.hadoop.io.Text.Comparator -->
  15144. <!-- start class org.apache.hadoop.io.TwoDArrayWritable -->
  15145. <class name="TwoDArrayWritable" extends="java.lang.Object"
  15146. abstract="false"
  15147. static="false" final="false" visibility="public"
  15148. deprecated="not deprecated">
  15149. <implements name="org.apache.hadoop.io.Writable"/>
  15150. <constructor name="TwoDArrayWritable" type="java.lang.Class"
  15151. static="false" final="false" visibility="public"
  15152. deprecated="not deprecated">
  15153. </constructor>
  15154. <constructor name="TwoDArrayWritable" type="java.lang.Class, org.apache.hadoop.io.Writable[][]"
  15155. static="false" final="false" visibility="public"
  15156. deprecated="not deprecated">
  15157. </constructor>
  15158. <method name="toArray" return="java.lang.Object"
  15159. abstract="false" native="false" synchronized="false"
  15160. static="false" final="false" visibility="public"
  15161. deprecated="not deprecated">
  15162. </method>
  15163. <method name="set"
  15164. abstract="false" native="false" synchronized="false"
  15165. static="false" final="false" visibility="public"
  15166. deprecated="not deprecated">
  15167. <param name="values" type="org.apache.hadoop.io.Writable[][]"/>
  15168. </method>
  15169. <method name="get" return="org.apache.hadoop.io.Writable[][]"
  15170. abstract="false" native="false" synchronized="false"
  15171. static="false" final="false" visibility="public"
  15172. deprecated="not deprecated">
  15173. </method>
  15174. <method name="readFields"
  15175. abstract="false" native="false" synchronized="false"
  15176. static="false" final="false" visibility="public"
  15177. deprecated="not deprecated">
  15178. <param name="in" type="java.io.DataInput"/>
  15179. <exception name="IOException" type="java.io.IOException"/>
  15180. </method>
  15181. <method name="write"
  15182. abstract="false" native="false" synchronized="false"
  15183. static="false" final="false" visibility="public"
  15184. deprecated="not deprecated">
  15185. <param name="out" type="java.io.DataOutput"/>
  15186. <exception name="IOException" type="java.io.IOException"/>
  15187. </method>
  15188. <doc>
  15189. <![CDATA[A Writable for 2D arrays containing a matrix of instances of a class.]]>
  15190. </doc>
  15191. </class>
  15192. <!-- end class org.apache.hadoop.io.TwoDArrayWritable -->
  15193. <!-- start class org.apache.hadoop.io.UTF8 -->
  15194. <class name="UTF8" extends="java.lang.Object"
  15195. abstract="false"
  15196. static="false" final="false" visibility="public"
  15197. deprecated="replaced by Text">
  15198. <implements name="org.apache.hadoop.io.WritableComparable"/>
  15199. <constructor name="UTF8"
  15200. static="false" final="false" visibility="public"
  15201. deprecated="not deprecated">
  15202. </constructor>
  15203. <constructor name="UTF8" type="java.lang.String"
  15204. static="false" final="false" visibility="public"
  15205. deprecated="not deprecated">
  15206. <doc>
  15207. <![CDATA[Construct from a given string.]]>
  15208. </doc>
  15209. </constructor>
  15210. <constructor name="UTF8" type="org.apache.hadoop.io.UTF8"
  15211. static="false" final="false" visibility="public"
  15212. deprecated="not deprecated">
  15213. <doc>
  15214. <![CDATA[Construct from a given string.]]>
  15215. </doc>
  15216. </constructor>
  15217. <method name="getBytes" return="byte[]"
  15218. abstract="false" native="false" synchronized="false"
  15219. static="false" final="false" visibility="public"
  15220. deprecated="not deprecated">
  15221. <doc>
  15222. <![CDATA[The raw bytes.]]>
  15223. </doc>
  15224. </method>
  15225. <method name="getLength" return="int"
  15226. abstract="false" native="false" synchronized="false"
  15227. static="false" final="false" visibility="public"
  15228. deprecated="not deprecated">
  15229. <doc>
  15230. <![CDATA[The number of bytes in the encoded string.]]>
  15231. </doc>
  15232. </method>
  15233. <method name="set"
  15234. abstract="false" native="false" synchronized="false"
  15235. static="false" final="false" visibility="public"
  15236. deprecated="not deprecated">
  15237. <param name="string" type="java.lang.String"/>
  15238. <doc>
  15239. <![CDATA[Set to contain the contents of a string.]]>
  15240. </doc>
  15241. </method>
  15242. <method name="set"
  15243. abstract="false" native="false" synchronized="false"
  15244. static="false" final="false" visibility="public"
  15245. deprecated="not deprecated">
  15246. <param name="other" type="org.apache.hadoop.io.UTF8"/>
  15247. <doc>
  15248. <![CDATA[Set to contain the contents of a string.]]>
  15249. </doc>
  15250. </method>
  15251. <method name="readFields"
  15252. abstract="false" native="false" synchronized="false"
  15253. static="false" final="false" visibility="public"
  15254. deprecated="not deprecated">
  15255. <param name="in" type="java.io.DataInput"/>
  15256. <exception name="IOException" type="java.io.IOException"/>
  15257. </method>
  15258. <method name="skip"
  15259. abstract="false" native="false" synchronized="false"
  15260. static="true" final="false" visibility="public"
  15261. deprecated="not deprecated">
  15262. <param name="in" type="java.io.DataInput"/>
  15263. <exception name="IOException" type="java.io.IOException"/>
  15264. <doc>
  15265. <![CDATA[Skips over one UTF8 in the input.]]>
  15266. </doc>
  15267. </method>
  15268. <method name="write"
  15269. abstract="false" native="false" synchronized="false"
  15270. static="false" final="false" visibility="public"
  15271. deprecated="not deprecated">
  15272. <param name="out" type="java.io.DataOutput"/>
  15273. <exception name="IOException" type="java.io.IOException"/>
  15274. </method>
  15275. <method name="compareTo" return="int"
  15276. abstract="false" native="false" synchronized="false"
  15277. static="false" final="false" visibility="public"
  15278. deprecated="not deprecated">
  15279. <param name="o" type="org.apache.hadoop.io.UTF8"/>
  15280. <doc>
  15281. <![CDATA[Compare two UTF8s.]]>
  15282. </doc>
  15283. </method>
  15284. <method name="toString" return="java.lang.String"
  15285. abstract="false" native="false" synchronized="false"
  15286. static="false" final="false" visibility="public"
  15287. deprecated="not deprecated">
  15288. <doc>
  15289. <![CDATA[Convert to a String.]]>
  15290. </doc>
  15291. </method>
  15292. <method name="toStringChecked" return="java.lang.String"
  15293. abstract="false" native="false" synchronized="false"
  15294. static="false" final="false" visibility="public"
  15295. deprecated="not deprecated">
  15296. <exception name="IOException" type="java.io.IOException"/>
  15297. <doc>
  15298. <![CDATA[Convert to a string, checking for valid UTF8.
  15299. @return the converted string
  15300. @throws UTFDataFormatException if the underlying bytes contain invalid
  15301. UTF8 data.]]>
  15302. </doc>
  15303. </method>
  15304. <method name="equals" return="boolean"
  15305. abstract="false" native="false" synchronized="false"
  15306. static="false" final="false" visibility="public"
  15307. deprecated="not deprecated">
  15308. <param name="o" type="java.lang.Object"/>
  15309. <doc>
  15310. <![CDATA[Returns true iff <code>o</code> is a UTF8 with the same contents.]]>
  15311. </doc>
  15312. </method>
  15313. <method name="hashCode" return="int"
  15314. abstract="false" native="false" synchronized="false"
  15315. static="false" final="false" visibility="public"
  15316. deprecated="not deprecated">
  15317. </method>
  15318. <method name="getBytes" return="byte[]"
  15319. abstract="false" native="false" synchronized="false"
  15320. static="true" final="false" visibility="public"
  15321. deprecated="not deprecated">
  15322. <param name="string" type="java.lang.String"/>
  15323. <doc>
  15324. <![CDATA[Convert a string to a UTF-8 encoded byte array.
  15325. @see String#getBytes(String)]]>
  15326. </doc>
  15327. </method>
  15328. <method name="fromBytes" return="java.lang.String"
  15329. abstract="false" native="false" synchronized="false"
  15330. static="true" final="false" visibility="public"
  15331. deprecated="not deprecated">
  15332. <param name="bytes" type="byte[]"/>
  15333. <exception name="IOException" type="java.io.IOException"/>
  15334. <doc>
  15335. <![CDATA[Convert a UTF-8 encoded byte array back into a string.
  15336. @throws IOException if the byte array is invalid UTF8]]>
  15337. </doc>
  15338. </method>
  15339. <method name="readString" return="java.lang.String"
  15340. abstract="false" native="false" synchronized="false"
  15341. static="true" final="false" visibility="public"
  15342. deprecated="not deprecated">
  15343. <param name="in" type="java.io.DataInput"/>
  15344. <exception name="IOException" type="java.io.IOException"/>
  15345. <doc>
  15346. <![CDATA[Read a UTF-8 encoded string.
  15347. @see DataInput#readUTF()]]>
  15348. </doc>
  15349. </method>
  15350. <method name="writeString" return="int"
  15351. abstract="false" native="false" synchronized="false"
  15352. static="true" final="false" visibility="public"
  15353. deprecated="not deprecated">
  15354. <param name="out" type="java.io.DataOutput"/>
  15355. <param name="s" type="java.lang.String"/>
  15356. <exception name="IOException" type="java.io.IOException"/>
  15357. <doc>
  15358. <![CDATA[Write a UTF-8 encoded string.
  15359. @see DataOutput#writeUTF(String)]]>
  15360. </doc>
  15361. </method>
  15362. <doc>
  15363. <![CDATA[A WritableComparable for strings that uses the UTF8 encoding.
  15364. <p>Also includes utilities for efficiently reading and writing UTF-8.
  15365. Note that this decodes UTF-8 but actually encodes CESU-8, a variant of
  15366. UTF-8: see http://en.wikipedia.org/wiki/CESU-8
  15367. @deprecated replaced by Text]]>
  15368. </doc>
  15369. </class>
  15370. <!-- end class org.apache.hadoop.io.UTF8 -->
  15371. <!-- start class org.apache.hadoop.io.UTF8.Comparator -->
  15372. <class name="UTF8.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  15373. abstract="false"
  15374. static="true" final="false" visibility="public"
  15375. deprecated="not deprecated">
  15376. <constructor name="UTF8.Comparator"
  15377. static="false" final="false" visibility="public"
  15378. deprecated="not deprecated">
  15379. </constructor>
  15380. <method name="compare" return="int"
  15381. abstract="false" native="false" synchronized="false"
  15382. static="false" final="false" visibility="public"
  15383. deprecated="not deprecated">
  15384. <param name="b1" type="byte[]"/>
  15385. <param name="s1" type="int"/>
  15386. <param name="l1" type="int"/>
  15387. <param name="b2" type="byte[]"/>
  15388. <param name="s2" type="int"/>
  15389. <param name="l2" type="int"/>
  15390. </method>
  15391. <doc>
  15392. <![CDATA[A WritableComparator optimized for UTF8 keys.]]>
  15393. </doc>
  15394. </class>
  15395. <!-- end class org.apache.hadoop.io.UTF8.Comparator -->
  15396. <!-- start class org.apache.hadoop.io.VersionedWritable -->
  15397. <class name="VersionedWritable" extends="java.lang.Object"
  15398. abstract="true"
  15399. static="false" final="false" visibility="public"
  15400. deprecated="not deprecated">
  15401. <implements name="org.apache.hadoop.io.Writable"/>
  15402. <constructor name="VersionedWritable"
  15403. static="false" final="false" visibility="public"
  15404. deprecated="not deprecated">
  15405. </constructor>
  15406. <method name="getVersion" return="byte"
  15407. abstract="true" native="false" synchronized="false"
  15408. static="false" final="false" visibility="public"
  15409. deprecated="not deprecated">
  15410. <doc>
  15411. <![CDATA[Return the version number of the current implementation.]]>
  15412. </doc>
  15413. </method>
  15414. <method name="write"
  15415. abstract="false" native="false" synchronized="false"
  15416. static="false" final="false" visibility="public"
  15417. deprecated="not deprecated">
  15418. <param name="out" type="java.io.DataOutput"/>
  15419. <exception name="IOException" type="java.io.IOException"/>
  15420. </method>
  15421. <method name="readFields"
  15422. abstract="false" native="false" synchronized="false"
  15423. static="false" final="false" visibility="public"
  15424. deprecated="not deprecated">
  15425. <param name="in" type="java.io.DataInput"/>
  15426. <exception name="IOException" type="java.io.IOException"/>
  15427. </method>
  15428. <doc>
  15429. <![CDATA[A base class for Writables that provides version checking.
  15430. <p>This is useful when a class may evolve, so that instances written by the
  15431. old version of the class may still be processed by the new version. To
  15432. handle this situation, {@link #readFields(DataInput)}
  15433. implementations should catch {@link VersionMismatchException}.]]>
  15434. </doc>
  15435. </class>
  15436. <!-- end class org.apache.hadoop.io.VersionedWritable -->
  15437. <!-- start class org.apache.hadoop.io.VersionMismatchException -->
  15438. <class name="VersionMismatchException" extends="java.io.IOException"
  15439. abstract="false"
  15440. static="false" final="false" visibility="public"
  15441. deprecated="not deprecated">
  15442. <constructor name="VersionMismatchException" type="byte, byte"
  15443. static="false" final="false" visibility="public"
  15444. deprecated="not deprecated">
  15445. </constructor>
  15446. <method name="toString" return="java.lang.String"
  15447. abstract="false" native="false" synchronized="false"
  15448. static="false" final="false" visibility="public"
  15449. deprecated="not deprecated">
  15450. <doc>
  15451. <![CDATA[Returns a string representation of this object.]]>
  15452. </doc>
  15453. </method>
  15454. <doc>
  15455. <![CDATA[Thrown by {@link VersionedWritable#readFields(DataInput)} when the
  15456. version of an object being read does not match the current implementation
  15457. version as returned by {@link VersionedWritable#getVersion()}.]]>
  15458. </doc>
  15459. </class>
  15460. <!-- end class org.apache.hadoop.io.VersionMismatchException -->
  15461. <!-- start class org.apache.hadoop.io.VIntWritable -->
  15462. <class name="VIntWritable" extends="java.lang.Object"
  15463. abstract="false"
  15464. static="false" final="false" visibility="public"
  15465. deprecated="not deprecated">
  15466. <implements name="org.apache.hadoop.io.WritableComparable"/>
  15467. <constructor name="VIntWritable"
  15468. static="false" final="false" visibility="public"
  15469. deprecated="not deprecated">
  15470. </constructor>
  15471. <constructor name="VIntWritable" type="int"
  15472. static="false" final="false" visibility="public"
  15473. deprecated="not deprecated">
  15474. </constructor>
  15475. <method name="set"
  15476. abstract="false" native="false" synchronized="false"
  15477. static="false" final="false" visibility="public"
  15478. deprecated="not deprecated">
  15479. <param name="value" type="int"/>
  15480. <doc>
  15481. <![CDATA[Set the value of this VIntWritable.]]>
  15482. </doc>
  15483. </method>
  15484. <method name="get" return="int"
  15485. abstract="false" native="false" synchronized="false"
  15486. static="false" final="false" visibility="public"
  15487. deprecated="not deprecated">
  15488. <doc>
  15489. <![CDATA[Return the value of this VIntWritable.]]>
  15490. </doc>
  15491. </method>
  15492. <method name="readFields"
  15493. abstract="false" native="false" synchronized="false"
  15494. static="false" final="false" visibility="public"
  15495. deprecated="not deprecated">
  15496. <param name="in" type="java.io.DataInput"/>
  15497. <exception name="IOException" type="java.io.IOException"/>
  15498. </method>
  15499. <method name="write"
  15500. abstract="false" native="false" synchronized="false"
  15501. static="false" final="false" visibility="public"
  15502. deprecated="not deprecated">
  15503. <param name="out" type="java.io.DataOutput"/>
  15504. <exception name="IOException" type="java.io.IOException"/>
  15505. </method>
  15506. <method name="equals" return="boolean"
  15507. abstract="false" native="false" synchronized="false"
  15508. static="false" final="false" visibility="public"
  15509. deprecated="not deprecated">
  15510. <param name="o" type="java.lang.Object"/>
  15511. <doc>
  15512. <![CDATA[Returns true iff <code>o</code> is a VIntWritable with the same value.]]>
  15513. </doc>
  15514. </method>
  15515. <method name="hashCode" return="int"
  15516. abstract="false" native="false" synchronized="false"
  15517. static="false" final="false" visibility="public"
  15518. deprecated="not deprecated">
  15519. </method>
  15520. <method name="compareTo" return="int"
  15521. abstract="false" native="false" synchronized="false"
  15522. static="false" final="false" visibility="public"
  15523. deprecated="not deprecated">
  15524. <param name="o" type="java.lang.Object"/>
  15525. <doc>
  15526. <![CDATA[Compares two VIntWritables.]]>
  15527. </doc>
  15528. </method>
  15529. <method name="toString" return="java.lang.String"
  15530. abstract="false" native="false" synchronized="false"
  15531. static="false" final="false" visibility="public"
  15532. deprecated="not deprecated">
  15533. </method>
  15534. <doc>
  15535. <![CDATA[A WritableComparable for integer values stored in variable-length format.
  15536. Such values take between one and five bytes. Smaller values take fewer bytes.
  15537. @see org.apache.hadoop.io.WritableUtils#readVInt(DataInput)]]>
  15538. </doc>
  15539. </class>
  15540. <!-- end class org.apache.hadoop.io.VIntWritable -->
  15541. <!-- start class org.apache.hadoop.io.VLongWritable -->
  15542. <class name="VLongWritable" extends="java.lang.Object"
  15543. abstract="false"
  15544. static="false" final="false" visibility="public"
  15545. deprecated="not deprecated">
  15546. <implements name="org.apache.hadoop.io.WritableComparable"/>
  15547. <constructor name="VLongWritable"
  15548. static="false" final="false" visibility="public"
  15549. deprecated="not deprecated">
  15550. </constructor>
  15551. <constructor name="VLongWritable" type="long"
  15552. static="false" final="false" visibility="public"
  15553. deprecated="not deprecated">
  15554. </constructor>
  15555. <method name="set"
  15556. abstract="false" native="false" synchronized="false"
  15557. static="false" final="false" visibility="public"
  15558. deprecated="not deprecated">
  15559. <param name="value" type="long"/>
  15560. <doc>
  15561. <![CDATA[Set the value of this LongWritable.]]>
  15562. </doc>
  15563. </method>
  15564. <method name="get" return="long"
  15565. abstract="false" native="false" synchronized="false"
  15566. static="false" final="false" visibility="public"
  15567. deprecated="not deprecated">
  15568. <doc>
  15569. <![CDATA[Return the value of this LongWritable.]]>
  15570. </doc>
  15571. </method>
  15572. <method name="readFields"
  15573. abstract="false" native="false" synchronized="false"
  15574. static="false" final="false" visibility="public"
  15575. deprecated="not deprecated">
  15576. <param name="in" type="java.io.DataInput"/>
  15577. <exception name="IOException" type="java.io.IOException"/>
  15578. </method>
  15579. <method name="write"
  15580. abstract="false" native="false" synchronized="false"
  15581. static="false" final="false" visibility="public"
  15582. deprecated="not deprecated">
  15583. <param name="out" type="java.io.DataOutput"/>
  15584. <exception name="IOException" type="java.io.IOException"/>
  15585. </method>
  15586. <method name="equals" return="boolean"
  15587. abstract="false" native="false" synchronized="false"
  15588. static="false" final="false" visibility="public"
  15589. deprecated="not deprecated">
  15590. <param name="o" type="java.lang.Object"/>
  15591. <doc>
  15592. <![CDATA[Returns true iff <code>o</code> is a VLongWritable with the same value.]]>
  15593. </doc>
  15594. </method>
  15595. <method name="hashCode" return="int"
  15596. abstract="false" native="false" synchronized="false"
  15597. static="false" final="false" visibility="public"
  15598. deprecated="not deprecated">
  15599. </method>
  15600. <method name="compareTo" return="int"
  15601. abstract="false" native="false" synchronized="false"
  15602. static="false" final="false" visibility="public"
  15603. deprecated="not deprecated">
  15604. <param name="o" type="java.lang.Object"/>
  15605. <doc>
  15606. <![CDATA[Compares two VLongWritables.]]>
  15607. </doc>
  15608. </method>
  15609. <method name="toString" return="java.lang.String"
  15610. abstract="false" native="false" synchronized="false"
  15611. static="false" final="false" visibility="public"
  15612. deprecated="not deprecated">
  15613. </method>
  15614. <doc>
  15615. <![CDATA[A WritableComparable for longs in a variable-length format. Such values take
  15616. between one and five bytes. Smaller values take fewer bytes.
  15617. @see org.apache.hadoop.io.WritableUtils#readVLong(DataInput)]]>
  15618. </doc>
  15619. </class>
  15620. <!-- end class org.apache.hadoop.io.VLongWritable -->
  15621. <!-- start interface org.apache.hadoop.io.Writable -->
  15622. <interface name="Writable" abstract="true"
  15623. static="false" final="false" visibility="public"
  15624. deprecated="not deprecated">
  15625. <method name="write"
  15626. abstract="false" native="false" synchronized="false"
  15627. static="false" final="false" visibility="public"
  15628. deprecated="not deprecated">
  15629. <param name="out" type="java.io.DataOutput"/>
  15630. <exception name="IOException" type="java.io.IOException"/>
  15631. <doc>
  15632. <![CDATA[Serialize the fields of this object to <code>out</code>.
  15633. @param out <code>DataOuput</code> to serialize this object into.
  15634. @throws IOException]]>
  15635. </doc>
  15636. </method>
  15637. <method name="readFields"
  15638. abstract="false" native="false" synchronized="false"
  15639. static="false" final="false" visibility="public"
  15640. deprecated="not deprecated">
  15641. <param name="in" type="java.io.DataInput"/>
  15642. <exception name="IOException" type="java.io.IOException"/>
  15643. <doc>
  15644. <![CDATA[Deserialize the fields of this object from <code>in</code>.
  15645. <p>For efficiency, implementations should attempt to re-use storage in the
  15646. existing object where possible.</p>
  15647. @param in <code>DataInput</code> to deseriablize this object from.
  15648. @throws IOException]]>
  15649. </doc>
  15650. </method>
  15651. <doc>
  15652. <![CDATA[A serializable object which implements a simple, efficient, serialization
  15653. protocol, based on {@link DataInput} and {@link DataOutput}.
  15654. <p>Any <code>key</code> or <code>value</code> type in the Hadoop Map-Reduce
  15655. framework implements this interface.</p>
  15656. <p>Implementations typically implement a static <code>read(DataInput)</code>
  15657. method which constructs a new instance, calls {@link #readFields(DataInput)}
  15658. and returns the instance.</p>
  15659. <p>Example:</p>
  15660. <p><blockquote><pre>
  15661. public class MyWritable implements Writable {
  15662. // Some data
  15663. private int counter;
  15664. private long timestamp;
  15665. public void write(DataOutput out) throws IOException {
  15666. out.writeInt(counter);
  15667. out.writeLong(timestamp);
  15668. }
  15669. public void readFields(DataInput in) throws IOException {
  15670. counter = in.readInt();
  15671. timestamp = in.readLong();
  15672. }
  15673. public static MyWritable read(DataInput in) throws IOException {
  15674. MyWritable w = new MyWritable();
  15675. w.readFields(in);
  15676. return w;
  15677. }
  15678. }
  15679. </pre></blockquote></p>]]>
  15680. </doc>
  15681. </interface>
  15682. <!-- end interface org.apache.hadoop.io.Writable -->
  15683. <!-- start interface org.apache.hadoop.io.WritableComparable -->
  15684. <interface name="WritableComparable" abstract="true"
  15685. static="false" final="false" visibility="public"
  15686. deprecated="not deprecated">
  15687. <implements name="org.apache.hadoop.io.Writable"/>
  15688. <implements name="java.lang.Comparable"/>
  15689. <doc>
  15690. <![CDATA[A {@link Writable} which is also {@link Comparable}.
  15691. <p><code>WritableComparable</code>s can be compared to each other, typically
  15692. via <code>Comparator</code>s. Any type which is to be used as a
  15693. <code>key</code> in the Hadoop Map-Reduce framework should implement this
  15694. interface.</p>
  15695. <p>Example:</p>
  15696. <p><blockquote><pre>
  15697. public class MyWritableComparable implements WritableComparable {
  15698. // Some data
  15699. private int counter;
  15700. private long timestamp;
  15701. public void write(DataOutput out) throws IOException {
  15702. out.writeInt(counter);
  15703. out.writeLong(timestamp);
  15704. }
  15705. public void readFields(DataInput in) throws IOException {
  15706. counter = in.readInt();
  15707. timestamp = in.readLong();
  15708. }
  15709. public int compareTo(MyWritableComparable w) {
  15710. int thisValue = this.value;
  15711. int thatValue = ((IntWritable)o).value;
  15712. return (thisValue &lt; thatValue ? -1 : (thisValue==thatValue ? 0 : 1));
  15713. }
  15714. }
  15715. </pre></blockquote></p>]]>
  15716. </doc>
  15717. </interface>
  15718. <!-- end interface org.apache.hadoop.io.WritableComparable -->
  15719. <!-- start class org.apache.hadoop.io.WritableComparator -->
  15720. <class name="WritableComparator" extends="java.lang.Object"
  15721. abstract="false"
  15722. static="false" final="false" visibility="public"
  15723. deprecated="not deprecated">
  15724. <implements name="org.apache.hadoop.io.RawComparator"/>
  15725. <constructor name="WritableComparator" type="java.lang.Class"
  15726. static="false" final="false" visibility="protected"
  15727. deprecated="not deprecated">
  15728. <doc>
  15729. <![CDATA[Construct for a {@link WritableComparable} implementation.]]>
  15730. </doc>
  15731. </constructor>
  15732. <constructor name="WritableComparator" type="java.lang.Class, boolean"
  15733. static="false" final="false" visibility="protected"
  15734. deprecated="not deprecated">
  15735. </constructor>
  15736. <method name="get" return="org.apache.hadoop.io.WritableComparator"
  15737. abstract="false" native="false" synchronized="true"
  15738. static="true" final="false" visibility="public"
  15739. deprecated="not deprecated">
  15740. <param name="c" type="java.lang.Class"/>
  15741. <doc>
  15742. <![CDATA[Get a comparator for a {@link WritableComparable} implementation.]]>
  15743. </doc>
  15744. </method>
  15745. <method name="define"
  15746. abstract="false" native="false" synchronized="true"
  15747. static="true" final="false" visibility="public"
  15748. deprecated="not deprecated">
  15749. <param name="c" type="java.lang.Class"/>
  15750. <param name="comparator" type="org.apache.hadoop.io.WritableComparator"/>
  15751. <doc>
  15752. <![CDATA[Register an optimized comparator for a {@link WritableComparable}
  15753. implementation.]]>
  15754. </doc>
  15755. </method>
  15756. <method name="getKeyClass" return="java.lang.Class"
  15757. abstract="false" native="false" synchronized="false"
  15758. static="false" final="false" visibility="public"
  15759. deprecated="not deprecated">
  15760. <doc>
  15761. <![CDATA[Returns the WritableComparable implementation class.]]>
  15762. </doc>
  15763. </method>
  15764. <method name="newKey" return="org.apache.hadoop.io.WritableComparable"
  15765. abstract="false" native="false" synchronized="false"
  15766. static="false" final="false" visibility="public"
  15767. deprecated="not deprecated">
  15768. <doc>
  15769. <![CDATA[Construct a new {@link WritableComparable} instance.]]>
  15770. </doc>
  15771. </method>
  15772. <method name="compare" return="int"
  15773. abstract="false" native="false" synchronized="false"
  15774. static="false" final="false" visibility="public"
  15775. deprecated="not deprecated">
  15776. <param name="b1" type="byte[]"/>
  15777. <param name="s1" type="int"/>
  15778. <param name="l1" type="int"/>
  15779. <param name="b2" type="byte[]"/>
  15780. <param name="s2" type="int"/>
  15781. <param name="l2" type="int"/>
  15782. <doc>
  15783. <![CDATA[Optimization hook. Override this to make SequenceFile.Sorter's scream.
  15784. <p>The default implementation reads the data into two {@link
  15785. WritableComparable}s (using {@link
  15786. Writable#readFields(DataInput)}, then calls {@link
  15787. #compare(WritableComparable,WritableComparable)}.]]>
  15788. </doc>
  15789. </method>
  15790. <method name="compare" return="int"
  15791. abstract="false" native="false" synchronized="false"
  15792. static="false" final="false" visibility="public"
  15793. deprecated="not deprecated">
  15794. <param name="a" type="org.apache.hadoop.io.WritableComparable"/>
  15795. <param name="b" type="org.apache.hadoop.io.WritableComparable"/>
  15796. <doc>
  15797. <![CDATA[Compare two WritableComparables.
  15798. <p> The default implementation uses the natural ordering, calling {@link
  15799. Comparable#compareTo(Object)}.]]>
  15800. </doc>
  15801. </method>
  15802. <method name="compare" return="int"
  15803. abstract="false" native="false" synchronized="false"
  15804. static="false" final="false" visibility="public"
  15805. deprecated="not deprecated">
  15806. <param name="a" type="java.lang.Object"/>
  15807. <param name="b" type="java.lang.Object"/>
  15808. </method>
  15809. <method name="compareBytes" return="int"
  15810. abstract="false" native="false" synchronized="false"
  15811. static="true" final="false" visibility="public"
  15812. deprecated="not deprecated">
  15813. <param name="b1" type="byte[]"/>
  15814. <param name="s1" type="int"/>
  15815. <param name="l1" type="int"/>
  15816. <param name="b2" type="byte[]"/>
  15817. <param name="s2" type="int"/>
  15818. <param name="l2" type="int"/>
  15819. <doc>
  15820. <![CDATA[Lexicographic order of binary data.]]>
  15821. </doc>
  15822. </method>
  15823. <method name="hashBytes" return="int"
  15824. abstract="false" native="false" synchronized="false"
  15825. static="true" final="false" visibility="public"
  15826. deprecated="not deprecated">
  15827. <param name="bytes" type="byte[]"/>
  15828. <param name="offset" type="int"/>
  15829. <param name="length" type="int"/>
  15830. <doc>
  15831. <![CDATA[Compute hash for binary data.]]>
  15832. </doc>
  15833. </method>
  15834. <method name="hashBytes" return="int"
  15835. abstract="false" native="false" synchronized="false"
  15836. static="true" final="false" visibility="public"
  15837. deprecated="not deprecated">
  15838. <param name="bytes" type="byte[]"/>
  15839. <param name="length" type="int"/>
  15840. <doc>
  15841. <![CDATA[Compute hash for binary data.]]>
  15842. </doc>
  15843. </method>
  15844. <method name="readUnsignedShort" return="int"
  15845. abstract="false" native="false" synchronized="false"
  15846. static="true" final="false" visibility="public"
  15847. deprecated="not deprecated">
  15848. <param name="bytes" type="byte[]"/>
  15849. <param name="start" type="int"/>
  15850. <doc>
  15851. <![CDATA[Parse an unsigned short from a byte array.]]>
  15852. </doc>
  15853. </method>
  15854. <method name="readInt" return="int"
  15855. abstract="false" native="false" synchronized="false"
  15856. static="true" final="false" visibility="public"
  15857. deprecated="not deprecated">
  15858. <param name="bytes" type="byte[]"/>
  15859. <param name="start" type="int"/>
  15860. <doc>
  15861. <![CDATA[Parse an integer from a byte array.]]>
  15862. </doc>
  15863. </method>
  15864. <method name="readFloat" return="float"
  15865. abstract="false" native="false" synchronized="false"
  15866. static="true" final="false" visibility="public"
  15867. deprecated="not deprecated">
  15868. <param name="bytes" type="byte[]"/>
  15869. <param name="start" type="int"/>
  15870. <doc>
  15871. <![CDATA[Parse a float from a byte array.]]>
  15872. </doc>
  15873. </method>
  15874. <method name="readLong" return="long"
  15875. abstract="false" native="false" synchronized="false"
  15876. static="true" final="false" visibility="public"
  15877. deprecated="not deprecated">
  15878. <param name="bytes" type="byte[]"/>
  15879. <param name="start" type="int"/>
  15880. <doc>
  15881. <![CDATA[Parse a long from a byte array.]]>
  15882. </doc>
  15883. </method>
  15884. <method name="readDouble" return="double"
  15885. abstract="false" native="false" synchronized="false"
  15886. static="true" final="false" visibility="public"
  15887. deprecated="not deprecated">
  15888. <param name="bytes" type="byte[]"/>
  15889. <param name="start" type="int"/>
  15890. <doc>
  15891. <![CDATA[Parse a double from a byte array.]]>
  15892. </doc>
  15893. </method>
  15894. <method name="readVLong" return="long"
  15895. abstract="false" native="false" synchronized="false"
  15896. static="true" final="false" visibility="public"
  15897. deprecated="not deprecated">
  15898. <param name="bytes" type="byte[]"/>
  15899. <param name="start" type="int"/>
  15900. <exception name="IOException" type="java.io.IOException"/>
  15901. <doc>
  15902. <![CDATA[Reads a zero-compressed encoded long from a byte array and returns it.
  15903. @param bytes byte array with decode long
  15904. @param start starting index
  15905. @throws java.io.IOException
  15906. @return deserialized long]]>
  15907. </doc>
  15908. </method>
  15909. <method name="readVInt" return="int"
  15910. abstract="false" native="false" synchronized="false"
  15911. static="true" final="false" visibility="public"
  15912. deprecated="not deprecated">
  15913. <param name="bytes" type="byte[]"/>
  15914. <param name="start" type="int"/>
  15915. <exception name="IOException" type="java.io.IOException"/>
  15916. <doc>
  15917. <![CDATA[Reads a zero-compressed encoded integer from a byte array and returns it.
  15918. @param bytes byte array with the encoded integer
  15919. @param start start index
  15920. @throws java.io.IOException
  15921. @return deserialized integer]]>
  15922. </doc>
  15923. </method>
  15924. <doc>
  15925. <![CDATA[A Comparator for {@link WritableComparable}s.
  15926. <p>This base implemenation uses the natural ordering. To define alternate
  15927. orderings, override {@link #compare(WritableComparable,WritableComparable)}.
  15928. <p>One may optimize compare-intensive operations by overriding
  15929. {@link #compare(byte[],int,int,byte[],int,int)}. Static utility methods are
  15930. provided to assist in optimized implementations of this method.]]>
  15931. </doc>
  15932. </class>
  15933. <!-- end class org.apache.hadoop.io.WritableComparator -->
  15934. <!-- start class org.apache.hadoop.io.WritableFactories -->
  15935. <class name="WritableFactories" extends="java.lang.Object"
  15936. abstract="false"
  15937. static="false" final="false" visibility="public"
  15938. deprecated="not deprecated">
  15939. <method name="setFactory"
  15940. abstract="false" native="false" synchronized="true"
  15941. static="true" final="false" visibility="public"
  15942. deprecated="not deprecated">
  15943. <param name="c" type="java.lang.Class"/>
  15944. <param name="factory" type="org.apache.hadoop.io.WritableFactory"/>
  15945. <doc>
  15946. <![CDATA[Define a factory for a class.]]>
  15947. </doc>
  15948. </method>
  15949. <method name="getFactory" return="org.apache.hadoop.io.WritableFactory"
  15950. abstract="false" native="false" synchronized="true"
  15951. static="true" final="false" visibility="public"
  15952. deprecated="not deprecated">
  15953. <param name="c" type="java.lang.Class"/>
  15954. <doc>
  15955. <![CDATA[Define a factory for a class.]]>
  15956. </doc>
  15957. </method>
  15958. <method name="newInstance" return="org.apache.hadoop.io.Writable"
  15959. abstract="false" native="false" synchronized="false"
  15960. static="true" final="false" visibility="public"
  15961. deprecated="not deprecated">
  15962. <param name="c" type="java.lang.Class"/>
  15963. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  15964. <doc>
  15965. <![CDATA[Create a new instance of a class with a defined factory.]]>
  15966. </doc>
  15967. </method>
  15968. <method name="newInstance" return="org.apache.hadoop.io.Writable"
  15969. abstract="false" native="false" synchronized="false"
  15970. static="true" final="false" visibility="public"
  15971. deprecated="not deprecated">
  15972. <param name="c" type="java.lang.Class"/>
  15973. <doc>
  15974. <![CDATA[Create a new instance of a class with a defined factory.]]>
  15975. </doc>
  15976. </method>
  15977. <doc>
  15978. <![CDATA[Factories for non-public writables. Defining a factory permits {@link
  15979. ObjectWritable} to be able to construct instances of non-public classes.]]>
  15980. </doc>
  15981. </class>
  15982. <!-- end class org.apache.hadoop.io.WritableFactories -->
  15983. <!-- start interface org.apache.hadoop.io.WritableFactory -->
  15984. <interface name="WritableFactory" abstract="true"
  15985. static="false" final="false" visibility="public"
  15986. deprecated="not deprecated">
  15987. <method name="newInstance" return="org.apache.hadoop.io.Writable"
  15988. abstract="false" native="false" synchronized="false"
  15989. static="false" final="false" visibility="public"
  15990. deprecated="not deprecated">
  15991. <doc>
  15992. <![CDATA[Return a new instance.]]>
  15993. </doc>
  15994. </method>
  15995. <doc>
  15996. <![CDATA[A factory for a class of Writable.
  15997. @see WritableFactories]]>
  15998. </doc>
  15999. </interface>
  16000. <!-- end interface org.apache.hadoop.io.WritableFactory -->
  16001. <!-- start class org.apache.hadoop.io.WritableName -->
  16002. <class name="WritableName" extends="java.lang.Object"
  16003. abstract="false"
  16004. static="false" final="false" visibility="public"
  16005. deprecated="not deprecated">
  16006. <method name="setName"
  16007. abstract="false" native="false" synchronized="true"
  16008. static="true" final="false" visibility="public"
  16009. deprecated="not deprecated">
  16010. <param name="writableClass" type="java.lang.Class"/>
  16011. <param name="name" type="java.lang.String"/>
  16012. <doc>
  16013. <![CDATA[Set the name that a class should be known as to something other than the
  16014. class name.]]>
  16015. </doc>
  16016. </method>
  16017. <method name="addName"
  16018. abstract="false" native="false" synchronized="true"
  16019. static="true" final="false" visibility="public"
  16020. deprecated="not deprecated">
  16021. <param name="writableClass" type="java.lang.Class"/>
  16022. <param name="name" type="java.lang.String"/>
  16023. <doc>
  16024. <![CDATA[Add an alternate name for a class.]]>
  16025. </doc>
  16026. </method>
  16027. <method name="getName" return="java.lang.String"
  16028. abstract="false" native="false" synchronized="true"
  16029. static="true" final="false" visibility="public"
  16030. deprecated="not deprecated">
  16031. <param name="writableClass" type="java.lang.Class"/>
  16032. <doc>
  16033. <![CDATA[Return the name for a class. Default is {@link Class#getName()}.]]>
  16034. </doc>
  16035. </method>
  16036. <method name="getClass" return="java.lang.Class"
  16037. abstract="false" native="false" synchronized="true"
  16038. static="true" final="false" visibility="public"
  16039. deprecated="not deprecated">
  16040. <param name="name" type="java.lang.String"/>
  16041. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  16042. <exception name="IOException" type="java.io.IOException"/>
  16043. <doc>
  16044. <![CDATA[Return the class for a name. Default is {@link Class#forName(String)}.]]>
  16045. </doc>
  16046. </method>
  16047. <doc>
  16048. <![CDATA[Utility to permit renaming of Writable implementation classes without
  16049. invalidiating files that contain their class name.]]>
  16050. </doc>
  16051. </class>
  16052. <!-- end class org.apache.hadoop.io.WritableName -->
  16053. <!-- start class org.apache.hadoop.io.WritableUtils -->
  16054. <class name="WritableUtils" extends="java.lang.Object"
  16055. abstract="false"
  16056. static="false" final="true" visibility="public"
  16057. deprecated="not deprecated">
  16058. <constructor name="WritableUtils"
  16059. static="false" final="false" visibility="public"
  16060. deprecated="not deprecated">
  16061. </constructor>
  16062. <method name="readCompressedByteArray" return="byte[]"
  16063. abstract="false" native="false" synchronized="false"
  16064. static="true" final="false" visibility="public"
  16065. deprecated="not deprecated">
  16066. <param name="in" type="java.io.DataInput"/>
  16067. <exception name="IOException" type="java.io.IOException"/>
  16068. </method>
  16069. <method name="skipCompressedByteArray"
  16070. abstract="false" native="false" synchronized="false"
  16071. static="true" final="false" visibility="public"
  16072. deprecated="not deprecated">
  16073. <param name="in" type="java.io.DataInput"/>
  16074. <exception name="IOException" type="java.io.IOException"/>
  16075. </method>
  16076. <method name="writeCompressedByteArray" return="int"
  16077. abstract="false" native="false" synchronized="false"
  16078. static="true" final="false" visibility="public"
  16079. deprecated="not deprecated">
  16080. <param name="out" type="java.io.DataOutput"/>
  16081. <param name="bytes" type="byte[]"/>
  16082. <exception name="IOException" type="java.io.IOException"/>
  16083. </method>
  16084. <method name="readCompressedString" return="java.lang.String"
  16085. abstract="false" native="false" synchronized="false"
  16086. static="true" final="false" visibility="public"
  16087. deprecated="not deprecated">
  16088. <param name="in" type="java.io.DataInput"/>
  16089. <exception name="IOException" type="java.io.IOException"/>
  16090. </method>
  16091. <method name="writeCompressedString" return="int"
  16092. abstract="false" native="false" synchronized="false"
  16093. static="true" final="false" visibility="public"
  16094. deprecated="not deprecated">
  16095. <param name="out" type="java.io.DataOutput"/>
  16096. <param name="s" type="java.lang.String"/>
  16097. <exception name="IOException" type="java.io.IOException"/>
  16098. </method>
  16099. <method name="writeString"
  16100. abstract="false" native="false" synchronized="false"
  16101. static="true" final="false" visibility="public"
  16102. deprecated="not deprecated">
  16103. <param name="out" type="java.io.DataOutput"/>
  16104. <param name="s" type="java.lang.String"/>
  16105. <exception name="IOException" type="java.io.IOException"/>
  16106. </method>
  16107. <method name="readString" return="java.lang.String"
  16108. abstract="false" native="false" synchronized="false"
  16109. static="true" final="false" visibility="public"
  16110. deprecated="not deprecated">
  16111. <param name="in" type="java.io.DataInput"/>
  16112. <exception name="IOException" type="java.io.IOException"/>
  16113. </method>
  16114. <method name="writeStringArray"
  16115. abstract="false" native="false" synchronized="false"
  16116. static="true" final="false" visibility="public"
  16117. deprecated="not deprecated">
  16118. <param name="out" type="java.io.DataOutput"/>
  16119. <param name="s" type="java.lang.String[]"/>
  16120. <exception name="IOException" type="java.io.IOException"/>
  16121. </method>
  16122. <method name="writeCompressedStringArray"
  16123. abstract="false" native="false" synchronized="false"
  16124. static="true" final="false" visibility="public"
  16125. deprecated="not deprecated">
  16126. <param name="out" type="java.io.DataOutput"/>
  16127. <param name="s" type="java.lang.String[]"/>
  16128. <exception name="IOException" type="java.io.IOException"/>
  16129. </method>
  16130. <method name="readStringArray" return="java.lang.String[]"
  16131. abstract="false" native="false" synchronized="false"
  16132. static="true" final="false" visibility="public"
  16133. deprecated="not deprecated">
  16134. <param name="in" type="java.io.DataInput"/>
  16135. <exception name="IOException" type="java.io.IOException"/>
  16136. </method>
  16137. <method name="readCompressedStringArray" return="java.lang.String[]"
  16138. abstract="false" native="false" synchronized="false"
  16139. static="true" final="false" visibility="public"
  16140. deprecated="not deprecated">
  16141. <param name="in" type="java.io.DataInput"/>
  16142. <exception name="IOException" type="java.io.IOException"/>
  16143. </method>
  16144. <method name="displayByteArray"
  16145. abstract="false" native="false" synchronized="false"
  16146. static="true" final="false" visibility="public"
  16147. deprecated="not deprecated">
  16148. <param name="record" type="byte[]"/>
  16149. </method>
  16150. <method name="clone" return="org.apache.hadoop.io.Writable"
  16151. abstract="false" native="false" synchronized="false"
  16152. static="true" final="false" visibility="public"
  16153. deprecated="not deprecated">
  16154. <param name="orig" type="org.apache.hadoop.io.Writable"/>
  16155. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  16156. <doc>
  16157. <![CDATA[Make a copy of a writable object using serialization to a buffer.
  16158. @param orig The object to copy
  16159. @return The copied object]]>
  16160. </doc>
  16161. </method>
  16162. <method name="cloneInto"
  16163. abstract="false" native="false" synchronized="false"
  16164. static="true" final="false" visibility="public"
  16165. deprecated="use ReflectionUtils.cloneInto instead.">
  16166. <param name="dst" type="org.apache.hadoop.io.Writable"/>
  16167. <param name="src" type="org.apache.hadoop.io.Writable"/>
  16168. <exception name="IOException" type="java.io.IOException"/>
  16169. <doc>
  16170. <![CDATA[Make a copy of the writable object using serialiation to a buffer
  16171. @param dst the object to copy from
  16172. @param src the object to copy into, which is destroyed
  16173. @throws IOException
  16174. @deprecated use ReflectionUtils.cloneInto instead.]]>
  16175. </doc>
  16176. </method>
  16177. <method name="writeVInt"
  16178. abstract="false" native="false" synchronized="false"
  16179. static="true" final="false" visibility="public"
  16180. deprecated="not deprecated">
  16181. <param name="stream" type="java.io.DataOutput"/>
  16182. <param name="i" type="int"/>
  16183. <exception name="IOException" type="java.io.IOException"/>
  16184. <doc>
  16185. <![CDATA[Serializes an integer to a binary stream with zero-compressed encoding.
  16186. For -120 <= i <= 127, only one byte is used with the actual value.
  16187. For other values of i, the first byte value indicates whether the
  16188. integer is positive or negative, and the number of bytes that follow.
  16189. If the first byte value v is between -121 and -124, the following integer
  16190. is positive, with number of bytes that follow are -(v+120).
  16191. If the first byte value v is between -125 and -128, the following integer
  16192. is negative, with number of bytes that follow are -(v+124). Bytes are
  16193. stored in the high-non-zero-byte-first order.
  16194. @param stream Binary output stream
  16195. @param i Integer to be serialized
  16196. @throws java.io.IOException]]>
  16197. </doc>
  16198. </method>
  16199. <method name="writeVLong"
  16200. abstract="false" native="false" synchronized="false"
  16201. static="true" final="false" visibility="public"
  16202. deprecated="not deprecated">
  16203. <param name="stream" type="java.io.DataOutput"/>
  16204. <param name="i" type="long"/>
  16205. <exception name="IOException" type="java.io.IOException"/>
  16206. <doc>
  16207. <![CDATA[Serializes a long to a binary stream with zero-compressed encoding.
  16208. For -112 <= i <= 127, only one byte is used with the actual value.
  16209. For other values of i, the first byte value indicates whether the
  16210. long is positive or negative, and the number of bytes that follow.
  16211. If the first byte value v is between -113 and -120, the following long
  16212. is positive, with number of bytes that follow are -(v+112).
  16213. If the first byte value v is between -121 and -128, the following long
  16214. is negative, with number of bytes that follow are -(v+120). Bytes are
  16215. stored in the high-non-zero-byte-first order.
  16216. @param stream Binary output stream
  16217. @param i Long to be serialized
  16218. @throws java.io.IOException]]>
  16219. </doc>
  16220. </method>
  16221. <method name="readVLong" return="long"
  16222. abstract="false" native="false" synchronized="false"
  16223. static="true" final="false" visibility="public"
  16224. deprecated="not deprecated">
  16225. <param name="stream" type="java.io.DataInput"/>
  16226. <exception name="IOException" type="java.io.IOException"/>
  16227. <doc>
  16228. <![CDATA[Reads a zero-compressed encoded long from input stream and returns it.
  16229. @param stream Binary input stream
  16230. @throws java.io.IOException
  16231. @return deserialized long from stream.]]>
  16232. </doc>
  16233. </method>
  16234. <method name="readVInt" return="int"
  16235. abstract="false" native="false" synchronized="false"
  16236. static="true" final="false" visibility="public"
  16237. deprecated="not deprecated">
  16238. <param name="stream" type="java.io.DataInput"/>
  16239. <exception name="IOException" type="java.io.IOException"/>
  16240. <doc>
  16241. <![CDATA[Reads a zero-compressed encoded integer from input stream and returns it.
  16242. @param stream Binary input stream
  16243. @throws java.io.IOException
  16244. @return deserialized integer from stream.]]>
  16245. </doc>
  16246. </method>
  16247. <method name="isNegativeVInt" return="boolean"
  16248. abstract="false" native="false" synchronized="false"
  16249. static="true" final="false" visibility="public"
  16250. deprecated="not deprecated">
  16251. <param name="value" type="byte"/>
  16252. <doc>
  16253. <![CDATA[Given the first byte of a vint/vlong, determine the sign
  16254. @param value the first byte
  16255. @return is the value negative]]>
  16256. </doc>
  16257. </method>
  16258. <method name="decodeVIntSize" return="int"
  16259. abstract="false" native="false" synchronized="false"
  16260. static="true" final="false" visibility="public"
  16261. deprecated="not deprecated">
  16262. <param name="value" type="byte"/>
  16263. <doc>
  16264. <![CDATA[Parse the first byte of a vint/vlong to determine the number of bytes
  16265. @param value the first byte of the vint/vlong
  16266. @return the total number of bytes (1 to 9)]]>
  16267. </doc>
  16268. </method>
  16269. <method name="getVIntSize" return="int"
  16270. abstract="false" native="false" synchronized="false"
  16271. static="true" final="false" visibility="public"
  16272. deprecated="not deprecated">
  16273. <param name="i" type="long"/>
  16274. <doc>
  16275. <![CDATA[Get the encoded length if an integer is stored in a variable-length format
  16276. @return the encoded length]]>
  16277. </doc>
  16278. </method>
  16279. <method name="readEnum" return="java.lang.Enum"
  16280. abstract="false" native="false" synchronized="false"
  16281. static="true" final="false" visibility="public"
  16282. deprecated="not deprecated">
  16283. <param name="in" type="java.io.DataInput"/>
  16284. <param name="enumType" type="java.lang.Class"/>
  16285. <exception name="IOException" type="java.io.IOException"/>
  16286. <doc>
  16287. <![CDATA[Read an Enum value from DataInput, Enums are read and written
  16288. using String values.
  16289. @param <T> Enum type
  16290. @param in DataInput to read from
  16291. @param enumType Class type of Enum
  16292. @return Enum represented by String read from DataInput
  16293. @throws IOException]]>
  16294. </doc>
  16295. </method>
  16296. <method name="writeEnum"
  16297. abstract="false" native="false" synchronized="false"
  16298. static="true" final="false" visibility="public"
  16299. deprecated="not deprecated">
  16300. <param name="out" type="java.io.DataOutput"/>
  16301. <param name="enumVal" type="java.lang.Enum"/>
  16302. <exception name="IOException" type="java.io.IOException"/>
  16303. <doc>
  16304. <![CDATA[writes String value of enum to DataOutput.
  16305. @param out Dataoutput stream
  16306. @param enumVal enum value
  16307. @throws IOException]]>
  16308. </doc>
  16309. </method>
  16310. <method name="skipFully"
  16311. abstract="false" native="false" synchronized="false"
  16312. static="true" final="false" visibility="public"
  16313. deprecated="not deprecated">
  16314. <param name="in" type="java.io.DataInput"/>
  16315. <param name="len" type="int"/>
  16316. <exception name="IOException" type="java.io.IOException"/>
  16317. <doc>
  16318. <![CDATA[Skip <i>len</i> number of bytes in input stream<i>in</i>
  16319. @param in input stream
  16320. @param len number of bytes to skip
  16321. @throws IOException when skipped less number of bytes]]>
  16322. </doc>
  16323. </method>
  16324. <method name="toByteArray" return="byte[]"
  16325. abstract="false" native="false" synchronized="false"
  16326. static="true" final="false" visibility="public"
  16327. deprecated="not deprecated">
  16328. <param name="writables" type="org.apache.hadoop.io.Writable[]"/>
  16329. <doc>
  16330. <![CDATA[Convert writables to a byte array]]>
  16331. </doc>
  16332. </method>
  16333. </class>
  16334. <!-- end class org.apache.hadoop.io.WritableUtils -->
  16335. </package>
  16336. <package name="org.apache.hadoop.io.compress">
  16337. <!-- start class org.apache.hadoop.io.compress.BlockCompressorStream -->
  16338. <class name="BlockCompressorStream" extends="org.apache.hadoop.io.compress.CompressorStream"
  16339. abstract="false"
  16340. static="false" final="false" visibility="public"
  16341. deprecated="not deprecated">
  16342. <constructor name="BlockCompressorStream" type="java.io.OutputStream, org.apache.hadoop.io.compress.Compressor, int, int"
  16343. static="false" final="false" visibility="public"
  16344. deprecated="not deprecated">
  16345. <doc>
  16346. <![CDATA[Create a {@link BlockCompressorStream}.
  16347. @param out stream
  16348. @param compressor compressor to be used
  16349. @param bufferSize size of buffer
  16350. @param compressionOverhead maximum 'overhead' of the compression
  16351. algorithm with given bufferSize]]>
  16352. </doc>
  16353. </constructor>
  16354. <constructor name="BlockCompressorStream" type="java.io.OutputStream, org.apache.hadoop.io.compress.Compressor"
  16355. static="false" final="false" visibility="public"
  16356. deprecated="not deprecated">
  16357. <doc>
  16358. <![CDATA[Create a {@link BlockCompressorStream} with given output-stream and
  16359. compressor.
  16360. Use default of 512 as bufferSize and compressionOverhead of
  16361. (1% of bufferSize + 12 bytes) = 18 bytes (zlib algorithm).
  16362. @param out stream
  16363. @param compressor compressor to be used]]>
  16364. </doc>
  16365. </constructor>
  16366. <method name="write"
  16367. abstract="false" native="false" synchronized="false"
  16368. static="false" final="false" visibility="public"
  16369. deprecated="not deprecated">
  16370. <param name="b" type="byte[]"/>
  16371. <param name="off" type="int"/>
  16372. <param name="len" type="int"/>
  16373. <exception name="IOException" type="java.io.IOException"/>
  16374. <doc>
  16375. <![CDATA[Write the data provided to the compression codec, compressing no more
  16376. than the buffer size less the compression overhead as specified during
  16377. construction for each block.
  16378. Each block contains the uncompressed length for the block, followed by
  16379. one or more length-prefixed blocks of compressed data.]]>
  16380. </doc>
  16381. </method>
  16382. <method name="finish"
  16383. abstract="false" native="false" synchronized="false"
  16384. static="false" final="false" visibility="public"
  16385. deprecated="not deprecated">
  16386. <exception name="IOException" type="java.io.IOException"/>
  16387. </method>
  16388. <method name="compress"
  16389. abstract="false" native="false" synchronized="false"
  16390. static="false" final="false" visibility="protected"
  16391. deprecated="not deprecated">
  16392. <exception name="IOException" type="java.io.IOException"/>
  16393. </method>
  16394. <doc>
  16395. <![CDATA[A {@link org.apache.hadoop.io.compress.CompressorStream} which works
  16396. with 'block-based' based compression algorithms, as opposed to
  16397. 'stream-based' compression algorithms.
  16398. It should be noted that this wrapper does not guarantee that blocks will
  16399. be sized for the compressor. If the
  16400. {@link org.apache.hadoop.io.compress.Compressor} requires buffering to
  16401. effect meaningful compression, it is responsible for it.]]>
  16402. </doc>
  16403. </class>
  16404. <!-- end class org.apache.hadoop.io.compress.BlockCompressorStream -->
  16405. <!-- start class org.apache.hadoop.io.compress.BlockDecompressorStream -->
  16406. <class name="BlockDecompressorStream" extends="org.apache.hadoop.io.compress.DecompressorStream"
  16407. abstract="false"
  16408. static="false" final="false" visibility="public"
  16409. deprecated="not deprecated">
  16410. <constructor name="BlockDecompressorStream" type="java.io.InputStream, org.apache.hadoop.io.compress.Decompressor, int"
  16411. static="false" final="false" visibility="public"
  16412. deprecated="not deprecated">
  16413. <exception name="IOException" type="java.io.IOException"/>
  16414. <doc>
  16415. <![CDATA[Create a {@link BlockDecompressorStream}.
  16416. @param in input stream
  16417. @param decompressor decompressor to use
  16418. @param bufferSize size of buffer
  16419. @throws IOException]]>
  16420. </doc>
  16421. </constructor>
  16422. <constructor name="BlockDecompressorStream" type="java.io.InputStream, org.apache.hadoop.io.compress.Decompressor"
  16423. static="false" final="false" visibility="public"
  16424. deprecated="not deprecated">
  16425. <exception name="IOException" type="java.io.IOException"/>
  16426. <doc>
  16427. <![CDATA[Create a {@link BlockDecompressorStream}.
  16428. @param in input stream
  16429. @param decompressor decompressor to use
  16430. @throws IOException]]>
  16431. </doc>
  16432. </constructor>
  16433. <constructor name="BlockDecompressorStream" type="java.io.InputStream"
  16434. static="false" final="false" visibility="protected"
  16435. deprecated="not deprecated">
  16436. <exception name="IOException" type="java.io.IOException"/>
  16437. </constructor>
  16438. <method name="decompress" return="int"
  16439. abstract="false" native="false" synchronized="false"
  16440. static="false" final="false" visibility="protected"
  16441. deprecated="not deprecated">
  16442. <param name="b" type="byte[]"/>
  16443. <param name="off" type="int"/>
  16444. <param name="len" type="int"/>
  16445. <exception name="IOException" type="java.io.IOException"/>
  16446. </method>
  16447. <method name="getCompressedData" return="int"
  16448. abstract="false" native="false" synchronized="false"
  16449. static="false" final="false" visibility="protected"
  16450. deprecated="not deprecated">
  16451. <exception name="IOException" type="java.io.IOException"/>
  16452. </method>
  16453. <method name="resetState"
  16454. abstract="false" native="false" synchronized="false"
  16455. static="false" final="false" visibility="public"
  16456. deprecated="not deprecated">
  16457. <exception name="IOException" type="java.io.IOException"/>
  16458. </method>
  16459. <doc>
  16460. <![CDATA[A {@link org.apache.hadoop.io.compress.DecompressorStream} which works
  16461. with 'block-based' based compression algorithms, as opposed to
  16462. 'stream-based' compression algorithms.]]>
  16463. </doc>
  16464. </class>
  16465. <!-- end class org.apache.hadoop.io.compress.BlockDecompressorStream -->
  16466. <!-- start class org.apache.hadoop.io.compress.BZip2Codec -->
  16467. <class name="BZip2Codec" extends="java.lang.Object"
  16468. abstract="false"
  16469. static="false" final="false" visibility="public"
  16470. deprecated="not deprecated">
  16471. <implements name="org.apache.hadoop.io.compress.SplittableCompressionCodec"/>
  16472. <constructor name="BZip2Codec"
  16473. static="false" final="false" visibility="public"
  16474. deprecated="not deprecated">
  16475. <doc>
  16476. <![CDATA[Creates a new instance of BZip2Codec]]>
  16477. </doc>
  16478. </constructor>
  16479. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  16480. abstract="false" native="false" synchronized="false"
  16481. static="false" final="false" visibility="public"
  16482. deprecated="not deprecated">
  16483. <param name="out" type="java.io.OutputStream"/>
  16484. <exception name="IOException" type="java.io.IOException"/>
  16485. <doc>
  16486. <![CDATA[Creates CompressionOutputStream for BZip2
  16487. @param out
  16488. The output Stream
  16489. @return The BZip2 CompressionOutputStream
  16490. @throws java.io.IOException
  16491. Throws IO exception]]>
  16492. </doc>
  16493. </method>
  16494. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  16495. abstract="false" native="false" synchronized="false"
  16496. static="false" final="false" visibility="public"
  16497. deprecated="not deprecated">
  16498. <param name="out" type="java.io.OutputStream"/>
  16499. <param name="compressor" type="org.apache.hadoop.io.compress.Compressor"/>
  16500. <exception name="IOException" type="java.io.IOException"/>
  16501. <doc>
  16502. <![CDATA[Creates a compressor using given OutputStream.
  16503. @return CompressionOutputStream
  16504. @throws java.io.IOException]]>
  16505. </doc>
  16506. </method>
  16507. <method name="getCompressorType" return="java.lang.Class"
  16508. abstract="false" native="false" synchronized="false"
  16509. static="false" final="false" visibility="public"
  16510. deprecated="not deprecated">
  16511. <doc>
  16512. <![CDATA[This functionality is currently not supported.
  16513. @return BZip2DummyCompressor.class]]>
  16514. </doc>
  16515. </method>
  16516. <method name="createCompressor" return="org.apache.hadoop.io.compress.Compressor"
  16517. abstract="false" native="false" synchronized="false"
  16518. static="false" final="false" visibility="public"
  16519. deprecated="not deprecated">
  16520. <doc>
  16521. <![CDATA[This functionality is currently not supported.
  16522. @return Compressor]]>
  16523. </doc>
  16524. </method>
  16525. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  16526. abstract="false" native="false" synchronized="false"
  16527. static="false" final="false" visibility="public"
  16528. deprecated="not deprecated">
  16529. <param name="in" type="java.io.InputStream"/>
  16530. <exception name="IOException" type="java.io.IOException"/>
  16531. <doc>
  16532. <![CDATA[Creates CompressionInputStream to be used to read off uncompressed data.
  16533. @param in
  16534. The InputStream
  16535. @return Returns CompressionInputStream for BZip2
  16536. @throws java.io.IOException
  16537. Throws IOException]]>
  16538. </doc>
  16539. </method>
  16540. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  16541. abstract="false" native="false" synchronized="false"
  16542. static="false" final="false" visibility="public"
  16543. deprecated="not deprecated">
  16544. <param name="in" type="java.io.InputStream"/>
  16545. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  16546. <exception name="IOException" type="java.io.IOException"/>
  16547. <doc>
  16548. <![CDATA[This functionality is currently not supported.
  16549. @return CompressionInputStream]]>
  16550. </doc>
  16551. </method>
  16552. <method name="createInputStream" return="org.apache.hadoop.io.compress.SplitCompressionInputStream"
  16553. abstract="false" native="false" synchronized="false"
  16554. static="false" final="false" visibility="public"
  16555. deprecated="not deprecated">
  16556. <param name="seekableIn" type="java.io.InputStream"/>
  16557. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  16558. <param name="start" type="long"/>
  16559. <param name="end" type="long"/>
  16560. <param name="readMode" type="org.apache.hadoop.io.compress.SplittableCompressionCodec.READ_MODE"/>
  16561. <exception name="IOException" type="java.io.IOException"/>
  16562. <doc>
  16563. <![CDATA[Creates CompressionInputStream to be used to read off uncompressed data
  16564. in one of the two reading modes. i.e. Continuous or Blocked reading modes
  16565. @param seekableIn The InputStream
  16566. @param start The start offset into the compressed stream
  16567. @param end The end offset into the compressed stream
  16568. @param readMode Controls whether progress is reported continuously or
  16569. only at block boundaries.
  16570. @return CompressionInputStream for BZip2 aligned at block boundaries]]>
  16571. </doc>
  16572. </method>
  16573. <method name="getDecompressorType" return="java.lang.Class"
  16574. abstract="false" native="false" synchronized="false"
  16575. static="false" final="false" visibility="public"
  16576. deprecated="not deprecated">
  16577. <doc>
  16578. <![CDATA[This functionality is currently not supported.
  16579. @return BZip2DummyDecompressor.class]]>
  16580. </doc>
  16581. </method>
  16582. <method name="createDecompressor" return="org.apache.hadoop.io.compress.Decompressor"
  16583. abstract="false" native="false" synchronized="false"
  16584. static="false" final="false" visibility="public"
  16585. deprecated="not deprecated">
  16586. <doc>
  16587. <![CDATA[This functionality is currently not supported.
  16588. @return Decompressor]]>
  16589. </doc>
  16590. </method>
  16591. <method name="getDefaultExtension" return="java.lang.String"
  16592. abstract="false" native="false" synchronized="false"
  16593. static="false" final="false" visibility="public"
  16594. deprecated="not deprecated">
  16595. <doc>
  16596. <![CDATA[.bz2 is recognized as the default extension for compressed BZip2 files
  16597. @return A String telling the default bzip2 file extension]]>
  16598. </doc>
  16599. </method>
  16600. <doc>
  16601. <![CDATA[This class provides CompressionOutputStream and CompressionInputStream for
  16602. compression and decompression. Currently we dont have an implementation of
  16603. the Compressor and Decompressor interfaces, so those methods of
  16604. CompressionCodec which have a Compressor or Decompressor type argument, throw
  16605. UnsupportedOperationException.]]>
  16606. </doc>
  16607. </class>
  16608. <!-- end class org.apache.hadoop.io.compress.BZip2Codec -->
  16609. <!-- start class org.apache.hadoop.io.compress.CodecPool -->
  16610. <class name="CodecPool" extends="java.lang.Object"
  16611. abstract="false"
  16612. static="false" final="false" visibility="public"
  16613. deprecated="not deprecated">
  16614. <constructor name="CodecPool"
  16615. static="false" final="false" visibility="public"
  16616. deprecated="not deprecated">
  16617. </constructor>
  16618. <method name="getCompressor" return="org.apache.hadoop.io.compress.Compressor"
  16619. abstract="false" native="false" synchronized="false"
  16620. static="true" final="false" visibility="public"
  16621. deprecated="not deprecated">
  16622. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  16623. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  16624. <doc>
  16625. <![CDATA[Get a {@link Compressor} for the given {@link CompressionCodec} from the
  16626. pool or a new one.
  16627. @param codec the <code>CompressionCodec</code> for which to get the
  16628. <code>Compressor</code>
  16629. @param conf the <code>Configuration</code> object which contains confs for creating or reinit the compressor
  16630. @return <code>Compressor</code> for the given
  16631. <code>CompressionCodec</code> from the pool or a new one]]>
  16632. </doc>
  16633. </method>
  16634. <method name="getCompressor" return="org.apache.hadoop.io.compress.Compressor"
  16635. abstract="false" native="false" synchronized="false"
  16636. static="true" final="false" visibility="public"
  16637. deprecated="not deprecated">
  16638. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  16639. </method>
  16640. <method name="getDecompressor" return="org.apache.hadoop.io.compress.Decompressor"
  16641. abstract="false" native="false" synchronized="false"
  16642. static="true" final="false" visibility="public"
  16643. deprecated="not deprecated">
  16644. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  16645. <doc>
  16646. <![CDATA[Get a {@link Decompressor} for the given {@link CompressionCodec} from the
  16647. pool or a new one.
  16648. @param codec the <code>CompressionCodec</code> for which to get the
  16649. <code>Decompressor</code>
  16650. @return <code>Decompressor</code> for the given
  16651. <code>CompressionCodec</code> the pool or a new one]]>
  16652. </doc>
  16653. </method>
  16654. <method name="returnCompressor"
  16655. abstract="false" native="false" synchronized="false"
  16656. static="true" final="false" visibility="public"
  16657. deprecated="not deprecated">
  16658. <param name="compressor" type="org.apache.hadoop.io.compress.Compressor"/>
  16659. <doc>
  16660. <![CDATA[Return the {@link Compressor} to the pool.
  16661. @param compressor the <code>Compressor</code> to be returned to the pool]]>
  16662. </doc>
  16663. </method>
  16664. <method name="returnDecompressor"
  16665. abstract="false" native="false" synchronized="false"
  16666. static="true" final="false" visibility="public"
  16667. deprecated="not deprecated">
  16668. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  16669. <doc>
  16670. <![CDATA[Return the {@link Decompressor} to the pool.
  16671. @param decompressor the <code>Decompressor</code> to be returned to the
  16672. pool]]>
  16673. </doc>
  16674. </method>
  16675. <doc>
  16676. <![CDATA[A global compressor/decompressor pool used to save and reuse
  16677. (possibly native) compression/decompression codecs.]]>
  16678. </doc>
  16679. </class>
  16680. <!-- end class org.apache.hadoop.io.compress.CodecPool -->
  16681. <!-- start interface org.apache.hadoop.io.compress.CompressionCodec -->
  16682. <interface name="CompressionCodec" abstract="true"
  16683. static="false" final="false" visibility="public"
  16684. deprecated="not deprecated">
  16685. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  16686. abstract="false" native="false" synchronized="false"
  16687. static="false" final="false" visibility="public"
  16688. deprecated="not deprecated">
  16689. <param name="out" type="java.io.OutputStream"/>
  16690. <exception name="IOException" type="java.io.IOException"/>
  16691. <doc>
  16692. <![CDATA[Create a {@link CompressionOutputStream} that will write to the given
  16693. {@link OutputStream}.
  16694. @param out the location for the final output stream
  16695. @return a stream the user can write uncompressed data to have it compressed
  16696. @throws IOException]]>
  16697. </doc>
  16698. </method>
  16699. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  16700. abstract="false" native="false" synchronized="false"
  16701. static="false" final="false" visibility="public"
  16702. deprecated="not deprecated">
  16703. <param name="out" type="java.io.OutputStream"/>
  16704. <param name="compressor" type="org.apache.hadoop.io.compress.Compressor"/>
  16705. <exception name="IOException" type="java.io.IOException"/>
  16706. <doc>
  16707. <![CDATA[Create a {@link CompressionOutputStream} that will write to the given
  16708. {@link OutputStream} with the given {@link Compressor}.
  16709. @param out the location for the final output stream
  16710. @param compressor compressor to use
  16711. @return a stream the user can write uncompressed data to have it compressed
  16712. @throws IOException]]>
  16713. </doc>
  16714. </method>
  16715. <method name="getCompressorType" return="java.lang.Class"
  16716. abstract="false" native="false" synchronized="false"
  16717. static="false" final="false" visibility="public"
  16718. deprecated="not deprecated">
  16719. <doc>
  16720. <![CDATA[Get the type of {@link Compressor} needed by this {@link CompressionCodec}.
  16721. @return the type of compressor needed by this codec.]]>
  16722. </doc>
  16723. </method>
  16724. <method name="createCompressor" return="org.apache.hadoop.io.compress.Compressor"
  16725. abstract="false" native="false" synchronized="false"
  16726. static="false" final="false" visibility="public"
  16727. deprecated="not deprecated">
  16728. <doc>
  16729. <![CDATA[Create a new {@link Compressor} for use by this {@link CompressionCodec}.
  16730. @return a new compressor for use by this codec]]>
  16731. </doc>
  16732. </method>
  16733. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  16734. abstract="false" native="false" synchronized="false"
  16735. static="false" final="false" visibility="public"
  16736. deprecated="not deprecated">
  16737. <param name="in" type="java.io.InputStream"/>
  16738. <exception name="IOException" type="java.io.IOException"/>
  16739. <doc>
  16740. <![CDATA[Create a stream decompressor that will read from the given input stream.
  16741. @param in the stream to read compressed bytes from
  16742. @return a stream to read uncompressed bytes from
  16743. @throws IOException]]>
  16744. </doc>
  16745. </method>
  16746. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  16747. abstract="false" native="false" synchronized="false"
  16748. static="false" final="false" visibility="public"
  16749. deprecated="not deprecated">
  16750. <param name="in" type="java.io.InputStream"/>
  16751. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  16752. <exception name="IOException" type="java.io.IOException"/>
  16753. <doc>
  16754. <![CDATA[Create a {@link CompressionInputStream} that will read from the given
  16755. {@link InputStream} with the given {@link Decompressor}.
  16756. @param in the stream to read compressed bytes from
  16757. @param decompressor decompressor to use
  16758. @return a stream to read uncompressed bytes from
  16759. @throws IOException]]>
  16760. </doc>
  16761. </method>
  16762. <method name="getDecompressorType" return="java.lang.Class"
  16763. abstract="false" native="false" synchronized="false"
  16764. static="false" final="false" visibility="public"
  16765. deprecated="not deprecated">
  16766. <doc>
  16767. <![CDATA[Get the type of {@link Decompressor} needed by this {@link CompressionCodec}.
  16768. @return the type of decompressor needed by this codec.]]>
  16769. </doc>
  16770. </method>
  16771. <method name="createDecompressor" return="org.apache.hadoop.io.compress.Decompressor"
  16772. abstract="false" native="false" synchronized="false"
  16773. static="false" final="false" visibility="public"
  16774. deprecated="not deprecated">
  16775. <doc>
  16776. <![CDATA[Create a new {@link Decompressor} for use by this {@link CompressionCodec}.
  16777. @return a new decompressor for use by this codec]]>
  16778. </doc>
  16779. </method>
  16780. <method name="getDefaultExtension" return="java.lang.String"
  16781. abstract="false" native="false" synchronized="false"
  16782. static="false" final="false" visibility="public"
  16783. deprecated="not deprecated">
  16784. <doc>
  16785. <![CDATA[Get the default filename extension for this kind of compression.
  16786. @return the extension including the '.']]>
  16787. </doc>
  16788. </method>
  16789. <doc>
  16790. <![CDATA[This class encapsulates a streaming compression/decompression pair.]]>
  16791. </doc>
  16792. </interface>
  16793. <!-- end interface org.apache.hadoop.io.compress.CompressionCodec -->
  16794. <!-- start class org.apache.hadoop.io.compress.CompressionCodecFactory -->
  16795. <class name="CompressionCodecFactory" extends="java.lang.Object"
  16796. abstract="false"
  16797. static="false" final="false" visibility="public"
  16798. deprecated="not deprecated">
  16799. <constructor name="CompressionCodecFactory" type="org.apache.hadoop.conf.Configuration"
  16800. static="false" final="false" visibility="public"
  16801. deprecated="not deprecated">
  16802. <doc>
  16803. <![CDATA[Find the codecs specified in the config value io.compression.codecs
  16804. and register them. Defaults to gzip and zip.]]>
  16805. </doc>
  16806. </constructor>
  16807. <method name="toString" return="java.lang.String"
  16808. abstract="false" native="false" synchronized="false"
  16809. static="false" final="false" visibility="public"
  16810. deprecated="not deprecated">
  16811. <doc>
  16812. <![CDATA[Print the extension map out as a string.]]>
  16813. </doc>
  16814. </method>
  16815. <method name="getCodecClasses" return="java.util.List"
  16816. abstract="false" native="false" synchronized="false"
  16817. static="true" final="false" visibility="public"
  16818. deprecated="not deprecated">
  16819. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  16820. <doc>
  16821. <![CDATA[Get the list of codecs listed in the configuration
  16822. @param conf the configuration to look in
  16823. @return a list of the Configuration classes or null if the attribute
  16824. was not set]]>
  16825. </doc>
  16826. </method>
  16827. <method name="setCodecClasses"
  16828. abstract="false" native="false" synchronized="false"
  16829. static="true" final="false" visibility="public"
  16830. deprecated="not deprecated">
  16831. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  16832. <param name="classes" type="java.util.List"/>
  16833. <doc>
  16834. <![CDATA[Sets a list of codec classes in the configuration.
  16835. @param conf the configuration to modify
  16836. @param classes the list of classes to set]]>
  16837. </doc>
  16838. </method>
  16839. <method name="getCodec" return="org.apache.hadoop.io.compress.CompressionCodec"
  16840. abstract="false" native="false" synchronized="false"
  16841. static="false" final="false" visibility="public"
  16842. deprecated="not deprecated">
  16843. <param name="file" type="org.apache.hadoop.fs.Path"/>
  16844. <doc>
  16845. <![CDATA[Find the relevant compression codec for the given file based on its
  16846. filename suffix.
  16847. @param file the filename to check
  16848. @return the codec object]]>
  16849. </doc>
  16850. </method>
  16851. <method name="getCodecByClassName" return="org.apache.hadoop.io.compress.CompressionCodec"
  16852. abstract="false" native="false" synchronized="false"
  16853. static="false" final="false" visibility="public"
  16854. deprecated="not deprecated">
  16855. <param name="classname" type="java.lang.String"/>
  16856. <doc>
  16857. <![CDATA[Find the relevant compression codec for the codec's canonical class name.
  16858. @param classname the canonical class name of the codec
  16859. @return the codec object]]>
  16860. </doc>
  16861. </method>
  16862. <method name="getCodecByName" return="org.apache.hadoop.io.compress.CompressionCodec"
  16863. abstract="false" native="false" synchronized="false"
  16864. static="false" final="false" visibility="public"
  16865. deprecated="not deprecated">
  16866. <param name="codecName" type="java.lang.String"/>
  16867. <doc>
  16868. <![CDATA[Find the relevant compression codec for the codec's canonical class name
  16869. or by codec alias.
  16870. <p/>
  16871. Codec aliases are case insensitive.
  16872. <p/>
  16873. The code alias is the short class name (without the package name).
  16874. If the short class name ends with 'Codec', then there are two aliases for
  16875. the codec, the complete short class name and the short class name without
  16876. the 'Codec' ending. For example for the 'GzipCodec' codec class name the
  16877. alias are 'gzip' and 'gzipcodec'.
  16878. @param codecName the canonical class name of the codec
  16879. @return the codec object]]>
  16880. </doc>
  16881. </method>
  16882. <method name="getCodecClassByName" return="java.lang.Class"
  16883. abstract="false" native="false" synchronized="false"
  16884. static="false" final="false" visibility="public"
  16885. deprecated="not deprecated">
  16886. <param name="codecName" type="java.lang.String"/>
  16887. <doc>
  16888. <![CDATA[Find the relevant compression codec for the codec's canonical class name
  16889. or by codec alias and returns its implemetation class.
  16890. <p/>
  16891. Codec aliases are case insensitive.
  16892. <p/>
  16893. The code alias is the short class name (without the package name).
  16894. If the short class name ends with 'Codec', then there are two aliases for
  16895. the codec, the complete short class name and the short class name without
  16896. the 'Codec' ending. For example for the 'GzipCodec' codec class name the
  16897. alias are 'gzip' and 'gzipcodec'.
  16898. @param codecName the canonical class name of the codec
  16899. @return the codec class]]>
  16900. </doc>
  16901. </method>
  16902. <method name="removeSuffix" return="java.lang.String"
  16903. abstract="false" native="false" synchronized="false"
  16904. static="true" final="false" visibility="public"
  16905. deprecated="not deprecated">
  16906. <param name="filename" type="java.lang.String"/>
  16907. <param name="suffix" type="java.lang.String"/>
  16908. <doc>
  16909. <![CDATA[Removes a suffix from a filename, if it has it.
  16910. @param filename the filename to strip
  16911. @param suffix the suffix to remove
  16912. @return the shortened filename]]>
  16913. </doc>
  16914. </method>
  16915. <method name="main"
  16916. abstract="false" native="false" synchronized="false"
  16917. static="true" final="false" visibility="public"
  16918. deprecated="not deprecated">
  16919. <param name="args" type="java.lang.String[]"/>
  16920. <exception name="Exception" type="java.lang.Exception"/>
  16921. <doc>
  16922. <![CDATA[A little test program.
  16923. @param args]]>
  16924. </doc>
  16925. </method>
  16926. <field name="LOG" type="org.apache.commons.logging.Log"
  16927. transient="false" volatile="false"
  16928. static="true" final="true" visibility="public"
  16929. deprecated="not deprecated">
  16930. </field>
  16931. <doc>
  16932. <![CDATA[A factory that will find the correct codec for a given filename.]]>
  16933. </doc>
  16934. </class>
  16935. <!-- end class org.apache.hadoop.io.compress.CompressionCodecFactory -->
  16936. <!-- start class org.apache.hadoop.io.compress.CompressionInputStream -->
  16937. <class name="CompressionInputStream" extends="java.io.InputStream"
  16938. abstract="true"
  16939. static="false" final="false" visibility="public"
  16940. deprecated="not deprecated">
  16941. <implements name="org.apache.hadoop.fs.Seekable"/>
  16942. <constructor name="CompressionInputStream" type="java.io.InputStream"
  16943. static="false" final="false" visibility="protected"
  16944. deprecated="not deprecated">
  16945. <exception name="IOException" type="java.io.IOException"/>
  16946. <doc>
  16947. <![CDATA[Create a compression input stream that reads
  16948. the decompressed bytes from the given stream.
  16949. @param in The input stream to be compressed.
  16950. @throws IOException]]>
  16951. </doc>
  16952. </constructor>
  16953. <method name="close"
  16954. abstract="false" native="false" synchronized="false"
  16955. static="false" final="false" visibility="public"
  16956. deprecated="not deprecated">
  16957. <exception name="IOException" type="java.io.IOException"/>
  16958. </method>
  16959. <method name="read" return="int"
  16960. abstract="true" native="false" synchronized="false"
  16961. static="false" final="false" visibility="public"
  16962. deprecated="not deprecated">
  16963. <param name="b" type="byte[]"/>
  16964. <param name="off" type="int"/>
  16965. <param name="len" type="int"/>
  16966. <exception name="IOException" type="java.io.IOException"/>
  16967. <doc>
  16968. <![CDATA[Read bytes from the stream.
  16969. Made abstract to prevent leakage to underlying stream.]]>
  16970. </doc>
  16971. </method>
  16972. <method name="resetState"
  16973. abstract="true" native="false" synchronized="false"
  16974. static="false" final="false" visibility="public"
  16975. deprecated="not deprecated">
  16976. <exception name="IOException" type="java.io.IOException"/>
  16977. <doc>
  16978. <![CDATA[Reset the decompressor to its initial state and discard any buffered data,
  16979. as the underlying stream may have been repositioned.]]>
  16980. </doc>
  16981. </method>
  16982. <method name="getPos" return="long"
  16983. abstract="false" native="false" synchronized="false"
  16984. static="false" final="false" visibility="public"
  16985. deprecated="not deprecated">
  16986. <exception name="IOException" type="java.io.IOException"/>
  16987. <doc>
  16988. <![CDATA[This method returns the current position in the stream.
  16989. @return Current position in stream as a long]]>
  16990. </doc>
  16991. </method>
  16992. <method name="seek"
  16993. abstract="false" native="false" synchronized="false"
  16994. static="false" final="false" visibility="public"
  16995. deprecated="not deprecated">
  16996. <param name="pos" type="long"/>
  16997. <exception name="UnsupportedOperationException" type="java.lang.UnsupportedOperationException"/>
  16998. <doc>
  16999. <![CDATA[This method is current not supported.
  17000. @throws UnsupportedOperationException]]>
  17001. </doc>
  17002. </method>
  17003. <method name="seekToNewSource" return="boolean"
  17004. abstract="false" native="false" synchronized="false"
  17005. static="false" final="false" visibility="public"
  17006. deprecated="not deprecated">
  17007. <param name="targetPos" type="long"/>
  17008. <exception name="UnsupportedOperationException" type="java.lang.UnsupportedOperationException"/>
  17009. <doc>
  17010. <![CDATA[This method is current not supported.
  17011. @throws UnsupportedOperationException]]>
  17012. </doc>
  17013. </method>
  17014. <field name="in" type="java.io.InputStream"
  17015. transient="false" volatile="false"
  17016. static="false" final="true" visibility="protected"
  17017. deprecated="not deprecated">
  17018. <doc>
  17019. <![CDATA[The input stream to be compressed.]]>
  17020. </doc>
  17021. </field>
  17022. <field name="maxAvailableData" type="long"
  17023. transient="false" volatile="false"
  17024. static="false" final="false" visibility="protected"
  17025. deprecated="not deprecated">
  17026. </field>
  17027. <doc>
  17028. <![CDATA[A compression input stream.
  17029. <p>Implementations are assumed to be buffered. This permits clients to
  17030. reposition the underlying input stream then call {@link #resetState()},
  17031. without having to also synchronize client buffers.]]>
  17032. </doc>
  17033. </class>
  17034. <!-- end class org.apache.hadoop.io.compress.CompressionInputStream -->
  17035. <!-- start class org.apache.hadoop.io.compress.CompressionOutputStream -->
  17036. <class name="CompressionOutputStream" extends="java.io.OutputStream"
  17037. abstract="true"
  17038. static="false" final="false" visibility="public"
  17039. deprecated="not deprecated">
  17040. <constructor name="CompressionOutputStream" type="java.io.OutputStream"
  17041. static="false" final="false" visibility="protected"
  17042. deprecated="not deprecated">
  17043. <doc>
  17044. <![CDATA[Create a compression output stream that writes
  17045. the compressed bytes to the given stream.
  17046. @param out]]>
  17047. </doc>
  17048. </constructor>
  17049. <method name="close"
  17050. abstract="false" native="false" synchronized="false"
  17051. static="false" final="false" visibility="public"
  17052. deprecated="not deprecated">
  17053. <exception name="IOException" type="java.io.IOException"/>
  17054. </method>
  17055. <method name="flush"
  17056. abstract="false" native="false" synchronized="false"
  17057. static="false" final="false" visibility="public"
  17058. deprecated="not deprecated">
  17059. <exception name="IOException" type="java.io.IOException"/>
  17060. </method>
  17061. <method name="write"
  17062. abstract="true" native="false" synchronized="false"
  17063. static="false" final="false" visibility="public"
  17064. deprecated="not deprecated">
  17065. <param name="b" type="byte[]"/>
  17066. <param name="off" type="int"/>
  17067. <param name="len" type="int"/>
  17068. <exception name="IOException" type="java.io.IOException"/>
  17069. <doc>
  17070. <![CDATA[Write compressed bytes to the stream.
  17071. Made abstract to prevent leakage to underlying stream.]]>
  17072. </doc>
  17073. </method>
  17074. <method name="finish"
  17075. abstract="true" native="false" synchronized="false"
  17076. static="false" final="false" visibility="public"
  17077. deprecated="not deprecated">
  17078. <exception name="IOException" type="java.io.IOException"/>
  17079. <doc>
  17080. <![CDATA[Finishes writing compressed data to the output stream
  17081. without closing the underlying stream.]]>
  17082. </doc>
  17083. </method>
  17084. <method name="resetState"
  17085. abstract="true" native="false" synchronized="false"
  17086. static="false" final="false" visibility="public"
  17087. deprecated="not deprecated">
  17088. <exception name="IOException" type="java.io.IOException"/>
  17089. <doc>
  17090. <![CDATA[Reset the compression to the initial state.
  17091. Does not reset the underlying stream.]]>
  17092. </doc>
  17093. </method>
  17094. <field name="out" type="java.io.OutputStream"
  17095. transient="false" volatile="false"
  17096. static="false" final="true" visibility="protected"
  17097. deprecated="not deprecated">
  17098. <doc>
  17099. <![CDATA[The output stream to be compressed.]]>
  17100. </doc>
  17101. </field>
  17102. <doc>
  17103. <![CDATA[A compression output stream.]]>
  17104. </doc>
  17105. </class>
  17106. <!-- end class org.apache.hadoop.io.compress.CompressionOutputStream -->
  17107. <!-- start interface org.apache.hadoop.io.compress.Compressor -->
  17108. <interface name="Compressor" abstract="true"
  17109. static="false" final="false" visibility="public"
  17110. deprecated="not deprecated">
  17111. <method name="setInput"
  17112. abstract="false" native="false" synchronized="false"
  17113. static="false" final="false" visibility="public"
  17114. deprecated="not deprecated">
  17115. <param name="b" type="byte[]"/>
  17116. <param name="off" type="int"/>
  17117. <param name="len" type="int"/>
  17118. <doc>
  17119. <![CDATA[Sets input data for compression.
  17120. This should be called whenever #needsInput() returns
  17121. <code>true</code> indicating that more input data is required.
  17122. @param b Input data
  17123. @param off Start offset
  17124. @param len Length]]>
  17125. </doc>
  17126. </method>
  17127. <method name="needsInput" return="boolean"
  17128. abstract="false" native="false" synchronized="false"
  17129. static="false" final="false" visibility="public"
  17130. deprecated="not deprecated">
  17131. <doc>
  17132. <![CDATA[Returns true if the input data buffer is empty and
  17133. #setInput() should be called to provide more input.
  17134. @return <code>true</code> if the input data buffer is empty and
  17135. #setInput() should be called in order to provide more input.]]>
  17136. </doc>
  17137. </method>
  17138. <method name="setDictionary"
  17139. abstract="false" native="false" synchronized="false"
  17140. static="false" final="false" visibility="public"
  17141. deprecated="not deprecated">
  17142. <param name="b" type="byte[]"/>
  17143. <param name="off" type="int"/>
  17144. <param name="len" type="int"/>
  17145. <doc>
  17146. <![CDATA[Sets preset dictionary for compression. A preset dictionary
  17147. is used when the history buffer can be predetermined.
  17148. @param b Dictionary data bytes
  17149. @param off Start offset
  17150. @param len Length]]>
  17151. </doc>
  17152. </method>
  17153. <method name="getBytesRead" return="long"
  17154. abstract="false" native="false" synchronized="false"
  17155. static="false" final="false" visibility="public"
  17156. deprecated="not deprecated">
  17157. <doc>
  17158. <![CDATA[Return number of uncompressed bytes input so far.]]>
  17159. </doc>
  17160. </method>
  17161. <method name="getBytesWritten" return="long"
  17162. abstract="false" native="false" synchronized="false"
  17163. static="false" final="false" visibility="public"
  17164. deprecated="not deprecated">
  17165. <doc>
  17166. <![CDATA[Return number of compressed bytes output so far.]]>
  17167. </doc>
  17168. </method>
  17169. <method name="finish"
  17170. abstract="false" native="false" synchronized="false"
  17171. static="false" final="false" visibility="public"
  17172. deprecated="not deprecated">
  17173. <doc>
  17174. <![CDATA[When called, indicates that compression should end
  17175. with the current contents of the input buffer.]]>
  17176. </doc>
  17177. </method>
  17178. <method name="finished" return="boolean"
  17179. abstract="false" native="false" synchronized="false"
  17180. static="false" final="false" visibility="public"
  17181. deprecated="not deprecated">
  17182. <doc>
  17183. <![CDATA[Returns true if the end of the compressed
  17184. data output stream has been reached.
  17185. @return <code>true</code> if the end of the compressed
  17186. data output stream has been reached.]]>
  17187. </doc>
  17188. </method>
  17189. <method name="compress" return="int"
  17190. abstract="false" native="false" synchronized="false"
  17191. static="false" final="false" visibility="public"
  17192. deprecated="not deprecated">
  17193. <param name="b" type="byte[]"/>
  17194. <param name="off" type="int"/>
  17195. <param name="len" type="int"/>
  17196. <exception name="IOException" type="java.io.IOException"/>
  17197. <doc>
  17198. <![CDATA[Fills specified buffer with compressed data. Returns actual number
  17199. of bytes of compressed data. A return value of 0 indicates that
  17200. needsInput() should be called in order to determine if more input
  17201. data is required.
  17202. @param b Buffer for the compressed data
  17203. @param off Start offset of the data
  17204. @param len Size of the buffer
  17205. @return The actual number of bytes of compressed data.]]>
  17206. </doc>
  17207. </method>
  17208. <method name="reset"
  17209. abstract="false" native="false" synchronized="false"
  17210. static="false" final="false" visibility="public"
  17211. deprecated="not deprecated">
  17212. <doc>
  17213. <![CDATA[Resets compressor so that a new set of input data can be processed.]]>
  17214. </doc>
  17215. </method>
  17216. <method name="end"
  17217. abstract="false" native="false" synchronized="false"
  17218. static="false" final="false" visibility="public"
  17219. deprecated="not deprecated">
  17220. <doc>
  17221. <![CDATA[Closes the compressor and discards any unprocessed input.]]>
  17222. </doc>
  17223. </method>
  17224. <method name="reinit"
  17225. abstract="false" native="false" synchronized="false"
  17226. static="false" final="false" visibility="public"
  17227. deprecated="not deprecated">
  17228. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  17229. <doc>
  17230. <![CDATA[Prepare the compressor to be used in a new stream with settings defined in
  17231. the given Configuration
  17232. @param conf Configuration from which new setting are fetched]]>
  17233. </doc>
  17234. </method>
  17235. <doc>
  17236. <![CDATA[Specification of a stream-based 'compressor' which can be
  17237. plugged into a {@link CompressionOutputStream} to compress data.
  17238. This is modelled after {@link java.util.zip.Deflater}]]>
  17239. </doc>
  17240. </interface>
  17241. <!-- end interface org.apache.hadoop.io.compress.Compressor -->
  17242. <!-- start class org.apache.hadoop.io.compress.CompressorStream -->
  17243. <class name="CompressorStream" extends="org.apache.hadoop.io.compress.CompressionOutputStream"
  17244. abstract="false"
  17245. static="false" final="false" visibility="public"
  17246. deprecated="not deprecated">
  17247. <constructor name="CompressorStream" type="java.io.OutputStream, org.apache.hadoop.io.compress.Compressor, int"
  17248. static="false" final="false" visibility="public"
  17249. deprecated="not deprecated">
  17250. </constructor>
  17251. <constructor name="CompressorStream" type="java.io.OutputStream, org.apache.hadoop.io.compress.Compressor"
  17252. static="false" final="false" visibility="public"
  17253. deprecated="not deprecated">
  17254. </constructor>
  17255. <constructor name="CompressorStream" type="java.io.OutputStream"
  17256. static="false" final="false" visibility="protected"
  17257. deprecated="not deprecated">
  17258. <doc>
  17259. <![CDATA[Allow derived classes to directly set the underlying stream.
  17260. @param out Underlying output stream.]]>
  17261. </doc>
  17262. </constructor>
  17263. <method name="write"
  17264. abstract="false" native="false" synchronized="false"
  17265. static="false" final="false" visibility="public"
  17266. deprecated="not deprecated">
  17267. <param name="b" type="byte[]"/>
  17268. <param name="off" type="int"/>
  17269. <param name="len" type="int"/>
  17270. <exception name="IOException" type="java.io.IOException"/>
  17271. </method>
  17272. <method name="compress"
  17273. abstract="false" native="false" synchronized="false"
  17274. static="false" final="false" visibility="protected"
  17275. deprecated="not deprecated">
  17276. <exception name="IOException" type="java.io.IOException"/>
  17277. </method>
  17278. <method name="finish"
  17279. abstract="false" native="false" synchronized="false"
  17280. static="false" final="false" visibility="public"
  17281. deprecated="not deprecated">
  17282. <exception name="IOException" type="java.io.IOException"/>
  17283. </method>
  17284. <method name="resetState"
  17285. abstract="false" native="false" synchronized="false"
  17286. static="false" final="false" visibility="public"
  17287. deprecated="not deprecated">
  17288. <exception name="IOException" type="java.io.IOException"/>
  17289. </method>
  17290. <method name="close"
  17291. abstract="false" native="false" synchronized="false"
  17292. static="false" final="false" visibility="public"
  17293. deprecated="not deprecated">
  17294. <exception name="IOException" type="java.io.IOException"/>
  17295. </method>
  17296. <method name="write"
  17297. abstract="false" native="false" synchronized="false"
  17298. static="false" final="false" visibility="public"
  17299. deprecated="not deprecated">
  17300. <param name="b" type="int"/>
  17301. <exception name="IOException" type="java.io.IOException"/>
  17302. </method>
  17303. <field name="compressor" type="org.apache.hadoop.io.compress.Compressor"
  17304. transient="false" volatile="false"
  17305. static="false" final="false" visibility="protected"
  17306. deprecated="not deprecated">
  17307. </field>
  17308. <field name="buffer" type="byte[]"
  17309. transient="false" volatile="false"
  17310. static="false" final="false" visibility="protected"
  17311. deprecated="not deprecated">
  17312. </field>
  17313. <field name="closed" type="boolean"
  17314. transient="false" volatile="false"
  17315. static="false" final="false" visibility="protected"
  17316. deprecated="not deprecated">
  17317. </field>
  17318. </class>
  17319. <!-- end class org.apache.hadoop.io.compress.CompressorStream -->
  17320. <!-- start interface org.apache.hadoop.io.compress.Decompressor -->
  17321. <interface name="Decompressor" abstract="true"
  17322. static="false" final="false" visibility="public"
  17323. deprecated="not deprecated">
  17324. <method name="setInput"
  17325. abstract="false" native="false" synchronized="false"
  17326. static="false" final="false" visibility="public"
  17327. deprecated="not deprecated">
  17328. <param name="b" type="byte[]"/>
  17329. <param name="off" type="int"/>
  17330. <param name="len" type="int"/>
  17331. <doc>
  17332. <![CDATA[Sets input data for decompression.
  17333. This should be called if and only if {@link #needsInput()} returns
  17334. <code>true</code> indicating that more input data is required.
  17335. (Both native and non-native versions of various Decompressors require
  17336. that the data passed in via <code>b[]</code> remain unmodified until
  17337. the caller is explicitly notified--via {@link #needsInput()}--that the
  17338. buffer may be safely modified. With this requirement, an extra
  17339. buffer-copy can be avoided.)
  17340. @param b Input data
  17341. @param off Start offset
  17342. @param len Length]]>
  17343. </doc>
  17344. </method>
  17345. <method name="needsInput" return="boolean"
  17346. abstract="false" native="false" synchronized="false"
  17347. static="false" final="false" visibility="public"
  17348. deprecated="not deprecated">
  17349. <doc>
  17350. <![CDATA[Returns true if the input data buffer is empty and
  17351. {@link #setInput(byte[], int, int)} should be called to
  17352. provide more input.
  17353. @return <code>true</code> if the input data buffer is empty and
  17354. {@link #setInput(byte[], int, int)} should be called in
  17355. order to provide more input.]]>
  17356. </doc>
  17357. </method>
  17358. <method name="setDictionary"
  17359. abstract="false" native="false" synchronized="false"
  17360. static="false" final="false" visibility="public"
  17361. deprecated="not deprecated">
  17362. <param name="b" type="byte[]"/>
  17363. <param name="off" type="int"/>
  17364. <param name="len" type="int"/>
  17365. <doc>
  17366. <![CDATA[Sets preset dictionary for compression. A preset dictionary
  17367. is used when the history buffer can be predetermined.
  17368. @param b Dictionary data bytes
  17369. @param off Start offset
  17370. @param len Length]]>
  17371. </doc>
  17372. </method>
  17373. <method name="needsDictionary" return="boolean"
  17374. abstract="false" native="false" synchronized="false"
  17375. static="false" final="false" visibility="public"
  17376. deprecated="not deprecated">
  17377. <doc>
  17378. <![CDATA[Returns <code>true</code> if a preset dictionary is needed for decompression.
  17379. @return <code>true</code> if a preset dictionary is needed for decompression]]>
  17380. </doc>
  17381. </method>
  17382. <method name="finished" return="boolean"
  17383. abstract="false" native="false" synchronized="false"
  17384. static="false" final="false" visibility="public"
  17385. deprecated="not deprecated">
  17386. <doc>
  17387. <![CDATA[Returns true if the end of the decompressed
  17388. data output stream has been reached.
  17389. @return <code>true</code> if the end of the decompressed
  17390. data output stream has been reached.]]>
  17391. </doc>
  17392. </method>
  17393. <method name="decompress" return="int"
  17394. abstract="false" native="false" synchronized="false"
  17395. static="false" final="false" visibility="public"
  17396. deprecated="not deprecated">
  17397. <param name="b" type="byte[]"/>
  17398. <param name="off" type="int"/>
  17399. <param name="len" type="int"/>
  17400. <exception name="IOException" type="java.io.IOException"/>
  17401. <doc>
  17402. <![CDATA[Fills specified buffer with uncompressed data. Returns actual number
  17403. of bytes of uncompressed data. A return value of 0 indicates that
  17404. {@link #needsInput()} should be called in order to determine if more
  17405. input data is required.
  17406. @param b Buffer for the compressed data
  17407. @param off Start offset of the data
  17408. @param len Size of the buffer
  17409. @return The actual number of bytes of compressed data.
  17410. @throws IOException]]>
  17411. </doc>
  17412. </method>
  17413. <method name="getRemaining" return="int"
  17414. abstract="false" native="false" synchronized="false"
  17415. static="false" final="false" visibility="public"
  17416. deprecated="not deprecated">
  17417. <doc>
  17418. <![CDATA[Returns the number of bytes remaining in the compressed-data buffer;
  17419. typically called after the decompressor has finished decompressing
  17420. the current gzip stream (a.k.a. "member").]]>
  17421. </doc>
  17422. </method>
  17423. <method name="reset"
  17424. abstract="false" native="false" synchronized="false"
  17425. static="false" final="false" visibility="public"
  17426. deprecated="not deprecated">
  17427. <doc>
  17428. <![CDATA[Resets decompressor and input and output buffers so that a new set of
  17429. input data can be processed.]]>
  17430. </doc>
  17431. </method>
  17432. <method name="end"
  17433. abstract="false" native="false" synchronized="false"
  17434. static="false" final="false" visibility="public"
  17435. deprecated="not deprecated">
  17436. <doc>
  17437. <![CDATA[Closes the decompressor and discards any unprocessed input.]]>
  17438. </doc>
  17439. </method>
  17440. <doc>
  17441. <![CDATA[Specification of a stream-based 'de-compressor' which can be
  17442. plugged into a {@link CompressionInputStream} to compress data.
  17443. This is modelled after {@link java.util.zip.Inflater}]]>
  17444. </doc>
  17445. </interface>
  17446. <!-- end interface org.apache.hadoop.io.compress.Decompressor -->
  17447. <!-- start class org.apache.hadoop.io.compress.DecompressorStream -->
  17448. <class name="DecompressorStream" extends="org.apache.hadoop.io.compress.CompressionInputStream"
  17449. abstract="false"
  17450. static="false" final="false" visibility="public"
  17451. deprecated="not deprecated">
  17452. <constructor name="DecompressorStream" type="java.io.InputStream, org.apache.hadoop.io.compress.Decompressor, int"
  17453. static="false" final="false" visibility="public"
  17454. deprecated="not deprecated">
  17455. <exception name="IOException" type="java.io.IOException"/>
  17456. </constructor>
  17457. <constructor name="DecompressorStream" type="java.io.InputStream, org.apache.hadoop.io.compress.Decompressor"
  17458. static="false" final="false" visibility="public"
  17459. deprecated="not deprecated">
  17460. <exception name="IOException" type="java.io.IOException"/>
  17461. </constructor>
  17462. <constructor name="DecompressorStream" type="java.io.InputStream"
  17463. static="false" final="false" visibility="protected"
  17464. deprecated="not deprecated">
  17465. <exception name="IOException" type="java.io.IOException"/>
  17466. <doc>
  17467. <![CDATA[Allow derived classes to directly set the underlying stream.
  17468. @param in Underlying input stream.
  17469. @throws IOException]]>
  17470. </doc>
  17471. </constructor>
  17472. <method name="read" return="int"
  17473. abstract="false" native="false" synchronized="false"
  17474. static="false" final="false" visibility="public"
  17475. deprecated="not deprecated">
  17476. <exception name="IOException" type="java.io.IOException"/>
  17477. </method>
  17478. <method name="read" return="int"
  17479. abstract="false" native="false" synchronized="false"
  17480. static="false" final="false" visibility="public"
  17481. deprecated="not deprecated">
  17482. <param name="b" type="byte[]"/>
  17483. <param name="off" type="int"/>
  17484. <param name="len" type="int"/>
  17485. <exception name="IOException" type="java.io.IOException"/>
  17486. </method>
  17487. <method name="decompress" return="int"
  17488. abstract="false" native="false" synchronized="false"
  17489. static="false" final="false" visibility="protected"
  17490. deprecated="not deprecated">
  17491. <param name="b" type="byte[]"/>
  17492. <param name="off" type="int"/>
  17493. <param name="len" type="int"/>
  17494. <exception name="IOException" type="java.io.IOException"/>
  17495. </method>
  17496. <method name="getCompressedData" return="int"
  17497. abstract="false" native="false" synchronized="false"
  17498. static="false" final="false" visibility="protected"
  17499. deprecated="not deprecated">
  17500. <exception name="IOException" type="java.io.IOException"/>
  17501. </method>
  17502. <method name="checkStream"
  17503. abstract="false" native="false" synchronized="false"
  17504. static="false" final="false" visibility="protected"
  17505. deprecated="not deprecated">
  17506. <exception name="IOException" type="java.io.IOException"/>
  17507. </method>
  17508. <method name="resetState"
  17509. abstract="false" native="false" synchronized="false"
  17510. static="false" final="false" visibility="public"
  17511. deprecated="not deprecated">
  17512. <exception name="IOException" type="java.io.IOException"/>
  17513. </method>
  17514. <method name="skip" return="long"
  17515. abstract="false" native="false" synchronized="false"
  17516. static="false" final="false" visibility="public"
  17517. deprecated="not deprecated">
  17518. <param name="n" type="long"/>
  17519. <exception name="IOException" type="java.io.IOException"/>
  17520. </method>
  17521. <method name="available" return="int"
  17522. abstract="false" native="false" synchronized="false"
  17523. static="false" final="false" visibility="public"
  17524. deprecated="not deprecated">
  17525. <exception name="IOException" type="java.io.IOException"/>
  17526. </method>
  17527. <method name="close"
  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="markSupported" return="boolean"
  17534. abstract="false" native="false" synchronized="false"
  17535. static="false" final="false" visibility="public"
  17536. deprecated="not deprecated">
  17537. </method>
  17538. <method name="mark"
  17539. abstract="false" native="false" synchronized="true"
  17540. static="false" final="false" visibility="public"
  17541. deprecated="not deprecated">
  17542. <param name="readlimit" type="int"/>
  17543. </method>
  17544. <method name="reset"
  17545. abstract="false" native="false" synchronized="true"
  17546. static="false" final="false" visibility="public"
  17547. deprecated="not deprecated">
  17548. <exception name="IOException" type="java.io.IOException"/>
  17549. </method>
  17550. <field name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"
  17551. transient="false" volatile="false"
  17552. static="false" final="false" visibility="protected"
  17553. deprecated="not deprecated">
  17554. </field>
  17555. <field name="buffer" type="byte[]"
  17556. transient="false" volatile="false"
  17557. static="false" final="false" visibility="protected"
  17558. deprecated="not deprecated">
  17559. </field>
  17560. <field name="eof" type="boolean"
  17561. transient="false" volatile="false"
  17562. static="false" final="false" visibility="protected"
  17563. deprecated="not deprecated">
  17564. </field>
  17565. <field name="closed" type="boolean"
  17566. transient="false" volatile="false"
  17567. static="false" final="false" visibility="protected"
  17568. deprecated="not deprecated">
  17569. </field>
  17570. </class>
  17571. <!-- end class org.apache.hadoop.io.compress.DecompressorStream -->
  17572. <!-- start class org.apache.hadoop.io.compress.DefaultCodec -->
  17573. <class name="DefaultCodec" extends="java.lang.Object"
  17574. abstract="false"
  17575. static="false" final="false" visibility="public"
  17576. deprecated="not deprecated">
  17577. <implements name="org.apache.hadoop.conf.Configurable"/>
  17578. <implements name="org.apache.hadoop.io.compress.CompressionCodec"/>
  17579. <constructor name="DefaultCodec"
  17580. static="false" final="false" visibility="public"
  17581. deprecated="not deprecated">
  17582. </constructor>
  17583. <method name="setConf"
  17584. abstract="false" native="false" synchronized="false"
  17585. static="false" final="false" visibility="public"
  17586. deprecated="not deprecated">
  17587. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  17588. </method>
  17589. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  17590. abstract="false" native="false" synchronized="false"
  17591. static="false" final="false" visibility="public"
  17592. deprecated="not deprecated">
  17593. </method>
  17594. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  17595. abstract="false" native="false" synchronized="false"
  17596. static="false" final="false" visibility="public"
  17597. deprecated="not deprecated">
  17598. <param name="out" type="java.io.OutputStream"/>
  17599. <exception name="IOException" type="java.io.IOException"/>
  17600. </method>
  17601. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  17602. abstract="false" native="false" synchronized="false"
  17603. static="false" final="false" visibility="public"
  17604. deprecated="not deprecated">
  17605. <param name="out" type="java.io.OutputStream"/>
  17606. <param name="compressor" type="org.apache.hadoop.io.compress.Compressor"/>
  17607. <exception name="IOException" type="java.io.IOException"/>
  17608. </method>
  17609. <method name="getCompressorType" return="java.lang.Class"
  17610. abstract="false" native="false" synchronized="false"
  17611. static="false" final="false" visibility="public"
  17612. deprecated="not deprecated">
  17613. </method>
  17614. <method name="createCompressor" return="org.apache.hadoop.io.compress.Compressor"
  17615. abstract="false" native="false" synchronized="false"
  17616. static="false" final="false" visibility="public"
  17617. deprecated="not deprecated">
  17618. </method>
  17619. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  17620. abstract="false" native="false" synchronized="false"
  17621. static="false" final="false" visibility="public"
  17622. deprecated="not deprecated">
  17623. <param name="in" type="java.io.InputStream"/>
  17624. <exception name="IOException" type="java.io.IOException"/>
  17625. </method>
  17626. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  17627. abstract="false" native="false" synchronized="false"
  17628. static="false" final="false" visibility="public"
  17629. deprecated="not deprecated">
  17630. <param name="in" type="java.io.InputStream"/>
  17631. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  17632. <exception name="IOException" type="java.io.IOException"/>
  17633. </method>
  17634. <method name="getDecompressorType" return="java.lang.Class"
  17635. abstract="false" native="false" synchronized="false"
  17636. static="false" final="false" visibility="public"
  17637. deprecated="not deprecated">
  17638. </method>
  17639. <method name="createDecompressor" return="org.apache.hadoop.io.compress.Decompressor"
  17640. abstract="false" native="false" synchronized="false"
  17641. static="false" final="false" visibility="public"
  17642. deprecated="not deprecated">
  17643. </method>
  17644. <method name="getDefaultExtension" return="java.lang.String"
  17645. abstract="false" native="false" synchronized="false"
  17646. static="false" final="false" visibility="public"
  17647. deprecated="not deprecated">
  17648. </method>
  17649. </class>
  17650. <!-- end class org.apache.hadoop.io.compress.DefaultCodec -->
  17651. <!-- start interface org.apache.hadoop.io.compress.DoNotPool -->
  17652. <interface name="DoNotPool" abstract="true"
  17653. static="false" final="false" visibility="public"
  17654. deprecated="not deprecated">
  17655. <implements name="java.lang.annotation.Annotation"/>
  17656. <doc>
  17657. <![CDATA[This is a marker annotation that marks a compressor or decompressor
  17658. type as not to be pooled.]]>
  17659. </doc>
  17660. </interface>
  17661. <!-- end interface org.apache.hadoop.io.compress.DoNotPool -->
  17662. <!-- start class org.apache.hadoop.io.compress.GzipCodec -->
  17663. <class name="GzipCodec" extends="org.apache.hadoop.io.compress.DefaultCodec"
  17664. abstract="false"
  17665. static="false" final="false" visibility="public"
  17666. deprecated="not deprecated">
  17667. <constructor name="GzipCodec"
  17668. static="false" final="false" visibility="public"
  17669. deprecated="not deprecated">
  17670. </constructor>
  17671. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  17672. abstract="false" native="false" synchronized="false"
  17673. static="false" final="false" visibility="public"
  17674. deprecated="not deprecated">
  17675. <param name="out" type="java.io.OutputStream"/>
  17676. <exception name="IOException" type="java.io.IOException"/>
  17677. </method>
  17678. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  17679. abstract="false" native="false" synchronized="false"
  17680. static="false" final="false" visibility="public"
  17681. deprecated="not deprecated">
  17682. <param name="out" type="java.io.OutputStream"/>
  17683. <param name="compressor" type="org.apache.hadoop.io.compress.Compressor"/>
  17684. <exception name="IOException" type="java.io.IOException"/>
  17685. </method>
  17686. <method name="createCompressor" return="org.apache.hadoop.io.compress.Compressor"
  17687. abstract="false" native="false" synchronized="false"
  17688. static="false" final="false" visibility="public"
  17689. deprecated="not deprecated">
  17690. </method>
  17691. <method name="getCompressorType" return="java.lang.Class"
  17692. abstract="false" native="false" synchronized="false"
  17693. static="false" final="false" visibility="public"
  17694. deprecated="not deprecated">
  17695. </method>
  17696. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  17697. abstract="false" native="false" synchronized="false"
  17698. static="false" final="false" visibility="public"
  17699. deprecated="not deprecated">
  17700. <param name="in" type="java.io.InputStream"/>
  17701. <exception name="IOException" type="java.io.IOException"/>
  17702. </method>
  17703. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  17704. abstract="false" native="false" synchronized="false"
  17705. static="false" final="false" visibility="public"
  17706. deprecated="not deprecated">
  17707. <param name="in" type="java.io.InputStream"/>
  17708. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  17709. <exception name="IOException" type="java.io.IOException"/>
  17710. </method>
  17711. <method name="createDecompressor" return="org.apache.hadoop.io.compress.Decompressor"
  17712. abstract="false" native="false" synchronized="false"
  17713. static="false" final="false" visibility="public"
  17714. deprecated="not deprecated">
  17715. </method>
  17716. <method name="getDecompressorType" return="java.lang.Class"
  17717. abstract="false" native="false" synchronized="false"
  17718. static="false" final="false" visibility="public"
  17719. deprecated="not deprecated">
  17720. </method>
  17721. <method name="getDefaultExtension" return="java.lang.String"
  17722. abstract="false" native="false" synchronized="false"
  17723. static="false" final="false" visibility="public"
  17724. deprecated="not deprecated">
  17725. </method>
  17726. <doc>
  17727. <![CDATA[This class creates gzip compressors/decompressors.]]>
  17728. </doc>
  17729. </class>
  17730. <!-- end class org.apache.hadoop.io.compress.GzipCodec -->
  17731. <!-- start class org.apache.hadoop.io.compress.GzipCodec.GzipOutputStream -->
  17732. <class name="GzipCodec.GzipOutputStream" extends="org.apache.hadoop.io.compress.CompressorStream"
  17733. abstract="false"
  17734. static="true" final="false" visibility="protected"
  17735. deprecated="not deprecated">
  17736. <constructor name="GzipCodec.GzipOutputStream" type="java.io.OutputStream"
  17737. static="false" final="false" visibility="public"
  17738. deprecated="not deprecated">
  17739. <exception name="IOException" type="java.io.IOException"/>
  17740. </constructor>
  17741. <constructor name="GzipCodec.GzipOutputStream" type="org.apache.hadoop.io.compress.CompressorStream"
  17742. static="false" final="false" visibility="protected"
  17743. deprecated="not deprecated">
  17744. <doc>
  17745. <![CDATA[Allow children types to put a different type in here.
  17746. @param out the Deflater stream to use]]>
  17747. </doc>
  17748. </constructor>
  17749. <method name="close"
  17750. abstract="false" native="false" synchronized="false"
  17751. static="false" final="false" visibility="public"
  17752. deprecated="not deprecated">
  17753. <exception name="IOException" type="java.io.IOException"/>
  17754. </method>
  17755. <method name="flush"
  17756. abstract="false" native="false" synchronized="false"
  17757. static="false" final="false" visibility="public"
  17758. deprecated="not deprecated">
  17759. <exception name="IOException" type="java.io.IOException"/>
  17760. </method>
  17761. <method name="write"
  17762. abstract="false" native="false" synchronized="false"
  17763. static="false" final="false" visibility="public"
  17764. deprecated="not deprecated">
  17765. <param name="b" type="int"/>
  17766. <exception name="IOException" type="java.io.IOException"/>
  17767. </method>
  17768. <method name="write"
  17769. abstract="false" native="false" synchronized="false"
  17770. static="false" final="false" visibility="public"
  17771. deprecated="not deprecated">
  17772. <param name="data" type="byte[]"/>
  17773. <param name="offset" type="int"/>
  17774. <param name="length" type="int"/>
  17775. <exception name="IOException" type="java.io.IOException"/>
  17776. </method>
  17777. <method name="finish"
  17778. abstract="false" native="false" synchronized="false"
  17779. static="false" final="false" visibility="public"
  17780. deprecated="not deprecated">
  17781. <exception name="IOException" type="java.io.IOException"/>
  17782. </method>
  17783. <method name="resetState"
  17784. abstract="false" native="false" synchronized="false"
  17785. static="false" final="false" visibility="public"
  17786. deprecated="not deprecated">
  17787. <exception name="IOException" type="java.io.IOException"/>
  17788. </method>
  17789. <doc>
  17790. <![CDATA[A bridge that wraps around a DeflaterOutputStream to make it
  17791. a CompressionOutputStream.]]>
  17792. </doc>
  17793. </class>
  17794. <!-- end class org.apache.hadoop.io.compress.GzipCodec.GzipOutputStream -->
  17795. <!-- start class org.apache.hadoop.io.compress.SnappyCodec -->
  17796. <class name="SnappyCodec" extends="java.lang.Object"
  17797. abstract="false"
  17798. static="false" final="false" visibility="public"
  17799. deprecated="not deprecated">
  17800. <implements name="org.apache.hadoop.conf.Configurable"/>
  17801. <implements name="org.apache.hadoop.io.compress.CompressionCodec"/>
  17802. <constructor name="SnappyCodec"
  17803. static="false" final="false" visibility="public"
  17804. deprecated="not deprecated">
  17805. </constructor>
  17806. <method name="setConf"
  17807. abstract="false" native="false" synchronized="false"
  17808. static="false" final="false" visibility="public"
  17809. deprecated="not deprecated">
  17810. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  17811. <doc>
  17812. <![CDATA[Set the configuration to be used by this object.
  17813. @param conf the configuration object.]]>
  17814. </doc>
  17815. </method>
  17816. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  17817. abstract="false" native="false" synchronized="false"
  17818. static="false" final="false" visibility="public"
  17819. deprecated="not deprecated">
  17820. <doc>
  17821. <![CDATA[Return the configuration used by this object.
  17822. @return the configuration object used by this objec.]]>
  17823. </doc>
  17824. </method>
  17825. <method name="isNativeSnappyLoaded" return="boolean"
  17826. abstract="false" native="false" synchronized="false"
  17827. static="true" final="false" visibility="public"
  17828. deprecated="not deprecated">
  17829. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  17830. <doc>
  17831. <![CDATA[Are the native snappy libraries loaded & initialized?
  17832. @param conf configuration
  17833. @return true if loaded & initialized, otherwise false]]>
  17834. </doc>
  17835. </method>
  17836. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  17837. abstract="false" native="false" synchronized="false"
  17838. static="false" final="false" visibility="public"
  17839. deprecated="not deprecated">
  17840. <param name="out" type="java.io.OutputStream"/>
  17841. <exception name="IOException" type="java.io.IOException"/>
  17842. <doc>
  17843. <![CDATA[Create a {@link CompressionOutputStream} that will write to the given
  17844. {@link OutputStream}.
  17845. @param out the location for the final output stream
  17846. @return a stream the user can write uncompressed data to have it compressed
  17847. @throws IOException]]>
  17848. </doc>
  17849. </method>
  17850. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  17851. abstract="false" native="false" synchronized="false"
  17852. static="false" final="false" visibility="public"
  17853. deprecated="not deprecated">
  17854. <param name="out" type="java.io.OutputStream"/>
  17855. <param name="compressor" type="org.apache.hadoop.io.compress.Compressor"/>
  17856. <exception name="IOException" type="java.io.IOException"/>
  17857. <doc>
  17858. <![CDATA[Create a {@link CompressionOutputStream} that will write to the given
  17859. {@link OutputStream} with the given {@link Compressor}.
  17860. @param out the location for the final output stream
  17861. @param compressor compressor to use
  17862. @return a stream the user can write uncompressed data to have it compressed
  17863. @throws IOException]]>
  17864. </doc>
  17865. </method>
  17866. <method name="getCompressorType" return="java.lang.Class"
  17867. abstract="false" native="false" synchronized="false"
  17868. static="false" final="false" visibility="public"
  17869. deprecated="not deprecated">
  17870. <doc>
  17871. <![CDATA[Get the type of {@link Compressor} needed by this {@link CompressionCodec}.
  17872. @return the type of compressor needed by this codec.]]>
  17873. </doc>
  17874. </method>
  17875. <method name="createCompressor" return="org.apache.hadoop.io.compress.Compressor"
  17876. abstract="false" native="false" synchronized="false"
  17877. static="false" final="false" visibility="public"
  17878. deprecated="not deprecated">
  17879. <doc>
  17880. <![CDATA[Create a new {@link Compressor} for use by this {@link CompressionCodec}.
  17881. @return a new compressor for use by this codec]]>
  17882. </doc>
  17883. </method>
  17884. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  17885. abstract="false" native="false" synchronized="false"
  17886. static="false" final="false" visibility="public"
  17887. deprecated="not deprecated">
  17888. <param name="in" type="java.io.InputStream"/>
  17889. <exception name="IOException" type="java.io.IOException"/>
  17890. <doc>
  17891. <![CDATA[Create a {@link CompressionInputStream} that will read from the given
  17892. input stream.
  17893. @param in the stream to read compressed bytes from
  17894. @return a stream to read uncompressed bytes from
  17895. @throws IOException]]>
  17896. </doc>
  17897. </method>
  17898. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  17899. abstract="false" native="false" synchronized="false"
  17900. static="false" final="false" visibility="public"
  17901. deprecated="not deprecated">
  17902. <param name="in" type="java.io.InputStream"/>
  17903. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  17904. <exception name="IOException" type="java.io.IOException"/>
  17905. <doc>
  17906. <![CDATA[Create a {@link CompressionInputStream} that will read from the given
  17907. {@link InputStream} with the given {@link Decompressor}.
  17908. @param in the stream to read compressed bytes from
  17909. @param decompressor decompressor to use
  17910. @return a stream to read uncompressed bytes from
  17911. @throws IOException]]>
  17912. </doc>
  17913. </method>
  17914. <method name="getDecompressorType" return="java.lang.Class"
  17915. abstract="false" native="false" synchronized="false"
  17916. static="false" final="false" visibility="public"
  17917. deprecated="not deprecated">
  17918. <doc>
  17919. <![CDATA[Get the type of {@link Decompressor} needed by this {@link CompressionCodec}.
  17920. @return the type of decompressor needed by this codec.]]>
  17921. </doc>
  17922. </method>
  17923. <method name="createDecompressor" return="org.apache.hadoop.io.compress.Decompressor"
  17924. abstract="false" native="false" synchronized="false"
  17925. static="false" final="false" visibility="public"
  17926. deprecated="not deprecated">
  17927. <doc>
  17928. <![CDATA[Create a new {@link Decompressor} for use by this {@link CompressionCodec}.
  17929. @return a new decompressor for use by this codec]]>
  17930. </doc>
  17931. </method>
  17932. <method name="getDefaultExtension" return="java.lang.String"
  17933. abstract="false" native="false" synchronized="false"
  17934. static="false" final="false" visibility="public"
  17935. deprecated="not deprecated">
  17936. <doc>
  17937. <![CDATA[Get the default filename extension for this kind of compression.
  17938. @return <code>.snappy</code>.]]>
  17939. </doc>
  17940. </method>
  17941. <doc>
  17942. <![CDATA[This class creates snappy compressors/decompressors.]]>
  17943. </doc>
  17944. </class>
  17945. <!-- end class org.apache.hadoop.io.compress.SnappyCodec -->
  17946. <!-- start class org.apache.hadoop.io.compress.SplitCompressionInputStream -->
  17947. <class name="SplitCompressionInputStream" extends="org.apache.hadoop.io.compress.CompressionInputStream"
  17948. abstract="true"
  17949. static="false" final="false" visibility="public"
  17950. deprecated="not deprecated">
  17951. <constructor name="SplitCompressionInputStream" type="java.io.InputStream, long, long"
  17952. static="false" final="false" visibility="public"
  17953. deprecated="not deprecated">
  17954. <exception name="IOException" type="java.io.IOException"/>
  17955. </constructor>
  17956. <method name="setStart"
  17957. abstract="false" native="false" synchronized="false"
  17958. static="false" final="false" visibility="protected"
  17959. deprecated="not deprecated">
  17960. <param name="start" type="long"/>
  17961. </method>
  17962. <method name="setEnd"
  17963. abstract="false" native="false" synchronized="false"
  17964. static="false" final="false" visibility="protected"
  17965. deprecated="not deprecated">
  17966. <param name="end" type="long"/>
  17967. </method>
  17968. <method name="getAdjustedStart" return="long"
  17969. abstract="false" native="false" synchronized="false"
  17970. static="false" final="false" visibility="public"
  17971. deprecated="not deprecated">
  17972. <doc>
  17973. <![CDATA[After calling createInputStream, the values of start or end
  17974. might change. So this method can be used to get the new value of start.
  17975. @return The changed value of start]]>
  17976. </doc>
  17977. </method>
  17978. <method name="getAdjustedEnd" return="long"
  17979. abstract="false" native="false" synchronized="false"
  17980. static="false" final="false" visibility="public"
  17981. deprecated="not deprecated">
  17982. <doc>
  17983. <![CDATA[After calling createInputStream, the values of start or end
  17984. might change. So this method can be used to get the new value of end.
  17985. @return The changed value of end]]>
  17986. </doc>
  17987. </method>
  17988. <doc>
  17989. <![CDATA[An InputStream covering a range of compressed data. The start and end
  17990. offsets requested by a client may be modified by the codec to fit block
  17991. boundaries or other algorithm-dependent requirements.]]>
  17992. </doc>
  17993. </class>
  17994. <!-- end class org.apache.hadoop.io.compress.SplitCompressionInputStream -->
  17995. <!-- start interface org.apache.hadoop.io.compress.SplittableCompressionCodec -->
  17996. <interface name="SplittableCompressionCodec" abstract="true"
  17997. static="false" final="false" visibility="public"
  17998. deprecated="not deprecated">
  17999. <implements name="org.apache.hadoop.io.compress.CompressionCodec"/>
  18000. <method name="createInputStream" return="org.apache.hadoop.io.compress.SplitCompressionInputStream"
  18001. abstract="false" native="false" synchronized="false"
  18002. static="false" final="false" visibility="public"
  18003. deprecated="not deprecated">
  18004. <param name="seekableIn" type="java.io.InputStream"/>
  18005. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  18006. <param name="start" type="long"/>
  18007. <param name="end" type="long"/>
  18008. <param name="readMode" type="org.apache.hadoop.io.compress.SplittableCompressionCodec.READ_MODE"/>
  18009. <exception name="IOException" type="java.io.IOException"/>
  18010. <doc>
  18011. <![CDATA[Create a stream as dictated by the readMode. This method is used when
  18012. the codecs wants the ability to work with the underlying stream positions.
  18013. @param seekableIn The seekable input stream (seeks in compressed data)
  18014. @param start The start offset into the compressed stream. May be changed
  18015. by the underlying codec.
  18016. @param end The end offset into the compressed stream. May be changed by
  18017. the underlying codec.
  18018. @param readMode Controls whether stream position is reported continuously
  18019. from the compressed stream only only at block boundaries.
  18020. @return a stream to read uncompressed bytes from]]>
  18021. </doc>
  18022. </method>
  18023. <doc>
  18024. <![CDATA[This interface is meant to be implemented by those compression codecs
  18025. which are capable to compress / decompress a stream starting at any
  18026. arbitrary position.
  18027. Especially the process of decompressing a stream starting at some arbitrary
  18028. position is challenging. Most of the codecs are only able to successfully
  18029. decompress a stream, if they start from the very beginning till the end.
  18030. One of the reasons is the stored state at the beginning of the stream which
  18031. is crucial for decompression.
  18032. Yet there are few codecs which do not save the whole state at the beginning
  18033. of the stream and hence can be used to de-compress stream starting at any
  18034. arbitrary points. This interface is meant to be used by such codecs. Such
  18035. codecs are highly valuable, especially in the context of Hadoop, because
  18036. an input compressed file can be split and hence can be worked on by multiple
  18037. machines in parallel.]]>
  18038. </doc>
  18039. </interface>
  18040. <!-- end interface org.apache.hadoop.io.compress.SplittableCompressionCodec -->
  18041. <!-- start class org.apache.hadoop.io.compress.SplittableCompressionCodec.READ_MODE -->
  18042. <class name="SplittableCompressionCodec.READ_MODE" extends="java.lang.Enum"
  18043. abstract="false"
  18044. static="true" final="true" visibility="public"
  18045. deprecated="not deprecated">
  18046. <method name="values" return="org.apache.hadoop.io.compress.SplittableCompressionCodec.READ_MODE[]"
  18047. abstract="false" native="false" synchronized="false"
  18048. static="true" final="false" visibility="public"
  18049. deprecated="not deprecated">
  18050. </method>
  18051. <method name="valueOf" return="org.apache.hadoop.io.compress.SplittableCompressionCodec.READ_MODE"
  18052. abstract="false" native="false" synchronized="false"
  18053. static="true" final="false" visibility="public"
  18054. deprecated="not deprecated">
  18055. <param name="name" type="java.lang.String"/>
  18056. </method>
  18057. <field name="CONTINUOUS" type="org.apache.hadoop.io.compress.SplittableCompressionCodec.READ_MODE"
  18058. transient="false" volatile="false"
  18059. static="true" final="true" visibility="public"
  18060. deprecated="not deprecated">
  18061. </field>
  18062. <field name="BYBLOCK" type="org.apache.hadoop.io.compress.SplittableCompressionCodec.READ_MODE"
  18063. transient="false" volatile="false"
  18064. static="true" final="true" visibility="public"
  18065. deprecated="not deprecated">
  18066. </field>
  18067. <doc>
  18068. <![CDATA[During decompression, data can be read off from the decompressor in two
  18069. modes, namely continuous and blocked. Few codecs (e.g. BZip2) are capable
  18070. of compressing data in blocks and then decompressing the blocks. In
  18071. Blocked reading mode codecs inform 'end of block' events to its caller.
  18072. While in continuous mode, the caller of codecs is unaware about the blocks
  18073. and uncompressed data is spilled out like a continuous stream.]]>
  18074. </doc>
  18075. </class>
  18076. <!-- end class org.apache.hadoop.io.compress.SplittableCompressionCodec.READ_MODE -->
  18077. </package>
  18078. <package name="org.apache.hadoop.io.compress.bzip2">
  18079. <!-- start interface org.apache.hadoop.io.compress.bzip2.BZip2Constants -->
  18080. <interface name="BZip2Constants" abstract="true"
  18081. static="false" final="false" visibility="public"
  18082. deprecated="not deprecated">
  18083. <field name="baseBlockSize" type="int"
  18084. transient="false" volatile="false"
  18085. static="true" final="true" visibility="public"
  18086. deprecated="not deprecated">
  18087. </field>
  18088. <field name="MAX_ALPHA_SIZE" type="int"
  18089. transient="false" volatile="false"
  18090. static="true" final="true" visibility="public"
  18091. deprecated="not deprecated">
  18092. </field>
  18093. <field name="MAX_CODE_LEN" type="int"
  18094. transient="false" volatile="false"
  18095. static="true" final="true" visibility="public"
  18096. deprecated="not deprecated">
  18097. </field>
  18098. <field name="RUNA" type="int"
  18099. transient="false" volatile="false"
  18100. static="true" final="true" visibility="public"
  18101. deprecated="not deprecated">
  18102. </field>
  18103. <field name="RUNB" type="int"
  18104. transient="false" volatile="false"
  18105. static="true" final="true" visibility="public"
  18106. deprecated="not deprecated">
  18107. </field>
  18108. <field name="N_GROUPS" type="int"
  18109. transient="false" volatile="false"
  18110. static="true" final="true" visibility="public"
  18111. deprecated="not deprecated">
  18112. </field>
  18113. <field name="G_SIZE" type="int"
  18114. transient="false" volatile="false"
  18115. static="true" final="true" visibility="public"
  18116. deprecated="not deprecated">
  18117. </field>
  18118. <field name="N_ITERS" type="int"
  18119. transient="false" volatile="false"
  18120. static="true" final="true" visibility="public"
  18121. deprecated="not deprecated">
  18122. </field>
  18123. <field name="MAX_SELECTORS" type="int"
  18124. transient="false" volatile="false"
  18125. static="true" final="true" visibility="public"
  18126. deprecated="not deprecated">
  18127. </field>
  18128. <field name="NUM_OVERSHOOT_BYTES" type="int"
  18129. transient="false" volatile="false"
  18130. static="true" final="true" visibility="public"
  18131. deprecated="not deprecated">
  18132. </field>
  18133. <field name="END_OF_BLOCK" type="int"
  18134. transient="false" volatile="false"
  18135. static="true" final="true" visibility="public"
  18136. deprecated="not deprecated">
  18137. <doc>
  18138. <![CDATA[End of a BZip2 block]]>
  18139. </doc>
  18140. </field>
  18141. <field name="END_OF_STREAM" type="int"
  18142. transient="false" volatile="false"
  18143. static="true" final="true" visibility="public"
  18144. deprecated="not deprecated">
  18145. <doc>
  18146. <![CDATA[End of BZip2 stream.]]>
  18147. </doc>
  18148. </field>
  18149. <field name="rNums" type="int[]"
  18150. transient="false" volatile="false"
  18151. static="true" final="true" visibility="public"
  18152. deprecated="not deprecated">
  18153. <doc>
  18154. <![CDATA[This array really shouldn't be here. Again, for historical purposes it
  18155. is.
  18156. <p>
  18157. FIXME: This array should be in a private or package private location,
  18158. since it could be modified by malicious code.
  18159. </p>]]>
  18160. </doc>
  18161. </field>
  18162. <doc>
  18163. <![CDATA[Base class for both the compress and decompress classes. Holds common arrays,
  18164. and static data.
  18165. <p>
  18166. This interface is public for historical purposes. You should have no need to
  18167. use it.
  18168. </p>]]>
  18169. </doc>
  18170. </interface>
  18171. <!-- end interface org.apache.hadoop.io.compress.bzip2.BZip2Constants -->
  18172. <!-- start class org.apache.hadoop.io.compress.bzip2.BZip2DummyCompressor -->
  18173. <class name="BZip2DummyCompressor" extends="java.lang.Object"
  18174. abstract="false"
  18175. static="false" final="false" visibility="public"
  18176. deprecated="not deprecated">
  18177. <implements name="org.apache.hadoop.io.compress.Compressor"/>
  18178. <constructor name="BZip2DummyCompressor"
  18179. static="false" final="false" visibility="public"
  18180. deprecated="not deprecated">
  18181. </constructor>
  18182. <method name="compress" return="int"
  18183. abstract="false" native="false" synchronized="false"
  18184. static="false" final="false" visibility="public"
  18185. deprecated="not deprecated">
  18186. <param name="b" type="byte[]"/>
  18187. <param name="off" type="int"/>
  18188. <param name="len" type="int"/>
  18189. <exception name="IOException" type="java.io.IOException"/>
  18190. </method>
  18191. <method name="end"
  18192. abstract="false" native="false" synchronized="false"
  18193. static="false" final="false" visibility="public"
  18194. deprecated="not deprecated">
  18195. </method>
  18196. <method name="finish"
  18197. abstract="false" native="false" synchronized="false"
  18198. static="false" final="false" visibility="public"
  18199. deprecated="not deprecated">
  18200. </method>
  18201. <method name="finished" return="boolean"
  18202. abstract="false" native="false" synchronized="false"
  18203. static="false" final="false" visibility="public"
  18204. deprecated="not deprecated">
  18205. </method>
  18206. <method name="getBytesRead" return="long"
  18207. abstract="false" native="false" synchronized="false"
  18208. static="false" final="false" visibility="public"
  18209. deprecated="not deprecated">
  18210. </method>
  18211. <method name="getBytesWritten" return="long"
  18212. abstract="false" native="false" synchronized="false"
  18213. static="false" final="false" visibility="public"
  18214. deprecated="not deprecated">
  18215. </method>
  18216. <method name="needsInput" return="boolean"
  18217. abstract="false" native="false" synchronized="false"
  18218. static="false" final="false" visibility="public"
  18219. deprecated="not deprecated">
  18220. </method>
  18221. <method name="reset"
  18222. abstract="false" native="false" synchronized="false"
  18223. static="false" final="false" visibility="public"
  18224. deprecated="not deprecated">
  18225. </method>
  18226. <method name="setDictionary"
  18227. abstract="false" native="false" synchronized="false"
  18228. static="false" final="false" visibility="public"
  18229. deprecated="not deprecated">
  18230. <param name="b" type="byte[]"/>
  18231. <param name="off" type="int"/>
  18232. <param name="len" type="int"/>
  18233. </method>
  18234. <method name="setInput"
  18235. abstract="false" native="false" synchronized="false"
  18236. static="false" final="false" visibility="public"
  18237. deprecated="not deprecated">
  18238. <param name="b" type="byte[]"/>
  18239. <param name="off" type="int"/>
  18240. <param name="len" type="int"/>
  18241. </method>
  18242. <method name="reinit"
  18243. abstract="false" native="false" synchronized="false"
  18244. static="false" final="false" visibility="public"
  18245. deprecated="not deprecated">
  18246. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  18247. </method>
  18248. <doc>
  18249. <![CDATA[This is a dummy compressor for BZip2.]]>
  18250. </doc>
  18251. </class>
  18252. <!-- end class org.apache.hadoop.io.compress.bzip2.BZip2DummyCompressor -->
  18253. <!-- start class org.apache.hadoop.io.compress.bzip2.BZip2DummyDecompressor -->
  18254. <class name="BZip2DummyDecompressor" extends="java.lang.Object"
  18255. abstract="false"
  18256. static="false" final="false" visibility="public"
  18257. deprecated="not deprecated">
  18258. <implements name="org.apache.hadoop.io.compress.Decompressor"/>
  18259. <constructor name="BZip2DummyDecompressor"
  18260. static="false" final="false" visibility="public"
  18261. deprecated="not deprecated">
  18262. </constructor>
  18263. <method name="decompress" return="int"
  18264. abstract="false" native="false" synchronized="false"
  18265. static="false" final="false" visibility="public"
  18266. deprecated="not deprecated">
  18267. <param name="b" type="byte[]"/>
  18268. <param name="off" type="int"/>
  18269. <param name="len" type="int"/>
  18270. <exception name="IOException" type="java.io.IOException"/>
  18271. </method>
  18272. <method name="end"
  18273. abstract="false" native="false" synchronized="false"
  18274. static="false" final="false" visibility="public"
  18275. deprecated="not deprecated">
  18276. </method>
  18277. <method name="finished" return="boolean"
  18278. abstract="false" native="false" synchronized="false"
  18279. static="false" final="false" visibility="public"
  18280. deprecated="not deprecated">
  18281. </method>
  18282. <method name="needsDictionary" return="boolean"
  18283. abstract="false" native="false" synchronized="false"
  18284. static="false" final="false" visibility="public"
  18285. deprecated="not deprecated">
  18286. </method>
  18287. <method name="needsInput" return="boolean"
  18288. abstract="false" native="false" synchronized="false"
  18289. static="false" final="false" visibility="public"
  18290. deprecated="not deprecated">
  18291. </method>
  18292. <method name="getRemaining" return="int"
  18293. abstract="false" native="false" synchronized="false"
  18294. static="false" final="false" visibility="public"
  18295. deprecated="not deprecated">
  18296. </method>
  18297. <method name="reset"
  18298. abstract="false" native="false" synchronized="false"
  18299. static="false" final="false" visibility="public"
  18300. deprecated="not deprecated">
  18301. </method>
  18302. <method name="setDictionary"
  18303. abstract="false" native="false" synchronized="false"
  18304. static="false" final="false" visibility="public"
  18305. deprecated="not deprecated">
  18306. <param name="b" type="byte[]"/>
  18307. <param name="off" type="int"/>
  18308. <param name="len" type="int"/>
  18309. </method>
  18310. <method name="setInput"
  18311. abstract="false" native="false" synchronized="false"
  18312. static="false" final="false" visibility="public"
  18313. deprecated="not deprecated">
  18314. <param name="b" type="byte[]"/>
  18315. <param name="off" type="int"/>
  18316. <param name="len" type="int"/>
  18317. </method>
  18318. <doc>
  18319. <![CDATA[This is a dummy decompressor for BZip2.]]>
  18320. </doc>
  18321. </class>
  18322. <!-- end class org.apache.hadoop.io.compress.bzip2.BZip2DummyDecompressor -->
  18323. <!-- start class org.apache.hadoop.io.compress.bzip2.CBZip2InputStream -->
  18324. <class name="CBZip2InputStream" extends="java.io.InputStream"
  18325. abstract="false"
  18326. static="false" final="false" visibility="public"
  18327. deprecated="not deprecated">
  18328. <implements name="org.apache.hadoop.io.compress.bzip2.BZip2Constants"/>
  18329. <constructor name="CBZip2InputStream" type="java.io.InputStream, org.apache.hadoop.io.compress.SplittableCompressionCodec.READ_MODE"
  18330. static="false" final="false" visibility="public"
  18331. deprecated="not deprecated">
  18332. <exception name="IOException" type="java.io.IOException"/>
  18333. <doc>
  18334. <![CDATA[Constructs a new CBZip2InputStream which decompresses bytes read from the
  18335. specified stream.
  18336. <p>
  18337. Although BZip2 headers are marked with the magic <tt>"Bz"</tt> this
  18338. constructor expects the next byte in the stream to be the first one after
  18339. the magic. Thus callers have to skip the first two bytes. Otherwise this
  18340. constructor will throw an exception.
  18341. </p>
  18342. @throws IOException
  18343. if the stream content is malformed or an I/O error occurs.
  18344. @throws NullPointerException
  18345. if <tt>in == null</tt>]]>
  18346. </doc>
  18347. </constructor>
  18348. <constructor name="CBZip2InputStream" type="java.io.InputStream"
  18349. static="false" final="false" visibility="public"
  18350. deprecated="not deprecated">
  18351. <exception name="IOException" type="java.io.IOException"/>
  18352. </constructor>
  18353. <method name="getProcessedByteCount" return="long"
  18354. abstract="false" native="false" synchronized="false"
  18355. static="false" final="false" visibility="public"
  18356. deprecated="not deprecated">
  18357. <doc>
  18358. <![CDATA[This method reports the processed bytes so far. Please note that this
  18359. statistic is only updated on block boundaries and only when the stream is
  18360. initiated in BYBLOCK mode.]]>
  18361. </doc>
  18362. </method>
  18363. <method name="updateProcessedByteCount"
  18364. abstract="false" native="false" synchronized="false"
  18365. static="false" final="false" visibility="protected"
  18366. deprecated="not deprecated">
  18367. <param name="count" type="int"/>
  18368. <doc>
  18369. <![CDATA[This method keeps track of raw processed compressed
  18370. bytes.
  18371. @param count count is the number of bytes to be
  18372. added to raw processed bytes]]>
  18373. </doc>
  18374. </method>
  18375. <method name="updateReportedByteCount"
  18376. abstract="false" native="false" synchronized="false"
  18377. static="false" final="false" visibility="public"
  18378. deprecated="not deprecated">
  18379. <param name="count" type="int"/>
  18380. <doc>
  18381. <![CDATA[This method is called by the client of this
  18382. class in case there are any corrections in
  18383. the stream position. One common example is
  18384. when client of this code removes starting BZ
  18385. characters from the compressed stream.
  18386. @param count count bytes are added to the reported bytes]]>
  18387. </doc>
  18388. </method>
  18389. <method name="skipToNextMarker" return="boolean"
  18390. abstract="false" native="false" synchronized="false"
  18391. static="false" final="false" visibility="public"
  18392. deprecated="not deprecated">
  18393. <param name="marker" type="long"/>
  18394. <param name="markerBitLength" type="int"/>
  18395. <exception name="IOException" type="java.io.IOException"/>
  18396. <exception name="IllegalArgumentException" type="java.lang.IllegalArgumentException"/>
  18397. <doc>
  18398. <![CDATA[This method tries to find the marker (passed to it as the first parameter)
  18399. in the stream. It can find bit patterns of length <= 63 bits. Specifically
  18400. this method is used in CBZip2InputStream to find the end of block (EOB)
  18401. delimiter in the stream, starting from the current position of the stream.
  18402. If marker is found, the stream position will be right after marker at the
  18403. end of this call.
  18404. @param marker The bit pattern to be found in the stream
  18405. @param markerBitLength No of bits in the marker
  18406. @throws IOException
  18407. @throws IllegalArgumentException if marketBitLength is greater than 63]]>
  18408. </doc>
  18409. </method>
  18410. <method name="reportCRCError"
  18411. abstract="false" native="false" synchronized="false"
  18412. static="false" final="false" visibility="protected"
  18413. deprecated="not deprecated">
  18414. <exception name="IOException" type="java.io.IOException"/>
  18415. </method>
  18416. <method name="numberOfBytesTillNextMarker" return="long"
  18417. abstract="false" native="false" synchronized="false"
  18418. static="true" final="false" visibility="public"
  18419. deprecated="not deprecated">
  18420. <param name="in" type="java.io.InputStream"/>
  18421. <exception name="IOException" type="java.io.IOException"/>
  18422. <doc>
  18423. <![CDATA[Returns the number of bytes between the current stream position
  18424. and the immediate next BZip2 block marker.
  18425. @param in
  18426. The InputStream
  18427. @return long Number of bytes between current stream position and the
  18428. next BZip2 block start marker.
  18429. @throws IOException]]>
  18430. </doc>
  18431. </method>
  18432. <method name="read" return="int"
  18433. abstract="false" native="false" synchronized="false"
  18434. static="false" final="false" visibility="public"
  18435. deprecated="not deprecated">
  18436. <exception name="IOException" type="java.io.IOException"/>
  18437. </method>
  18438. <method name="read" return="int"
  18439. abstract="false" native="false" synchronized="false"
  18440. static="false" final="false" visibility="public"
  18441. deprecated="not deprecated">
  18442. <param name="dest" type="byte[]"/>
  18443. <param name="offs" type="int"/>
  18444. <param name="len" type="int"/>
  18445. <exception name="IOException" type="java.io.IOException"/>
  18446. <doc>
  18447. <![CDATA[In CONTINOUS reading mode, this read method starts from the
  18448. start of the compressed stream and end at the end of file by
  18449. emitting un-compressed data. In this mode stream positioning
  18450. is not announced and should be ignored.
  18451. In BYBLOCK reading mode, this read method informs about the end
  18452. of a BZip2 block by returning EOB. At this event, the compressed
  18453. stream position is also announced. This announcement tells that
  18454. how much of the compressed stream has been de-compressed and read
  18455. out of this class. In between EOB events, the stream position is
  18456. not updated.
  18457. @throws IOException
  18458. if the stream content is malformed or an I/O error occurs.
  18459. @return int The return value greater than 0 are the bytes read. A value
  18460. of -1 means end of stream while -2 represents end of block]]>
  18461. </doc>
  18462. </method>
  18463. <method name="close"
  18464. abstract="false" native="false" synchronized="false"
  18465. static="false" final="false" visibility="public"
  18466. deprecated="not deprecated">
  18467. <exception name="IOException" type="java.io.IOException"/>
  18468. </method>
  18469. <field name="BLOCK_DELIMITER" type="long"
  18470. transient="false" volatile="false"
  18471. static="true" final="true" visibility="public"
  18472. deprecated="not deprecated">
  18473. </field>
  18474. <field name="EOS_DELIMITER" type="long"
  18475. transient="false" volatile="false"
  18476. static="true" final="true" visibility="public"
  18477. deprecated="not deprecated">
  18478. </field>
  18479. <doc>
  18480. <![CDATA[An input stream that decompresses from the BZip2 format (without the file
  18481. header chars) to be read as any other stream.
  18482. <p>
  18483. The decompression requires large amounts of memory. Thus you should call the
  18484. {@link #close() close()} method as soon as possible, to force
  18485. <tt>CBZip2InputStream</tt> to release the allocated memory. See
  18486. {@link CBZip2OutputStream CBZip2OutputStream} for information about memory
  18487. usage.
  18488. </p>
  18489. <p>
  18490. <tt>CBZip2InputStream</tt> reads bytes from the compressed source stream via
  18491. the single byte {@link java.io.InputStream#read() read()} method exclusively.
  18492. Thus you should consider to use a buffered source stream.
  18493. </p>
  18494. <p>
  18495. Instances of this class are not threadsafe.
  18496. </p>]]>
  18497. </doc>
  18498. </class>
  18499. <!-- end class org.apache.hadoop.io.compress.bzip2.CBZip2InputStream -->
  18500. <!-- start class org.apache.hadoop.io.compress.bzip2.CBZip2InputStream.STATE -->
  18501. <class name="CBZip2InputStream.STATE" extends="java.lang.Enum"
  18502. abstract="false"
  18503. static="true" final="true" visibility="public"
  18504. deprecated="not deprecated">
  18505. <method name="values" return="org.apache.hadoop.io.compress.bzip2.CBZip2InputStream.STATE[]"
  18506. abstract="false" native="false" synchronized="false"
  18507. static="true" final="false" visibility="public"
  18508. deprecated="not deprecated">
  18509. </method>
  18510. <method name="valueOf" return="org.apache.hadoop.io.compress.bzip2.CBZip2InputStream.STATE"
  18511. abstract="false" native="false" synchronized="false"
  18512. static="true" final="false" visibility="public"
  18513. deprecated="not deprecated">
  18514. <param name="name" type="java.lang.String"/>
  18515. </method>
  18516. <field name="EOF" type="org.apache.hadoop.io.compress.bzip2.CBZip2InputStream.STATE"
  18517. transient="false" volatile="false"
  18518. static="true" final="true" visibility="public"
  18519. deprecated="not deprecated">
  18520. </field>
  18521. <field name="START_BLOCK_STATE" type="org.apache.hadoop.io.compress.bzip2.CBZip2InputStream.STATE"
  18522. transient="false" volatile="false"
  18523. static="true" final="true" visibility="public"
  18524. deprecated="not deprecated">
  18525. </field>
  18526. <field name="RAND_PART_A_STATE" type="org.apache.hadoop.io.compress.bzip2.CBZip2InputStream.STATE"
  18527. transient="false" volatile="false"
  18528. static="true" final="true" visibility="public"
  18529. deprecated="not deprecated">
  18530. </field>
  18531. <field name="RAND_PART_B_STATE" type="org.apache.hadoop.io.compress.bzip2.CBZip2InputStream.STATE"
  18532. transient="false" volatile="false"
  18533. static="true" final="true" visibility="public"
  18534. deprecated="not deprecated">
  18535. </field>
  18536. <field name="RAND_PART_C_STATE" type="org.apache.hadoop.io.compress.bzip2.CBZip2InputStream.STATE"
  18537. transient="false" volatile="false"
  18538. static="true" final="true" visibility="public"
  18539. deprecated="not deprecated">
  18540. </field>
  18541. <field name="NO_RAND_PART_A_STATE" type="org.apache.hadoop.io.compress.bzip2.CBZip2InputStream.STATE"
  18542. transient="false" volatile="false"
  18543. static="true" final="true" visibility="public"
  18544. deprecated="not deprecated">
  18545. </field>
  18546. <field name="NO_RAND_PART_B_STATE" type="org.apache.hadoop.io.compress.bzip2.CBZip2InputStream.STATE"
  18547. transient="false" volatile="false"
  18548. static="true" final="true" visibility="public"
  18549. deprecated="not deprecated">
  18550. </field>
  18551. <field name="NO_RAND_PART_C_STATE" type="org.apache.hadoop.io.compress.bzip2.CBZip2InputStream.STATE"
  18552. transient="false" volatile="false"
  18553. static="true" final="true" visibility="public"
  18554. deprecated="not deprecated">
  18555. </field>
  18556. <field name="NO_PROCESS_STATE" type="org.apache.hadoop.io.compress.bzip2.CBZip2InputStream.STATE"
  18557. transient="false" volatile="false"
  18558. static="true" final="true" visibility="public"
  18559. deprecated="not deprecated">
  18560. </field>
  18561. <doc>
  18562. <![CDATA[A state machine to keep track of current state of the de-coder]]>
  18563. </doc>
  18564. </class>
  18565. <!-- end class org.apache.hadoop.io.compress.bzip2.CBZip2InputStream.STATE -->
  18566. <!-- start class org.apache.hadoop.io.compress.bzip2.CBZip2OutputStream -->
  18567. <class name="CBZip2OutputStream" extends="java.io.OutputStream"
  18568. abstract="false"
  18569. static="false" final="false" visibility="public"
  18570. deprecated="not deprecated">
  18571. <implements name="org.apache.hadoop.io.compress.bzip2.BZip2Constants"/>
  18572. <constructor name="CBZip2OutputStream" type="java.io.OutputStream"
  18573. static="false" final="false" visibility="public"
  18574. deprecated="not deprecated">
  18575. <exception name="IOException" type="java.io.IOException"/>
  18576. <doc>
  18577. <![CDATA[Constructs a new <tt>CBZip2OutputStream</tt> with a blocksize of 900k.
  18578. <p>
  18579. <b>Attention: </b>The caller is resonsible to write the two BZip2 magic
  18580. bytes <tt>"BZ"</tt> to the specified stream prior to calling this
  18581. constructor.
  18582. </p>
  18583. @param out *
  18584. the destination stream.
  18585. @throws IOException
  18586. if an I/O error occurs in the specified stream.
  18587. @throws NullPointerException
  18588. if <code>out == null</code>.]]>
  18589. </doc>
  18590. </constructor>
  18591. <constructor name="CBZip2OutputStream" type="java.io.OutputStream, int"
  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 specified blocksize.
  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. @param blockSize
  18605. the blockSize as 100k units.
  18606. @throws IOException
  18607. if an I/O error occurs in the specified stream.
  18608. @throws IllegalArgumentException
  18609. if <code>(blockSize < 1) || (blockSize > 9)</code>.
  18610. @throws NullPointerException
  18611. if <code>out == null</code>.
  18612. @see #MIN_BLOCKSIZE
  18613. @see #MAX_BLOCKSIZE]]>
  18614. </doc>
  18615. </constructor>
  18616. <method name="hbMakeCodeLengths"
  18617. abstract="false" native="false" synchronized="false"
  18618. static="true" final="false" visibility="protected"
  18619. deprecated="not deprecated">
  18620. <param name="len" type="char[]"/>
  18621. <param name="freq" type="int[]"/>
  18622. <param name="alphaSize" type="int"/>
  18623. <param name="maxLen" type="int"/>
  18624. <doc>
  18625. <![CDATA[This method is accessible by subclasses for historical purposes. If you
  18626. don't know what it does then you don't need it.]]>
  18627. </doc>
  18628. </method>
  18629. <method name="chooseBlockSize" return="int"
  18630. abstract="false" native="false" synchronized="false"
  18631. static="true" final="false" visibility="public"
  18632. deprecated="not deprecated">
  18633. <param name="inputLength" type="long"/>
  18634. <doc>
  18635. <![CDATA[Chooses a blocksize based on the given length of the data to compress.
  18636. @return The blocksize, between {@link #MIN_BLOCKSIZE} and
  18637. {@link #MAX_BLOCKSIZE} both inclusive. For a negative
  18638. <tt>inputLength</tt> this method returns <tt>MAX_BLOCKSIZE</tt>
  18639. always.
  18640. @param inputLength
  18641. The length of the data which will be compressed by
  18642. <tt>CBZip2OutputStream</tt>.]]>
  18643. </doc>
  18644. </method>
  18645. <method name="write"
  18646. abstract="false" native="false" synchronized="false"
  18647. static="false" final="false" visibility="public"
  18648. deprecated="not deprecated">
  18649. <param name="b" type="int"/>
  18650. <exception name="IOException" type="java.io.IOException"/>
  18651. </method>
  18652. <method name="finalize"
  18653. abstract="false" native="false" synchronized="false"
  18654. static="false" final="false" visibility="protected"
  18655. deprecated="not deprecated">
  18656. <exception name="Throwable" type="java.lang.Throwable"/>
  18657. <doc>
  18658. <![CDATA[Overriden to close the stream.]]>
  18659. </doc>
  18660. </method>
  18661. <method name="finish"
  18662. abstract="false" native="false" synchronized="false"
  18663. static="false" final="false" visibility="public"
  18664. deprecated="not deprecated">
  18665. <exception name="IOException" type="java.io.IOException"/>
  18666. </method>
  18667. <method name="close"
  18668. abstract="false" native="false" synchronized="false"
  18669. static="false" final="false" visibility="public"
  18670. deprecated="not deprecated">
  18671. <exception name="IOException" type="java.io.IOException"/>
  18672. </method>
  18673. <method name="flush"
  18674. abstract="false" native="false" synchronized="false"
  18675. static="false" final="false" visibility="public"
  18676. deprecated="not deprecated">
  18677. <exception name="IOException" type="java.io.IOException"/>
  18678. </method>
  18679. <method name="getBlockSize" return="int"
  18680. abstract="false" native="false" synchronized="false"
  18681. static="false" final="true" visibility="public"
  18682. deprecated="not deprecated">
  18683. <doc>
  18684. <![CDATA[Returns the blocksize parameter specified at construction time.]]>
  18685. </doc>
  18686. </method>
  18687. <method name="write"
  18688. abstract="false" native="false" synchronized="false"
  18689. static="false" final="false" visibility="public"
  18690. deprecated="not deprecated">
  18691. <param name="buf" type="byte[]"/>
  18692. <param name="offs" type="int"/>
  18693. <param name="len" type="int"/>
  18694. <exception name="IOException" type="java.io.IOException"/>
  18695. </method>
  18696. <field name="MIN_BLOCKSIZE" type="int"
  18697. transient="false" volatile="false"
  18698. static="true" final="true" visibility="public"
  18699. deprecated="not deprecated">
  18700. <doc>
  18701. <![CDATA[The minimum supported blocksize <tt> == 1</tt>.]]>
  18702. </doc>
  18703. </field>
  18704. <field name="MAX_BLOCKSIZE" type="int"
  18705. transient="false" volatile="false"
  18706. static="true" final="true" visibility="public"
  18707. deprecated="not deprecated">
  18708. <doc>
  18709. <![CDATA[The maximum supported blocksize <tt> == 9</tt>.]]>
  18710. </doc>
  18711. </field>
  18712. <field name="SETMASK" type="int"
  18713. transient="false" volatile="false"
  18714. static="true" final="true" visibility="protected"
  18715. deprecated="not deprecated">
  18716. <doc>
  18717. <![CDATA[This constant is accessible by subclasses for historical purposes. If you
  18718. don't know what it means then you don't need it.]]>
  18719. </doc>
  18720. </field>
  18721. <field name="CLEARMASK" type="int"
  18722. transient="false" volatile="false"
  18723. static="true" final="true" visibility="protected"
  18724. deprecated="not deprecated">
  18725. <doc>
  18726. <![CDATA[This constant is accessible by subclasses for historical purposes. If you
  18727. don't know what it means then you don't need it.]]>
  18728. </doc>
  18729. </field>
  18730. <field name="GREATER_ICOST" type="int"
  18731. transient="false" volatile="false"
  18732. static="true" final="true" visibility="protected"
  18733. deprecated="not deprecated">
  18734. <doc>
  18735. <![CDATA[This constant is accessible by subclasses for historical purposes. If you
  18736. don't know what it means then you don't need it.]]>
  18737. </doc>
  18738. </field>
  18739. <field name="LESSER_ICOST" type="int"
  18740. transient="false" volatile="false"
  18741. static="true" final="true" visibility="protected"
  18742. deprecated="not deprecated">
  18743. <doc>
  18744. <![CDATA[This constant is accessible by subclasses for historical purposes. If you
  18745. don't know what it means then you don't need it.]]>
  18746. </doc>
  18747. </field>
  18748. <field name="SMALL_THRESH" type="int"
  18749. transient="false" volatile="false"
  18750. static="true" final="true" visibility="protected"
  18751. deprecated="not deprecated">
  18752. <doc>
  18753. <![CDATA[This constant is accessible by subclasses for historical purposes. If you
  18754. don't know what it means then you don't need it.]]>
  18755. </doc>
  18756. </field>
  18757. <field name="DEPTH_THRESH" type="int"
  18758. transient="false" volatile="false"
  18759. static="true" final="true" visibility="protected"
  18760. deprecated="not deprecated">
  18761. <doc>
  18762. <![CDATA[This constant is accessible by subclasses for historical purposes. If you
  18763. don't know what it means then you don't need it.]]>
  18764. </doc>
  18765. </field>
  18766. <field name="WORK_FACTOR" type="int"
  18767. transient="false" volatile="false"
  18768. static="true" final="true" visibility="protected"
  18769. deprecated="not deprecated">
  18770. <doc>
  18771. <![CDATA[This constant is accessible by subclasses for historical purposes. If you
  18772. don't know what it means then you don't need it.]]>
  18773. </doc>
  18774. </field>
  18775. <field name="QSORT_STACK_SIZE" type="int"
  18776. transient="false" volatile="false"
  18777. static="true" final="true" visibility="protected"
  18778. deprecated="not deprecated">
  18779. <doc>
  18780. <![CDATA[This constant is accessible by subclasses for historical purposes. If you
  18781. don't know what it means then you don't need it.
  18782. <p>
  18783. If you are ever unlucky/improbable enough to get a stack overflow whilst
  18784. sorting, increase the following constant and try again. In practice I
  18785. have never seen the stack go above 27 elems, so the following limit seems
  18786. very generous.
  18787. </p>]]>
  18788. </doc>
  18789. </field>
  18790. <doc>
  18791. <![CDATA[An output stream that compresses into the BZip2 format (without the file
  18792. header chars) into another stream.
  18793. <p>
  18794. The compression requires large amounts of memory. Thus you should call the
  18795. {@link #close() close()} method as soon as possible, to force
  18796. <tt>CBZip2OutputStream</tt> to release the allocated memory.
  18797. </p>
  18798. <p>
  18799. You can shrink the amount of allocated memory and maybe raise the compression
  18800. speed by choosing a lower blocksize, which in turn may cause a lower
  18801. compression ratio. You can avoid unnecessary memory allocation by avoiding
  18802. using a blocksize which is bigger than the size of the input.
  18803. </p>
  18804. <p>
  18805. You can compute the memory usage for compressing by the following formula:
  18806. </p>
  18807. <pre>
  18808. &lt;code&gt;400k + (9 * blocksize)&lt;/code&gt;.
  18809. </pre>
  18810. <p>
  18811. To get the memory required for decompression by {@link CBZip2InputStream
  18812. CBZip2InputStream} use
  18813. </p>
  18814. <pre>
  18815. &lt;code&gt;65k + (5 * blocksize)&lt;/code&gt;.
  18816. </pre>
  18817. <table width="100%" border="1">
  18818. <colgroup> <col width="33%" /> <col width="33%" /> <col width="33%" />
  18819. </colgroup>
  18820. <tr>
  18821. <th colspan="3">Memory usage by blocksize</th>
  18822. </tr>
  18823. <tr>
  18824. <th align="right">Blocksize</th> <th align="right">Compression<br>
  18825. memory usage</th> <th align="right">Decompression<br>
  18826. memory usage</th>
  18827. </tr>
  18828. <tr>
  18829. <td align="right">100k</td>
  18830. <td align="right">1300k</td>
  18831. <td align="right">565k</td>
  18832. </tr>
  18833. <tr>
  18834. <td align="right">200k</td>
  18835. <td align="right">2200k</td>
  18836. <td align="right">1065k</td>
  18837. </tr>
  18838. <tr>
  18839. <td align="right">300k</td>
  18840. <td align="right">3100k</td>
  18841. <td align="right">1565k</td>
  18842. </tr>
  18843. <tr>
  18844. <td align="right">400k</td>
  18845. <td align="right">4000k</td>
  18846. <td align="right">2065k</td>
  18847. </tr>
  18848. <tr>
  18849. <td align="right">500k</td>
  18850. <td align="right">4900k</td>
  18851. <td align="right">2565k</td>
  18852. </tr>
  18853. <tr>
  18854. <td align="right">600k</td>
  18855. <td align="right">5800k</td>
  18856. <td align="right">3065k</td>
  18857. </tr>
  18858. <tr>
  18859. <td align="right">700k</td>
  18860. <td align="right">6700k</td>
  18861. <td align="right">3565k</td>
  18862. </tr>
  18863. <tr>
  18864. <td align="right">800k</td>
  18865. <td align="right">7600k</td>
  18866. <td align="right">4065k</td>
  18867. </tr>
  18868. <tr>
  18869. <td align="right">900k</td>
  18870. <td align="right">8500k</td>
  18871. <td align="right">4565k</td>
  18872. </tr>
  18873. </table>
  18874. <p>
  18875. For decompression <tt>CBZip2InputStream</tt> allocates less memory if the
  18876. bzipped input is smaller than one block.
  18877. </p>
  18878. <p>
  18879. Instances of this class are not threadsafe.
  18880. </p>
  18881. <p>
  18882. TODO: Update to BZip2 1.0.1
  18883. </p>]]>
  18884. </doc>
  18885. </class>
  18886. <!-- end class org.apache.hadoop.io.compress.bzip2.CBZip2OutputStream -->
  18887. </package>
  18888. <package name="org.apache.hadoop.io.compress.snappy">
  18889. <!-- start class org.apache.hadoop.io.compress.snappy.LoadSnappy -->
  18890. <class name="LoadSnappy" extends="java.lang.Object"
  18891. abstract="false"
  18892. static="false" final="false" visibility="public"
  18893. deprecated="not deprecated">
  18894. <constructor name="LoadSnappy"
  18895. static="false" final="false" visibility="public"
  18896. deprecated="not deprecated">
  18897. </constructor>
  18898. <method name="isAvailable" return="boolean"
  18899. abstract="false" native="false" synchronized="false"
  18900. static="true" final="false" visibility="public"
  18901. deprecated="not deprecated">
  18902. <doc>
  18903. <![CDATA[Returns if Snappy native library is loaded.
  18904. @return <code>true</code> if Snappy native library is loaded,
  18905. <code>false</code> if not.]]>
  18906. </doc>
  18907. </method>
  18908. <method name="isLoaded" return="boolean"
  18909. abstract="false" native="false" synchronized="false"
  18910. static="true" final="false" visibility="public"
  18911. deprecated="not deprecated">
  18912. <doc>
  18913. <![CDATA[Returns if Snappy native library is loaded.
  18914. @return <code>true</code> if Snappy native library is loaded,
  18915. <code>false</code> if not.]]>
  18916. </doc>
  18917. </method>
  18918. <doc>
  18919. <![CDATA[Determines if Snappy native library is available and loads it if available.]]>
  18920. </doc>
  18921. </class>
  18922. <!-- end class org.apache.hadoop.io.compress.snappy.LoadSnappy -->
  18923. <!-- start class org.apache.hadoop.io.compress.snappy.SnappyCompressor -->
  18924. <class name="SnappyCompressor" extends="java.lang.Object"
  18925. abstract="false"
  18926. static="false" final="false" visibility="public"
  18927. deprecated="not deprecated">
  18928. <implements name="org.apache.hadoop.io.compress.Compressor"/>
  18929. <constructor name="SnappyCompressor" type="int"
  18930. static="false" final="false" visibility="public"
  18931. deprecated="not deprecated">
  18932. <doc>
  18933. <![CDATA[Creates a new compressor.
  18934. @param directBufferSize size of the direct buffer to be used.]]>
  18935. </doc>
  18936. </constructor>
  18937. <constructor name="SnappyCompressor"
  18938. static="false" final="false" visibility="public"
  18939. deprecated="not deprecated">
  18940. <doc>
  18941. <![CDATA[Creates a new compressor with the default buffer size.]]>
  18942. </doc>
  18943. </constructor>
  18944. <method name="setInput"
  18945. abstract="false" native="false" synchronized="true"
  18946. static="false" final="false" visibility="public"
  18947. deprecated="not deprecated">
  18948. <param name="b" type="byte[]"/>
  18949. <param name="off" type="int"/>
  18950. <param name="len" type="int"/>
  18951. <doc>
  18952. <![CDATA[Sets input data for compression.
  18953. This should be called whenever #needsInput() returns
  18954. <code>true</code> indicating that more input data is required.
  18955. @param b Input data
  18956. @param off Start offset
  18957. @param len Length]]>
  18958. </doc>
  18959. </method>
  18960. <method name="setDictionary"
  18961. abstract="false" native="false" synchronized="true"
  18962. static="false" final="false" visibility="public"
  18963. deprecated="not deprecated">
  18964. <param name="b" type="byte[]"/>
  18965. <param name="off" type="int"/>
  18966. <param name="len" type="int"/>
  18967. <doc>
  18968. <![CDATA[Does nothing.]]>
  18969. </doc>
  18970. </method>
  18971. <method name="needsInput" return="boolean"
  18972. abstract="false" native="false" synchronized="true"
  18973. static="false" final="false" visibility="public"
  18974. deprecated="not deprecated">
  18975. <doc>
  18976. <![CDATA[Returns true if the input data buffer is empty and
  18977. #setInput() should be called to provide more input.
  18978. @return <code>true</code> if the input data buffer is empty and
  18979. #setInput() should be called in order to provide more input.]]>
  18980. </doc>
  18981. </method>
  18982. <method name="finish"
  18983. abstract="false" native="false" synchronized="true"
  18984. static="false" final="false" visibility="public"
  18985. deprecated="not deprecated">
  18986. <doc>
  18987. <![CDATA[When called, indicates that compression should end
  18988. with the current contents of the input buffer.]]>
  18989. </doc>
  18990. </method>
  18991. <method name="finished" return="boolean"
  18992. abstract="false" native="false" synchronized="true"
  18993. static="false" final="false" visibility="public"
  18994. deprecated="not deprecated">
  18995. <doc>
  18996. <![CDATA[Returns true if the end of the compressed
  18997. data output stream has been reached.
  18998. @return <code>true</code> if the end of the compressed
  18999. data output stream has been reached.]]>
  19000. </doc>
  19001. </method>
  19002. <method name="compress" return="int"
  19003. abstract="false" native="false" synchronized="true"
  19004. static="false" final="false" visibility="public"
  19005. deprecated="not deprecated">
  19006. <param name="b" type="byte[]"/>
  19007. <param name="off" type="int"/>
  19008. <param name="len" type="int"/>
  19009. <exception name="IOException" type="java.io.IOException"/>
  19010. <doc>
  19011. <![CDATA[Fills specified buffer with compressed data. Returns actual number
  19012. of bytes of compressed data. A return value of 0 indicates that
  19013. needsInput() should be called in order to determine if more input
  19014. data is required.
  19015. @param b Buffer for the compressed data
  19016. @param off Start offset of the data
  19017. @param len Size of the buffer
  19018. @return The actual number of bytes of compressed data.]]>
  19019. </doc>
  19020. </method>
  19021. <method name="reset"
  19022. abstract="false" native="false" synchronized="true"
  19023. static="false" final="false" visibility="public"
  19024. deprecated="not deprecated">
  19025. <doc>
  19026. <![CDATA[Resets compressor so that a new set of input data can be processed.]]>
  19027. </doc>
  19028. </method>
  19029. <method name="reinit"
  19030. abstract="false" native="false" synchronized="true"
  19031. static="false" final="false" visibility="public"
  19032. deprecated="not deprecated">
  19033. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  19034. <doc>
  19035. <![CDATA[Prepare the compressor to be used in a new stream with settings defined in
  19036. the given Configuration
  19037. @param conf Configuration from which new setting are fetched]]>
  19038. </doc>
  19039. </method>
  19040. <method name="getBytesRead" return="long"
  19041. abstract="false" native="false" synchronized="true"
  19042. static="false" final="false" visibility="public"
  19043. deprecated="not deprecated">
  19044. <doc>
  19045. <![CDATA[Return number of bytes given to this compressor since last reset.]]>
  19046. </doc>
  19047. </method>
  19048. <method name="getBytesWritten" return="long"
  19049. abstract="false" native="false" synchronized="true"
  19050. static="false" final="false" visibility="public"
  19051. deprecated="not deprecated">
  19052. <doc>
  19053. <![CDATA[Return number of bytes consumed by callers of compress since last reset.]]>
  19054. </doc>
  19055. </method>
  19056. <method name="end"
  19057. abstract="false" native="false" synchronized="true"
  19058. static="false" final="false" visibility="public"
  19059. deprecated="not deprecated">
  19060. <doc>
  19061. <![CDATA[Closes the compressor and discards any unprocessed input.]]>
  19062. </doc>
  19063. </method>
  19064. <doc>
  19065. <![CDATA[A {@link Compressor} based on the snappy compression algorithm.
  19066. http://code.google.com/p/snappy/]]>
  19067. </doc>
  19068. </class>
  19069. <!-- end class org.apache.hadoop.io.compress.snappy.SnappyCompressor -->
  19070. <!-- start class org.apache.hadoop.io.compress.snappy.SnappyDecompressor -->
  19071. <class name="SnappyDecompressor" extends="java.lang.Object"
  19072. abstract="false"
  19073. static="false" final="false" visibility="public"
  19074. deprecated="not deprecated">
  19075. <implements name="org.apache.hadoop.io.compress.Decompressor"/>
  19076. <constructor name="SnappyDecompressor" type="int"
  19077. static="false" final="false" visibility="public"
  19078. deprecated="not deprecated">
  19079. <doc>
  19080. <![CDATA[Creates a new compressor.
  19081. @param directBufferSize size of the direct buffer to be used.]]>
  19082. </doc>
  19083. </constructor>
  19084. <constructor name="SnappyDecompressor"
  19085. static="false" final="false" visibility="public"
  19086. deprecated="not deprecated">
  19087. <doc>
  19088. <![CDATA[Creates a new decompressor with the default buffer size.]]>
  19089. </doc>
  19090. </constructor>
  19091. <method name="setInput"
  19092. abstract="false" native="false" synchronized="true"
  19093. static="false" final="false" visibility="public"
  19094. deprecated="not deprecated">
  19095. <param name="b" type="byte[]"/>
  19096. <param name="off" type="int"/>
  19097. <param name="len" type="int"/>
  19098. <doc>
  19099. <![CDATA[Sets input data for decompression.
  19100. This should be called if and only if {@link #needsInput()} returns
  19101. <code>true</code> indicating that more input data is required.
  19102. (Both native and non-native versions of various Decompressors require
  19103. that the data passed in via <code>b[]</code> remain unmodified until
  19104. the caller is explicitly notified--via {@link #needsInput()}--that the
  19105. buffer may be safely modified. With this requirement, an extra
  19106. buffer-copy can be avoided.)
  19107. @param b Input data
  19108. @param off Start offset
  19109. @param len Length]]>
  19110. </doc>
  19111. </method>
  19112. <method name="setDictionary"
  19113. abstract="false" native="false" synchronized="true"
  19114. static="false" final="false" visibility="public"
  19115. deprecated="not deprecated">
  19116. <param name="b" type="byte[]"/>
  19117. <param name="off" type="int"/>
  19118. <param name="len" type="int"/>
  19119. <doc>
  19120. <![CDATA[Does nothing.]]>
  19121. </doc>
  19122. </method>
  19123. <method name="needsInput" return="boolean"
  19124. abstract="false" native="false" synchronized="true"
  19125. static="false" final="false" visibility="public"
  19126. deprecated="not deprecated">
  19127. <doc>
  19128. <![CDATA[Returns true if the input data buffer is empty and
  19129. {@link #setInput(byte[], int, int)} should be called to
  19130. provide more input.
  19131. @return <code>true</code> if the input data buffer is empty and
  19132. {@link #setInput(byte[], int, int)} should be called in
  19133. order to provide more input.]]>
  19134. </doc>
  19135. </method>
  19136. <method name="needsDictionary" return="boolean"
  19137. abstract="false" native="false" synchronized="true"
  19138. static="false" final="false" visibility="public"
  19139. deprecated="not deprecated">
  19140. <doc>
  19141. <![CDATA[Returns <code>false</code>.
  19142. @return <code>false</code>.]]>
  19143. </doc>
  19144. </method>
  19145. <method name="finished" return="boolean"
  19146. abstract="false" native="false" synchronized="true"
  19147. static="false" final="false" visibility="public"
  19148. deprecated="not deprecated">
  19149. <doc>
  19150. <![CDATA[Returns true if the end of the decompressed
  19151. data output stream has been reached.
  19152. @return <code>true</code> if the end of the decompressed
  19153. data output stream has been reached.]]>
  19154. </doc>
  19155. </method>
  19156. <method name="decompress" return="int"
  19157. abstract="false" native="false" synchronized="true"
  19158. static="false" final="false" visibility="public"
  19159. deprecated="not deprecated">
  19160. <param name="b" type="byte[]"/>
  19161. <param name="off" type="int"/>
  19162. <param name="len" type="int"/>
  19163. <exception name="IOException" type="java.io.IOException"/>
  19164. <doc>
  19165. <![CDATA[Fills specified buffer with uncompressed data. Returns actual number
  19166. of bytes of uncompressed data. A return value of 0 indicates that
  19167. {@link #needsInput()} should be called in order to determine if more
  19168. input data is required.
  19169. @param b Buffer for the compressed data
  19170. @param off Start offset of the data
  19171. @param len Size of the buffer
  19172. @return The actual number of bytes of compressed data.
  19173. @throws IOException]]>
  19174. </doc>
  19175. </method>
  19176. <method name="getRemaining" return="int"
  19177. abstract="false" native="false" synchronized="true"
  19178. static="false" final="false" visibility="public"
  19179. deprecated="not deprecated">
  19180. <doc>
  19181. <![CDATA[Returns <code>0</code>.
  19182. @return <code>0</code>.]]>
  19183. </doc>
  19184. </method>
  19185. <method name="reset"
  19186. abstract="false" native="false" synchronized="true"
  19187. static="false" final="false" visibility="public"
  19188. deprecated="not deprecated">
  19189. </method>
  19190. <method name="end"
  19191. abstract="false" native="false" synchronized="true"
  19192. static="false" final="false" visibility="public"
  19193. deprecated="not deprecated">
  19194. <doc>
  19195. <![CDATA[Resets decompressor and input and output buffers so that a new set of
  19196. input data can be processed.]]>
  19197. </doc>
  19198. </method>
  19199. <doc>
  19200. <![CDATA[A {@link Decompressor} based on the snappy compression algorithm.
  19201. http://code.google.com/p/snappy/]]>
  19202. </doc>
  19203. </class>
  19204. <!-- end class org.apache.hadoop.io.compress.snappy.SnappyDecompressor -->
  19205. </package>
  19206. <package name="org.apache.hadoop.io.compress.zlib">
  19207. <!-- start class org.apache.hadoop.io.compress.zlib.BuiltInGzipDecompressor -->
  19208. <class name="BuiltInGzipDecompressor" extends="java.lang.Object"
  19209. abstract="false"
  19210. static="false" final="false" visibility="public"
  19211. deprecated="not deprecated">
  19212. <implements name="org.apache.hadoop.io.compress.Decompressor"/>
  19213. <constructor name="BuiltInGzipDecompressor"
  19214. static="false" final="false" visibility="public"
  19215. deprecated="not deprecated">
  19216. <doc>
  19217. <![CDATA[Creates a new (pure Java) gzip decompressor.]]>
  19218. </doc>
  19219. </constructor>
  19220. <method name="needsInput" return="boolean"
  19221. abstract="false" native="false" synchronized="true"
  19222. static="false" final="false" visibility="public"
  19223. deprecated="not deprecated">
  19224. <doc>
  19225. <![CDATA[{@inheritDoc}]]>
  19226. </doc>
  19227. </method>
  19228. <method name="setInput"
  19229. abstract="false" native="false" synchronized="true"
  19230. static="false" final="false" visibility="public"
  19231. deprecated="not deprecated">
  19232. <param name="b" type="byte[]"/>
  19233. <param name="off" type="int"/>
  19234. <param name="len" type="int"/>
  19235. <doc>
  19236. <![CDATA[{@inheritDoc}]]>
  19237. </doc>
  19238. </method>
  19239. <method name="decompress" return="int"
  19240. abstract="false" native="false" synchronized="true"
  19241. static="false" final="false" visibility="public"
  19242. deprecated="not deprecated">
  19243. <param name="b" type="byte[]"/>
  19244. <param name="off" type="int"/>
  19245. <param name="len" type="int"/>
  19246. <exception name="IOException" type="java.io.IOException"/>
  19247. <doc>
  19248. <![CDATA[Decompress the data (gzip header, deflate stream, gzip trailer) in the
  19249. provided buffer.
  19250. @return the number of decompressed bytes placed into b]]>
  19251. </doc>
  19252. </method>
  19253. <method name="getBytesRead" return="long"
  19254. abstract="false" native="false" synchronized="true"
  19255. static="false" final="false" visibility="public"
  19256. deprecated="not deprecated">
  19257. <doc>
  19258. <![CDATA[Returns the total number of compressed bytes input so far, including
  19259. gzip header/trailer bytes.</p>
  19260. @return the total (non-negative) number of compressed bytes read so far]]>
  19261. </doc>
  19262. </method>
  19263. <method name="getRemaining" return="int"
  19264. abstract="false" native="false" synchronized="true"
  19265. static="false" final="false" visibility="public"
  19266. deprecated="not deprecated">
  19267. <doc>
  19268. <![CDATA[Returns the number of bytes remaining in the input buffer; normally
  19269. called when finished() is true to determine amount of post-gzip-stream
  19270. data. Note that, other than the finished state with concatenated data
  19271. after the end of the current gzip stream, this will never return a
  19272. non-zero value unless called after {@link #setInput(byte[] b, int off,
  19273. int len)} and before {@link #decompress(byte[] b, int off, int len)}.
  19274. (That is, after {@link #decompress(byte[] b, int off, int len)} it
  19275. always returns zero, except in finished state with concatenated data.)</p>
  19276. @return the total (non-negative) number of unprocessed bytes in input]]>
  19277. </doc>
  19278. </method>
  19279. <method name="needsDictionary" return="boolean"
  19280. abstract="false" native="false" synchronized="true"
  19281. static="false" final="false" visibility="public"
  19282. deprecated="not deprecated">
  19283. <doc>
  19284. <![CDATA[{@inheritDoc}]]>
  19285. </doc>
  19286. </method>
  19287. <method name="setDictionary"
  19288. abstract="false" native="false" synchronized="true"
  19289. static="false" final="false" visibility="public"
  19290. deprecated="not deprecated">
  19291. <param name="b" type="byte[]"/>
  19292. <param name="off" type="int"/>
  19293. <param name="len" type="int"/>
  19294. <doc>
  19295. <![CDATA[{@inheritDoc}]]>
  19296. </doc>
  19297. </method>
  19298. <method name="finished" return="boolean"
  19299. abstract="false" native="false" synchronized="true"
  19300. static="false" final="false" visibility="public"
  19301. deprecated="not deprecated">
  19302. <doc>
  19303. <![CDATA[Returns true if the end of the gzip substream (single "member") has been
  19304. reached.</p>]]>
  19305. </doc>
  19306. </method>
  19307. <method name="reset"
  19308. abstract="false" native="false" synchronized="true"
  19309. static="false" final="false" visibility="public"
  19310. deprecated="not deprecated">
  19311. <doc>
  19312. <![CDATA[Resets everything, including the input buffer, regardless of whether the
  19313. current gzip substream is finished.</p>]]>
  19314. </doc>
  19315. </method>
  19316. <method name="end"
  19317. abstract="false" native="false" synchronized="true"
  19318. static="false" final="false" visibility="public"
  19319. deprecated="not deprecated">
  19320. <doc>
  19321. <![CDATA[{@inheritDoc}]]>
  19322. </doc>
  19323. </method>
  19324. <doc>
  19325. <![CDATA[A {@link Decompressor} based on the popular gzip compressed file format.
  19326. http://www.gzip.org/]]>
  19327. </doc>
  19328. </class>
  19329. <!-- end class org.apache.hadoop.io.compress.zlib.BuiltInGzipDecompressor -->
  19330. <!-- start class org.apache.hadoop.io.compress.zlib.BuiltInZlibDeflater -->
  19331. <class name="BuiltInZlibDeflater" extends="java.util.zip.Deflater"
  19332. abstract="false"
  19333. static="false" final="false" visibility="public"
  19334. deprecated="not deprecated">
  19335. <implements name="org.apache.hadoop.io.compress.Compressor"/>
  19336. <constructor name="BuiltInZlibDeflater" type="int, boolean"
  19337. static="false" final="false" visibility="public"
  19338. deprecated="not deprecated">
  19339. </constructor>
  19340. <constructor name="BuiltInZlibDeflater" type="int"
  19341. static="false" final="false" visibility="public"
  19342. deprecated="not deprecated">
  19343. </constructor>
  19344. <constructor name="BuiltInZlibDeflater"
  19345. static="false" final="false" visibility="public"
  19346. deprecated="not deprecated">
  19347. </constructor>
  19348. <method name="compress" return="int"
  19349. abstract="false" native="false" synchronized="true"
  19350. static="false" final="false" visibility="public"
  19351. deprecated="not deprecated">
  19352. <param name="b" type="byte[]"/>
  19353. <param name="off" type="int"/>
  19354. <param name="len" type="int"/>
  19355. <exception name="IOException" type="java.io.IOException"/>
  19356. </method>
  19357. <method name="reinit"
  19358. abstract="false" native="false" synchronized="false"
  19359. static="false" final="false" visibility="public"
  19360. deprecated="not deprecated">
  19361. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  19362. <doc>
  19363. <![CDATA[reinit the compressor with the given configuration. It will reset the
  19364. compressor's compression level and compression strategy. Different from
  19365. <tt>ZlibCompressor</tt>, <tt>BuiltInZlibDeflater</tt> only support three
  19366. kind of compression strategy: FILTERED, HUFFMAN_ONLY and DEFAULT_STRATEGY.
  19367. It will use DEFAULT_STRATEGY as default if the configured compression
  19368. strategy is not supported.]]>
  19369. </doc>
  19370. </method>
  19371. <doc>
  19372. <![CDATA[A wrapper around java.util.zip.Deflater to make it conform
  19373. to org.apache.hadoop.io.compress.Compressor interface.]]>
  19374. </doc>
  19375. </class>
  19376. <!-- end class org.apache.hadoop.io.compress.zlib.BuiltInZlibDeflater -->
  19377. <!-- start class org.apache.hadoop.io.compress.zlib.BuiltInZlibInflater -->
  19378. <class name="BuiltInZlibInflater" extends="java.util.zip.Inflater"
  19379. abstract="false"
  19380. static="false" final="false" visibility="public"
  19381. deprecated="not deprecated">
  19382. <implements name="org.apache.hadoop.io.compress.Decompressor"/>
  19383. <constructor name="BuiltInZlibInflater" type="boolean"
  19384. static="false" final="false" visibility="public"
  19385. deprecated="not deprecated">
  19386. </constructor>
  19387. <constructor name="BuiltInZlibInflater"
  19388. static="false" final="false" visibility="public"
  19389. deprecated="not deprecated">
  19390. </constructor>
  19391. <method name="decompress" return="int"
  19392. abstract="false" native="false" synchronized="true"
  19393. static="false" final="false" visibility="public"
  19394. deprecated="not deprecated">
  19395. <param name="b" type="byte[]"/>
  19396. <param name="off" type="int"/>
  19397. <param name="len" type="int"/>
  19398. <exception name="IOException" type="java.io.IOException"/>
  19399. </method>
  19400. <doc>
  19401. <![CDATA[A wrapper around java.util.zip.Inflater to make it conform
  19402. to org.apache.hadoop.io.compress.Decompressor interface.]]>
  19403. </doc>
  19404. </class>
  19405. <!-- end class org.apache.hadoop.io.compress.zlib.BuiltInZlibInflater -->
  19406. <!-- start class org.apache.hadoop.io.compress.zlib.ZlibCompressor -->
  19407. <class name="ZlibCompressor" extends="java.lang.Object"
  19408. abstract="false"
  19409. static="false" final="false" visibility="public"
  19410. deprecated="not deprecated">
  19411. <implements name="org.apache.hadoop.io.compress.Compressor"/>
  19412. <constructor name="ZlibCompressor"
  19413. static="false" final="false" visibility="public"
  19414. deprecated="not deprecated">
  19415. <doc>
  19416. <![CDATA[Creates a new compressor with the default compression level.
  19417. Compressed data will be generated in ZLIB format.]]>
  19418. </doc>
  19419. </constructor>
  19420. <constructor name="ZlibCompressor" type="org.apache.hadoop.conf.Configuration"
  19421. static="false" final="false" visibility="public"
  19422. deprecated="not deprecated">
  19423. <doc>
  19424. <![CDATA[Creates a new compressor, taking settings from the configuration.]]>
  19425. </doc>
  19426. </constructor>
  19427. <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"
  19428. static="false" final="false" visibility="public"
  19429. deprecated="not deprecated">
  19430. <doc>
  19431. <![CDATA[Creates a new compressor using the specified compression level.
  19432. Compressed data will be generated in ZLIB format.
  19433. @param level Compression level #CompressionLevel
  19434. @param strategy Compression strategy #CompressionStrategy
  19435. @param header Compression header #CompressionHeader
  19436. @param directBufferSize Size of the direct buffer to be used.]]>
  19437. </doc>
  19438. </constructor>
  19439. <method name="construct"
  19440. abstract="false" native="false" synchronized="false"
  19441. static="false" final="true" visibility="protected"
  19442. deprecated="not deprecated">
  19443. <param name="level" type="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionLevel"/>
  19444. <param name="strategy" type="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionStrategy"/>
  19445. <param name="header" type="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionHeader"/>
  19446. <param name="directBufferSize" type="int"/>
  19447. </method>
  19448. <method name="reinit"
  19449. abstract="false" native="false" synchronized="true"
  19450. static="false" final="false" visibility="public"
  19451. deprecated="not deprecated">
  19452. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  19453. <doc>
  19454. <![CDATA[Prepare the compressor to be used in a new stream with settings defined in
  19455. the given Configuration. It will reset the compressor's compression level
  19456. and compression strategy.
  19457. @param conf Configuration storing new settings]]>
  19458. </doc>
  19459. </method>
  19460. <method name="setInput"
  19461. abstract="false" native="false" synchronized="true"
  19462. static="false" final="false" visibility="public"
  19463. deprecated="not deprecated">
  19464. <param name="b" type="byte[]"/>
  19465. <param name="off" type="int"/>
  19466. <param name="len" type="int"/>
  19467. </method>
  19468. <method name="setDictionary"
  19469. abstract="false" native="false" synchronized="true"
  19470. static="false" final="false" visibility="public"
  19471. deprecated="not deprecated">
  19472. <param name="b" type="byte[]"/>
  19473. <param name="off" type="int"/>
  19474. <param name="len" type="int"/>
  19475. </method>
  19476. <method name="needsInput" return="boolean"
  19477. abstract="false" native="false" synchronized="false"
  19478. static="false" final="false" visibility="public"
  19479. deprecated="not deprecated">
  19480. </method>
  19481. <method name="finish"
  19482. abstract="false" native="false" synchronized="true"
  19483. static="false" final="false" visibility="public"
  19484. deprecated="not deprecated">
  19485. </method>
  19486. <method name="finished" return="boolean"
  19487. abstract="false" native="false" synchronized="true"
  19488. static="false" final="false" visibility="public"
  19489. deprecated="not deprecated">
  19490. </method>
  19491. <method name="compress" return="int"
  19492. abstract="false" native="false" synchronized="true"
  19493. static="false" final="false" visibility="public"
  19494. deprecated="not deprecated">
  19495. <param name="b" type="byte[]"/>
  19496. <param name="off" type="int"/>
  19497. <param name="len" type="int"/>
  19498. <exception name="IOException" type="java.io.IOException"/>
  19499. </method>
  19500. <method name="getBytesWritten" return="long"
  19501. abstract="false" native="false" synchronized="true"
  19502. static="false" final="false" visibility="public"
  19503. deprecated="not deprecated">
  19504. <doc>
  19505. <![CDATA[Returns the total number of compressed bytes output so far.
  19506. @return the total (non-negative) number of compressed bytes output so far]]>
  19507. </doc>
  19508. </method>
  19509. <method name="getBytesRead" return="long"
  19510. abstract="false" native="false" synchronized="true"
  19511. static="false" final="false" visibility="public"
  19512. deprecated="not deprecated">
  19513. <doc>
  19514. <![CDATA[Returns the total number of uncompressed bytes input so far.</p>
  19515. @return the total (non-negative) number of uncompressed bytes input so far]]>
  19516. </doc>
  19517. </method>
  19518. <method name="reset"
  19519. abstract="false" native="false" synchronized="true"
  19520. static="false" final="false" visibility="public"
  19521. deprecated="not deprecated">
  19522. </method>
  19523. <method name="end"
  19524. abstract="false" native="false" synchronized="true"
  19525. static="false" final="false" visibility="public"
  19526. deprecated="not deprecated">
  19527. </method>
  19528. <doc>
  19529. <![CDATA[A {@link Compressor} based on the popular
  19530. zlib compression algorithm.
  19531. http://www.zlib.net/]]>
  19532. </doc>
  19533. </class>
  19534. <!-- end class org.apache.hadoop.io.compress.zlib.ZlibCompressor -->
  19535. <!-- start class org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionHeader -->
  19536. <class name="ZlibCompressor.CompressionHeader" extends="java.lang.Enum"
  19537. abstract="false"
  19538. static="true" final="true" visibility="public"
  19539. deprecated="not deprecated">
  19540. <method name="values" return="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionHeader[]"
  19541. abstract="false" native="false" synchronized="false"
  19542. static="true" final="false" visibility="public"
  19543. deprecated="not deprecated">
  19544. </method>
  19545. <method name="valueOf" return="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionHeader"
  19546. abstract="false" native="false" synchronized="false"
  19547. static="true" final="false" visibility="public"
  19548. deprecated="not deprecated">
  19549. <param name="name" type="java.lang.String"/>
  19550. </method>
  19551. <method name="windowBits" return="int"
  19552. abstract="false" native="false" synchronized="false"
  19553. static="false" final="false" visibility="public"
  19554. deprecated="not deprecated">
  19555. </method>
  19556. <field name="NO_HEADER" type="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionHeader"
  19557. transient="false" volatile="false"
  19558. static="true" final="true" visibility="public"
  19559. deprecated="not deprecated">
  19560. <doc>
  19561. <![CDATA[No headers/trailers/checksums.]]>
  19562. </doc>
  19563. </field>
  19564. <field name="DEFAULT_HEADER" type="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionHeader"
  19565. transient="false" volatile="false"
  19566. static="true" final="true" visibility="public"
  19567. deprecated="not deprecated">
  19568. <doc>
  19569. <![CDATA[Default headers/trailers/checksums.]]>
  19570. </doc>
  19571. </field>
  19572. <field name="GZIP_FORMAT" type="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionHeader"
  19573. transient="false" volatile="false"
  19574. static="true" final="true" visibility="public"
  19575. deprecated="not deprecated">
  19576. <doc>
  19577. <![CDATA[Simple gzip headers/trailers.]]>
  19578. </doc>
  19579. </field>
  19580. <doc>
  19581. <![CDATA[The type of header for compressed data.]]>
  19582. </doc>
  19583. </class>
  19584. <!-- end class org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionHeader -->
  19585. <!-- start class org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionLevel -->
  19586. <class name="ZlibCompressor.CompressionLevel" extends="java.lang.Enum"
  19587. abstract="false"
  19588. static="true" final="true" visibility="public"
  19589. deprecated="not deprecated">
  19590. <method name="values" return="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionLevel[]"
  19591. abstract="false" native="false" synchronized="false"
  19592. static="true" final="false" visibility="public"
  19593. deprecated="not deprecated">
  19594. </method>
  19595. <method name="valueOf" return="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionLevel"
  19596. abstract="false" native="false" synchronized="false"
  19597. static="true" final="false" visibility="public"
  19598. deprecated="not deprecated">
  19599. <param name="name" type="java.lang.String"/>
  19600. </method>
  19601. <field name="NO_COMPRESSION" type="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionLevel"
  19602. transient="false" volatile="false"
  19603. static="true" final="true" visibility="public"
  19604. deprecated="not deprecated">
  19605. <doc>
  19606. <![CDATA[Compression level for no compression.]]>
  19607. </doc>
  19608. </field>
  19609. <field name="BEST_SPEED" type="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionLevel"
  19610. transient="false" volatile="false"
  19611. static="true" final="true" visibility="public"
  19612. deprecated="not deprecated">
  19613. <doc>
  19614. <![CDATA[Compression level for fastest compression.]]>
  19615. </doc>
  19616. </field>
  19617. <field name="BEST_COMPRESSION" type="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionLevel"
  19618. transient="false" volatile="false"
  19619. static="true" final="true" visibility="public"
  19620. deprecated="not deprecated">
  19621. <doc>
  19622. <![CDATA[Compression level for best compression.]]>
  19623. </doc>
  19624. </field>
  19625. <field name="DEFAULT_COMPRESSION" type="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionLevel"
  19626. transient="false" volatile="false"
  19627. static="true" final="true" visibility="public"
  19628. deprecated="not deprecated">
  19629. <doc>
  19630. <![CDATA[Default compression level.]]>
  19631. </doc>
  19632. </field>
  19633. <doc>
  19634. <![CDATA[The compression level for zlib library.]]>
  19635. </doc>
  19636. </class>
  19637. <!-- end class org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionLevel -->
  19638. <!-- start class org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionStrategy -->
  19639. <class name="ZlibCompressor.CompressionStrategy" extends="java.lang.Enum"
  19640. abstract="false"
  19641. static="true" final="true" visibility="public"
  19642. deprecated="not deprecated">
  19643. <method name="values" return="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionStrategy[]"
  19644. abstract="false" native="false" synchronized="false"
  19645. static="true" final="false" visibility="public"
  19646. deprecated="not deprecated">
  19647. </method>
  19648. <method name="valueOf" return="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionStrategy"
  19649. abstract="false" native="false" synchronized="false"
  19650. static="true" final="false" visibility="public"
  19651. deprecated="not deprecated">
  19652. <param name="name" type="java.lang.String"/>
  19653. </method>
  19654. <field name="FILTERED" type="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionStrategy"
  19655. transient="false" volatile="false"
  19656. static="true" final="true" visibility="public"
  19657. deprecated="not deprecated">
  19658. <doc>
  19659. <![CDATA[Compression strategy best used for data consisting mostly of small
  19660. values with a somewhat random distribution. Forces more Huffman coding
  19661. and less string matching.]]>
  19662. </doc>
  19663. </field>
  19664. <field name="HUFFMAN_ONLY" type="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionStrategy"
  19665. transient="false" volatile="false"
  19666. static="true" final="true" visibility="public"
  19667. deprecated="not deprecated">
  19668. <doc>
  19669. <![CDATA[Compression strategy for Huffman coding only.]]>
  19670. </doc>
  19671. </field>
  19672. <field name="RLE" type="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionStrategy"
  19673. transient="false" volatile="false"
  19674. static="true" final="true" visibility="public"
  19675. deprecated="not deprecated">
  19676. <doc>
  19677. <![CDATA[Compression strategy to limit match distances to one
  19678. (run-length encoding).]]>
  19679. </doc>
  19680. </field>
  19681. <field name="FIXED" type="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionStrategy"
  19682. transient="false" volatile="false"
  19683. static="true" final="true" visibility="public"
  19684. deprecated="not deprecated">
  19685. <doc>
  19686. <![CDATA[Compression strategy to prevent the use of dynamic Huffman codes,
  19687. allowing for a simpler decoder for special applications.]]>
  19688. </doc>
  19689. </field>
  19690. <field name="DEFAULT_STRATEGY" type="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionStrategy"
  19691. transient="false" volatile="false"
  19692. static="true" final="true" visibility="public"
  19693. deprecated="not deprecated">
  19694. <doc>
  19695. <![CDATA[Default compression strategy.]]>
  19696. </doc>
  19697. </field>
  19698. <doc>
  19699. <![CDATA[The compression level for zlib library.]]>
  19700. </doc>
  19701. </class>
  19702. <!-- end class org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionStrategy -->
  19703. <!-- start class org.apache.hadoop.io.compress.zlib.ZlibDecompressor -->
  19704. <class name="ZlibDecompressor" extends="java.lang.Object"
  19705. abstract="false"
  19706. static="false" final="false" visibility="public"
  19707. deprecated="not deprecated">
  19708. <implements name="org.apache.hadoop.io.compress.Decompressor"/>
  19709. <constructor name="ZlibDecompressor" type="org.apache.hadoop.io.compress.zlib.ZlibDecompressor.CompressionHeader, int"
  19710. static="false" final="false" visibility="public"
  19711. deprecated="not deprecated">
  19712. <doc>
  19713. <![CDATA[Creates a new decompressor.]]>
  19714. </doc>
  19715. </constructor>
  19716. <constructor name="ZlibDecompressor"
  19717. static="false" final="false" visibility="public"
  19718. deprecated="not deprecated">
  19719. </constructor>
  19720. <method name="setInput"
  19721. abstract="false" native="false" synchronized="true"
  19722. static="false" final="false" visibility="public"
  19723. deprecated="not deprecated">
  19724. <param name="b" type="byte[]"/>
  19725. <param name="off" type="int"/>
  19726. <param name="len" type="int"/>
  19727. </method>
  19728. <method name="setDictionary"
  19729. abstract="false" native="false" synchronized="true"
  19730. static="false" final="false" visibility="public"
  19731. deprecated="not deprecated">
  19732. <param name="b" type="byte[]"/>
  19733. <param name="off" type="int"/>
  19734. <param name="len" type="int"/>
  19735. </method>
  19736. <method name="needsInput" return="boolean"
  19737. abstract="false" native="false" synchronized="true"
  19738. static="false" final="false" visibility="public"
  19739. deprecated="not deprecated">
  19740. </method>
  19741. <method name="needsDictionary" return="boolean"
  19742. abstract="false" native="false" synchronized="true"
  19743. static="false" final="false" visibility="public"
  19744. deprecated="not deprecated">
  19745. </method>
  19746. <method name="finished" return="boolean"
  19747. abstract="false" native="false" synchronized="true"
  19748. static="false" final="false" visibility="public"
  19749. deprecated="not deprecated">
  19750. </method>
  19751. <method name="decompress" return="int"
  19752. abstract="false" native="false" synchronized="true"
  19753. static="false" final="false" visibility="public"
  19754. deprecated="not deprecated">
  19755. <param name="b" type="byte[]"/>
  19756. <param name="off" type="int"/>
  19757. <param name="len" type="int"/>
  19758. <exception name="IOException" type="java.io.IOException"/>
  19759. </method>
  19760. <method name="getBytesWritten" return="long"
  19761. abstract="false" native="false" synchronized="true"
  19762. static="false" final="false" visibility="public"
  19763. deprecated="not deprecated">
  19764. <doc>
  19765. <![CDATA[Returns the total number of uncompressed bytes output so far.
  19766. @return the total (non-negative) number of uncompressed bytes output so far]]>
  19767. </doc>
  19768. </method>
  19769. <method name="getBytesRead" return="long"
  19770. abstract="false" native="false" synchronized="true"
  19771. static="false" final="false" visibility="public"
  19772. deprecated="not deprecated">
  19773. <doc>
  19774. <![CDATA[Returns the total number of compressed bytes input so far.</p>
  19775. @return the total (non-negative) number of compressed bytes input so far]]>
  19776. </doc>
  19777. </method>
  19778. <method name="getRemaining" return="int"
  19779. abstract="false" native="false" synchronized="true"
  19780. static="false" final="false" visibility="public"
  19781. deprecated="not deprecated">
  19782. <doc>
  19783. <![CDATA[Returns the number of bytes remaining in the input buffers; normally
  19784. called when finished() is true to determine amount of post-gzip-stream
  19785. data.</p>
  19786. @return the total (non-negative) number of unprocessed bytes in input]]>
  19787. </doc>
  19788. </method>
  19789. <method name="reset"
  19790. abstract="false" native="false" synchronized="true"
  19791. static="false" final="false" visibility="public"
  19792. deprecated="not deprecated">
  19793. <doc>
  19794. <![CDATA[Resets everything including the input buffers (user and direct).</p>]]>
  19795. </doc>
  19796. </method>
  19797. <method name="end"
  19798. abstract="false" native="false" synchronized="true"
  19799. static="false" final="false" visibility="public"
  19800. deprecated="not deprecated">
  19801. </method>
  19802. <method name="finalize"
  19803. abstract="false" native="false" synchronized="false"
  19804. static="false" final="false" visibility="protected"
  19805. deprecated="not deprecated">
  19806. </method>
  19807. <doc>
  19808. <![CDATA[A {@link Decompressor} based on the popular
  19809. zlib compression algorithm.
  19810. http://www.zlib.net/]]>
  19811. </doc>
  19812. </class>
  19813. <!-- end class org.apache.hadoop.io.compress.zlib.ZlibDecompressor -->
  19814. <!-- start class org.apache.hadoop.io.compress.zlib.ZlibDecompressor.CompressionHeader -->
  19815. <class name="ZlibDecompressor.CompressionHeader" extends="java.lang.Enum"
  19816. abstract="false"
  19817. static="true" final="true" visibility="public"
  19818. deprecated="not deprecated">
  19819. <method name="values" return="org.apache.hadoop.io.compress.zlib.ZlibDecompressor.CompressionHeader[]"
  19820. abstract="false" native="false" synchronized="false"
  19821. static="true" final="false" visibility="public"
  19822. deprecated="not deprecated">
  19823. </method>
  19824. <method name="valueOf" return="org.apache.hadoop.io.compress.zlib.ZlibDecompressor.CompressionHeader"
  19825. abstract="false" native="false" synchronized="false"
  19826. static="true" final="false" visibility="public"
  19827. deprecated="not deprecated">
  19828. <param name="name" type="java.lang.String"/>
  19829. </method>
  19830. <method name="windowBits" return="int"
  19831. abstract="false" native="false" synchronized="false"
  19832. static="false" final="false" visibility="public"
  19833. deprecated="not deprecated">
  19834. </method>
  19835. <field name="NO_HEADER" type="org.apache.hadoop.io.compress.zlib.ZlibDecompressor.CompressionHeader"
  19836. transient="false" volatile="false"
  19837. static="true" final="true" visibility="public"
  19838. deprecated="not deprecated">
  19839. <doc>
  19840. <![CDATA[No headers/trailers/checksums.]]>
  19841. </doc>
  19842. </field>
  19843. <field name="DEFAULT_HEADER" type="org.apache.hadoop.io.compress.zlib.ZlibDecompressor.CompressionHeader"
  19844. transient="false" volatile="false"
  19845. static="true" final="true" visibility="public"
  19846. deprecated="not deprecated">
  19847. <doc>
  19848. <![CDATA[Default headers/trailers/checksums.]]>
  19849. </doc>
  19850. </field>
  19851. <field name="GZIP_FORMAT" type="org.apache.hadoop.io.compress.zlib.ZlibDecompressor.CompressionHeader"
  19852. transient="false" volatile="false"
  19853. static="true" final="true" visibility="public"
  19854. deprecated="not deprecated">
  19855. <doc>
  19856. <![CDATA[Simple gzip headers/trailers.]]>
  19857. </doc>
  19858. </field>
  19859. <field name="AUTODETECT_GZIP_ZLIB" type="org.apache.hadoop.io.compress.zlib.ZlibDecompressor.CompressionHeader"
  19860. transient="false" volatile="false"
  19861. static="true" final="true" visibility="public"
  19862. deprecated="not deprecated">
  19863. <doc>
  19864. <![CDATA[Autodetect gzip/zlib headers/trailers.]]>
  19865. </doc>
  19866. </field>
  19867. <doc>
  19868. <![CDATA[The headers to detect from compressed data.]]>
  19869. </doc>
  19870. </class>
  19871. <!-- end class org.apache.hadoop.io.compress.zlib.ZlibDecompressor.CompressionHeader -->
  19872. <!-- start class org.apache.hadoop.io.compress.zlib.ZlibFactory -->
  19873. <class name="ZlibFactory" extends="java.lang.Object"
  19874. abstract="false"
  19875. static="false" final="false" visibility="public"
  19876. deprecated="not deprecated">
  19877. <constructor name="ZlibFactory"
  19878. static="false" final="false" visibility="public"
  19879. deprecated="not deprecated">
  19880. </constructor>
  19881. <method name="isNativeZlibLoaded" return="boolean"
  19882. abstract="false" native="false" synchronized="false"
  19883. static="true" final="false" visibility="public"
  19884. deprecated="not deprecated">
  19885. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  19886. <doc>
  19887. <![CDATA[Check if native-zlib code is loaded & initialized correctly and
  19888. can be loaded for this job.
  19889. @param conf configuration
  19890. @return <code>true</code> if native-zlib is loaded & initialized
  19891. and can be loaded for this job, else <code>false</code>]]>
  19892. </doc>
  19893. </method>
  19894. <method name="getZlibCompressorType" return="java.lang.Class"
  19895. abstract="false" native="false" synchronized="false"
  19896. static="true" final="false" visibility="public"
  19897. deprecated="not deprecated">
  19898. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  19899. <doc>
  19900. <![CDATA[Return the appropriate type of the zlib compressor.
  19901. @param conf configuration
  19902. @return the appropriate type of the zlib compressor.]]>
  19903. </doc>
  19904. </method>
  19905. <method name="getZlibCompressor" return="org.apache.hadoop.io.compress.Compressor"
  19906. abstract="false" native="false" synchronized="false"
  19907. static="true" final="false" visibility="public"
  19908. deprecated="not deprecated">
  19909. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  19910. <doc>
  19911. <![CDATA[Return the appropriate implementation of the zlib compressor.
  19912. @param conf configuration
  19913. @return the appropriate implementation of the zlib compressor.]]>
  19914. </doc>
  19915. </method>
  19916. <method name="getZlibDecompressorType" return="java.lang.Class"
  19917. abstract="false" native="false" synchronized="false"
  19918. static="true" final="false" visibility="public"
  19919. deprecated="not deprecated">
  19920. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  19921. <doc>
  19922. <![CDATA[Return the appropriate type of the zlib decompressor.
  19923. @param conf configuration
  19924. @return the appropriate type of the zlib decompressor.]]>
  19925. </doc>
  19926. </method>
  19927. <method name="getZlibDecompressor" return="org.apache.hadoop.io.compress.Decompressor"
  19928. abstract="false" native="false" synchronized="false"
  19929. static="true" final="false" visibility="public"
  19930. deprecated="not deprecated">
  19931. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  19932. <doc>
  19933. <![CDATA[Return the appropriate implementation of the zlib decompressor.
  19934. @param conf configuration
  19935. @return the appropriate implementation of the zlib decompressor.]]>
  19936. </doc>
  19937. </method>
  19938. <method name="setCompressionStrategy"
  19939. abstract="false" native="false" synchronized="false"
  19940. static="true" final="false" visibility="public"
  19941. deprecated="not deprecated">
  19942. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  19943. <param name="strategy" type="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionStrategy"/>
  19944. </method>
  19945. <method name="getCompressionStrategy" return="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionStrategy"
  19946. abstract="false" native="false" synchronized="false"
  19947. static="true" final="false" visibility="public"
  19948. deprecated="not deprecated">
  19949. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  19950. </method>
  19951. <method name="setCompressionLevel"
  19952. abstract="false" native="false" synchronized="false"
  19953. static="true" final="false" visibility="public"
  19954. deprecated="not deprecated">
  19955. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  19956. <param name="level" type="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionLevel"/>
  19957. </method>
  19958. <method name="getCompressionLevel" return="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionLevel"
  19959. abstract="false" native="false" synchronized="false"
  19960. static="true" final="false" visibility="public"
  19961. deprecated="not deprecated">
  19962. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  19963. </method>
  19964. <doc>
  19965. <![CDATA[A collection of factories to create the right
  19966. zlib/gzip compressor/decompressor instances.]]>
  19967. </doc>
  19968. </class>
  19969. <!-- end class org.apache.hadoop.io.compress.zlib.ZlibFactory -->
  19970. </package>
  19971. <package name="org.apache.hadoop.io.file.tfile">
  19972. <!-- start class org.apache.hadoop.io.file.tfile.ByteArray -->
  19973. <class name="ByteArray" extends="java.lang.Object"
  19974. abstract="false"
  19975. static="false" final="true" visibility="public"
  19976. deprecated="not deprecated">
  19977. <implements name="org.apache.hadoop.io.file.tfile.RawComparable"/>
  19978. <constructor name="ByteArray" type="org.apache.hadoop.io.BytesWritable"
  19979. static="false" final="false" visibility="public"
  19980. deprecated="not deprecated">
  19981. <doc>
  19982. <![CDATA[Constructing a ByteArray from a {@link BytesWritable}.
  19983. @param other]]>
  19984. </doc>
  19985. </constructor>
  19986. <constructor name="ByteArray" type="byte[]"
  19987. static="false" final="false" visibility="public"
  19988. deprecated="not deprecated">
  19989. <doc>
  19990. <![CDATA[Wrap a whole byte array as a RawComparable.
  19991. @param buffer
  19992. the byte array buffer.]]>
  19993. </doc>
  19994. </constructor>
  19995. <constructor name="ByteArray" type="byte[], int, int"
  19996. static="false" final="false" visibility="public"
  19997. deprecated="not deprecated">
  19998. <doc>
  19999. <![CDATA[Wrap a partial byte array as a RawComparable.
  20000. @param buffer
  20001. the byte array buffer.
  20002. @param offset
  20003. the starting offset
  20004. @param len
  20005. the length of the consecutive bytes to be wrapped.]]>
  20006. </doc>
  20007. </constructor>
  20008. <method name="buffer" return="byte[]"
  20009. abstract="false" native="false" synchronized="false"
  20010. static="false" final="false" visibility="public"
  20011. deprecated="not deprecated">
  20012. <doc>
  20013. <![CDATA[@return the underlying buffer.]]>
  20014. </doc>
  20015. </method>
  20016. <method name="offset" return="int"
  20017. abstract="false" native="false" synchronized="false"
  20018. static="false" final="false" visibility="public"
  20019. deprecated="not deprecated">
  20020. <doc>
  20021. <![CDATA[@return the offset in the buffer.]]>
  20022. </doc>
  20023. </method>
  20024. <method name="size" return="int"
  20025. abstract="false" native="false" synchronized="false"
  20026. static="false" final="false" visibility="public"
  20027. deprecated="not deprecated">
  20028. <doc>
  20029. <![CDATA[@return the size of the byte array.]]>
  20030. </doc>
  20031. </method>
  20032. <doc>
  20033. <![CDATA[Adaptor class to wrap byte-array backed objects (including java byte array)
  20034. as RawComparable objects.]]>
  20035. </doc>
  20036. </class>
  20037. <!-- end class org.apache.hadoop.io.file.tfile.ByteArray -->
  20038. <!-- start class org.apache.hadoop.io.file.tfile.MetaBlockAlreadyExists -->
  20039. <class name="MetaBlockAlreadyExists" extends="java.io.IOException"
  20040. abstract="false"
  20041. static="false" final="false" visibility="public"
  20042. deprecated="not deprecated">
  20043. <doc>
  20044. <![CDATA[Exception - Meta Block with the same name already exists.]]>
  20045. </doc>
  20046. </class>
  20047. <!-- end class org.apache.hadoop.io.file.tfile.MetaBlockAlreadyExists -->
  20048. <!-- start class org.apache.hadoop.io.file.tfile.MetaBlockDoesNotExist -->
  20049. <class name="MetaBlockDoesNotExist" extends="java.io.IOException"
  20050. abstract="false"
  20051. static="false" final="false" visibility="public"
  20052. deprecated="not deprecated">
  20053. <doc>
  20054. <![CDATA[Exception - No such Meta Block with the given name.]]>
  20055. </doc>
  20056. </class>
  20057. <!-- end class org.apache.hadoop.io.file.tfile.MetaBlockDoesNotExist -->
  20058. <!-- start interface org.apache.hadoop.io.file.tfile.RawComparable -->
  20059. <interface name="RawComparable" abstract="true"
  20060. static="false" final="false" visibility="public"
  20061. deprecated="not deprecated">
  20062. <method name="buffer" return="byte[]"
  20063. abstract="false" native="false" synchronized="false"
  20064. static="false" final="false" visibility="public"
  20065. deprecated="not deprecated">
  20066. <doc>
  20067. <![CDATA[Get the underlying byte array.
  20068. @return The underlying byte array.]]>
  20069. </doc>
  20070. </method>
  20071. <method name="offset" return="int"
  20072. abstract="false" native="false" synchronized="false"
  20073. static="false" final="false" visibility="public"
  20074. deprecated="not deprecated">
  20075. <doc>
  20076. <![CDATA[Get the offset of the first byte in the byte array.
  20077. @return The offset of the first byte in the byte array.]]>
  20078. </doc>
  20079. </method>
  20080. <method name="size" return="int"
  20081. abstract="false" native="false" synchronized="false"
  20082. static="false" final="false" visibility="public"
  20083. deprecated="not deprecated">
  20084. <doc>
  20085. <![CDATA[Get the size of the byte range in the byte array.
  20086. @return The size of the byte range in the byte array.]]>
  20087. </doc>
  20088. </method>
  20089. <doc>
  20090. <![CDATA[Interface for objects that can be compared through {@link RawComparator}.
  20091. This is useful in places where we need a single object reference to specify a
  20092. range of bytes in a byte array, such as {@link Comparable} or
  20093. {@link Collections#binarySearch(java.util.List, Object, Comparator)}
  20094. The actual comparison among RawComparable's requires an external
  20095. RawComparator and it is applications' responsibility to ensure two
  20096. RawComparable are supposed to be semantically comparable with the same
  20097. RawComparator.]]>
  20098. </doc>
  20099. </interface>
  20100. <!-- end interface org.apache.hadoop.io.file.tfile.RawComparable -->
  20101. <!-- start class org.apache.hadoop.io.file.tfile.TFile -->
  20102. <class name="TFile" extends="java.lang.Object"
  20103. abstract="false"
  20104. static="false" final="false" visibility="public"
  20105. deprecated="not deprecated">
  20106. <method name="makeComparator" return="java.util.Comparator"
  20107. abstract="false" native="false" synchronized="false"
  20108. static="true" final="false" visibility="public"
  20109. deprecated="not deprecated">
  20110. <param name="name" type="java.lang.String"/>
  20111. <doc>
  20112. <![CDATA[Make a raw comparator from a string name.
  20113. @param name
  20114. Comparator name
  20115. @return A RawComparable comparator.]]>
  20116. </doc>
  20117. </method>
  20118. <method name="getSupportedCompressionAlgorithms" return="java.lang.String[]"
  20119. abstract="false" native="false" synchronized="false"
  20120. static="true" final="false" visibility="public"
  20121. deprecated="not deprecated">
  20122. <doc>
  20123. <![CDATA[Get names of supported compression algorithms. The names are acceptable by
  20124. TFile.Writer.
  20125. @return Array of strings, each represents a supported compression
  20126. algorithm. Currently, the following compression algorithms are
  20127. supported.
  20128. <ul>
  20129. <li>"none" - No compression.
  20130. <li>"lzo" - LZO compression.
  20131. <li>"gz" - GZIP compression.
  20132. </ul>]]>
  20133. </doc>
  20134. </method>
  20135. <method name="main"
  20136. abstract="false" native="false" synchronized="false"
  20137. static="true" final="false" visibility="public"
  20138. deprecated="not deprecated">
  20139. <param name="args" type="java.lang.String[]"/>
  20140. <doc>
  20141. <![CDATA[Dumping the TFile information.
  20142. @param args
  20143. A list of TFile paths.]]>
  20144. </doc>
  20145. </method>
  20146. <field name="COMPRESSION_GZ" type="java.lang.String"
  20147. transient="false" volatile="false"
  20148. static="true" final="true" visibility="public"
  20149. deprecated="not deprecated">
  20150. <doc>
  20151. <![CDATA[compression: gzip]]>
  20152. </doc>
  20153. </field>
  20154. <field name="COMPRESSION_LZO" type="java.lang.String"
  20155. transient="false" volatile="false"
  20156. static="true" final="true" visibility="public"
  20157. deprecated="not deprecated">
  20158. <doc>
  20159. <![CDATA[compression: lzo]]>
  20160. </doc>
  20161. </field>
  20162. <field name="COMPRESSION_NONE" type="java.lang.String"
  20163. transient="false" volatile="false"
  20164. static="true" final="true" visibility="public"
  20165. deprecated="not deprecated">
  20166. <doc>
  20167. <![CDATA[compression: none]]>
  20168. </doc>
  20169. </field>
  20170. <field name="COMPARATOR_MEMCMP" type="java.lang.String"
  20171. transient="false" volatile="false"
  20172. static="true" final="true" visibility="public"
  20173. deprecated="not deprecated">
  20174. <doc>
  20175. <![CDATA[comparator: memcmp]]>
  20176. </doc>
  20177. </field>
  20178. <field name="COMPARATOR_JCLASS" type="java.lang.String"
  20179. transient="false" volatile="false"
  20180. static="true" final="true" visibility="public"
  20181. deprecated="not deprecated">
  20182. <doc>
  20183. <![CDATA[comparator prefix: java class]]>
  20184. </doc>
  20185. </field>
  20186. <doc>
  20187. <![CDATA[A TFile is a container of key-value pairs. Both keys and values are type-less
  20188. bytes. Keys are restricted to 64KB, value length is not restricted
  20189. (practically limited to the available disk storage). TFile further provides
  20190. the following features:
  20191. <ul>
  20192. <li>Block Compression.
  20193. <li>Named meta data blocks.
  20194. <li>Sorted or unsorted keys.
  20195. <li>Seek by key or by file offset.
  20196. </ul>
  20197. The memory footprint of a TFile includes the following:
  20198. <ul>
  20199. <li>Some constant overhead of reading or writing a compressed block.
  20200. <ul>
  20201. <li>Each compressed block requires one compression/decompression codec for
  20202. I/O.
  20203. <li>Temporary space to buffer the key.
  20204. <li>Temporary space to buffer the value (for TFile.Writer only). Values are
  20205. chunk encoded, so that we buffer at most one chunk of user data. By default,
  20206. the chunk buffer is 1MB. Reading chunked value does not require additional
  20207. memory.
  20208. </ul>
  20209. <li>TFile index, which is proportional to the total number of Data Blocks.
  20210. The total amount of memory needed to hold the index can be estimated as
  20211. (56+AvgKeySize)*NumBlocks.
  20212. <li>MetaBlock index, which is proportional to the total number of Meta
  20213. Blocks.The total amount of memory needed to hold the index for Meta Blocks
  20214. can be estimated as (40+AvgMetaBlockName)*NumMetaBlock.
  20215. </ul>
  20216. <p>
  20217. The behavior of TFile can be customized by the following variables through
  20218. Configuration:
  20219. <ul>
  20220. <li><b>tfile.io.chunk.size</b>: Value chunk size. Integer (in bytes). Default
  20221. to 1MB. Values of the length less than the chunk size is guaranteed to have
  20222. known value length in read time (See
  20223. {@link TFile.Reader.Scanner.Entry#isValueLengthKnown()}).
  20224. <li><b>tfile.fs.output.buffer.size</b>: Buffer size used for
  20225. FSDataOutputStream. Integer (in bytes). Default to 256KB.
  20226. <li><b>tfile.fs.input.buffer.size</b>: Buffer size used for
  20227. FSDataInputStream. Integer (in bytes). Default to 256KB.
  20228. </ul>
  20229. <p>
  20230. Suggestions on performance optimization.
  20231. <ul>
  20232. <li>Minimum block size. We recommend a setting of minimum block size between
  20233. 256KB to 1MB for general usage. Larger block size is preferred if files are
  20234. primarily for sequential access. However, it would lead to inefficient random
  20235. access (because there are more data to decompress). Smaller blocks are good
  20236. for random access, but require more memory to hold the block index, and may
  20237. be slower to create (because we must flush the compressor stream at the
  20238. conclusion of each data block, which leads to an FS I/O flush). Further, due
  20239. to the internal caching in Compression codec, the smallest possible block
  20240. size would be around 20KB-30KB.
  20241. <li>The current implementation does not offer true multi-threading for
  20242. reading. The implementation uses FSDataInputStream seek()+read(), which is
  20243. shown to be much faster than positioned-read call in single thread mode.
  20244. However, it also means that if multiple threads attempt to access the same
  20245. TFile (using multiple scanners) simultaneously, the actual I/O is carried out
  20246. sequentially even if they access different DFS blocks.
  20247. <li>Compression codec. Use "none" if the data is not very compressable (by
  20248. compressable, I mean a compression ratio at least 2:1). Generally, use "lzo"
  20249. as the starting point for experimenting. "gz" overs slightly better
  20250. compression ratio over "lzo" but requires 4x CPU to compress and 2x CPU to
  20251. decompress, comparing to "lzo".
  20252. <li>File system buffering, if the underlying FSDataInputStream and
  20253. FSDataOutputStream is already adequately buffered; or if applications
  20254. reads/writes keys and values in large buffers, we can reduce the sizes of
  20255. input/output buffering in TFile layer by setting the configuration parameters
  20256. "tfile.fs.input.buffer.size" and "tfile.fs.output.buffer.size".
  20257. </ul>
  20258. Some design rationale behind TFile can be found at <a
  20259. href=https://issues.apache.org/jira/browse/HADOOP-3315>Hadoop-3315</a>.]]>
  20260. </doc>
  20261. </class>
  20262. <!-- end class org.apache.hadoop.io.file.tfile.TFile -->
  20263. <!-- start class org.apache.hadoop.io.file.tfile.TFile.Reader -->
  20264. <class name="TFile.Reader" extends="java.lang.Object"
  20265. abstract="false"
  20266. static="true" final="false" visibility="public"
  20267. deprecated="not deprecated">
  20268. <implements name="java.io.Closeable"/>
  20269. <constructor name="TFile.Reader" type="org.apache.hadoop.fs.FSDataInputStream, long, org.apache.hadoop.conf.Configuration"
  20270. static="false" final="false" visibility="public"
  20271. deprecated="not deprecated">
  20272. <exception name="IOException" type="java.io.IOException"/>
  20273. <doc>
  20274. <![CDATA[Constructor
  20275. @param fsdis
  20276. FS input stream of the TFile.
  20277. @param fileLength
  20278. The length of TFile. This is required because we have no easy
  20279. way of knowing the actual size of the input file through the
  20280. File input stream.
  20281. @param conf
  20282. @throws IOException]]>
  20283. </doc>
  20284. </constructor>
  20285. <method name="close"
  20286. abstract="false" native="false" synchronized="false"
  20287. static="false" final="false" visibility="public"
  20288. deprecated="not deprecated">
  20289. <exception name="IOException" type="java.io.IOException"/>
  20290. <doc>
  20291. <![CDATA[Close the reader. The state of the Reader object is undefined after
  20292. close. Calling close() for multiple times has no effect.]]>
  20293. </doc>
  20294. </method>
  20295. <method name="getComparatorName" return="java.lang.String"
  20296. abstract="false" native="false" synchronized="false"
  20297. static="false" final="false" visibility="public"
  20298. deprecated="not deprecated">
  20299. <doc>
  20300. <![CDATA[Get the string representation of the comparator.
  20301. @return If the TFile is not sorted by keys, an empty string will be
  20302. returned. Otherwise, the actual comparator string that is
  20303. provided during the TFile creation time will be returned.]]>
  20304. </doc>
  20305. </method>
  20306. <method name="isSorted" return="boolean"
  20307. abstract="false" native="false" synchronized="false"
  20308. static="false" final="false" visibility="public"
  20309. deprecated="not deprecated">
  20310. <doc>
  20311. <![CDATA[Is the TFile sorted?
  20312. @return true if TFile is sorted.]]>
  20313. </doc>
  20314. </method>
  20315. <method name="getEntryCount" return="long"
  20316. abstract="false" native="false" synchronized="false"
  20317. static="false" final="false" visibility="public"
  20318. deprecated="not deprecated">
  20319. <doc>
  20320. <![CDATA[Get the number of key-value pair entries in TFile.
  20321. @return the number of key-value pairs in TFile]]>
  20322. </doc>
  20323. </method>
  20324. <method name="getFirstKey" return="org.apache.hadoop.io.file.tfile.RawComparable"
  20325. abstract="false" native="false" synchronized="false"
  20326. static="false" final="false" visibility="public"
  20327. deprecated="not deprecated">
  20328. <exception name="IOException" type="java.io.IOException"/>
  20329. <doc>
  20330. <![CDATA[Get the first key in the TFile.
  20331. @return The first key in the TFile.
  20332. @throws IOException]]>
  20333. </doc>
  20334. </method>
  20335. <method name="getLastKey" return="org.apache.hadoop.io.file.tfile.RawComparable"
  20336. abstract="false" native="false" synchronized="false"
  20337. static="false" final="false" visibility="public"
  20338. deprecated="not deprecated">
  20339. <exception name="IOException" type="java.io.IOException"/>
  20340. <doc>
  20341. <![CDATA[Get the last key in the TFile.
  20342. @return The last key in the TFile.
  20343. @throws IOException]]>
  20344. </doc>
  20345. </method>
  20346. <method name="getEntryComparator" return="java.util.Comparator"
  20347. abstract="false" native="false" synchronized="false"
  20348. static="false" final="false" visibility="public"
  20349. deprecated="not deprecated">
  20350. <doc>
  20351. <![CDATA[Get a Comparator object to compare Entries. It is useful when you want
  20352. stores the entries in a collection (such as PriorityQueue) and perform
  20353. sorting or comparison among entries based on the keys without copying out
  20354. the key.
  20355. @return An Entry Comparator..]]>
  20356. </doc>
  20357. </method>
  20358. <method name="getComparator" return="java.util.Comparator"
  20359. abstract="false" native="false" synchronized="false"
  20360. static="false" final="false" visibility="public"
  20361. deprecated="not deprecated">
  20362. <doc>
  20363. <![CDATA[Get an instance of the RawComparator that is constructed based on the
  20364. string comparator representation.
  20365. @return a Comparator that can compare RawComparable's.]]>
  20366. </doc>
  20367. </method>
  20368. <method name="getMetaBlock" return="java.io.DataInputStream"
  20369. abstract="false" native="false" synchronized="false"
  20370. static="false" final="false" visibility="public"
  20371. deprecated="not deprecated">
  20372. <param name="name" type="java.lang.String"/>
  20373. <exception name="IOException" type="java.io.IOException"/>
  20374. <exception name="MetaBlockDoesNotExist" type="org.apache.hadoop.io.file.tfile.MetaBlockDoesNotExist"/>
  20375. <doc>
  20376. <![CDATA[Stream access to a meta block.``
  20377. @param name
  20378. The name of the meta block.
  20379. @return The input stream.
  20380. @throws IOException
  20381. on I/O error.
  20382. @throws MetaBlockDoesNotExist
  20383. If the meta block with the name does not exist.]]>
  20384. </doc>
  20385. </method>
  20386. <method name="getRecordNumNear" return="long"
  20387. abstract="false" native="false" synchronized="false"
  20388. static="false" final="false" visibility="public"
  20389. deprecated="not deprecated">
  20390. <param name="offset" type="long"/>
  20391. <exception name="IOException" type="java.io.IOException"/>
  20392. <doc>
  20393. <![CDATA[Get the RecordNum for the first key-value pair in a compressed block
  20394. whose byte offset in the TFile is greater than or equal to the specified
  20395. offset.
  20396. @param offset
  20397. the user supplied offset.
  20398. @return the RecordNum to the corresponding entry. If no such entry
  20399. exists, it returns the total entry count.
  20400. @throws IOException]]>
  20401. </doc>
  20402. </method>
  20403. <method name="getKeyNear" return="org.apache.hadoop.io.file.tfile.RawComparable"
  20404. abstract="false" native="false" synchronized="false"
  20405. static="false" final="false" visibility="public"
  20406. deprecated="not deprecated">
  20407. <param name="offset" type="long"/>
  20408. <exception name="IOException" type="java.io.IOException"/>
  20409. <doc>
  20410. <![CDATA[Get a sample key that is within a block whose starting offset is greater
  20411. than or equal to the specified offset.
  20412. @param offset
  20413. The file offset.
  20414. @return the key that fits the requirement; or null if no such key exists
  20415. (which could happen if the offset is close to the end of the
  20416. TFile).
  20417. @throws IOException]]>
  20418. </doc>
  20419. </method>
  20420. <method name="createScanner" return="org.apache.hadoop.io.file.tfile.TFile.Reader.Scanner"
  20421. abstract="false" native="false" synchronized="false"
  20422. static="false" final="false" visibility="public"
  20423. deprecated="not deprecated">
  20424. <exception name="IOException" type="java.io.IOException"/>
  20425. <doc>
  20426. <![CDATA[Get a scanner than can scan the whole TFile.
  20427. @return The scanner object. A valid Scanner is always returned even if
  20428. the TFile is empty.
  20429. @throws IOException]]>
  20430. </doc>
  20431. </method>
  20432. <method name="createScannerByByteRange" return="org.apache.hadoop.io.file.tfile.TFile.Reader.Scanner"
  20433. abstract="false" native="false" synchronized="false"
  20434. static="false" final="false" visibility="public"
  20435. deprecated="not deprecated">
  20436. <param name="offset" type="long"/>
  20437. <param name="length" type="long"/>
  20438. <exception name="IOException" type="java.io.IOException"/>
  20439. <doc>
  20440. <![CDATA[Get a scanner that covers a portion of TFile based on byte offsets.
  20441. @param offset
  20442. The beginning byte offset in the TFile.
  20443. @param length
  20444. The length of the region.
  20445. @return The actual coverage of the returned scanner tries to match the
  20446. specified byte-region but always round up to the compression
  20447. block boundaries. It is possible that the returned scanner
  20448. contains zero key-value pairs even if length is positive.
  20449. @throws IOException]]>
  20450. </doc>
  20451. </method>
  20452. <method name="createScanner" return="org.apache.hadoop.io.file.tfile.TFile.Reader.Scanner"
  20453. abstract="false" native="false" synchronized="false"
  20454. static="false" final="false" visibility="public"
  20455. deprecated="Use {@link #createScannerByKey(byte[], byte[])} instead.">
  20456. <param name="beginKey" type="byte[]"/>
  20457. <param name="endKey" type="byte[]"/>
  20458. <exception name="IOException" type="java.io.IOException"/>
  20459. <doc>
  20460. <![CDATA[Get a scanner that covers a portion of TFile based on keys.
  20461. @param beginKey
  20462. Begin key of the scan (inclusive). If null, scan from the first
  20463. key-value entry of the TFile.
  20464. @param endKey
  20465. End key of the scan (exclusive). If null, scan up to the last
  20466. key-value entry of the TFile.
  20467. @return The actual coverage of the returned scanner will cover all keys
  20468. greater than or equal to the beginKey and less than the endKey.
  20469. @throws IOException
  20470. @deprecated Use {@link #createScannerByKey(byte[], byte[])} instead.]]>
  20471. </doc>
  20472. </method>
  20473. <method name="createScannerByKey" return="org.apache.hadoop.io.file.tfile.TFile.Reader.Scanner"
  20474. abstract="false" native="false" synchronized="false"
  20475. static="false" final="false" visibility="public"
  20476. deprecated="not deprecated">
  20477. <param name="beginKey" type="byte[]"/>
  20478. <param name="endKey" type="byte[]"/>
  20479. <exception name="IOException" type="java.io.IOException"/>
  20480. <doc>
  20481. <![CDATA[Get a scanner that covers a portion of TFile based on keys.
  20482. @param beginKey
  20483. Begin key of the scan (inclusive). If null, scan from the first
  20484. key-value entry of the TFile.
  20485. @param endKey
  20486. End key of the scan (exclusive). If null, scan up to the last
  20487. key-value entry of the TFile.
  20488. @return The actual coverage of the returned scanner will cover all keys
  20489. greater than or equal to the beginKey and less than the endKey.
  20490. @throws IOException]]>
  20491. </doc>
  20492. </method>
  20493. <method name="createScanner" return="org.apache.hadoop.io.file.tfile.TFile.Reader.Scanner"
  20494. abstract="false" native="false" synchronized="false"
  20495. static="false" final="false" visibility="public"
  20496. deprecated="Use {@link #createScannerByKey(RawComparable, RawComparable)}
  20497. instead.">
  20498. <param name="beginKey" type="org.apache.hadoop.io.file.tfile.RawComparable"/>
  20499. <param name="endKey" type="org.apache.hadoop.io.file.tfile.RawComparable"/>
  20500. <exception name="IOException" type="java.io.IOException"/>
  20501. <doc>
  20502. <![CDATA[Get a scanner that covers a specific key range.
  20503. @param beginKey
  20504. Begin key of the scan (inclusive). If null, scan from the first
  20505. key-value entry of the TFile.
  20506. @param endKey
  20507. End key of the scan (exclusive). If null, scan up to the last
  20508. key-value entry of the TFile.
  20509. @return The actual coverage of the returned scanner will cover all keys
  20510. greater than or equal to the beginKey and less than the endKey.
  20511. @throws IOException
  20512. @deprecated Use {@link #createScannerByKey(RawComparable, RawComparable)}
  20513. instead.]]>
  20514. </doc>
  20515. </method>
  20516. <method name="createScannerByKey" return="org.apache.hadoop.io.file.tfile.TFile.Reader.Scanner"
  20517. abstract="false" native="false" synchronized="false"
  20518. static="false" final="false" visibility="public"
  20519. deprecated="not deprecated">
  20520. <param name="beginKey" type="org.apache.hadoop.io.file.tfile.RawComparable"/>
  20521. <param name="endKey" type="org.apache.hadoop.io.file.tfile.RawComparable"/>
  20522. <exception name="IOException" type="java.io.IOException"/>
  20523. <doc>
  20524. <![CDATA[Get a scanner that covers a specific key range.
  20525. @param beginKey
  20526. Begin key of the scan (inclusive). If null, scan from the first
  20527. key-value entry of the TFile.
  20528. @param endKey
  20529. End key of the scan (exclusive). If null, scan up to the last
  20530. key-value entry of the TFile.
  20531. @return The actual coverage of the returned scanner will cover all keys
  20532. greater than or equal to the beginKey and less than the endKey.
  20533. @throws IOException]]>
  20534. </doc>
  20535. </method>
  20536. <method name="createScannerByRecordNum" return="org.apache.hadoop.io.file.tfile.TFile.Reader.Scanner"
  20537. abstract="false" native="false" synchronized="false"
  20538. static="false" final="false" visibility="public"
  20539. deprecated="not deprecated">
  20540. <param name="beginRecNum" type="long"/>
  20541. <param name="endRecNum" type="long"/>
  20542. <exception name="IOException" type="java.io.IOException"/>
  20543. <doc>
  20544. <![CDATA[Create a scanner that covers a range of records.
  20545. @param beginRecNum
  20546. The RecordNum for the first record (inclusive).
  20547. @param endRecNum
  20548. The RecordNum for the last record (exclusive). To scan the whole
  20549. file, either specify endRecNum==-1 or endRecNum==getEntryCount().
  20550. @return The TFile scanner that covers the specified range of records.
  20551. @throws IOException]]>
  20552. </doc>
  20553. </method>
  20554. <doc>
  20555. <![CDATA[TFile Reader. Users may only read TFiles by creating TFile.Reader.Scanner.
  20556. objects. A scanner may scan the whole TFile ({@link Reader#createScanner()}
  20557. ) , a portion of TFile based on byte offsets (
  20558. {@link Reader#createScannerByByteRange(long, long)}), or a portion of TFile with keys
  20559. fall in a certain key range (for sorted TFile only,
  20560. {@link Reader#createScannerByKey(byte[], byte[])} or
  20561. {@link Reader#createScannerByKey(RawComparable, RawComparable)}).]]>
  20562. </doc>
  20563. </class>
  20564. <!-- end class org.apache.hadoop.io.file.tfile.TFile.Reader -->
  20565. <!-- start class org.apache.hadoop.io.file.tfile.TFile.Reader.Scanner -->
  20566. <class name="TFile.Reader.Scanner" extends="java.lang.Object"
  20567. abstract="false"
  20568. static="true" final="false" visibility="public"
  20569. deprecated="not deprecated">
  20570. <implements name="java.io.Closeable"/>
  20571. <constructor name="TFile.Reader.Scanner" type="org.apache.hadoop.io.file.tfile.TFile.Reader, long, long"
  20572. static="false" final="false" visibility="protected"
  20573. deprecated="not deprecated">
  20574. <exception name="IOException" type="java.io.IOException"/>
  20575. <doc>
  20576. <![CDATA[Constructor
  20577. @param reader
  20578. The TFile reader object.
  20579. @param offBegin
  20580. Begin byte-offset of the scan.
  20581. @param offEnd
  20582. End byte-offset of the scan.
  20583. @throws IOException
  20584. The offsets will be rounded to the beginning of a compressed
  20585. block whose offset is greater than or equal to the specified
  20586. offset.]]>
  20587. </doc>
  20588. </constructor>
  20589. <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"
  20590. static="false" final="false" visibility="protected"
  20591. deprecated="not deprecated">
  20592. <exception name="IOException" type="java.io.IOException"/>
  20593. <doc>
  20594. <![CDATA[Constructor
  20595. @param reader
  20596. The TFile reader object.
  20597. @param beginKey
  20598. Begin key of the scan. If null, scan from the first <K,V>
  20599. entry of the TFile.
  20600. @param endKey
  20601. End key of the scan. If null, scan up to the last <K, V> entry
  20602. of the TFile.
  20603. @throws IOException]]>
  20604. </doc>
  20605. </constructor>
  20606. <method name="seekTo" return="boolean"
  20607. abstract="false" native="false" synchronized="false"
  20608. static="false" final="false" visibility="public"
  20609. deprecated="not deprecated">
  20610. <param name="key" type="byte[]"/>
  20611. <exception name="IOException" type="java.io.IOException"/>
  20612. <doc>
  20613. <![CDATA[Move the cursor to the first entry whose key is greater than or equal
  20614. to the input key. Synonymous to seekTo(key, 0, key.length). The entry
  20615. returned by the previous entry() call will be invalid.
  20616. @param key
  20617. The input key
  20618. @return true if we find an equal key.
  20619. @throws IOException]]>
  20620. </doc>
  20621. </method>
  20622. <method name="seekTo" return="boolean"
  20623. abstract="false" native="false" synchronized="false"
  20624. static="false" final="false" visibility="public"
  20625. deprecated="not deprecated">
  20626. <param name="key" type="byte[]"/>
  20627. <param name="keyOffset" type="int"/>
  20628. <param name="keyLen" type="int"/>
  20629. <exception name="IOException" type="java.io.IOException"/>
  20630. <doc>
  20631. <![CDATA[Move the cursor to the first entry whose key is greater than or equal
  20632. to the input key. The entry returned by the previous entry() call will
  20633. be invalid.
  20634. @param key
  20635. The input key
  20636. @param keyOffset
  20637. offset in the key buffer.
  20638. @param keyLen
  20639. key buffer length.
  20640. @return true if we find an equal key; false otherwise.
  20641. @throws IOException]]>
  20642. </doc>
  20643. </method>
  20644. <method name="rewind"
  20645. abstract="false" native="false" synchronized="false"
  20646. static="false" final="false" visibility="public"
  20647. deprecated="not deprecated">
  20648. <exception name="IOException" type="java.io.IOException"/>
  20649. <doc>
  20650. <![CDATA[Rewind to the first entry in the scanner. The entry returned by the
  20651. previous entry() call will be invalid.
  20652. @throws IOException]]>
  20653. </doc>
  20654. </method>
  20655. <method name="seekToEnd"
  20656. abstract="false" native="false" synchronized="false"
  20657. static="false" final="false" visibility="public"
  20658. deprecated="not deprecated">
  20659. <exception name="IOException" type="java.io.IOException"/>
  20660. <doc>
  20661. <![CDATA[Seek to the end of the scanner. The entry returned by the previous
  20662. entry() call will be invalid.
  20663. @throws IOException]]>
  20664. </doc>
  20665. </method>
  20666. <method name="lowerBound"
  20667. abstract="false" native="false" synchronized="false"
  20668. static="false" final="false" visibility="public"
  20669. deprecated="not deprecated">
  20670. <param name="key" type="byte[]"/>
  20671. <exception name="IOException" type="java.io.IOException"/>
  20672. <doc>
  20673. <![CDATA[Move the cursor to the first entry whose key is greater than or equal
  20674. to the input key. Synonymous to lowerBound(key, 0, key.length). The
  20675. entry returned by the previous entry() call will be invalid.
  20676. @param key
  20677. The input key
  20678. @throws IOException]]>
  20679. </doc>
  20680. </method>
  20681. <method name="lowerBound"
  20682. abstract="false" native="false" synchronized="false"
  20683. static="false" final="false" visibility="public"
  20684. deprecated="not deprecated">
  20685. <param name="key" type="byte[]"/>
  20686. <param name="keyOffset" type="int"/>
  20687. <param name="keyLen" type="int"/>
  20688. <exception name="IOException" type="java.io.IOException"/>
  20689. <doc>
  20690. <![CDATA[Move the cursor to the first entry whose key is greater than or equal
  20691. to the input key. The entry returned by the previous entry() call will
  20692. be invalid.
  20693. @param key
  20694. The input key
  20695. @param keyOffset
  20696. offset in the key buffer.
  20697. @param keyLen
  20698. key buffer length.
  20699. @throws IOException]]>
  20700. </doc>
  20701. </method>
  20702. <method name="upperBound"
  20703. abstract="false" native="false" synchronized="false"
  20704. static="false" final="false" visibility="public"
  20705. deprecated="not deprecated">
  20706. <param name="key" type="byte[]"/>
  20707. <exception name="IOException" type="java.io.IOException"/>
  20708. <doc>
  20709. <![CDATA[Move the cursor to the first entry whose key is strictly greater than
  20710. the input key. Synonymous to upperBound(key, 0, key.length). The entry
  20711. returned by the previous entry() call will be invalid.
  20712. @param key
  20713. The input key
  20714. @throws IOException]]>
  20715. </doc>
  20716. </method>
  20717. <method name="upperBound"
  20718. abstract="false" native="false" synchronized="false"
  20719. static="false" final="false" visibility="public"
  20720. deprecated="not deprecated">
  20721. <param name="key" type="byte[]"/>
  20722. <param name="keyOffset" type="int"/>
  20723. <param name="keyLen" type="int"/>
  20724. <exception name="IOException" type="java.io.IOException"/>
  20725. <doc>
  20726. <![CDATA[Move the cursor to the first entry whose key is strictly greater than
  20727. the input key. The entry returned by the previous entry() call will be
  20728. invalid.
  20729. @param key
  20730. The input key
  20731. @param keyOffset
  20732. offset in the key buffer.
  20733. @param keyLen
  20734. key buffer length.
  20735. @throws IOException]]>
  20736. </doc>
  20737. </method>
  20738. <method name="advance" return="boolean"
  20739. abstract="false" native="false" synchronized="false"
  20740. static="false" final="false" visibility="public"
  20741. deprecated="not deprecated">
  20742. <exception name="IOException" type="java.io.IOException"/>
  20743. <doc>
  20744. <![CDATA[Move the cursor to the next key-value pair. The entry returned by the
  20745. previous entry() call will be invalid.
  20746. @return true if the cursor successfully moves. False when cursor is
  20747. already at the end location and cannot be advanced.
  20748. @throws IOException]]>
  20749. </doc>
  20750. </method>
  20751. <method name="close"
  20752. abstract="false" native="false" synchronized="false"
  20753. static="false" final="false" visibility="public"
  20754. deprecated="not deprecated">
  20755. <exception name="IOException" type="java.io.IOException"/>
  20756. <doc>
  20757. <![CDATA[Close the scanner. Release all resources. The behavior of using the
  20758. scanner after calling close is not defined. The entry returned by the
  20759. previous entry() call will be invalid.]]>
  20760. </doc>
  20761. </method>
  20762. <method name="atEnd" return="boolean"
  20763. abstract="false" native="false" synchronized="false"
  20764. static="false" final="false" visibility="public"
  20765. deprecated="not deprecated">
  20766. <doc>
  20767. <![CDATA[Is cursor at the end location?
  20768. @return true if the cursor is at the end location.]]>
  20769. </doc>
  20770. </method>
  20771. <method name="entry" return="org.apache.hadoop.io.file.tfile.TFile.Reader.Scanner.Entry"
  20772. abstract="false" native="false" synchronized="false"
  20773. static="false" final="false" visibility="public"
  20774. deprecated="not deprecated">
  20775. <exception name="IOException" type="java.io.IOException"/>
  20776. <doc>
  20777. <![CDATA[Get an entry to access the key and value.
  20778. @return The Entry object to access the key and value.
  20779. @throws IOException]]>
  20780. </doc>
  20781. </method>
  20782. <method name="getRecordNum" return="long"
  20783. abstract="false" native="false" synchronized="false"
  20784. static="false" final="false" visibility="public"
  20785. deprecated="not deprecated">
  20786. <exception name="IOException" type="java.io.IOException"/>
  20787. <doc>
  20788. <![CDATA[Get the RecordNum corresponding to the entry pointed by the cursor.
  20789. @return The RecordNum corresponding to the entry pointed by the cursor.
  20790. @throws IOException]]>
  20791. </doc>
  20792. </method>
  20793. <doc>
  20794. <![CDATA[The TFile Scanner. The Scanner has an implicit cursor, which, upon
  20795. creation, points to the first key-value pair in the scan range. If the
  20796. scan range is empty, the cursor will point to the end of the scan range.
  20797. <p>
  20798. Use {@link Scanner#atEnd()} to test whether the cursor is at the end
  20799. location of the scanner.
  20800. <p>
  20801. Use {@link Scanner#advance()} to move the cursor to the next key-value
  20802. pair (or end if none exists). Use seekTo methods (
  20803. {@link Scanner#seekTo(byte[])} or
  20804. {@link Scanner#seekTo(byte[], int, int)}) to seek to any arbitrary
  20805. location in the covered range (including backward seeking). Use
  20806. {@link Scanner#rewind()} to seek back to the beginning of the scanner.
  20807. Use {@link Scanner#seekToEnd()} to seek to the end of the scanner.
  20808. <p>
  20809. Actual keys and values may be obtained through {@link Scanner.Entry}
  20810. object, which is obtained through {@link Scanner#entry()}.]]>
  20811. </doc>
  20812. </class>
  20813. <!-- end class org.apache.hadoop.io.file.tfile.TFile.Reader.Scanner -->
  20814. <!-- start class org.apache.hadoop.io.file.tfile.TFile.Reader.Scanner.Entry -->
  20815. <class name="TFile.Reader.Scanner.Entry" extends="java.lang.Object"
  20816. abstract="false"
  20817. static="false" final="false" visibility="public"
  20818. deprecated="not deprecated">
  20819. <implements name="java.lang.Comparable"/>
  20820. <constructor name="TFile.Reader.Scanner.Entry"
  20821. static="false" final="false" visibility="public"
  20822. deprecated="not deprecated">
  20823. </constructor>
  20824. <method name="getKeyLength" return="int"
  20825. abstract="false" native="false" synchronized="false"
  20826. static="false" final="false" visibility="public"
  20827. deprecated="not deprecated">
  20828. <doc>
  20829. <![CDATA[Get the length of the key.
  20830. @return the length of the key.]]>
  20831. </doc>
  20832. </method>
  20833. <method name="get"
  20834. abstract="false" native="false" synchronized="false"
  20835. static="false" final="false" visibility="public"
  20836. deprecated="not deprecated">
  20837. <param name="key" type="org.apache.hadoop.io.BytesWritable"/>
  20838. <param name="value" type="org.apache.hadoop.io.BytesWritable"/>
  20839. <exception name="IOException" type="java.io.IOException"/>
  20840. <doc>
  20841. <![CDATA[Copy the key and value in one shot into BytesWritables. This is
  20842. equivalent to getKey(key); getValue(value);
  20843. @param key
  20844. BytesWritable to hold key.
  20845. @param value
  20846. BytesWritable to hold value
  20847. @throws IOException]]>
  20848. </doc>
  20849. </method>
  20850. <method name="getKey" return="int"
  20851. abstract="false" native="false" synchronized="false"
  20852. static="false" final="false" visibility="public"
  20853. deprecated="not deprecated">
  20854. <param name="key" type="org.apache.hadoop.io.BytesWritable"/>
  20855. <exception name="IOException" type="java.io.IOException"/>
  20856. <doc>
  20857. <![CDATA[Copy the key into BytesWritable. The input BytesWritable will be
  20858. automatically resized to the actual key size.
  20859. @param key
  20860. BytesWritable to hold the key.
  20861. @throws IOException]]>
  20862. </doc>
  20863. </method>
  20864. <method name="getValue" return="long"
  20865. abstract="false" native="false" synchronized="false"
  20866. static="false" final="false" visibility="public"
  20867. deprecated="not deprecated">
  20868. <param name="value" type="org.apache.hadoop.io.BytesWritable"/>
  20869. <exception name="IOException" type="java.io.IOException"/>
  20870. <doc>
  20871. <![CDATA[Copy the value into BytesWritable. The input BytesWritable will be
  20872. automatically resized to the actual value size. The implementation
  20873. directly uses the buffer inside BytesWritable for storing the value.
  20874. The call does not require the value length to be known.
  20875. @param value
  20876. @throws IOException]]>
  20877. </doc>
  20878. </method>
  20879. <method name="writeKey" return="int"
  20880. abstract="false" native="false" synchronized="false"
  20881. static="false" final="false" visibility="public"
  20882. deprecated="not deprecated">
  20883. <param name="out" type="java.io.OutputStream"/>
  20884. <exception name="IOException" type="java.io.IOException"/>
  20885. <doc>
  20886. <![CDATA[Writing the key to the output stream. This method avoids copying key
  20887. buffer from Scanner into user buffer, then writing to the output
  20888. stream.
  20889. @param out
  20890. The output stream
  20891. @return the length of the key.
  20892. @throws IOException]]>
  20893. </doc>
  20894. </method>
  20895. <method name="writeValue" return="long"
  20896. abstract="false" native="false" synchronized="false"
  20897. static="false" final="false" visibility="public"
  20898. deprecated="not deprecated">
  20899. <param name="out" type="java.io.OutputStream"/>
  20900. <exception name="IOException" type="java.io.IOException"/>
  20901. <doc>
  20902. <![CDATA[Writing the value to the output stream. This method avoids copying
  20903. value data from Scanner into user buffer, then writing to the output
  20904. stream. It does not require the value length to be known.
  20905. @param out
  20906. The output stream
  20907. @return the length of the value
  20908. @throws IOException]]>
  20909. </doc>
  20910. </method>
  20911. <method name="getKey" return="int"
  20912. abstract="false" native="false" synchronized="false"
  20913. static="false" final="false" visibility="public"
  20914. deprecated="not deprecated">
  20915. <param name="buf" type="byte[]"/>
  20916. <exception name="IOException" type="java.io.IOException"/>
  20917. <doc>
  20918. <![CDATA[Copy the key into user supplied buffer.
  20919. @param buf
  20920. The buffer supplied by user. The length of the buffer must
  20921. not be shorter than the key length.
  20922. @return The length of the key.
  20923. @throws IOException]]>
  20924. </doc>
  20925. </method>
  20926. <method name="getKey" return="int"
  20927. abstract="false" native="false" synchronized="false"
  20928. static="false" final="false" visibility="public"
  20929. deprecated="not deprecated">
  20930. <param name="buf" type="byte[]"/>
  20931. <param name="offset" type="int"/>
  20932. <exception name="IOException" type="java.io.IOException"/>
  20933. <doc>
  20934. <![CDATA[Copy the key into user supplied buffer.
  20935. @param buf
  20936. The buffer supplied by user.
  20937. @param offset
  20938. The starting offset of the user buffer where we should copy
  20939. the key into. Requiring the key-length + offset no greater
  20940. than the buffer length.
  20941. @return The length of the key.
  20942. @throws IOException]]>
  20943. </doc>
  20944. </method>
  20945. <method name="getKeyStream" return="java.io.DataInputStream"
  20946. abstract="false" native="false" synchronized="false"
  20947. static="false" final="false" visibility="public"
  20948. deprecated="not deprecated">
  20949. <doc>
  20950. <![CDATA[Streaming access to the key. Useful for desrializing the key into
  20951. user objects.
  20952. @return The input stream.]]>
  20953. </doc>
  20954. </method>
  20955. <method name="getValueLength" return="int"
  20956. abstract="false" native="false" synchronized="false"
  20957. static="false" final="false" visibility="public"
  20958. deprecated="not deprecated">
  20959. <doc>
  20960. <![CDATA[Get the length of the value. isValueLengthKnown() must be tested
  20961. true.
  20962. @return the length of the value.]]>
  20963. </doc>
  20964. </method>
  20965. <method name="getValue" return="int"
  20966. abstract="false" native="false" synchronized="false"
  20967. static="false" final="false" visibility="public"
  20968. deprecated="not deprecated">
  20969. <param name="buf" type="byte[]"/>
  20970. <exception name="IOException" type="java.io.IOException"/>
  20971. <doc>
  20972. <![CDATA[Copy value into user-supplied buffer. User supplied buffer must be
  20973. large enough to hold the whole value. The value part of the key-value
  20974. pair pointed by the current cursor is not cached and can only be
  20975. examined once. Calling any of the following functions more than once
  20976. without moving the cursor will result in exception:
  20977. {@link #getValue(byte[])}, {@link #getValue(byte[], int)},
  20978. {@link #getValueStream}.
  20979. @return the length of the value. Does not require
  20980. isValueLengthKnown() to be true.
  20981. @throws IOException]]>
  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. <param name="offset" type="int"/>
  20990. <exception name="IOException" type="java.io.IOException"/>
  20991. <doc>
  20992. <![CDATA[Copy value into user-supplied buffer. User supplied buffer must be
  20993. large enough to hold the whole value (starting from the offset). The
  20994. value part of the key-value pair pointed by the current cursor is not
  20995. cached and can only be examined once. Calling any of the following
  20996. functions more than once without moving the cursor will result in
  20997. exception: {@link #getValue(byte[])}, {@link #getValue(byte[], int)},
  20998. {@link #getValueStream}.
  20999. @return the length of the value. Does not require
  21000. isValueLengthKnown() to be true.
  21001. @throws IOException]]>
  21002. </doc>
  21003. </method>
  21004. <method name="getValueStream" return="java.io.DataInputStream"
  21005. abstract="false" native="false" synchronized="false"
  21006. static="false" final="false" visibility="public"
  21007. deprecated="not deprecated">
  21008. <exception name="IOException" type="java.io.IOException"/>
  21009. <doc>
  21010. <![CDATA[Stream access to value. The value part of the key-value pair pointed
  21011. by the current cursor is not cached and can only be examined once.
  21012. Calling any of the following functions more than once without moving
  21013. the cursor will result in exception: {@link #getValue(byte[])},
  21014. {@link #getValue(byte[], int)}, {@link #getValueStream}.
  21015. @return The input stream for reading the value.
  21016. @throws IOException]]>
  21017. </doc>
  21018. </method>
  21019. <method name="isValueLengthKnown" return="boolean"
  21020. abstract="false" native="false" synchronized="false"
  21021. static="false" final="false" visibility="public"
  21022. deprecated="not deprecated">
  21023. <doc>
  21024. <![CDATA[Check whether it is safe to call getValueLength().
  21025. @return true if value length is known before hand. Values less than
  21026. the chunk size will always have their lengths known before
  21027. hand. Values that are written out as a whole (with advertised
  21028. length up-front) will always have their lengths known in
  21029. read.]]>
  21030. </doc>
  21031. </method>
  21032. <method name="compareTo" return="int"
  21033. abstract="false" native="false" synchronized="false"
  21034. static="false" final="false" visibility="public"
  21035. deprecated="not deprecated">
  21036. <param name="buf" type="byte[]"/>
  21037. <doc>
  21038. <![CDATA[Compare the entry key to another key. Synonymous to compareTo(key, 0,
  21039. key.length).
  21040. @param buf
  21041. The key buffer.
  21042. @return comparison result between the entry key with the input key.]]>
  21043. </doc>
  21044. </method>
  21045. <method name="compareTo" return="int"
  21046. abstract="false" native="false" synchronized="false"
  21047. static="false" final="false" visibility="public"
  21048. deprecated="not deprecated">
  21049. <param name="buf" type="byte[]"/>
  21050. <param name="offset" type="int"/>
  21051. <param name="length" type="int"/>
  21052. <doc>
  21053. <![CDATA[Compare the entry key to another key. Synonymous to compareTo(new
  21054. ByteArray(buf, offset, length)
  21055. @param buf
  21056. The key buffer
  21057. @param offset
  21058. offset into the key buffer.
  21059. @param length
  21060. the length of the key.
  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="key" type="org.apache.hadoop.io.file.tfile.RawComparable"/>
  21069. <doc>
  21070. <![CDATA[Compare an entry with a RawComparable object. This is useful when
  21071. Entries are stored in a collection, and we want to compare a user
  21072. supplied key.]]>
  21073. </doc>
  21074. </method>
  21075. <method name="equals" return="boolean"
  21076. abstract="false" native="false" synchronized="false"
  21077. static="false" final="false" visibility="public"
  21078. deprecated="not deprecated">
  21079. <param name="other" type="java.lang.Object"/>
  21080. <doc>
  21081. <![CDATA[Compare whether this and other points to the same key value.]]>
  21082. </doc>
  21083. </method>
  21084. <method name="hashCode" return="int"
  21085. abstract="false" native="false" synchronized="false"
  21086. static="false" final="false" visibility="public"
  21087. deprecated="not deprecated">
  21088. </method>
  21089. <doc>
  21090. <![CDATA[Entry to a &lt;Key, Value&gt; pair.]]>
  21091. </doc>
  21092. </class>
  21093. <!-- end class org.apache.hadoop.io.file.tfile.TFile.Reader.Scanner.Entry -->
  21094. <!-- start class org.apache.hadoop.io.file.tfile.TFile.Writer -->
  21095. <class name="TFile.Writer" extends="java.lang.Object"
  21096. abstract="false"
  21097. static="true" final="false" visibility="public"
  21098. deprecated="not deprecated">
  21099. <implements name="java.io.Closeable"/>
  21100. <constructor name="TFile.Writer" type="org.apache.hadoop.fs.FSDataOutputStream, int, java.lang.String, java.lang.String, org.apache.hadoop.conf.Configuration"
  21101. static="false" final="false" visibility="public"
  21102. deprecated="not deprecated">
  21103. <exception name="IOException" type="java.io.IOException"/>
  21104. <doc>
  21105. <![CDATA[Constructor
  21106. @param fsdos
  21107. output stream for writing. Must be at position 0.
  21108. @param minBlockSize
  21109. Minimum compressed block size in bytes. A compression block will
  21110. not be closed until it reaches this size except for the last
  21111. block.
  21112. @param compressName
  21113. Name of the compression algorithm. Must be one of the strings
  21114. returned by {@link TFile#getSupportedCompressionAlgorithms()}.
  21115. @param comparator
  21116. Leave comparator as null or empty string if TFile is not sorted.
  21117. Otherwise, provide the string name for the comparison algorithm
  21118. for keys. Two kinds of comparators are supported.
  21119. <ul>
  21120. <li>Algorithmic comparator: binary comparators that is language
  21121. independent. Currently, only "memcmp" is supported.
  21122. <li>Language-specific comparator: binary comparators that can
  21123. only be constructed in specific language. For Java, the syntax
  21124. is "jclass:", followed by the class name of the RawComparator.
  21125. Currently, we only support RawComparators that can be
  21126. constructed through the default constructor (with no
  21127. parameters). Parameterized RawComparators such as
  21128. {@link WritableComparator} or
  21129. {@link JavaSerializationComparator} may not be directly used.
  21130. One should write a wrapper class that inherits from such classes
  21131. and use its default constructor to perform proper
  21132. initialization.
  21133. </ul>
  21134. @param conf
  21135. The configuration object.
  21136. @throws IOException]]>
  21137. </doc>
  21138. </constructor>
  21139. <method name="close"
  21140. abstract="false" native="false" synchronized="false"
  21141. static="false" final="false" visibility="public"
  21142. deprecated="not deprecated">
  21143. <exception name="IOException" type="java.io.IOException"/>
  21144. <doc>
  21145. <![CDATA[Close the Writer. Resources will be released regardless of the exceptions
  21146. being thrown. Future close calls will have no effect.
  21147. The underlying FSDataOutputStream is not closed.]]>
  21148. </doc>
  21149. </method>
  21150. <method name="append"
  21151. abstract="false" native="false" synchronized="false"
  21152. static="false" final="false" visibility="public"
  21153. deprecated="not deprecated">
  21154. <param name="key" type="byte[]"/>
  21155. <param name="value" type="byte[]"/>
  21156. <exception name="IOException" type="java.io.IOException"/>
  21157. <doc>
  21158. <![CDATA[Adding a new key-value pair to the TFile. This is synonymous to
  21159. append(key, 0, key.length, value, 0, value.length)
  21160. @param key
  21161. Buffer for key.
  21162. @param value
  21163. Buffer for value.
  21164. @throws IOException]]>
  21165. </doc>
  21166. </method>
  21167. <method name="append"
  21168. abstract="false" native="false" synchronized="false"
  21169. static="false" final="false" visibility="public"
  21170. deprecated="not deprecated">
  21171. <param name="key" type="byte[]"/>
  21172. <param name="koff" type="int"/>
  21173. <param name="klen" type="int"/>
  21174. <param name="value" type="byte[]"/>
  21175. <param name="voff" type="int"/>
  21176. <param name="vlen" type="int"/>
  21177. <exception name="IOException" type="java.io.IOException"/>
  21178. <doc>
  21179. <![CDATA[Adding a new key-value pair to TFile.
  21180. @param key
  21181. buffer for key.
  21182. @param koff
  21183. offset in key buffer.
  21184. @param klen
  21185. length of key.
  21186. @param value
  21187. buffer for value.
  21188. @param voff
  21189. offset in value buffer.
  21190. @param vlen
  21191. length of value.
  21192. @throws IOException
  21193. Upon IO errors.
  21194. <p>
  21195. If an exception is thrown, the TFile will be in an inconsistent
  21196. state. The only legitimate call after that would be close]]>
  21197. </doc>
  21198. </method>
  21199. <method name="prepareAppendKey" return="java.io.DataOutputStream"
  21200. abstract="false" native="false" synchronized="false"
  21201. static="false" final="false" visibility="public"
  21202. deprecated="not deprecated">
  21203. <param name="length" type="int"/>
  21204. <exception name="IOException" type="java.io.IOException"/>
  21205. <doc>
  21206. <![CDATA[Obtain an output stream for writing a key into TFile. This may only be
  21207. called when there is no active Key appending stream or value appending
  21208. stream.
  21209. @param length
  21210. The expected length of the key. If length of the key is not
  21211. known, set length = -1. Otherwise, the application must write
  21212. exactly as many bytes as specified here before calling close on
  21213. the returned output stream.
  21214. @return The key appending output stream.
  21215. @throws IOException]]>
  21216. </doc>
  21217. </method>
  21218. <method name="prepareAppendValue" 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 value into TFile. This may only be
  21226. called right after a key appending operation (the key append stream must
  21227. be closed).
  21228. @param length
  21229. The expected length of the value. If length of the value 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. Advertising the value size up-front
  21233. guarantees that the value is encoded in one chunk, and avoids
  21234. intermediate chunk buffering.
  21235. @throws IOException]]>
  21236. </doc>
  21237. </method>
  21238. <method name="prepareMetaBlock" return="java.io.DataOutputStream"
  21239. abstract="false" native="false" synchronized="false"
  21240. static="false" final="false" visibility="public"
  21241. deprecated="not deprecated">
  21242. <param name="name" type="java.lang.String"/>
  21243. <param name="compressName" type="java.lang.String"/>
  21244. <exception name="IOException" type="java.io.IOException"/>
  21245. <exception name="MetaBlockAlreadyExists" type="org.apache.hadoop.io.file.tfile.MetaBlockAlreadyExists"/>
  21246. <doc>
  21247. <![CDATA[Obtain an output stream for creating a meta block. This function may not
  21248. be called when there is a key append stream or value append stream
  21249. active. No more key-value insertion is allowed after a meta data block
  21250. has been added to TFile.
  21251. @param name
  21252. Name of the meta block.
  21253. @param compressName
  21254. Name of the compression algorithm to be used. Must be one of the
  21255. strings returned by
  21256. {@link TFile#getSupportedCompressionAlgorithms()}.
  21257. @return A DataOutputStream that can be used to write Meta Block data.
  21258. Closing the stream would signal the ending of the block.
  21259. @throws IOException
  21260. @throws MetaBlockAlreadyExists
  21261. the Meta Block with the same name already exists.]]>
  21262. </doc>
  21263. </method>
  21264. <method name="prepareMetaBlock" return="java.io.DataOutputStream"
  21265. abstract="false" native="false" synchronized="false"
  21266. static="false" final="false" visibility="public"
  21267. deprecated="not deprecated">
  21268. <param name="name" type="java.lang.String"/>
  21269. <exception name="IOException" type="java.io.IOException"/>
  21270. <exception name="MetaBlockAlreadyExists" type="org.apache.hadoop.io.file.tfile.MetaBlockAlreadyExists"/>
  21271. <doc>
  21272. <![CDATA[Obtain an output stream for creating a meta block. This function may not
  21273. be called when there is a key append stream or value append stream
  21274. active. No more key-value insertion is allowed after a meta data block
  21275. has been added to TFile. Data will be compressed using the default
  21276. compressor as defined in Writer's constructor.
  21277. @param name
  21278. Name of the meta block.
  21279. @return A DataOutputStream that can be used to write Meta Block data.
  21280. Closing the stream would signal the ending of the block.
  21281. @throws IOException
  21282. @throws MetaBlockAlreadyExists
  21283. the Meta Block with the same name already exists.]]>
  21284. </doc>
  21285. </method>
  21286. <doc>
  21287. <![CDATA[TFile Writer.]]>
  21288. </doc>
  21289. </class>
  21290. <!-- end class org.apache.hadoop.io.file.tfile.TFile.Writer -->
  21291. <!-- start class org.apache.hadoop.io.file.tfile.Utils -->
  21292. <class name="Utils" extends="java.lang.Object"
  21293. abstract="false"
  21294. static="false" final="true" visibility="public"
  21295. deprecated="not deprecated">
  21296. <method name="writeVInt"
  21297. abstract="false" native="false" synchronized="false"
  21298. static="true" final="false" visibility="public"
  21299. deprecated="not deprecated">
  21300. <param name="out" type="java.io.DataOutput"/>
  21301. <param name="n" type="int"/>
  21302. <exception name="IOException" type="java.io.IOException"/>
  21303. <doc>
  21304. <![CDATA[Encoding an integer into a variable-length encoding format. Synonymous to
  21305. <code>Utils#writeVLong(out, n)</code>.
  21306. @param out
  21307. output stream
  21308. @param n
  21309. The integer to be encoded
  21310. @throws IOException
  21311. @see Utils#writeVLong(DataOutput, long)]]>
  21312. </doc>
  21313. </method>
  21314. <method name="writeVLong"
  21315. abstract="false" native="false" synchronized="false"
  21316. static="true" final="false" visibility="public"
  21317. deprecated="not deprecated">
  21318. <param name="out" type="java.io.DataOutput"/>
  21319. <param name="n" type="long"/>
  21320. <exception name="IOException" type="java.io.IOException"/>
  21321. <doc>
  21322. <![CDATA[Encoding a Long integer into a variable-length encoding format.
  21323. <ul>
  21324. <li>if n in [-32, 127): encode in one byte with the actual value.
  21325. Otherwise,
  21326. <li>if n in [-20*2^8, 20*2^8): encode in two bytes: byte[0] = n/256 - 52;
  21327. byte[1]=n&0xff. Otherwise,
  21328. <li>if n IN [-16*2^16, 16*2^16): encode in three bytes: byte[0]=n/2^16 -
  21329. 88; byte[1]=(n>>8)&0xff; byte[2]=n&0xff. Otherwise,
  21330. <li>if n in [-8*2^24, 8*2^24): encode in four bytes: byte[0]=n/2^24 - 112;
  21331. byte[1] = (n>>16)&0xff; byte[2] = (n>>8)&0xff; byte[3]=n&0xff. Otherwise:
  21332. <li>if n in [-2^31, 2^31): encode in five bytes: byte[0]=-125; byte[1] =
  21333. (n>>24)&0xff; byte[2]=(n>>16)&0xff; byte[3]=(n>>8)&0xff; byte[4]=n&0xff;
  21334. <li>if n in [-2^39, 2^39): encode in six bytes: byte[0]=-124; byte[1] =
  21335. (n>>32)&0xff; byte[2]=(n>>24)&0xff; byte[3]=(n>>16)&0xff;
  21336. byte[4]=(n>>8)&0xff; byte[5]=n&0xff
  21337. <li>if n in [-2^47, 2^47): encode in seven bytes: byte[0]=-123; byte[1] =
  21338. (n>>40)&0xff; byte[2]=(n>>32)&0xff; byte[3]=(n>>24)&0xff;
  21339. byte[4]=(n>>16)&0xff; byte[5]=(n>>8)&0xff; byte[6]=n&0xff;
  21340. <li>if n in [-2^55, 2^55): encode in eight bytes: byte[0]=-122; byte[1] =
  21341. (n>>48)&0xff; byte[2] = (n>>40)&0xff; byte[3]=(n>>32)&0xff;
  21342. byte[4]=(n>>24)&0xff; byte[5]=(n>>16)&0xff; byte[6]=(n>>8)&0xff;
  21343. byte[7]=n&0xff;
  21344. <li>if n in [-2^63, 2^63): encode in nine bytes: byte[0]=-121; byte[1] =
  21345. (n>>54)&0xff; byte[2] = (n>>48)&0xff; byte[3] = (n>>40)&0xff;
  21346. byte[4]=(n>>32)&0xff; byte[5]=(n>>24)&0xff; byte[6]=(n>>16)&0xff;
  21347. byte[7]=(n>>8)&0xff; byte[8]=n&0xff;
  21348. </ul>
  21349. @param out
  21350. output stream
  21351. @param n
  21352. the integer number
  21353. @throws IOException]]>
  21354. </doc>
  21355. </method>
  21356. <method name="readVInt" return="int"
  21357. abstract="false" native="false" synchronized="false"
  21358. static="true" final="false" visibility="public"
  21359. deprecated="not deprecated">
  21360. <param name="in" type="java.io.DataInput"/>
  21361. <exception name="IOException" type="java.io.IOException"/>
  21362. <doc>
  21363. <![CDATA[Decoding the variable-length integer. Synonymous to
  21364. <code>(int)Utils#readVLong(in)</code>.
  21365. @param in
  21366. input stream
  21367. @return the decoded integer
  21368. @throws IOException
  21369. @see Utils#readVLong(DataInput)]]>
  21370. </doc>
  21371. </method>
  21372. <method name="readVLong" return="long"
  21373. abstract="false" native="false" synchronized="false"
  21374. static="true" final="false" visibility="public"
  21375. deprecated="not deprecated">
  21376. <param name="in" type="java.io.DataInput"/>
  21377. <exception name="IOException" type="java.io.IOException"/>
  21378. <doc>
  21379. <![CDATA[Decoding the variable-length integer. Suppose the value of the first byte
  21380. is FB, and the following bytes are NB[*].
  21381. <ul>
  21382. <li>if (FB >= -32), return (long)FB;
  21383. <li>if (FB in [-72, -33]), return (FB+52)<<8 + NB[0]&0xff;
  21384. <li>if (FB in [-104, -73]), return (FB+88)<<16 + (NB[0]&0xff)<<8 +
  21385. NB[1]&0xff;
  21386. <li>if (FB in [-120, -105]), return (FB+112)<<24 + (NB[0]&0xff)<<16 +
  21387. (NB[1]&0xff)<<8 + NB[2]&0xff;
  21388. <li>if (FB in [-128, -121]), return interpret NB[FB+129] as a signed
  21389. big-endian integer.
  21390. @param in
  21391. input stream
  21392. @return the decoded long integer.
  21393. @throws IOException]]>
  21394. </doc>
  21395. </method>
  21396. <method name="writeString"
  21397. abstract="false" native="false" synchronized="false"
  21398. static="true" final="false" visibility="public"
  21399. deprecated="not deprecated">
  21400. <param name="out" type="java.io.DataOutput"/>
  21401. <param name="s" type="java.lang.String"/>
  21402. <exception name="IOException" type="java.io.IOException"/>
  21403. <doc>
  21404. <![CDATA[Write a String as a VInt n, followed by n Bytes as in Text format.
  21405. @param out
  21406. @param s
  21407. @throws IOException]]>
  21408. </doc>
  21409. </method>
  21410. <method name="readString" return="java.lang.String"
  21411. abstract="false" native="false" synchronized="false"
  21412. static="true" final="false" visibility="public"
  21413. deprecated="not deprecated">
  21414. <param name="in" type="java.io.DataInput"/>
  21415. <exception name="IOException" type="java.io.IOException"/>
  21416. <doc>
  21417. <![CDATA[Read a String as a VInt n, followed by n Bytes in Text format.
  21418. @param in
  21419. The input stream.
  21420. @return The string
  21421. @throws IOException]]>
  21422. </doc>
  21423. </method>
  21424. <method name="lowerBound" return="int"
  21425. abstract="false" native="false" synchronized="false"
  21426. static="true" final="false" visibility="public"
  21427. deprecated="not deprecated">
  21428. <param name="list" type="java.util.List"/>
  21429. <param name="key" type="java.lang.Object"/>
  21430. <param name="cmp" type="java.util.Comparator"/>
  21431. <doc>
  21432. <![CDATA[Lower bound binary search. Find the index to the first element in the list
  21433. that compares greater than or equal to key.
  21434. @param <T>
  21435. Type of the input key.
  21436. @param list
  21437. The list
  21438. @param key
  21439. The input key.
  21440. @param cmp
  21441. Comparator for the key.
  21442. @return The index to the desired element if it exists; or list.size()
  21443. otherwise.]]>
  21444. </doc>
  21445. </method>
  21446. <method name="upperBound" return="int"
  21447. abstract="false" native="false" synchronized="false"
  21448. static="true" final="false" visibility="public"
  21449. deprecated="not deprecated">
  21450. <param name="list" type="java.util.List"/>
  21451. <param name="key" type="java.lang.Object"/>
  21452. <param name="cmp" type="java.util.Comparator"/>
  21453. <doc>
  21454. <![CDATA[Upper bound binary search. Find the index to the first element in the list
  21455. that compares greater than the input key.
  21456. @param <T>
  21457. Type of the input key.
  21458. @param list
  21459. The list
  21460. @param key
  21461. The input key.
  21462. @param cmp
  21463. Comparator for the key.
  21464. @return The index to the desired element if it exists; or list.size()
  21465. otherwise.]]>
  21466. </doc>
  21467. </method>
  21468. <method name="lowerBound" return="int"
  21469. abstract="false" native="false" synchronized="false"
  21470. static="true" final="false" visibility="public"
  21471. deprecated="not deprecated">
  21472. <param name="list" type="java.util.List"/>
  21473. <param name="key" type="java.lang.Object"/>
  21474. <doc>
  21475. <![CDATA[Lower bound binary search. Find the index to the first element in the list
  21476. that compares greater than or equal to key.
  21477. @param <T>
  21478. Type of the input key.
  21479. @param list
  21480. The list
  21481. @param key
  21482. The input key.
  21483. @return The index to the desired element if it exists; or list.size()
  21484. otherwise.]]>
  21485. </doc>
  21486. </method>
  21487. <method name="upperBound" 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[Upper bound binary search. Find the index to the first element in the list
  21495. that compares greater than the input 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. <doc>
  21507. <![CDATA[Supporting Utility classes used by TFile, and shared by users of TFile.]]>
  21508. </doc>
  21509. </class>
  21510. <!-- end class org.apache.hadoop.io.file.tfile.Utils -->
  21511. <!-- start class org.apache.hadoop.io.file.tfile.Utils.Version -->
  21512. <class name="Utils.Version" extends="java.lang.Object"
  21513. abstract="false"
  21514. static="true" final="true" visibility="public"
  21515. deprecated="not deprecated">
  21516. <implements name="java.lang.Comparable"/>
  21517. <constructor name="Utils.Version" type="java.io.DataInput"
  21518. static="false" final="false" visibility="public"
  21519. deprecated="not deprecated">
  21520. <exception name="IOException" type="java.io.IOException"/>
  21521. <doc>
  21522. <![CDATA[Construct the Version object by reading from the input stream.
  21523. @param in
  21524. input stream
  21525. @throws IOException]]>
  21526. </doc>
  21527. </constructor>
  21528. <constructor name="Utils.Version" type="short, short"
  21529. static="false" final="false" visibility="public"
  21530. deprecated="not deprecated">
  21531. <doc>
  21532. <![CDATA[Constructor.
  21533. @param major
  21534. major version.
  21535. @param minor
  21536. minor version.]]>
  21537. </doc>
  21538. </constructor>
  21539. <method name="write"
  21540. abstract="false" native="false" synchronized="false"
  21541. static="false" final="false" visibility="public"
  21542. deprecated="not deprecated">
  21543. <param name="out" type="java.io.DataOutput"/>
  21544. <exception name="IOException" type="java.io.IOException"/>
  21545. <doc>
  21546. <![CDATA[Write the objec to a DataOutput. The serialized format of the Version is
  21547. major version followed by minor version, both as big-endian short
  21548. integers.
  21549. @param out
  21550. The DataOutput object.
  21551. @throws IOException]]>
  21552. </doc>
  21553. </method>
  21554. <method name="getMajor" return="int"
  21555. abstract="false" native="false" synchronized="false"
  21556. static="false" final="false" visibility="public"
  21557. deprecated="not deprecated">
  21558. <doc>
  21559. <![CDATA[Get the major version.
  21560. @return Major version.]]>
  21561. </doc>
  21562. </method>
  21563. <method name="getMinor" return="int"
  21564. abstract="false" native="false" synchronized="false"
  21565. static="false" final="false" visibility="public"
  21566. deprecated="not deprecated">
  21567. <doc>
  21568. <![CDATA[Get the minor version.
  21569. @return The minor version.]]>
  21570. </doc>
  21571. </method>
  21572. <method name="size" return="int"
  21573. abstract="false" native="false" synchronized="false"
  21574. static="true" final="false" visibility="public"
  21575. deprecated="not deprecated">
  21576. <doc>
  21577. <![CDATA[Get the size of the serialized Version object.
  21578. @return serialized size of the version object.]]>
  21579. </doc>
  21580. </method>
  21581. <method name="toString" return="java.lang.String"
  21582. abstract="false" native="false" synchronized="false"
  21583. static="false" final="false" visibility="public"
  21584. deprecated="not deprecated">
  21585. <doc>
  21586. <![CDATA[Return a string representation of the version.]]>
  21587. </doc>
  21588. </method>
  21589. <method name="compatibleWith" return="boolean"
  21590. abstract="false" native="false" synchronized="false"
  21591. static="false" final="false" visibility="public"
  21592. deprecated="not deprecated">
  21593. <param name="other" type="org.apache.hadoop.io.file.tfile.Utils.Version"/>
  21594. <doc>
  21595. <![CDATA[Test compatibility.
  21596. @param other
  21597. The Version object to test compatibility with.
  21598. @return true if both versions have the same major version number; false
  21599. otherwise.]]>
  21600. </doc>
  21601. </method>
  21602. <method name="compareTo" return="int"
  21603. abstract="false" native="false" synchronized="false"
  21604. static="false" final="false" visibility="public"
  21605. deprecated="not deprecated">
  21606. <param name="that" type="org.apache.hadoop.io.file.tfile.Utils.Version"/>
  21607. <doc>
  21608. <![CDATA[Compare this version with another version.]]>
  21609. </doc>
  21610. </method>
  21611. <method name="equals" return="boolean"
  21612. abstract="false" native="false" synchronized="false"
  21613. static="false" final="false" visibility="public"
  21614. deprecated="not deprecated">
  21615. <param name="other" type="java.lang.Object"/>
  21616. </method>
  21617. <method name="hashCode" return="int"
  21618. abstract="false" native="false" synchronized="false"
  21619. static="false" final="false" visibility="public"
  21620. deprecated="not deprecated">
  21621. </method>
  21622. <doc>
  21623. <![CDATA[A generic Version class. We suggest applications built on top of TFile use
  21624. this class to maintain version information in their meta blocks.
  21625. A version number consists of a major version and a minor version. The
  21626. suggested usage of major and minor version number is to increment major
  21627. version number when the new storage format is not backward compatible, and
  21628. increment the minor version otherwise.]]>
  21629. </doc>
  21630. </class>
  21631. <!-- end class org.apache.hadoop.io.file.tfile.Utils.Version -->
  21632. </package>
  21633. <package name="org.apache.hadoop.io.nativeio">
  21634. <!-- start class org.apache.hadoop.io.nativeio.Errno -->
  21635. <class name="Errno" extends="java.lang.Enum"
  21636. abstract="false"
  21637. static="false" final="true" visibility="public"
  21638. deprecated="not deprecated">
  21639. <method name="values" return="org.apache.hadoop.io.nativeio.Errno[]"
  21640. abstract="false" native="false" synchronized="false"
  21641. static="true" final="false" visibility="public"
  21642. deprecated="not deprecated">
  21643. </method>
  21644. <method name="valueOf" return="org.apache.hadoop.io.nativeio.Errno"
  21645. abstract="false" native="false" synchronized="false"
  21646. static="true" final="false" visibility="public"
  21647. deprecated="not deprecated">
  21648. <param name="name" type="java.lang.String"/>
  21649. </method>
  21650. <field name="EPERM" type="org.apache.hadoop.io.nativeio.Errno"
  21651. transient="false" volatile="false"
  21652. static="true" final="true" visibility="public"
  21653. deprecated="not deprecated">
  21654. </field>
  21655. <field name="ENOENT" type="org.apache.hadoop.io.nativeio.Errno"
  21656. transient="false" volatile="false"
  21657. static="true" final="true" visibility="public"
  21658. deprecated="not deprecated">
  21659. </field>
  21660. <field name="ESRCH" type="org.apache.hadoop.io.nativeio.Errno"
  21661. transient="false" volatile="false"
  21662. static="true" final="true" visibility="public"
  21663. deprecated="not deprecated">
  21664. </field>
  21665. <field name="EINTR" type="org.apache.hadoop.io.nativeio.Errno"
  21666. transient="false" volatile="false"
  21667. static="true" final="true" visibility="public"
  21668. deprecated="not deprecated">
  21669. </field>
  21670. <field name="EIO" type="org.apache.hadoop.io.nativeio.Errno"
  21671. transient="false" volatile="false"
  21672. static="true" final="true" visibility="public"
  21673. deprecated="not deprecated">
  21674. </field>
  21675. <field name="ENXIO" type="org.apache.hadoop.io.nativeio.Errno"
  21676. transient="false" volatile="false"
  21677. static="true" final="true" visibility="public"
  21678. deprecated="not deprecated">
  21679. </field>
  21680. <field name="E2BIG" type="org.apache.hadoop.io.nativeio.Errno"
  21681. transient="false" volatile="false"
  21682. static="true" final="true" visibility="public"
  21683. deprecated="not deprecated">
  21684. </field>
  21685. <field name="ENOEXEC" type="org.apache.hadoop.io.nativeio.Errno"
  21686. transient="false" volatile="false"
  21687. static="true" final="true" visibility="public"
  21688. deprecated="not deprecated">
  21689. </field>
  21690. <field name="EBADF" type="org.apache.hadoop.io.nativeio.Errno"
  21691. transient="false" volatile="false"
  21692. static="true" final="true" visibility="public"
  21693. deprecated="not deprecated">
  21694. </field>
  21695. <field name="ECHILD" type="org.apache.hadoop.io.nativeio.Errno"
  21696. transient="false" volatile="false"
  21697. static="true" final="true" visibility="public"
  21698. deprecated="not deprecated">
  21699. </field>
  21700. <field name="EAGAIN" type="org.apache.hadoop.io.nativeio.Errno"
  21701. transient="false" volatile="false"
  21702. static="true" final="true" visibility="public"
  21703. deprecated="not deprecated">
  21704. </field>
  21705. <field name="ENOMEM" type="org.apache.hadoop.io.nativeio.Errno"
  21706. transient="false" volatile="false"
  21707. static="true" final="true" visibility="public"
  21708. deprecated="not deprecated">
  21709. </field>
  21710. <field name="EACCES" type="org.apache.hadoop.io.nativeio.Errno"
  21711. transient="false" volatile="false"
  21712. static="true" final="true" visibility="public"
  21713. deprecated="not deprecated">
  21714. </field>
  21715. <field name="EFAULT" type="org.apache.hadoop.io.nativeio.Errno"
  21716. transient="false" volatile="false"
  21717. static="true" final="true" visibility="public"
  21718. deprecated="not deprecated">
  21719. </field>
  21720. <field name="ENOTBLK" type="org.apache.hadoop.io.nativeio.Errno"
  21721. transient="false" volatile="false"
  21722. static="true" final="true" visibility="public"
  21723. deprecated="not deprecated">
  21724. </field>
  21725. <field name="EBUSY" type="org.apache.hadoop.io.nativeio.Errno"
  21726. transient="false" volatile="false"
  21727. static="true" final="true" visibility="public"
  21728. deprecated="not deprecated">
  21729. </field>
  21730. <field name="EEXIST" type="org.apache.hadoop.io.nativeio.Errno"
  21731. transient="false" volatile="false"
  21732. static="true" final="true" visibility="public"
  21733. deprecated="not deprecated">
  21734. </field>
  21735. <field name="EXDEV" type="org.apache.hadoop.io.nativeio.Errno"
  21736. transient="false" volatile="false"
  21737. static="true" final="true" visibility="public"
  21738. deprecated="not deprecated">
  21739. </field>
  21740. <field name="ENODEV" type="org.apache.hadoop.io.nativeio.Errno"
  21741. transient="false" volatile="false"
  21742. static="true" final="true" visibility="public"
  21743. deprecated="not deprecated">
  21744. </field>
  21745. <field name="ENOTDIR" type="org.apache.hadoop.io.nativeio.Errno"
  21746. transient="false" volatile="false"
  21747. static="true" final="true" visibility="public"
  21748. deprecated="not deprecated">
  21749. </field>
  21750. <field name="EISDIR" type="org.apache.hadoop.io.nativeio.Errno"
  21751. transient="false" volatile="false"
  21752. static="true" final="true" visibility="public"
  21753. deprecated="not deprecated">
  21754. </field>
  21755. <field name="EINVAL" type="org.apache.hadoop.io.nativeio.Errno"
  21756. transient="false" volatile="false"
  21757. static="true" final="true" visibility="public"
  21758. deprecated="not deprecated">
  21759. </field>
  21760. <field name="ENFILE" type="org.apache.hadoop.io.nativeio.Errno"
  21761. transient="false" volatile="false"
  21762. static="true" final="true" visibility="public"
  21763. deprecated="not deprecated">
  21764. </field>
  21765. <field name="EMFILE" type="org.apache.hadoop.io.nativeio.Errno"
  21766. transient="false" volatile="false"
  21767. static="true" final="true" visibility="public"
  21768. deprecated="not deprecated">
  21769. </field>
  21770. <field name="ENOTTY" type="org.apache.hadoop.io.nativeio.Errno"
  21771. transient="false" volatile="false"
  21772. static="true" final="true" visibility="public"
  21773. deprecated="not deprecated">
  21774. </field>
  21775. <field name="ETXTBSY" type="org.apache.hadoop.io.nativeio.Errno"
  21776. transient="false" volatile="false"
  21777. static="true" final="true" visibility="public"
  21778. deprecated="not deprecated">
  21779. </field>
  21780. <field name="EFBIG" type="org.apache.hadoop.io.nativeio.Errno"
  21781. transient="false" volatile="false"
  21782. static="true" final="true" visibility="public"
  21783. deprecated="not deprecated">
  21784. </field>
  21785. <field name="ENOSPC" type="org.apache.hadoop.io.nativeio.Errno"
  21786. transient="false" volatile="false"
  21787. static="true" final="true" visibility="public"
  21788. deprecated="not deprecated">
  21789. </field>
  21790. <field name="ESPIPE" type="org.apache.hadoop.io.nativeio.Errno"
  21791. transient="false" volatile="false"
  21792. static="true" final="true" visibility="public"
  21793. deprecated="not deprecated">
  21794. </field>
  21795. <field name="EROFS" type="org.apache.hadoop.io.nativeio.Errno"
  21796. transient="false" volatile="false"
  21797. static="true" final="true" visibility="public"
  21798. deprecated="not deprecated">
  21799. </field>
  21800. <field name="EMLINK" type="org.apache.hadoop.io.nativeio.Errno"
  21801. transient="false" volatile="false"
  21802. static="true" final="true" visibility="public"
  21803. deprecated="not deprecated">
  21804. </field>
  21805. <field name="EPIPE" type="org.apache.hadoop.io.nativeio.Errno"
  21806. transient="false" volatile="false"
  21807. static="true" final="true" visibility="public"
  21808. deprecated="not deprecated">
  21809. </field>
  21810. <field name="EDOM" type="org.apache.hadoop.io.nativeio.Errno"
  21811. transient="false" volatile="false"
  21812. static="true" final="true" visibility="public"
  21813. deprecated="not deprecated">
  21814. </field>
  21815. <field name="ERANGE" type="org.apache.hadoop.io.nativeio.Errno"
  21816. transient="false" volatile="false"
  21817. static="true" final="true" visibility="public"
  21818. deprecated="not deprecated">
  21819. </field>
  21820. <field name="UNKNOWN" type="org.apache.hadoop.io.nativeio.Errno"
  21821. transient="false" volatile="false"
  21822. static="true" final="true" visibility="public"
  21823. deprecated="not deprecated">
  21824. </field>
  21825. <doc>
  21826. <![CDATA[Enum representing POSIX errno values.]]>
  21827. </doc>
  21828. </class>
  21829. <!-- end class org.apache.hadoop.io.nativeio.Errno -->
  21830. <!-- start class org.apache.hadoop.io.nativeio.NativeIO -->
  21831. <class name="NativeIO" extends="java.lang.Object"
  21832. abstract="false"
  21833. static="false" final="false" visibility="public"
  21834. deprecated="not deprecated">
  21835. <constructor name="NativeIO"
  21836. static="false" final="false" visibility="public"
  21837. deprecated="not deprecated">
  21838. </constructor>
  21839. <method name="isAvailable" return="boolean"
  21840. abstract="false" native="false" synchronized="false"
  21841. static="true" final="false" visibility="public"
  21842. deprecated="not deprecated">
  21843. <doc>
  21844. <![CDATA[Return true if the JNI-based native IO extensions are available.]]>
  21845. </doc>
  21846. </method>
  21847. <method name="open" return="java.io.FileDescriptor"
  21848. abstract="false" native="true" synchronized="false"
  21849. static="true" final="false" visibility="public"
  21850. deprecated="not deprecated">
  21851. <param name="path" type="java.lang.String"/>
  21852. <param name="flags" type="int"/>
  21853. <param name="mode" type="int"/>
  21854. <exception name="IOException" type="java.io.IOException"/>
  21855. <doc>
  21856. <![CDATA[Wrapper around open(2)]]>
  21857. </doc>
  21858. </method>
  21859. <method name="fstat" return="org.apache.hadoop.io.nativeio.NativeIO.Stat"
  21860. abstract="false" native="true" synchronized="false"
  21861. static="true" final="false" visibility="public"
  21862. deprecated="not deprecated">
  21863. <param name="fd" type="java.io.FileDescriptor"/>
  21864. <exception name="IOException" type="java.io.IOException"/>
  21865. <doc>
  21866. <![CDATA[Wrapper around fstat(2)]]>
  21867. </doc>
  21868. </method>
  21869. <method name="chmod"
  21870. abstract="false" native="true" synchronized="false"
  21871. static="true" final="false" visibility="public"
  21872. deprecated="not deprecated">
  21873. <param name="path" type="java.lang.String"/>
  21874. <param name="mode" type="int"/>
  21875. <exception name="IOException" type="java.io.IOException"/>
  21876. <doc>
  21877. <![CDATA[Wrapper around chmod(2)]]>
  21878. </doc>
  21879. </method>
  21880. <method name="posixFadviseIfPossible"
  21881. abstract="false" native="false" synchronized="false"
  21882. static="true" final="false" visibility="public"
  21883. deprecated="not deprecated">
  21884. <param name="fd" type="java.io.FileDescriptor"/>
  21885. <param name="offset" type="long"/>
  21886. <param name="len" type="long"/>
  21887. <param name="flags" type="int"/>
  21888. <exception name="NativeIOException" type="org.apache.hadoop.io.nativeio.NativeIOException"/>
  21889. <doc>
  21890. <![CDATA[Call posix_fadvise on the given file descriptor. See the manpage
  21891. for this syscall for more information. On systems where this
  21892. call is not available, does nothing.
  21893. @throws NativeIOException if there is an error with the syscall]]>
  21894. </doc>
  21895. </method>
  21896. <method name="syncFileRangeIfPossible"
  21897. abstract="false" native="false" synchronized="false"
  21898. static="true" final="false" visibility="public"
  21899. deprecated="not deprecated">
  21900. <param name="fd" type="java.io.FileDescriptor"/>
  21901. <param name="offset" type="long"/>
  21902. <param name="nbytes" type="long"/>
  21903. <param name="flags" type="int"/>
  21904. <exception name="NativeIOException" type="org.apache.hadoop.io.nativeio.NativeIOException"/>
  21905. <doc>
  21906. <![CDATA[Call sync_file_range on the given file descriptor. See the manpage
  21907. for this syscall for more information. On systems where this
  21908. call is not available, does nothing.
  21909. @throws NativeIOException if there is an error with the syscall]]>
  21910. </doc>
  21911. </method>
  21912. <method name="getOwner" return="java.lang.String"
  21913. abstract="false" native="false" synchronized="false"
  21914. static="true" final="false" visibility="public"
  21915. deprecated="not deprecated">
  21916. <param name="fd" type="java.io.FileDescriptor"/>
  21917. <exception name="IOException" type="java.io.IOException"/>
  21918. </method>
  21919. <field name="O_RDONLY" type="int"
  21920. transient="false" volatile="false"
  21921. static="true" final="true" visibility="public"
  21922. deprecated="not deprecated">
  21923. </field>
  21924. <field name="O_WRONLY" type="int"
  21925. transient="false" volatile="false"
  21926. static="true" final="true" visibility="public"
  21927. deprecated="not deprecated">
  21928. </field>
  21929. <field name="O_RDWR" type="int"
  21930. transient="false" volatile="false"
  21931. static="true" final="true" visibility="public"
  21932. deprecated="not deprecated">
  21933. </field>
  21934. <field name="O_CREAT" type="int"
  21935. transient="false" volatile="false"
  21936. static="true" final="true" visibility="public"
  21937. deprecated="not deprecated">
  21938. </field>
  21939. <field name="O_EXCL" type="int"
  21940. transient="false" volatile="false"
  21941. static="true" final="true" visibility="public"
  21942. deprecated="not deprecated">
  21943. </field>
  21944. <field name="O_NOCTTY" type="int"
  21945. transient="false" volatile="false"
  21946. static="true" final="true" visibility="public"
  21947. deprecated="not deprecated">
  21948. </field>
  21949. <field name="O_TRUNC" type="int"
  21950. transient="false" volatile="false"
  21951. static="true" final="true" visibility="public"
  21952. deprecated="not deprecated">
  21953. </field>
  21954. <field name="O_APPEND" type="int"
  21955. transient="false" volatile="false"
  21956. static="true" final="true" visibility="public"
  21957. deprecated="not deprecated">
  21958. </field>
  21959. <field name="O_NONBLOCK" type="int"
  21960. transient="false" volatile="false"
  21961. static="true" final="true" visibility="public"
  21962. deprecated="not deprecated">
  21963. </field>
  21964. <field name="O_SYNC" type="int"
  21965. transient="false" volatile="false"
  21966. static="true" final="true" visibility="public"
  21967. deprecated="not deprecated">
  21968. </field>
  21969. <field name="O_ASYNC" type="int"
  21970. transient="false" volatile="false"
  21971. static="true" final="true" visibility="public"
  21972. deprecated="not deprecated">
  21973. </field>
  21974. <field name="O_FSYNC" type="int"
  21975. transient="false" volatile="false"
  21976. static="true" final="true" visibility="public"
  21977. deprecated="not deprecated">
  21978. </field>
  21979. <field name="O_NDELAY" type="int"
  21980. transient="false" volatile="false"
  21981. static="true" final="true" visibility="public"
  21982. deprecated="not deprecated">
  21983. </field>
  21984. <field name="POSIX_FADV_NORMAL" type="int"
  21985. transient="false" volatile="false"
  21986. static="true" final="true" visibility="public"
  21987. deprecated="not deprecated">
  21988. </field>
  21989. <field name="POSIX_FADV_RANDOM" type="int"
  21990. transient="false" volatile="false"
  21991. static="true" final="true" visibility="public"
  21992. deprecated="not deprecated">
  21993. </field>
  21994. <field name="POSIX_FADV_SEQUENTIAL" type="int"
  21995. transient="false" volatile="false"
  21996. static="true" final="true" visibility="public"
  21997. deprecated="not deprecated">
  21998. </field>
  21999. <field name="POSIX_FADV_WILLNEED" type="int"
  22000. transient="false" volatile="false"
  22001. static="true" final="true" visibility="public"
  22002. deprecated="not deprecated">
  22003. </field>
  22004. <field name="POSIX_FADV_DONTNEED" type="int"
  22005. transient="false" volatile="false"
  22006. static="true" final="true" visibility="public"
  22007. deprecated="not deprecated">
  22008. </field>
  22009. <field name="POSIX_FADV_NOREUSE" type="int"
  22010. transient="false" volatile="false"
  22011. static="true" final="true" visibility="public"
  22012. deprecated="not deprecated">
  22013. </field>
  22014. <field name="SYNC_FILE_RANGE_WAIT_BEFORE" type="int"
  22015. transient="false" volatile="false"
  22016. static="true" final="true" visibility="public"
  22017. deprecated="not deprecated">
  22018. </field>
  22019. <field name="SYNC_FILE_RANGE_WRITE" type="int"
  22020. transient="false" volatile="false"
  22021. static="true" final="true" visibility="public"
  22022. deprecated="not deprecated">
  22023. </field>
  22024. <field name="SYNC_FILE_RANGE_WAIT_AFTER" type="int"
  22025. transient="false" volatile="false"
  22026. static="true" final="true" visibility="public"
  22027. deprecated="not deprecated">
  22028. </field>
  22029. <doc>
  22030. <![CDATA[JNI wrappers for various native IO-related calls not available in Java.
  22031. These functions should generally be used alongside a fallback to another
  22032. more portable mechanism.]]>
  22033. </doc>
  22034. </class>
  22035. <!-- end class org.apache.hadoop.io.nativeio.NativeIO -->
  22036. <!-- start class org.apache.hadoop.io.nativeio.NativeIO.Stat -->
  22037. <class name="NativeIO.Stat" extends="java.lang.Object"
  22038. abstract="false"
  22039. static="true" final="false" visibility="public"
  22040. deprecated="not deprecated">
  22041. <method name="toString" return="java.lang.String"
  22042. abstract="false" native="false" synchronized="false"
  22043. static="false" final="false" visibility="public"
  22044. deprecated="not deprecated">
  22045. </method>
  22046. <method name="getOwner" return="java.lang.String"
  22047. abstract="false" native="false" synchronized="false"
  22048. static="false" final="false" visibility="public"
  22049. deprecated="not deprecated">
  22050. </method>
  22051. <method name="getMode" return="int"
  22052. abstract="false" native="false" synchronized="false"
  22053. static="false" final="false" visibility="public"
  22054. deprecated="not deprecated">
  22055. </method>
  22056. <field name="S_IFMT" type="int"
  22057. transient="false" volatile="false"
  22058. static="true" final="true" visibility="public"
  22059. deprecated="not deprecated">
  22060. </field>
  22061. <field name="S_IFIFO" type="int"
  22062. transient="false" volatile="false"
  22063. static="true" final="true" visibility="public"
  22064. deprecated="not deprecated">
  22065. </field>
  22066. <field name="S_IFCHR" type="int"
  22067. transient="false" volatile="false"
  22068. static="true" final="true" visibility="public"
  22069. deprecated="not deprecated">
  22070. </field>
  22071. <field name="S_IFDIR" type="int"
  22072. transient="false" volatile="false"
  22073. static="true" final="true" visibility="public"
  22074. deprecated="not deprecated">
  22075. </field>
  22076. <field name="S_IFBLK" type="int"
  22077. transient="false" volatile="false"
  22078. static="true" final="true" visibility="public"
  22079. deprecated="not deprecated">
  22080. </field>
  22081. <field name="S_IFREG" type="int"
  22082. transient="false" volatile="false"
  22083. static="true" final="true" visibility="public"
  22084. deprecated="not deprecated">
  22085. </field>
  22086. <field name="S_IFLNK" type="int"
  22087. transient="false" volatile="false"
  22088. static="true" final="true" visibility="public"
  22089. deprecated="not deprecated">
  22090. </field>
  22091. <field name="S_IFSOCK" type="int"
  22092. transient="false" volatile="false"
  22093. static="true" final="true" visibility="public"
  22094. deprecated="not deprecated">
  22095. </field>
  22096. <field name="S_IFWHT" type="int"
  22097. transient="false" volatile="false"
  22098. static="true" final="true" visibility="public"
  22099. deprecated="not deprecated">
  22100. </field>
  22101. <field name="S_ISUID" type="int"
  22102. transient="false" volatile="false"
  22103. static="true" final="true" visibility="public"
  22104. deprecated="not deprecated">
  22105. </field>
  22106. <field name="S_ISGID" type="int"
  22107. transient="false" volatile="false"
  22108. static="true" final="true" visibility="public"
  22109. deprecated="not deprecated">
  22110. </field>
  22111. <field name="S_ISVTX" type="int"
  22112. transient="false" volatile="false"
  22113. static="true" final="true" visibility="public"
  22114. deprecated="not deprecated">
  22115. </field>
  22116. <field name="S_IRUSR" type="int"
  22117. transient="false" volatile="false"
  22118. static="true" final="true" visibility="public"
  22119. deprecated="not deprecated">
  22120. </field>
  22121. <field name="S_IWUSR" type="int"
  22122. transient="false" volatile="false"
  22123. static="true" final="true" visibility="public"
  22124. deprecated="not deprecated">
  22125. </field>
  22126. <field name="S_IXUSR" type="int"
  22127. transient="false" volatile="false"
  22128. static="true" final="true" visibility="public"
  22129. deprecated="not deprecated">
  22130. </field>
  22131. <doc>
  22132. <![CDATA[Result type of the fstat call]]>
  22133. </doc>
  22134. </class>
  22135. <!-- end class org.apache.hadoop.io.nativeio.NativeIO.Stat -->
  22136. <!-- start class org.apache.hadoop.io.nativeio.NativeIOException -->
  22137. <class name="NativeIOException" extends="java.io.IOException"
  22138. abstract="false"
  22139. static="false" final="false" visibility="public"
  22140. deprecated="not deprecated">
  22141. <constructor name="NativeIOException" type="java.lang.String, org.apache.hadoop.io.nativeio.Errno"
  22142. static="false" final="false" visibility="public"
  22143. deprecated="not deprecated">
  22144. </constructor>
  22145. <method name="getErrno" return="org.apache.hadoop.io.nativeio.Errno"
  22146. abstract="false" native="false" synchronized="false"
  22147. static="false" final="false" visibility="public"
  22148. deprecated="not deprecated">
  22149. </method>
  22150. <method name="toString" return="java.lang.String"
  22151. abstract="false" native="false" synchronized="false"
  22152. static="false" final="false" visibility="public"
  22153. deprecated="not deprecated">
  22154. </method>
  22155. <doc>
  22156. <![CDATA[An exception generated by a call to the native IO code.
  22157. These exceptions simply wrap <i>errno</i> result codes.]]>
  22158. </doc>
  22159. </class>
  22160. <!-- end class org.apache.hadoop.io.nativeio.NativeIOException -->
  22161. </package>
  22162. <package name="org.apache.hadoop.io.retry">
  22163. <!-- start class org.apache.hadoop.io.retry.RetryPolicies -->
  22164. <class name="RetryPolicies" extends="java.lang.Object"
  22165. abstract="false"
  22166. static="false" final="false" visibility="public"
  22167. deprecated="not deprecated">
  22168. <constructor name="RetryPolicies"
  22169. static="false" final="false" visibility="public"
  22170. deprecated="not deprecated">
  22171. </constructor>
  22172. <method name="retryUpToMaximumCountWithFixedSleep" return="org.apache.hadoop.io.retry.RetryPolicy"
  22173. abstract="false" native="false" synchronized="false"
  22174. static="true" final="true" visibility="public"
  22175. deprecated="not deprecated">
  22176. <param name="maxRetries" type="int"/>
  22177. <param name="sleepTime" type="long"/>
  22178. <param name="timeUnit" type="java.util.concurrent.TimeUnit"/>
  22179. <doc>
  22180. <![CDATA[<p>
  22181. Keep trying a limited number of times, waiting a fixed time between attempts,
  22182. and then fail by re-throwing the exception.
  22183. </p>]]>
  22184. </doc>
  22185. </method>
  22186. <method name="retryUpToMaximumTimeWithFixedSleep" return="org.apache.hadoop.io.retry.RetryPolicy"
  22187. abstract="false" native="false" synchronized="false"
  22188. static="true" final="true" visibility="public"
  22189. deprecated="not deprecated">
  22190. <param name="maxTime" type="long"/>
  22191. <param name="sleepTime" type="long"/>
  22192. <param name="timeUnit" type="java.util.concurrent.TimeUnit"/>
  22193. <doc>
  22194. <![CDATA[<p>
  22195. Keep trying for a maximum time, waiting a fixed time between attempts,
  22196. and then fail by re-throwing the exception.
  22197. </p>]]>
  22198. </doc>
  22199. </method>
  22200. <method name="retryUpToMaximumCountWithProportionalSleep" return="org.apache.hadoop.io.retry.RetryPolicy"
  22201. abstract="false" native="false" synchronized="false"
  22202. static="true" final="true" visibility="public"
  22203. deprecated="not deprecated">
  22204. <param name="maxRetries" type="int"/>
  22205. <param name="sleepTime" type="long"/>
  22206. <param name="timeUnit" type="java.util.concurrent.TimeUnit"/>
  22207. <doc>
  22208. <![CDATA[<p>
  22209. Keep trying a limited number of times, waiting a growing amount of time between attempts,
  22210. and then fail by re-throwing the exception.
  22211. The time between attempts is <code>sleepTime</code> mutliplied by the number of tries so far.
  22212. </p>]]>
  22213. </doc>
  22214. </method>
  22215. <method name="exponentialBackoffRetry" return="org.apache.hadoop.io.retry.RetryPolicy"
  22216. abstract="false" native="false" synchronized="false"
  22217. static="true" final="true" visibility="public"
  22218. deprecated="not deprecated">
  22219. <param name="maxRetries" type="int"/>
  22220. <param name="sleepTime" type="long"/>
  22221. <param name="timeUnit" type="java.util.concurrent.TimeUnit"/>
  22222. <doc>
  22223. <![CDATA[<p>
  22224. Keep trying a limited number of times, waiting a growing amount of time between attempts,
  22225. and then fail by re-throwing the exception.
  22226. The time between attempts is <code>sleepTime</code> mutliplied by a random
  22227. number in the range of [0, 2 to the number of retries)
  22228. </p>]]>
  22229. </doc>
  22230. </method>
  22231. <method name="retryByException" return="org.apache.hadoop.io.retry.RetryPolicy"
  22232. abstract="false" native="false" synchronized="false"
  22233. static="true" final="true" visibility="public"
  22234. deprecated="not deprecated">
  22235. <param name="defaultPolicy" type="org.apache.hadoop.io.retry.RetryPolicy"/>
  22236. <param name="exceptionToPolicyMap" type="java.util.Map"/>
  22237. <doc>
  22238. <![CDATA[<p>
  22239. Set a default policy with some explicit handlers for specific exceptions.
  22240. </p>]]>
  22241. </doc>
  22242. </method>
  22243. <method name="retryByRemoteException" return="org.apache.hadoop.io.retry.RetryPolicy"
  22244. abstract="false" native="false" synchronized="false"
  22245. static="true" final="true" visibility="public"
  22246. deprecated="not deprecated">
  22247. <param name="defaultPolicy" type="org.apache.hadoop.io.retry.RetryPolicy"/>
  22248. <param name="exceptionToPolicyMap" type="java.util.Map"/>
  22249. <doc>
  22250. <![CDATA[<p>
  22251. A retry policy for RemoteException
  22252. Set a default policy with some explicit handlers for specific exceptions.
  22253. </p>]]>
  22254. </doc>
  22255. </method>
  22256. <field name="TRY_ONCE_THEN_FAIL" type="org.apache.hadoop.io.retry.RetryPolicy"
  22257. transient="false" volatile="false"
  22258. static="true" final="true" visibility="public"
  22259. deprecated="not deprecated">
  22260. <doc>
  22261. <![CDATA[<p>
  22262. Try once, and fail by re-throwing the exception.
  22263. This corresponds to having no retry mechanism in place.
  22264. </p>]]>
  22265. </doc>
  22266. </field>
  22267. <field name="TRY_ONCE_DONT_FAIL" type="org.apache.hadoop.io.retry.RetryPolicy"
  22268. transient="false" volatile="false"
  22269. static="true" final="true" visibility="public"
  22270. deprecated="not deprecated">
  22271. <doc>
  22272. <![CDATA[<p>
  22273. Try once, and fail silently for <code>void</code> methods, or by
  22274. re-throwing the exception for non-<code>void</code> methods.
  22275. </p>]]>
  22276. </doc>
  22277. </field>
  22278. <field name="RETRY_FOREVER" type="org.apache.hadoop.io.retry.RetryPolicy"
  22279. transient="false" volatile="false"
  22280. static="true" final="true" visibility="public"
  22281. deprecated="not deprecated">
  22282. <doc>
  22283. <![CDATA[<p>
  22284. Keep trying forever.
  22285. </p>]]>
  22286. </doc>
  22287. </field>
  22288. <doc>
  22289. <![CDATA[<p>
  22290. A collection of useful implementations of {@link RetryPolicy}.
  22291. </p>]]>
  22292. </doc>
  22293. </class>
  22294. <!-- end class org.apache.hadoop.io.retry.RetryPolicies -->
  22295. <!-- start class org.apache.hadoop.io.retry.RetryPolicies.MultipleLinearRandomRetry -->
  22296. <class name="RetryPolicies.MultipleLinearRandomRetry" extends="java.lang.Object"
  22297. abstract="false"
  22298. static="true" final="false" visibility="public"
  22299. deprecated="not deprecated">
  22300. <implements name="org.apache.hadoop.io.retry.RetryPolicy"/>
  22301. <constructor name="RetryPolicies.MultipleLinearRandomRetry" type="java.util.List"
  22302. static="false" final="false" visibility="public"
  22303. deprecated="not deprecated">
  22304. </constructor>
  22305. <method name="shouldRetry" return="boolean"
  22306. abstract="false" native="false" synchronized="false"
  22307. static="false" final="false" visibility="public"
  22308. deprecated="not deprecated">
  22309. <param name="e" type="java.lang.Exception"/>
  22310. <param name="curRetry" type="int"/>
  22311. <exception name="Exception" type="java.lang.Exception"/>
  22312. </method>
  22313. <method name="hashCode" return="int"
  22314. abstract="false" native="false" synchronized="false"
  22315. static="false" final="false" visibility="public"
  22316. deprecated="not deprecated">
  22317. </method>
  22318. <method name="equals" return="boolean"
  22319. abstract="false" native="false" synchronized="false"
  22320. static="false" final="false" visibility="public"
  22321. deprecated="not deprecated">
  22322. <param name="that" type="java.lang.Object"/>
  22323. </method>
  22324. <method name="toString" return="java.lang.String"
  22325. abstract="false" native="false" synchronized="false"
  22326. static="false" final="false" visibility="public"
  22327. deprecated="not deprecated">
  22328. </method>
  22329. <method name="parseCommaSeparatedString" return="org.apache.hadoop.io.retry.RetryPolicies.MultipleLinearRandomRetry"
  22330. abstract="false" native="false" synchronized="false"
  22331. static="true" final="false" visibility="public"
  22332. deprecated="not deprecated">
  22333. <param name="s" type="java.lang.String"/>
  22334. <doc>
  22335. <![CDATA[Parse the given string as a MultipleLinearRandomRetry object.
  22336. The format of the string is "t_1, n_1, t_2, n_2, ...",
  22337. where t_i and n_i are the i-th pair of sleep time and number of retires.
  22338. Note that the white spaces in the string are ignored.
  22339. @return the parsed object, or null if the parsing fails.]]>
  22340. </doc>
  22341. </method>
  22342. <doc>
  22343. <![CDATA[Given pairs of number of retries and sleep time (n0, t0), (n1, t1), ...,
  22344. the first n0 retries sleep t0 milliseconds on average,
  22345. the following n1 retries sleep t1 milliseconds on average, and so on.
  22346. For all the sleep, the actual sleep time is randomly uniform distributed
  22347. in the close interval [0.5t, 1.5t], where t is the sleep time specified.
  22348. The objects of this class are immutable.]]>
  22349. </doc>
  22350. </class>
  22351. <!-- end class org.apache.hadoop.io.retry.RetryPolicies.MultipleLinearRandomRetry -->
  22352. <!-- start class org.apache.hadoop.io.retry.RetryPolicies.MultipleLinearRandomRetry.Pair -->
  22353. <class name="RetryPolicies.MultipleLinearRandomRetry.Pair" extends="java.lang.Object"
  22354. abstract="false"
  22355. static="true" final="false" visibility="public"
  22356. deprecated="not deprecated">
  22357. <constructor name="RetryPolicies.MultipleLinearRandomRetry.Pair" type="int, int"
  22358. static="false" final="false" visibility="public"
  22359. deprecated="not deprecated">
  22360. </constructor>
  22361. <method name="toString" return="java.lang.String"
  22362. abstract="false" native="false" synchronized="false"
  22363. static="false" final="false" visibility="public"
  22364. deprecated="not deprecated">
  22365. </method>
  22366. <doc>
  22367. <![CDATA[Pairs of numRetries and sleepSeconds]]>
  22368. </doc>
  22369. </class>
  22370. <!-- end class org.apache.hadoop.io.retry.RetryPolicies.MultipleLinearRandomRetry.Pair -->
  22371. <!-- start interface org.apache.hadoop.io.retry.RetryPolicy -->
  22372. <interface name="RetryPolicy" abstract="true"
  22373. static="false" final="false" visibility="public"
  22374. deprecated="not deprecated">
  22375. <method name="shouldRetry" return="boolean"
  22376. abstract="false" native="false" synchronized="false"
  22377. static="false" final="false" visibility="public"
  22378. deprecated="not deprecated">
  22379. <param name="e" type="java.lang.Exception"/>
  22380. <param name="retries" type="int"/>
  22381. <exception name="Exception" type="java.lang.Exception"/>
  22382. <doc>
  22383. <![CDATA[<p>
  22384. Determines whether the framework should retry a
  22385. method for the given exception, and the number
  22386. of retries that have been made for that operation
  22387. so far.
  22388. </p>
  22389. @param e The exception that caused the method to fail.
  22390. @param retries The number of times the method has been retried.
  22391. @return <code>true</code> if the method should be retried,
  22392. <code>false</code> if the method should not be retried
  22393. but shouldn't fail with an exception (only for void methods).
  22394. @throws Exception The re-thrown exception <code>e</code> indicating
  22395. that the method failed and should not be retried further.]]>
  22396. </doc>
  22397. </method>
  22398. <doc>
  22399. <![CDATA[<p>
  22400. Specifies a policy for retrying method failures.
  22401. Implementations of this interface should be immutable.
  22402. </p>]]>
  22403. </doc>
  22404. </interface>
  22405. <!-- end interface org.apache.hadoop.io.retry.RetryPolicy -->
  22406. <!-- start class org.apache.hadoop.io.retry.RetryProxy -->
  22407. <class name="RetryProxy" extends="java.lang.Object"
  22408. abstract="false"
  22409. static="false" final="false" visibility="public"
  22410. deprecated="not deprecated">
  22411. <constructor name="RetryProxy"
  22412. static="false" final="false" visibility="public"
  22413. deprecated="not deprecated">
  22414. </constructor>
  22415. <method name="create" return="java.lang.Object"
  22416. abstract="false" native="false" synchronized="false"
  22417. static="true" final="false" visibility="public"
  22418. deprecated="not deprecated">
  22419. <param name="iface" type="java.lang.Class"/>
  22420. <param name="implementation" type="java.lang.Object"/>
  22421. <param name="retryPolicy" type="org.apache.hadoop.io.retry.RetryPolicy"/>
  22422. <doc>
  22423. <![CDATA[<p>
  22424. Create a proxy for an interface of an implementation class
  22425. using the same retry policy for each method in the interface.
  22426. </p>
  22427. @param iface the interface that the retry will implement
  22428. @param implementation the instance whose methods should be retried
  22429. @param retryPolicy the policy for retirying method call failures
  22430. @return the retry proxy]]>
  22431. </doc>
  22432. </method>
  22433. <method name="create" return="java.lang.Object"
  22434. abstract="false" native="false" synchronized="false"
  22435. static="true" final="false" visibility="public"
  22436. deprecated="not deprecated">
  22437. <param name="iface" type="java.lang.Class"/>
  22438. <param name="implementation" type="java.lang.Object"/>
  22439. <param name="methodNameToPolicyMap" type="java.util.Map"/>
  22440. <doc>
  22441. <![CDATA[<p>
  22442. Create a proxy for an interface of an implementation class
  22443. using the a set of retry policies specified by method name.
  22444. If no retry policy is defined for a method then a default of
  22445. {@link RetryPolicies#TRY_ONCE_THEN_FAIL} is used.
  22446. </p>
  22447. @param iface the interface that the retry will implement
  22448. @param implementation the instance whose methods should be retried
  22449. @param methodNameToPolicyMap a map of method names to retry policies
  22450. @return the retry proxy]]>
  22451. </doc>
  22452. </method>
  22453. <method name="create" return="java.lang.Object"
  22454. abstract="false" native="false" synchronized="false"
  22455. static="true" final="false" visibility="public"
  22456. deprecated="not deprecated">
  22457. <param name="iface" type="java.lang.Class"/>
  22458. <param name="implementation" type="java.lang.Object"/>
  22459. <param name="defaultPolicy" type="org.apache.hadoop.io.retry.RetryPolicy"/>
  22460. <param name="methodNameToPolicyMap" type="java.util.Map"/>
  22461. </method>
  22462. <doc>
  22463. <![CDATA[<p>
  22464. A factory for creating retry proxies.
  22465. </p>]]>
  22466. </doc>
  22467. </class>
  22468. <!-- end class org.apache.hadoop.io.retry.RetryProxy -->
  22469. <!-- start class org.apache.hadoop.io.retry.RetryUtils -->
  22470. <class name="RetryUtils" extends="java.lang.Object"
  22471. abstract="false"
  22472. static="false" final="false" visibility="public"
  22473. deprecated="not deprecated">
  22474. <constructor name="RetryUtils"
  22475. static="false" final="false" visibility="public"
  22476. deprecated="not deprecated">
  22477. </constructor>
  22478. <method name="getDefaultRetryPolicy" return="org.apache.hadoop.io.retry.RetryPolicy"
  22479. abstract="false" native="false" synchronized="false"
  22480. static="true" final="false" visibility="public"
  22481. deprecated="not deprecated">
  22482. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  22483. <param name="retryPolicyEnabledKey" type="java.lang.String"/>
  22484. <param name="defaultRetryPolicyEnabled" type="boolean"/>
  22485. <param name="retryPolicySpecKey" type="java.lang.String"/>
  22486. <param name="defaultRetryPolicySpec" type="java.lang.String"/>
  22487. <param name="remoteExceptionsToRetry" type="java.lang.Class[]"/>
  22488. <doc>
  22489. <![CDATA[Return the default retry policy set in conf.
  22490. If the value retryPolicyEnabledKey is set to false in conf,
  22491. use TRY_ONCE_THEN_FAIL.
  22492. Otherwise, get the MultipleLinearRandomRetry policy specified in the conf
  22493. and then
  22494. (1) use multipleLinearRandomRetry for
  22495. - remoteExceptionToRetry, or
  22496. - IOException other than RemoteException; and
  22497. (2) use TRY_ONCE_THEN_FAIL for
  22498. - RemoteException other than remoteExceptionToRetry, or
  22499. - non-IOException.
  22500. @param conf
  22501. @param retryPolicyEnabledKey conf property key for enabling retry
  22502. @param defaultRetryPolicyEnabled default retryPolicyEnabledKey conf value
  22503. @param retryPolicySpecKey conf property key for retry policy spec
  22504. @param defaultRetryPolicySpec default retryPolicySpecKey conf value
  22505. @param remoteExceptionsToRetry The particular RemoteExceptions to retry
  22506. @return the default retry policy.]]>
  22507. </doc>
  22508. </method>
  22509. <method name="getMultipleLinearRandomRetry" return="org.apache.hadoop.io.retry.RetryPolicy"
  22510. abstract="false" native="false" synchronized="false"
  22511. static="true" final="false" visibility="public"
  22512. deprecated="not deprecated">
  22513. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  22514. <param name="retryPolicyEnabledKey" type="java.lang.String"/>
  22515. <param name="defaultRetryPolicyEnabled" type="boolean"/>
  22516. <param name="retryPolicySpecKey" type="java.lang.String"/>
  22517. <param name="defaultRetryPolicySpec" type="java.lang.String"/>
  22518. <doc>
  22519. <![CDATA[Return the MultipleLinearRandomRetry policy specified in the conf,
  22520. or null if the feature is disabled.
  22521. If the policy is specified in the conf but the policy cannot be parsed,
  22522. the default policy is returned.
  22523. Retry policy spec:
  22524. N pairs of sleep-time and number-of-retries "s1,n1,s2,n2,..."
  22525. @param conf
  22526. @param retryPolicyEnabledKey conf property key for enabling retry
  22527. @param defaultRetryPolicyEnabled default retryPolicyEnabledKey conf value
  22528. @param retryPolicySpecKey conf property key for retry policy spec
  22529. @param defaultRetryPolicySpec default retryPolicySpecKey conf value
  22530. @return the MultipleLinearRandomRetry policy specified in the conf,
  22531. or null if the feature is disabled.]]>
  22532. </doc>
  22533. </method>
  22534. <field name="LOG" type="org.apache.commons.logging.Log"
  22535. transient="false" volatile="false"
  22536. static="true" final="true" visibility="public"
  22537. deprecated="not deprecated">
  22538. </field>
  22539. </class>
  22540. <!-- end class org.apache.hadoop.io.retry.RetryUtils -->
  22541. </package>
  22542. <package name="org.apache.hadoop.io.serializer">
  22543. <!-- start interface org.apache.hadoop.io.serializer.Deserializer -->
  22544. <interface name="Deserializer" abstract="true"
  22545. static="false" final="false" visibility="public"
  22546. deprecated="not deprecated">
  22547. <method name="open"
  22548. abstract="false" native="false" synchronized="false"
  22549. static="false" final="false" visibility="public"
  22550. deprecated="not deprecated">
  22551. <param name="in" type="java.io.InputStream"/>
  22552. <exception name="IOException" type="java.io.IOException"/>
  22553. <doc>
  22554. <![CDATA[<p>Prepare the deserializer for reading.</p>]]>
  22555. </doc>
  22556. </method>
  22557. <method name="deserialize" return="java.lang.Object"
  22558. abstract="false" native="false" synchronized="false"
  22559. static="false" final="false" visibility="public"
  22560. deprecated="not deprecated">
  22561. <param name="t" type="java.lang.Object"/>
  22562. <exception name="IOException" type="java.io.IOException"/>
  22563. <doc>
  22564. <![CDATA[<p>
  22565. Deserialize the next object from the underlying input stream.
  22566. If the object <code>t</code> is non-null then this deserializer
  22567. <i>may</i> set its internal state to the next object read from the input
  22568. stream. Otherwise, if the object <code>t</code> is null a new
  22569. deserialized object will be created.
  22570. </p>
  22571. @return the deserialized object]]>
  22572. </doc>
  22573. </method>
  22574. <method name="close"
  22575. abstract="false" native="false" synchronized="false"
  22576. static="false" final="false" visibility="public"
  22577. deprecated="not deprecated">
  22578. <exception name="IOException" type="java.io.IOException"/>
  22579. <doc>
  22580. <![CDATA[<p>Close the underlying input stream and clear up any resources.</p>]]>
  22581. </doc>
  22582. </method>
  22583. <doc>
  22584. <![CDATA[<p>
  22585. Provides a facility for deserializing objects of type <T> from an
  22586. {@link InputStream}.
  22587. </p>
  22588. <p>
  22589. Deserializers are stateful, but must not buffer the input since
  22590. other producers may read from the input between calls to
  22591. {@link #deserialize(Object)}.
  22592. </p>
  22593. @param <T>]]>
  22594. </doc>
  22595. </interface>
  22596. <!-- end interface org.apache.hadoop.io.serializer.Deserializer -->
  22597. <!-- start class org.apache.hadoop.io.serializer.DeserializerComparator -->
  22598. <class name="DeserializerComparator" extends="java.lang.Object"
  22599. abstract="true"
  22600. static="false" final="false" visibility="public"
  22601. deprecated="not deprecated">
  22602. <implements name="org.apache.hadoop.io.RawComparator"/>
  22603. <constructor name="DeserializerComparator" type="org.apache.hadoop.io.serializer.Deserializer"
  22604. static="false" final="false" visibility="protected"
  22605. deprecated="not deprecated">
  22606. <exception name="IOException" type="java.io.IOException"/>
  22607. </constructor>
  22608. <method name="compare" return="int"
  22609. abstract="false" native="false" synchronized="false"
  22610. static="false" final="false" visibility="public"
  22611. deprecated="not deprecated">
  22612. <param name="b1" type="byte[]"/>
  22613. <param name="s1" type="int"/>
  22614. <param name="l1" type="int"/>
  22615. <param name="b2" type="byte[]"/>
  22616. <param name="s2" type="int"/>
  22617. <param name="l2" type="int"/>
  22618. </method>
  22619. <doc>
  22620. <![CDATA[<p>
  22621. A {@link RawComparator} that uses a {@link Deserializer} to deserialize
  22622. the objects to be compared so that the standard {@link Comparator} can
  22623. be used to compare them.
  22624. </p>
  22625. <p>
  22626. One may optimize compare-intensive operations by using a custom
  22627. implementation of {@link RawComparator} that operates directly
  22628. on byte representations.
  22629. </p>
  22630. @param <T>]]>
  22631. </doc>
  22632. </class>
  22633. <!-- end class org.apache.hadoop.io.serializer.DeserializerComparator -->
  22634. <!-- start class org.apache.hadoop.io.serializer.JavaSerialization -->
  22635. <class name="JavaSerialization" extends="java.lang.Object"
  22636. abstract="false"
  22637. static="false" final="false" visibility="public"
  22638. deprecated="not deprecated">
  22639. <implements name="org.apache.hadoop.io.serializer.Serialization"/>
  22640. <constructor name="JavaSerialization"
  22641. static="false" final="false" visibility="public"
  22642. deprecated="not deprecated">
  22643. </constructor>
  22644. <method name="accept" return="boolean"
  22645. abstract="false" native="false" synchronized="false"
  22646. static="false" final="false" visibility="public"
  22647. deprecated="not deprecated">
  22648. <param name="c" type="java.lang.Class"/>
  22649. </method>
  22650. <method name="getDeserializer" return="org.apache.hadoop.io.serializer.Deserializer"
  22651. abstract="false" native="false" synchronized="false"
  22652. static="false" final="false" visibility="public"
  22653. deprecated="not deprecated">
  22654. <param name="c" type="java.lang.Class"/>
  22655. </method>
  22656. <method name="getSerializer" return="org.apache.hadoop.io.serializer.Serializer"
  22657. abstract="false" native="false" synchronized="false"
  22658. static="false" final="false" visibility="public"
  22659. deprecated="not deprecated">
  22660. <param name="c" type="java.lang.Class"/>
  22661. </method>
  22662. <doc>
  22663. <![CDATA[<p>
  22664. An experimental {@link Serialization} for Java {@link Serializable} classes.
  22665. </p>
  22666. @see JavaSerializationComparator]]>
  22667. </doc>
  22668. </class>
  22669. <!-- end class org.apache.hadoop.io.serializer.JavaSerialization -->
  22670. <!-- start class org.apache.hadoop.io.serializer.JavaSerializationComparator -->
  22671. <class name="JavaSerializationComparator" extends="org.apache.hadoop.io.serializer.DeserializerComparator"
  22672. abstract="false"
  22673. static="false" final="false" visibility="public"
  22674. deprecated="not deprecated">
  22675. <constructor name="JavaSerializationComparator"
  22676. static="false" final="false" visibility="public"
  22677. deprecated="not deprecated">
  22678. <exception name="IOException" type="java.io.IOException"/>
  22679. </constructor>
  22680. <method name="compare" return="int"
  22681. abstract="false" native="false" synchronized="false"
  22682. static="false" final="false" visibility="public"
  22683. deprecated="not deprecated">
  22684. <param name="o1" type="java.io.Serializable"/>
  22685. <param name="o2" type="java.io.Serializable"/>
  22686. </method>
  22687. <doc>
  22688. <![CDATA[<p>
  22689. A {@link RawComparator} that uses a {@link JavaSerialization}
  22690. {@link Deserializer} to deserialize objects that are then compared via
  22691. their {@link Comparable} interfaces.
  22692. </p>
  22693. @param <T>
  22694. @see JavaSerialization]]>
  22695. </doc>
  22696. </class>
  22697. <!-- end class org.apache.hadoop.io.serializer.JavaSerializationComparator -->
  22698. <!-- start interface org.apache.hadoop.io.serializer.Serialization -->
  22699. <interface name="Serialization" abstract="true"
  22700. static="false" final="false" visibility="public"
  22701. deprecated="not deprecated">
  22702. <method name="accept" return="boolean"
  22703. abstract="false" native="false" synchronized="false"
  22704. static="false" final="false" visibility="public"
  22705. deprecated="not deprecated">
  22706. <param name="c" type="java.lang.Class"/>
  22707. <doc>
  22708. <![CDATA[Allows clients to test whether this {@link Serialization}
  22709. supports the given class.]]>
  22710. </doc>
  22711. </method>
  22712. <method name="getSerializer" return="org.apache.hadoop.io.serializer.Serializer"
  22713. abstract="false" native="false" synchronized="false"
  22714. static="false" final="false" visibility="public"
  22715. deprecated="not deprecated">
  22716. <param name="c" type="java.lang.Class"/>
  22717. <doc>
  22718. <![CDATA[@return a {@link Serializer} for the given class.]]>
  22719. </doc>
  22720. </method>
  22721. <method name="getDeserializer" return="org.apache.hadoop.io.serializer.Deserializer"
  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[@return a {@link Deserializer} for the given class.]]>
  22728. </doc>
  22729. </method>
  22730. <doc>
  22731. <![CDATA[<p>
  22732. Encapsulates a {@link Serializer}/{@link Deserializer} pair.
  22733. </p>
  22734. @param <T>]]>
  22735. </doc>
  22736. </interface>
  22737. <!-- end interface org.apache.hadoop.io.serializer.Serialization -->
  22738. <!-- start class org.apache.hadoop.io.serializer.SerializationFactory -->
  22739. <class name="SerializationFactory" extends="org.apache.hadoop.conf.Configured"
  22740. abstract="false"
  22741. static="false" final="false" visibility="public"
  22742. deprecated="not deprecated">
  22743. <constructor name="SerializationFactory" type="org.apache.hadoop.conf.Configuration"
  22744. static="false" final="false" visibility="public"
  22745. deprecated="not deprecated">
  22746. <doc>
  22747. <![CDATA[<p>
  22748. Serializations are found by reading the <code>io.serializations</code>
  22749. property from <code>conf</code>, which is a comma-delimited list of
  22750. classnames.
  22751. </p>]]>
  22752. </doc>
  22753. </constructor>
  22754. <method name="getSerializer" return="org.apache.hadoop.io.serializer.Serializer"
  22755. abstract="false" native="false" synchronized="false"
  22756. static="false" final="false" visibility="public"
  22757. deprecated="not deprecated">
  22758. <param name="c" type="java.lang.Class"/>
  22759. </method>
  22760. <method name="getDeserializer" return="org.apache.hadoop.io.serializer.Deserializer"
  22761. abstract="false" native="false" synchronized="false"
  22762. static="false" final="false" visibility="public"
  22763. deprecated="not deprecated">
  22764. <param name="c" type="java.lang.Class"/>
  22765. </method>
  22766. <method name="getSerialization" return="org.apache.hadoop.io.serializer.Serialization"
  22767. abstract="false" native="false" synchronized="false"
  22768. static="false" final="false" visibility="public"
  22769. deprecated="not deprecated">
  22770. <param name="c" type="java.lang.Class"/>
  22771. </method>
  22772. <doc>
  22773. <![CDATA[<p>
  22774. A factory for {@link Serialization}s.
  22775. </p>]]>
  22776. </doc>
  22777. </class>
  22778. <!-- end class org.apache.hadoop.io.serializer.SerializationFactory -->
  22779. <!-- start interface org.apache.hadoop.io.serializer.Serializer -->
  22780. <interface name="Serializer" abstract="true"
  22781. static="false" final="false" visibility="public"
  22782. deprecated="not deprecated">
  22783. <method name="open"
  22784. abstract="false" native="false" synchronized="false"
  22785. static="false" final="false" visibility="public"
  22786. deprecated="not deprecated">
  22787. <param name="out" type="java.io.OutputStream"/>
  22788. <exception name="IOException" type="java.io.IOException"/>
  22789. <doc>
  22790. <![CDATA[<p>Prepare the serializer for writing.</p>]]>
  22791. </doc>
  22792. </method>
  22793. <method name="serialize"
  22794. abstract="false" native="false" synchronized="false"
  22795. static="false" final="false" visibility="public"
  22796. deprecated="not deprecated">
  22797. <param name="t" type="java.lang.Object"/>
  22798. <exception name="IOException" type="java.io.IOException"/>
  22799. <doc>
  22800. <![CDATA[<p>Serialize <code>t</code> to the underlying output stream.</p>]]>
  22801. </doc>
  22802. </method>
  22803. <method name="close"
  22804. abstract="false" native="false" synchronized="false"
  22805. static="false" final="false" visibility="public"
  22806. deprecated="not deprecated">
  22807. <exception name="IOException" type="java.io.IOException"/>
  22808. <doc>
  22809. <![CDATA[<p>Close the underlying output stream and clear up any resources.</p>]]>
  22810. </doc>
  22811. </method>
  22812. <doc>
  22813. <![CDATA[<p>
  22814. Provides a facility for serializing objects of type <T> to an
  22815. {@link OutputStream}.
  22816. </p>
  22817. <p>
  22818. Serializers are stateful, but must not buffer the output since
  22819. other producers may write to the output between calls to
  22820. {@link #serialize(Object)}.
  22821. </p>
  22822. @param <T>]]>
  22823. </doc>
  22824. </interface>
  22825. <!-- end interface org.apache.hadoop.io.serializer.Serializer -->
  22826. <!-- start class org.apache.hadoop.io.serializer.WritableSerialization -->
  22827. <class name="WritableSerialization" extends="org.apache.hadoop.conf.Configured"
  22828. abstract="false"
  22829. static="false" final="false" visibility="public"
  22830. deprecated="not deprecated">
  22831. <implements name="org.apache.hadoop.io.serializer.Serialization"/>
  22832. <constructor name="WritableSerialization"
  22833. static="false" final="false" visibility="public"
  22834. deprecated="not deprecated">
  22835. </constructor>
  22836. <method name="accept" return="boolean"
  22837. abstract="false" native="false" synchronized="false"
  22838. static="false" final="false" visibility="public"
  22839. deprecated="not deprecated">
  22840. <param name="c" type="java.lang.Class"/>
  22841. </method>
  22842. <method name="getDeserializer" return="org.apache.hadoop.io.serializer.Deserializer"
  22843. abstract="false" native="false" synchronized="false"
  22844. static="false" final="false" visibility="public"
  22845. deprecated="not deprecated">
  22846. <param name="c" type="java.lang.Class"/>
  22847. </method>
  22848. <method name="getSerializer" return="org.apache.hadoop.io.serializer.Serializer"
  22849. abstract="false" native="false" synchronized="false"
  22850. static="false" final="false" visibility="public"
  22851. deprecated="not deprecated">
  22852. <param name="c" type="java.lang.Class"/>
  22853. </method>
  22854. <doc>
  22855. <![CDATA[A {@link Serialization} for {@link Writable}s that delegates to
  22856. {@link Writable#write(java.io.DataOutput)} and
  22857. {@link Writable#readFields(java.io.DataInput)}.]]>
  22858. </doc>
  22859. </class>
  22860. <!-- end class org.apache.hadoop.io.serializer.WritableSerialization -->
  22861. </package>
  22862. <package name="org.apache.hadoop.ipc">
  22863. <!-- start class org.apache.hadoop.ipc.Client -->
  22864. <class name="Client" extends="java.lang.Object"
  22865. abstract="false"
  22866. static="false" final="false" visibility="public"
  22867. deprecated="not deprecated">
  22868. <constructor name="Client" type="java.lang.Class, org.apache.hadoop.conf.Configuration, javax.net.SocketFactory"
  22869. static="false" final="false" visibility="public"
  22870. deprecated="not deprecated">
  22871. <doc>
  22872. <![CDATA[Construct an IPC client whose values are of the given {@link Writable}
  22873. class.]]>
  22874. </doc>
  22875. </constructor>
  22876. <constructor name="Client" type="java.lang.Class, org.apache.hadoop.conf.Configuration"
  22877. static="false" final="false" visibility="public"
  22878. deprecated="not deprecated">
  22879. <doc>
  22880. <![CDATA[Construct an IPC client with the default SocketFactory
  22881. @param valueClass
  22882. @param conf]]>
  22883. </doc>
  22884. </constructor>
  22885. <method name="setPingInterval"
  22886. abstract="false" native="false" synchronized="false"
  22887. static="true" final="true" visibility="public"
  22888. deprecated="not deprecated">
  22889. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  22890. <param name="pingInterval" type="int"/>
  22891. <doc>
  22892. <![CDATA[set the ping interval value in configuration
  22893. @param conf Configuration
  22894. @param pingInterval the ping interval]]>
  22895. </doc>
  22896. </method>
  22897. <method name="getTimeout" return="int"
  22898. abstract="false" native="false" synchronized="false"
  22899. static="true" final="true" visibility="public"
  22900. deprecated="not deprecated">
  22901. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  22902. <doc>
  22903. <![CDATA[The time after which a RPC will timeout. If ping is not enabled (via
  22904. ipc.client.ping), then the timeout value is the same as the pingInterval.
  22905. If ping is enabled, then there is no timeout value.
  22906. @param conf Configuration
  22907. @return the timeout period in milliseconds. -1 if no timeout value is set]]>
  22908. </doc>
  22909. </method>
  22910. <method name="stop"
  22911. abstract="false" native="false" synchronized="false"
  22912. static="false" final="false" visibility="public"
  22913. deprecated="not deprecated">
  22914. <doc>
  22915. <![CDATA[Stop all threads related to this client. No further calls may be made
  22916. using this client.]]>
  22917. </doc>
  22918. </method>
  22919. <method name="call" return="org.apache.hadoop.io.Writable"
  22920. abstract="false" native="false" synchronized="false"
  22921. static="false" final="false" visibility="public"
  22922. deprecated="Use {@link #call(Writable, ConnectionId)} instead">
  22923. <param name="param" type="org.apache.hadoop.io.Writable"/>
  22924. <param name="address" type="java.net.InetSocketAddress"/>
  22925. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  22926. <exception name="IOException" type="java.io.IOException"/>
  22927. <doc>
  22928. <![CDATA[Make a call, passing <code>param</code>, to the IPC server running at
  22929. <code>address</code>, returning the value. Throws exceptions if there are
  22930. network problems or if the remote code threw an exception.
  22931. @deprecated Use {@link #call(Writable, ConnectionId)} instead]]>
  22932. </doc>
  22933. </method>
  22934. <method name="call" return="org.apache.hadoop.io.Writable"
  22935. abstract="false" native="false" synchronized="false"
  22936. static="false" final="false" visibility="public"
  22937. deprecated="Use {@link #call(Writable, ConnectionId)} instead">
  22938. <param name="param" type="org.apache.hadoop.io.Writable"/>
  22939. <param name="addr" type="java.net.InetSocketAddress"/>
  22940. <param name="ticket" type="org.apache.hadoop.security.UserGroupInformation"/>
  22941. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  22942. <exception name="IOException" type="java.io.IOException"/>
  22943. <doc>
  22944. <![CDATA[Make a call, passing <code>param</code>, to the IPC server running at
  22945. <code>address</code> with the <code>ticket</code> credentials, returning
  22946. the value.
  22947. Throws exceptions if there are network problems or if the remote code
  22948. threw an exception.
  22949. @deprecated Use {@link #call(Writable, ConnectionId)} instead]]>
  22950. </doc>
  22951. </method>
  22952. <method name="call" return="org.apache.hadoop.io.Writable"
  22953. abstract="false" native="false" synchronized="false"
  22954. static="false" final="false" visibility="public"
  22955. deprecated="Use {@link #call(Writable, ConnectionId)} instead">
  22956. <param name="param" type="org.apache.hadoop.io.Writable"/>
  22957. <param name="addr" type="java.net.InetSocketAddress"/>
  22958. <param name="protocol" type="java.lang.Class"/>
  22959. <param name="ticket" type="org.apache.hadoop.security.UserGroupInformation"/>
  22960. <param name="rpcTimeout" type="int"/>
  22961. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  22962. <exception name="IOException" type="java.io.IOException"/>
  22963. <doc>
  22964. <![CDATA[Make a call, passing <code>param</code>, to the IPC server running at
  22965. <code>address</code> which is servicing the <code>protocol</code> protocol,
  22966. with the <code>ticket</code> credentials and <code>rpcTimeout</code> as
  22967. timeout, returning the value.
  22968. Throws exceptions if there are network problems or if the remote code
  22969. threw an exception.
  22970. @deprecated Use {@link #call(Writable, ConnectionId)} instead]]>
  22971. </doc>
  22972. </method>
  22973. <method name="call" return="org.apache.hadoop.io.Writable"
  22974. abstract="false" native="false" synchronized="false"
  22975. static="false" final="false" visibility="public"
  22976. deprecated="not deprecated">
  22977. <param name="param" type="org.apache.hadoop.io.Writable"/>
  22978. <param name="addr" type="java.net.InetSocketAddress"/>
  22979. <param name="protocol" type="java.lang.Class"/>
  22980. <param name="ticket" type="org.apache.hadoop.security.UserGroupInformation"/>
  22981. <param name="rpcTimeout" type="int"/>
  22982. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  22983. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  22984. <exception name="IOException" type="java.io.IOException"/>
  22985. <doc>
  22986. <![CDATA[Make a call, passing <code>param</code>, to the IPC server running at
  22987. <code>address</code> which is servicing the <code>protocol</code> protocol,
  22988. with the <code>ticket</code> credentials, <code>rpcTimeout</code> as timeout
  22989. and <code>conf</code> as configuration for this connection, returning the
  22990. value. Throws exceptions if there are network problems or if the remote code
  22991. threw an exception.]]>
  22992. </doc>
  22993. </method>
  22994. <method name="call" return="org.apache.hadoop.io.Writable"
  22995. abstract="false" native="false" synchronized="false"
  22996. static="false" final="false" visibility="public"
  22997. deprecated="not deprecated">
  22998. <param name="param" type="org.apache.hadoop.io.Writable"/>
  22999. <param name="remoteId" type="org.apache.hadoop.ipc.Client.ConnectionId"/>
  23000. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  23001. <exception name="IOException" type="java.io.IOException"/>
  23002. <doc>
  23003. <![CDATA[Make a call, passing <code>param</code>, to the IPC server defined by
  23004. <code>remoteId</code>, returning the value.
  23005. Throws exceptions if there are network problems or if the remote code
  23006. threw an exception.]]>
  23007. </doc>
  23008. </method>
  23009. <method name="call" return="org.apache.hadoop.io.Writable[]"
  23010. abstract="false" native="false" synchronized="false"
  23011. static="false" final="false" visibility="public"
  23012. deprecated="Use {@link #call(Writable[], InetSocketAddress[],
  23013. Class, UserGroupInformation, Configuration)} instead">
  23014. <param name="params" type="org.apache.hadoop.io.Writable[]"/>
  23015. <param name="addresses" type="java.net.InetSocketAddress[]"/>
  23016. <exception name="IOException" type="java.io.IOException"/>
  23017. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  23018. <doc>
  23019. <![CDATA[@deprecated Use {@link #call(Writable[], InetSocketAddress[],
  23020. Class, UserGroupInformation, Configuration)} instead]]>
  23021. </doc>
  23022. </method>
  23023. <method name="call" return="org.apache.hadoop.io.Writable[]"
  23024. abstract="false" native="false" synchronized="false"
  23025. static="false" final="false" visibility="public"
  23026. deprecated="Use {@link #call(Writable[], InetSocketAddress[],
  23027. Class, UserGroupInformation, Configuration)} instead">
  23028. <param name="params" type="org.apache.hadoop.io.Writable[]"/>
  23029. <param name="addresses" type="java.net.InetSocketAddress[]"/>
  23030. <param name="protocol" type="java.lang.Class"/>
  23031. <param name="ticket" type="org.apache.hadoop.security.UserGroupInformation"/>
  23032. <exception name="IOException" type="java.io.IOException"/>
  23033. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  23034. <doc>
  23035. <![CDATA[@deprecated Use {@link #call(Writable[], InetSocketAddress[],
  23036. Class, UserGroupInformation, Configuration)} instead]]>
  23037. </doc>
  23038. </method>
  23039. <method name="call" return="org.apache.hadoop.io.Writable[]"
  23040. abstract="false" native="false" synchronized="false"
  23041. static="false" final="false" visibility="public"
  23042. deprecated="not deprecated">
  23043. <param name="params" type="org.apache.hadoop.io.Writable[]"/>
  23044. <param name="addresses" type="java.net.InetSocketAddress[]"/>
  23045. <param name="protocol" type="java.lang.Class"/>
  23046. <param name="ticket" type="org.apache.hadoop.security.UserGroupInformation"/>
  23047. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  23048. <exception name="IOException" type="java.io.IOException"/>
  23049. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  23050. <doc>
  23051. <![CDATA[Makes a set of calls in parallel. Each parameter is sent to the
  23052. corresponding address. When all values are available, or have timed out
  23053. or errored, the collected results are returned in an array. The array
  23054. contains nulls for calls that timed out or errored.]]>
  23055. </doc>
  23056. </method>
  23057. <field name="IPC_CLIENT_CONNECT_MAX_RETRIES_KEY" type="java.lang.String"
  23058. transient="false" volatile="false"
  23059. static="true" final="true" visibility="public"
  23060. deprecated="not deprecated">
  23061. </field>
  23062. <field name="IPC_CLIENT_CONNECT_MAX_RETRIES_DEFAULT" type="int"
  23063. transient="false" volatile="false"
  23064. static="true" final="true" visibility="public"
  23065. deprecated="not deprecated">
  23066. </field>
  23067. <field name="LOG" type="org.apache.commons.logging.Log"
  23068. transient="false" volatile="false"
  23069. static="true" final="true" visibility="public"
  23070. deprecated="not deprecated">
  23071. </field>
  23072. <doc>
  23073. <![CDATA[A client for an IPC service. IPC calls take a single {@link Writable} as a
  23074. parameter, and return a {@link Writable} as their value. A service runs on
  23075. a port and is defined by a parameter class and a value class.
  23076. @see Server]]>
  23077. </doc>
  23078. </class>
  23079. <!-- end class org.apache.hadoop.ipc.Client -->
  23080. <!-- start class org.apache.hadoop.ipc.RemoteException -->
  23081. <class name="RemoteException" extends="java.io.IOException"
  23082. abstract="false"
  23083. static="false" final="false" visibility="public"
  23084. deprecated="not deprecated">
  23085. <constructor name="RemoteException" type="java.lang.String, java.lang.String"
  23086. static="false" final="false" visibility="public"
  23087. deprecated="not deprecated">
  23088. </constructor>
  23089. <method name="getClassName" return="java.lang.String"
  23090. abstract="false" native="false" synchronized="false"
  23091. static="false" final="false" visibility="public"
  23092. deprecated="not deprecated">
  23093. </method>
  23094. <method name="unwrapRemoteException" return="java.io.IOException"
  23095. abstract="false" native="false" synchronized="false"
  23096. static="false" final="false" visibility="public"
  23097. deprecated="not deprecated">
  23098. <param name="lookupTypes" type="java.lang.Class[]"/>
  23099. <doc>
  23100. <![CDATA[If this remote exception wraps up one of the lookupTypes
  23101. then return this exception.
  23102. <p>
  23103. Unwraps any IOException.
  23104. @param lookupTypes the desired exception class.
  23105. @return IOException, which is either the lookupClass exception or this.]]>
  23106. </doc>
  23107. </method>
  23108. <method name="unwrapRemoteException" return="java.io.IOException"
  23109. abstract="false" native="false" synchronized="false"
  23110. static="false" final="false" visibility="public"
  23111. deprecated="not deprecated">
  23112. <doc>
  23113. <![CDATA[Instantiate and return the exception wrapped up by this remote exception.
  23114. <p> This unwraps any <code>Throwable</code> that has a constructor taking
  23115. a <code>String</code> as a parameter.
  23116. Otherwise it returns this.
  23117. @return <code>Throwable]]>
  23118. </doc>
  23119. </method>
  23120. <method name="valueOf" return="org.apache.hadoop.ipc.RemoteException"
  23121. abstract="false" native="false" synchronized="false"
  23122. static="true" final="false" visibility="public"
  23123. deprecated="not deprecated">
  23124. <param name="attrs" type="org.xml.sax.Attributes"/>
  23125. <doc>
  23126. <![CDATA[Create RemoteException from attributes]]>
  23127. </doc>
  23128. </method>
  23129. </class>
  23130. <!-- end class org.apache.hadoop.ipc.RemoteException -->
  23131. <!-- start class org.apache.hadoop.ipc.RPC -->
  23132. <class name="RPC" extends="java.lang.Object"
  23133. abstract="false"
  23134. static="false" final="false" visibility="public"
  23135. deprecated="not deprecated">
  23136. <method name="waitForProxy" return="org.apache.hadoop.ipc.VersionedProtocol"
  23137. abstract="false" native="false" synchronized="false"
  23138. static="true" final="false" visibility="public"
  23139. deprecated="not deprecated">
  23140. <param name="protocol" type="java.lang.Class"/>
  23141. <param name="clientVersion" type="long"/>
  23142. <param name="addr" type="java.net.InetSocketAddress"/>
  23143. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  23144. <exception name="IOException" type="java.io.IOException"/>
  23145. </method>
  23146. <method name="getProxy" return="org.apache.hadoop.ipc.VersionedProtocol"
  23147. abstract="false" native="false" synchronized="false"
  23148. static="true" final="false" visibility="public"
  23149. deprecated="not deprecated">
  23150. <param name="protocol" type="java.lang.Class"/>
  23151. <param name="clientVersion" type="long"/>
  23152. <param name="addr" type="java.net.InetSocketAddress"/>
  23153. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  23154. <param name="factory" type="javax.net.SocketFactory"/>
  23155. <exception name="IOException" type="java.io.IOException"/>
  23156. <doc>
  23157. <![CDATA[Construct a client-side proxy object that implements the named protocol,
  23158. talking to a server at the named address.]]>
  23159. </doc>
  23160. </method>
  23161. <method name="getProxy" return="org.apache.hadoop.ipc.VersionedProtocol"
  23162. abstract="false" native="false" synchronized="false"
  23163. static="true" final="false" visibility="public"
  23164. deprecated="not deprecated">
  23165. <param name="protocol" type="java.lang.Class"/>
  23166. <param name="clientVersion" type="long"/>
  23167. <param name="addr" type="java.net.InetSocketAddress"/>
  23168. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  23169. <param name="factory" type="javax.net.SocketFactory"/>
  23170. <param name="rpcTimeout" type="int"/>
  23171. <exception name="IOException" type="java.io.IOException"/>
  23172. <doc>
  23173. <![CDATA[Construct a client-side proxy object that implements the named protocol,
  23174. talking to a server at the named address.]]>
  23175. </doc>
  23176. </method>
  23177. <method name="getProxy" return="org.apache.hadoop.ipc.VersionedProtocol"
  23178. abstract="false" native="false" synchronized="false"
  23179. static="true" final="false" visibility="public"
  23180. deprecated="not deprecated">
  23181. <param name="protocol" type="java.lang.Class"/>
  23182. <param name="clientVersion" type="long"/>
  23183. <param name="addr" type="java.net.InetSocketAddress"/>
  23184. <param name="ticket" type="org.apache.hadoop.security.UserGroupInformation"/>
  23185. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  23186. <param name="factory" type="javax.net.SocketFactory"/>
  23187. <exception name="IOException" type="java.io.IOException"/>
  23188. <doc>
  23189. <![CDATA[Construct a client-side proxy object that implements the named protocol,
  23190. talking to a server at the named address.]]>
  23191. </doc>
  23192. </method>
  23193. <method name="getProxy" return="org.apache.hadoop.ipc.VersionedProtocol"
  23194. abstract="false" native="false" synchronized="false"
  23195. static="true" final="false" visibility="public"
  23196. deprecated="not deprecated">
  23197. <param name="protocol" type="java.lang.Class"/>
  23198. <param name="clientVersion" type="long"/>
  23199. <param name="addr" type="java.net.InetSocketAddress"/>
  23200. <param name="ticket" type="org.apache.hadoop.security.UserGroupInformation"/>
  23201. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  23202. <param name="factory" type="javax.net.SocketFactory"/>
  23203. <param name="rpcTimeout" type="int"/>
  23204. <exception name="IOException" type="java.io.IOException"/>
  23205. <doc>
  23206. <![CDATA[Construct a client-side proxy object that implements the named protocol,
  23207. talking to a server at the named address.]]>
  23208. </doc>
  23209. </method>
  23210. <method name="getProxy" return="org.apache.hadoop.ipc.VersionedProtocol"
  23211. abstract="false" native="false" synchronized="false"
  23212. static="true" final="false" visibility="public"
  23213. deprecated="not deprecated">
  23214. <param name="protocol" type="java.lang.Class"/>
  23215. <param name="clientVersion" type="long"/>
  23216. <param name="addr" type="java.net.InetSocketAddress"/>
  23217. <param name="ticket" type="org.apache.hadoop.security.UserGroupInformation"/>
  23218. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  23219. <param name="factory" type="javax.net.SocketFactory"/>
  23220. <param name="rpcTimeout" type="int"/>
  23221. <param name="connectionRetryPolicy" type="org.apache.hadoop.io.retry.RetryPolicy"/>
  23222. <param name="checkVersion" type="boolean"/>
  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="checkVersion"
  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="proxy" type="org.apache.hadoop.ipc.VersionedProtocol"/>
  23236. <exception name="IOException" type="java.io.IOException"/>
  23237. <doc>
  23238. <![CDATA[Get server version and then compare it with client version.]]>
  23239. </doc>
  23240. </method>
  23241. <method name="getProxy" return="org.apache.hadoop.ipc.VersionedProtocol"
  23242. abstract="false" native="false" synchronized="false"
  23243. static="true" final="false" visibility="public"
  23244. deprecated="not deprecated">
  23245. <param name="protocol" type="java.lang.Class"/>
  23246. <param name="clientVersion" type="long"/>
  23247. <param name="addr" type="java.net.InetSocketAddress"/>
  23248. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  23249. <exception name="IOException" type="java.io.IOException"/>
  23250. <doc>
  23251. <![CDATA[Construct a client-side proxy object with the default SocketFactory
  23252. @param protocol
  23253. @param clientVersion
  23254. @param addr
  23255. @param conf
  23256. @return a proxy instance
  23257. @throws IOException]]>
  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. <param name="rpcTimeout" type="int"/>
  23269. <exception name="IOException" type="java.io.IOException"/>
  23270. </method>
  23271. <method name="stopProxy"
  23272. abstract="false" native="false" synchronized="false"
  23273. static="true" final="false" visibility="public"
  23274. deprecated="not deprecated">
  23275. <param name="proxy" type="org.apache.hadoop.ipc.VersionedProtocol"/>
  23276. <doc>
  23277. <![CDATA[Stop this proxy and release its invoker's resource
  23278. @param proxy the proxy to be stopped]]>
  23279. </doc>
  23280. </method>
  23281. <method name="call" return="java.lang.Object[]"
  23282. abstract="false" native="false" synchronized="false"
  23283. static="true" final="false" visibility="public"
  23284. deprecated="Use {@link #call(Method, Object[][], InetSocketAddress[], UserGroupInformation, Configuration)} instead">
  23285. <param name="method" type="java.lang.reflect.Method"/>
  23286. <param name="params" type="java.lang.Object[][]"/>
  23287. <param name="addrs" type="java.net.InetSocketAddress[]"/>
  23288. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  23289. <exception name="IOException" type="java.io.IOException"/>
  23290. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  23291. <doc>
  23292. <![CDATA[Expert: Make multiple, parallel calls to a set of servers.
  23293. @deprecated Use {@link #call(Method, Object[][], InetSocketAddress[], UserGroupInformation, Configuration)} instead]]>
  23294. </doc>
  23295. </method>
  23296. <method name="call" return="java.lang.Object[]"
  23297. abstract="false" native="false" synchronized="false"
  23298. static="true" final="false" visibility="public"
  23299. deprecated="not deprecated">
  23300. <param name="method" type="java.lang.reflect.Method"/>
  23301. <param name="params" type="java.lang.Object[][]"/>
  23302. <param name="addrs" type="java.net.InetSocketAddress[]"/>
  23303. <param name="ticket" type="org.apache.hadoop.security.UserGroupInformation"/>
  23304. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  23305. <exception name="IOException" type="java.io.IOException"/>
  23306. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  23307. <doc>
  23308. <![CDATA[Expert: Make multiple, parallel calls to a set of servers.]]>
  23309. </doc>
  23310. </method>
  23311. <method name="getServer" return="org.apache.hadoop.ipc.RPC.Server"
  23312. abstract="false" native="false" synchronized="false"
  23313. static="true" final="false" visibility="public"
  23314. deprecated="not deprecated">
  23315. <param name="instance" type="java.lang.Object"/>
  23316. <param name="bindAddress" type="java.lang.String"/>
  23317. <param name="port" type="int"/>
  23318. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  23319. <exception name="IOException" type="java.io.IOException"/>
  23320. <doc>
  23321. <![CDATA[Construct a server for a protocol implementation instance listening on a
  23322. port and address.]]>
  23323. </doc>
  23324. </method>
  23325. <method name="getServer" return="org.apache.hadoop.ipc.RPC.Server"
  23326. abstract="false" native="false" synchronized="false"
  23327. static="true" final="false" visibility="public"
  23328. deprecated="not deprecated">
  23329. <param name="instance" type="java.lang.Object"/>
  23330. <param name="bindAddress" type="java.lang.String"/>
  23331. <param name="port" type="int"/>
  23332. <param name="numHandlers" type="int"/>
  23333. <param name="verbose" type="boolean"/>
  23334. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  23335. <exception name="IOException" type="java.io.IOException"/>
  23336. <doc>
  23337. <![CDATA[Construct a server for a protocol implementation instance listening on a
  23338. port and address.]]>
  23339. </doc>
  23340. </method>
  23341. <method name="getServer" return="org.apache.hadoop.ipc.RPC.Server"
  23342. abstract="false" native="false" synchronized="false"
  23343. static="true" final="false" visibility="public"
  23344. deprecated="not deprecated">
  23345. <param name="instance" type="java.lang.Object"/>
  23346. <param name="bindAddress" type="java.lang.String"/>
  23347. <param name="port" type="int"/>
  23348. <param name="numHandlers" type="int"/>
  23349. <param name="verbose" type="boolean"/>
  23350. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  23351. <param name="secretManager" type="org.apache.hadoop.security.token.SecretManager"/>
  23352. <exception name="IOException" type="java.io.IOException"/>
  23353. <doc>
  23354. <![CDATA[Construct a server for a protocol implementation instance listening on a
  23355. port and address, with a secret manager.]]>
  23356. </doc>
  23357. </method>
  23358. <doc>
  23359. <![CDATA[A simple RPC mechanism.
  23360. A <i>protocol</i> is a Java interface. All parameters and return types must
  23361. be one of:
  23362. <ul> <li>a primitive type, <code>boolean</code>, <code>byte</code>,
  23363. <code>char</code>, <code>short</code>, <code>int</code>, <code>long</code>,
  23364. <code>float</code>, <code>double</code>, or <code>void</code>; or</li>
  23365. <li>a {@link String}; or</li>
  23366. <li>a {@link Writable}; or</li>
  23367. <li>an array of the above types</li> </ul>
  23368. All methods in the protocol should throw only IOException. No field data of
  23369. the protocol instance is transmitted.]]>
  23370. </doc>
  23371. </class>
  23372. <!-- end class org.apache.hadoop.ipc.RPC -->
  23373. <!-- start class org.apache.hadoop.ipc.RPC.Server -->
  23374. <class name="RPC.Server" extends="org.apache.hadoop.ipc.Server"
  23375. abstract="false"
  23376. static="true" final="false" visibility="public"
  23377. deprecated="not deprecated">
  23378. <constructor name="RPC.Server" type="java.lang.Object, org.apache.hadoop.conf.Configuration, java.lang.String, int"
  23379. static="false" final="false" visibility="public"
  23380. deprecated="not deprecated">
  23381. <exception name="IOException" type="java.io.IOException"/>
  23382. <doc>
  23383. <![CDATA[Construct an RPC server.
  23384. @param instance the instance whose methods will be called
  23385. @param conf the configuration to use
  23386. @param bindAddress the address to bind on to listen for connection
  23387. @param port the port to listen for connections on]]>
  23388. </doc>
  23389. </constructor>
  23390. <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"
  23391. static="false" final="false" visibility="public"
  23392. deprecated="not deprecated">
  23393. <exception name="IOException" type="java.io.IOException"/>
  23394. <doc>
  23395. <![CDATA[Construct an RPC server.
  23396. @param instance the instance whose methods will be called
  23397. @param conf the configuration to use
  23398. @param bindAddress the address to bind on to listen for connection
  23399. @param port the port to listen for connections on
  23400. @param numHandlers the number of method handler threads to run
  23401. @param verbose whether each call should be logged]]>
  23402. </doc>
  23403. </constructor>
  23404. <method name="call" return="org.apache.hadoop.io.Writable"
  23405. abstract="false" native="false" synchronized="false"
  23406. static="false" final="false" visibility="public"
  23407. deprecated="not deprecated">
  23408. <param name="protocol" type="java.lang.Class"/>
  23409. <param name="param" type="org.apache.hadoop.io.Writable"/>
  23410. <param name="receivedTime" type="long"/>
  23411. <exception name="IOException" type="java.io.IOException"/>
  23412. </method>
  23413. <doc>
  23414. <![CDATA[An RPC Server.]]>
  23415. </doc>
  23416. </class>
  23417. <!-- end class org.apache.hadoop.ipc.RPC.Server -->
  23418. <!-- start class org.apache.hadoop.ipc.RPC.VersionMismatch -->
  23419. <class name="RPC.VersionMismatch" extends="java.io.IOException"
  23420. abstract="false"
  23421. static="true" final="false" visibility="public"
  23422. deprecated="not deprecated">
  23423. <constructor name="RPC.VersionMismatch" type="java.lang.String, long, long"
  23424. static="false" final="false" visibility="public"
  23425. deprecated="not deprecated">
  23426. <doc>
  23427. <![CDATA[Create a version mismatch exception
  23428. @param interfaceName the name of the protocol mismatch
  23429. @param clientVersion the client's version of the protocol
  23430. @param serverVersion the server's version of the protocol]]>
  23431. </doc>
  23432. </constructor>
  23433. <method name="getInterfaceName" return="java.lang.String"
  23434. abstract="false" native="false" synchronized="false"
  23435. static="false" final="false" visibility="public"
  23436. deprecated="not deprecated">
  23437. <doc>
  23438. <![CDATA[Get the interface name
  23439. @return the java class name
  23440. (eg. org.apache.hadoop.mapred.InterTrackerProtocol)]]>
  23441. </doc>
  23442. </method>
  23443. <method name="getClientVersion" return="long"
  23444. abstract="false" native="false" synchronized="false"
  23445. static="false" final="false" visibility="public"
  23446. deprecated="not deprecated">
  23447. <doc>
  23448. <![CDATA[Get the client's preferred version]]>
  23449. </doc>
  23450. </method>
  23451. <method name="getServerVersion" return="long"
  23452. abstract="false" native="false" synchronized="false"
  23453. static="false" final="false" visibility="public"
  23454. deprecated="not deprecated">
  23455. <doc>
  23456. <![CDATA[Get the server's agreed to version.]]>
  23457. </doc>
  23458. </method>
  23459. <doc>
  23460. <![CDATA[A version mismatch for the RPC protocol.]]>
  23461. </doc>
  23462. </class>
  23463. <!-- end class org.apache.hadoop.ipc.RPC.VersionMismatch -->
  23464. <!-- start class org.apache.hadoop.ipc.Server -->
  23465. <class name="Server" extends="java.lang.Object"
  23466. abstract="true"
  23467. static="false" final="false" visibility="public"
  23468. deprecated="not deprecated">
  23469. <constructor name="Server" type="java.lang.String, int, java.lang.Class, int, org.apache.hadoop.conf.Configuration"
  23470. static="false" final="false" visibility="protected"
  23471. deprecated="not deprecated">
  23472. <exception name="IOException" type="java.io.IOException"/>
  23473. </constructor>
  23474. <constructor name="Server" type="java.lang.String, int, java.lang.Class, int, org.apache.hadoop.conf.Configuration, java.lang.String"
  23475. static="false" final="false" visibility="protected"
  23476. deprecated="not deprecated">
  23477. <exception name="IOException" type="java.io.IOException"/>
  23478. </constructor>
  23479. <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"
  23480. static="false" final="false" visibility="protected"
  23481. deprecated="not deprecated">
  23482. <exception name="IOException" type="java.io.IOException"/>
  23483. <doc>
  23484. <![CDATA[Constructs a server listening on the named port and address. Parameters passed must
  23485. be of the named class. The <code>handlerCount</handlerCount> determines
  23486. the number of handler threads that will be used to process calls.]]>
  23487. </doc>
  23488. </constructor>
  23489. <method name="addTerseExceptions"
  23490. abstract="false" native="false" synchronized="false"
  23491. static="false" final="false" visibility="public"
  23492. deprecated="not deprecated">
  23493. <param name="exceptionClass" type="java.lang.Class[]"/>
  23494. </method>
  23495. <method name="get" return="org.apache.hadoop.ipc.Server"
  23496. abstract="false" native="false" synchronized="false"
  23497. static="true" final="false" visibility="public"
  23498. deprecated="not deprecated">
  23499. <doc>
  23500. <![CDATA[Returns the server instance called under or null. May be called under
  23501. {@link #call(Writable, long)} implementations, and under {@link Writable}
  23502. methods of paramters and return values. Permits applications to access
  23503. the server context.]]>
  23504. </doc>
  23505. </method>
  23506. <method name="getRemoteIp" return="java.net.InetAddress"
  23507. abstract="false" native="false" synchronized="false"
  23508. static="true" final="false" visibility="public"
  23509. deprecated="not deprecated">
  23510. <doc>
  23511. <![CDATA[Returns the remote side ip address when invoked inside an RPC
  23512. Returns null incase of an error.]]>
  23513. </doc>
  23514. </method>
  23515. <method name="getRemoteAddress" return="java.lang.String"
  23516. abstract="false" native="false" synchronized="false"
  23517. static="true" final="false" visibility="public"
  23518. deprecated="not deprecated">
  23519. <doc>
  23520. <![CDATA[Returns remote address as a string when invoked inside an RPC.
  23521. Returns null in case of an error.]]>
  23522. </doc>
  23523. </method>
  23524. <method name="bind"
  23525. abstract="false" native="false" synchronized="false"
  23526. static="true" final="false" visibility="public"
  23527. deprecated="not deprecated">
  23528. <param name="socket" type="java.net.ServerSocket"/>
  23529. <param name="address" type="java.net.InetSocketAddress"/>
  23530. <param name="backlog" type="int"/>
  23531. <exception name="IOException" type="java.io.IOException"/>
  23532. <doc>
  23533. <![CDATA[A convenience method to bind to a given address and report
  23534. better exceptions if the address is not a valid host.
  23535. @param socket the socket to bind
  23536. @param address the address to bind to
  23537. @param backlog the number of connections allowed in the queue
  23538. @throws BindException if the address can't be bound
  23539. @throws UnknownHostException if the address isn't a valid host name
  23540. @throws IOException other random errors from bind]]>
  23541. </doc>
  23542. </method>
  23543. <method name="getRpcMetrics" return="org.apache.hadoop.ipc.metrics.RpcInstrumentation"
  23544. abstract="false" native="false" synchronized="false"
  23545. static="false" final="false" visibility="public"
  23546. deprecated="not deprecated">
  23547. <doc>
  23548. <![CDATA[Returns a handle to the rpcMetrics (required in tests)
  23549. @return rpc metrics]]>
  23550. </doc>
  23551. </method>
  23552. <method name="setSocketSendBufSize"
  23553. abstract="false" native="false" synchronized="false"
  23554. static="false" final="false" visibility="public"
  23555. deprecated="not deprecated">
  23556. <param name="size" type="int"/>
  23557. <doc>
  23558. <![CDATA[Sets the socket buffer size used for responding to RPCs]]>
  23559. </doc>
  23560. </method>
  23561. <method name="start"
  23562. abstract="false" native="false" synchronized="true"
  23563. static="false" final="false" visibility="public"
  23564. deprecated="not deprecated">
  23565. <doc>
  23566. <![CDATA[Starts the service. Must be called before any calls will be handled.]]>
  23567. </doc>
  23568. </method>
  23569. <method name="stop"
  23570. abstract="false" native="false" synchronized="true"
  23571. static="false" final="false" visibility="public"
  23572. deprecated="not deprecated">
  23573. <doc>
  23574. <![CDATA[Stops the service. No new calls will be handled after this is called.]]>
  23575. </doc>
  23576. </method>
  23577. <method name="join"
  23578. abstract="false" native="false" synchronized="true"
  23579. static="false" final="false" visibility="public"
  23580. deprecated="not deprecated">
  23581. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  23582. <doc>
  23583. <![CDATA[Wait for the server to be stopped.
  23584. Does not wait for all subthreads to finish.
  23585. See {@link #stop()}.]]>
  23586. </doc>
  23587. </method>
  23588. <method name="getListenerAddress" return="java.net.InetSocketAddress"
  23589. abstract="false" native="false" synchronized="true"
  23590. static="false" final="false" visibility="public"
  23591. deprecated="not deprecated">
  23592. <doc>
  23593. <![CDATA[Return the socket (ip+port) on which the RPC server is listening to.
  23594. @return the socket (ip+port) on which the RPC server is listening to.]]>
  23595. </doc>
  23596. </method>
  23597. <method name="call" return="org.apache.hadoop.io.Writable"
  23598. abstract="false" native="false" synchronized="false"
  23599. static="false" final="false" visibility="public"
  23600. deprecated="Use {@link #call(Class, Writable, long)} instead">
  23601. <param name="param" type="org.apache.hadoop.io.Writable"/>
  23602. <param name="receiveTime" type="long"/>
  23603. <exception name="IOException" type="java.io.IOException"/>
  23604. <doc>
  23605. <![CDATA[Called for each call.
  23606. @deprecated Use {@link #call(Class, Writable, long)} instead]]>
  23607. </doc>
  23608. </method>
  23609. <method name="call" return="org.apache.hadoop.io.Writable"
  23610. abstract="true" native="false" synchronized="false"
  23611. static="false" final="false" visibility="public"
  23612. deprecated="not deprecated">
  23613. <param name="protocol" type="java.lang.Class"/>
  23614. <param name="param" type="org.apache.hadoop.io.Writable"/>
  23615. <param name="receiveTime" type="long"/>
  23616. <exception name="IOException" type="java.io.IOException"/>
  23617. <doc>
  23618. <![CDATA[Called for each call.]]>
  23619. </doc>
  23620. </method>
  23621. <method name="authorize"
  23622. abstract="false" native="false" synchronized="false"
  23623. static="false" final="false" visibility="public"
  23624. deprecated="not deprecated">
  23625. <param name="user" type="org.apache.hadoop.security.UserGroupInformation"/>
  23626. <param name="connection" type="org.apache.hadoop.ipc.ConnectionHeader"/>
  23627. <param name="addr" type="java.net.InetAddress"/>
  23628. <exception name="AuthorizationException" type="org.apache.hadoop.security.authorize.AuthorizationException"/>
  23629. <doc>
  23630. <![CDATA[Authorize the incoming client connection.
  23631. @param user client user
  23632. @param connection incoming connection
  23633. @param addr InetAddress of incoming connection
  23634. @throws AuthorizationException when the client isn't authorized to talk the protocol]]>
  23635. </doc>
  23636. </method>
  23637. <method name="getNumOpenConnections" return="int"
  23638. abstract="false" native="false" synchronized="false"
  23639. static="false" final="false" visibility="public"
  23640. deprecated="not deprecated">
  23641. <doc>
  23642. <![CDATA[The number of open RPC conections
  23643. @return the number of open rpc connections]]>
  23644. </doc>
  23645. </method>
  23646. <method name="getCallQueueLen" return="int"
  23647. abstract="false" native="false" synchronized="false"
  23648. static="false" final="false" visibility="public"
  23649. deprecated="not deprecated">
  23650. <doc>
  23651. <![CDATA[The number of rpc calls in the queue.
  23652. @return The number of rpc calls in the queue.]]>
  23653. </doc>
  23654. </method>
  23655. <field name="HEADER" type="java.nio.ByteBuffer"
  23656. transient="false" volatile="false"
  23657. static="true" final="true" visibility="public"
  23658. deprecated="not deprecated">
  23659. <doc>
  23660. <![CDATA[The first four bytes of Hadoop RPC connections]]>
  23661. </doc>
  23662. </field>
  23663. <field name="CURRENT_VERSION" type="byte"
  23664. transient="false" volatile="false"
  23665. static="true" final="true" visibility="public"
  23666. deprecated="not deprecated">
  23667. </field>
  23668. <field name="LOG" type="org.apache.commons.logging.Log"
  23669. transient="false" volatile="false"
  23670. static="true" final="true" visibility="public"
  23671. deprecated="not deprecated">
  23672. </field>
  23673. <field name="rpcMetrics" type="org.apache.hadoop.ipc.metrics.RpcInstrumentation"
  23674. transient="false" volatile="false"
  23675. static="false" final="false" visibility="protected"
  23676. deprecated="not deprecated">
  23677. </field>
  23678. <doc>
  23679. <![CDATA[An abstract IPC service. IPC calls take a single {@link Writable} as a
  23680. parameter, and return a {@link Writable} as their value. A service runs on
  23681. a port and is defined by a parameter class and a value class.
  23682. @see Client]]>
  23683. </doc>
  23684. </class>
  23685. <!-- end class org.apache.hadoop.ipc.Server -->
  23686. <!-- start class org.apache.hadoop.ipc.Server.Connection -->
  23687. <class name="Server.Connection" extends="java.lang.Object"
  23688. abstract="false"
  23689. static="false" final="false" visibility="public"
  23690. deprecated="not deprecated">
  23691. <constructor name="Server.Connection" type="java.nio.channels.SelectionKey, java.nio.channels.SocketChannel, long"
  23692. static="false" final="false" visibility="public"
  23693. deprecated="not deprecated">
  23694. </constructor>
  23695. <method name="toString" return="java.lang.String"
  23696. abstract="false" native="false" synchronized="false"
  23697. static="false" final="false" visibility="public"
  23698. deprecated="not deprecated">
  23699. </method>
  23700. <method name="getHostAddress" return="java.lang.String"
  23701. abstract="false" native="false" synchronized="false"
  23702. static="false" final="false" visibility="public"
  23703. deprecated="not deprecated">
  23704. </method>
  23705. <method name="getHostInetAddress" return="java.net.InetAddress"
  23706. abstract="false" native="false" synchronized="false"
  23707. static="false" final="false" visibility="public"
  23708. deprecated="not deprecated">
  23709. </method>
  23710. <method name="setLastContact"
  23711. abstract="false" native="false" synchronized="false"
  23712. static="false" final="false" visibility="public"
  23713. deprecated="not deprecated">
  23714. <param name="lastContact" type="long"/>
  23715. </method>
  23716. <method name="getLastContact" return="long"
  23717. abstract="false" native="false" synchronized="false"
  23718. static="false" final="false" visibility="public"
  23719. deprecated="not deprecated">
  23720. </method>
  23721. <method name="readAndProcess" return="int"
  23722. abstract="false" native="false" synchronized="false"
  23723. static="false" final="false" visibility="public"
  23724. deprecated="not deprecated">
  23725. <exception name="IOException" type="java.io.IOException"/>
  23726. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  23727. </method>
  23728. <field name="attemptingUser" type="org.apache.hadoop.security.UserGroupInformation"
  23729. transient="false" volatile="false"
  23730. static="false" final="false" visibility="public"
  23731. deprecated="not deprecated">
  23732. </field>
  23733. <doc>
  23734. <![CDATA[Reads calls from a connection and queues them for handling.]]>
  23735. </doc>
  23736. </class>
  23737. <!-- end class org.apache.hadoop.ipc.Server.Connection -->
  23738. <!-- start interface org.apache.hadoop.ipc.VersionedProtocol -->
  23739. <interface name="VersionedProtocol" abstract="true"
  23740. static="false" final="false" visibility="public"
  23741. deprecated="not deprecated">
  23742. <method name="getProtocolVersion" return="long"
  23743. abstract="false" native="false" synchronized="false"
  23744. static="false" final="false" visibility="public"
  23745. deprecated="not deprecated">
  23746. <param name="protocol" type="java.lang.String"/>
  23747. <param name="clientVersion" type="long"/>
  23748. <exception name="IOException" type="java.io.IOException"/>
  23749. <doc>
  23750. <![CDATA[Return protocol version corresponding to protocol interface.
  23751. @param protocol The classname of the protocol interface
  23752. @param clientVersion The version of the protocol that the client speaks
  23753. @return the version that the server will speak]]>
  23754. </doc>
  23755. </method>
  23756. <doc>
  23757. <![CDATA[Superclass of all protocols that use Hadoop RPC.
  23758. Subclasses of this interface are also supposed to have
  23759. a static final long versionID field.]]>
  23760. </doc>
  23761. </interface>
  23762. <!-- end interface org.apache.hadoop.ipc.VersionedProtocol -->
  23763. </package>
  23764. <package name="org.apache.hadoop.ipc.metrics">
  23765. <!-- start class org.apache.hadoop.ipc.metrics.RpcInstrumentation -->
  23766. <class name="RpcInstrumentation" extends="java.lang.Object"
  23767. abstract="false"
  23768. static="false" final="false" visibility="public"
  23769. deprecated="not deprecated">
  23770. <implements name="org.apache.hadoop.metrics2.MetricsSource"/>
  23771. <method name="getMetrics"
  23772. abstract="false" native="false" synchronized="false"
  23773. static="false" final="false" visibility="public"
  23774. deprecated="not deprecated">
  23775. <param name="builder" type="org.apache.hadoop.metrics2.MetricsBuilder"/>
  23776. <param name="all" type="boolean"/>
  23777. </method>
  23778. <method name="create" return="org.apache.hadoop.ipc.metrics.RpcInstrumentation"
  23779. abstract="false" native="false" synchronized="false"
  23780. static="true" final="false" visibility="public"
  23781. deprecated="not deprecated">
  23782. <param name="serverName" type="java.lang.String"/>
  23783. <param name="port" type="int"/>
  23784. <doc>
  23785. <![CDATA[Create an RPC instrumentation object
  23786. @param serverName name of the server
  23787. @param port the RPC port
  23788. @return the instrumentation object]]>
  23789. </doc>
  23790. </method>
  23791. <method name="create" return="org.apache.hadoop.ipc.metrics.RpcInstrumentation"
  23792. abstract="false" native="false" synchronized="false"
  23793. static="true" final="false" visibility="public"
  23794. deprecated="not deprecated">
  23795. <param name="serverName" type="java.lang.String"/>
  23796. <param name="port" type="int"/>
  23797. <param name="ms" type="org.apache.hadoop.metrics2.MetricsSystem"/>
  23798. <doc>
  23799. <![CDATA[Create an RPC instrumentation object
  23800. Mostly useful for testing.
  23801. @param serverName name of the server
  23802. @param port the RPC port
  23803. @param ms the metrics system object
  23804. @return the instrumentation object]]>
  23805. </doc>
  23806. </method>
  23807. <method name="detailed" return="org.apache.hadoop.metrics2.MetricsSource"
  23808. abstract="false" native="false" synchronized="false"
  23809. static="false" final="false" visibility="public"
  23810. deprecated="not deprecated">
  23811. <doc>
  23812. <![CDATA[@return the detailed (per call) metrics source for RPC]]>
  23813. </doc>
  23814. </method>
  23815. <method name="incrAuthenticationFailures"
  23816. abstract="false" native="false" synchronized="false"
  23817. static="false" final="false" visibility="public"
  23818. deprecated="not deprecated">
  23819. <doc>
  23820. <![CDATA[One authentication failure event]]>
  23821. </doc>
  23822. </method>
  23823. <method name="incrAuthenticationSuccesses"
  23824. abstract="false" native="false" synchronized="false"
  23825. static="false" final="false" visibility="public"
  23826. deprecated="not deprecated">
  23827. <doc>
  23828. <![CDATA[One authentication success event]]>
  23829. </doc>
  23830. </method>
  23831. <method name="incrAuthorizationSuccesses"
  23832. abstract="false" native="false" synchronized="false"
  23833. static="false" final="false" visibility="public"
  23834. deprecated="not deprecated">
  23835. <doc>
  23836. <![CDATA[One authorization success event]]>
  23837. </doc>
  23838. </method>
  23839. <method name="incrAuthorizationFailures"
  23840. abstract="false" native="false" synchronized="false"
  23841. static="false" final="false" visibility="public"
  23842. deprecated="not deprecated">
  23843. <doc>
  23844. <![CDATA[One authorization failure event]]>
  23845. </doc>
  23846. </method>
  23847. <method name="shutdown"
  23848. abstract="false" native="false" synchronized="false"
  23849. static="false" final="false" visibility="public"
  23850. deprecated="not deprecated">
  23851. <doc>
  23852. <![CDATA[Shutdown the instrumentation for the process]]>
  23853. </doc>
  23854. </method>
  23855. <method name="incrSentBytes"
  23856. abstract="false" native="false" synchronized="false"
  23857. static="false" final="false" visibility="public"
  23858. deprecated="not deprecated">
  23859. <param name="count" type="int"/>
  23860. <doc>
  23861. <![CDATA[Increment sent bytes by count
  23862. @param count to increment]]>
  23863. </doc>
  23864. </method>
  23865. <method name="incrReceivedBytes"
  23866. abstract="false" native="false" synchronized="false"
  23867. static="false" final="false" visibility="public"
  23868. deprecated="not deprecated">
  23869. <param name="count" type="int"/>
  23870. <doc>
  23871. <![CDATA[Increment received bytes by count
  23872. @param count to increment]]>
  23873. </doc>
  23874. </method>
  23875. <method name="addRpcQueueTime"
  23876. abstract="false" native="false" synchronized="false"
  23877. static="false" final="false" visibility="public"
  23878. deprecated="not deprecated">
  23879. <param name="qTime" type="int"/>
  23880. <doc>
  23881. <![CDATA[Add an RPC queue time sample
  23882. @param qTime]]>
  23883. </doc>
  23884. </method>
  23885. <method name="addRpcProcessingTime"
  23886. abstract="false" native="false" synchronized="false"
  23887. static="false" final="false" visibility="public"
  23888. deprecated="not deprecated">
  23889. <param name="processingTime" type="int"/>
  23890. <doc>
  23891. <![CDATA[Add an RPC processing time sample
  23892. @param processingTime]]>
  23893. </doc>
  23894. </method>
  23895. <method name="addRpcProcessingTime"
  23896. abstract="false" native="false" synchronized="false"
  23897. static="false" final="false" visibility="public"
  23898. deprecated="not deprecated">
  23899. <param name="methodName" type="java.lang.String"/>
  23900. <param name="processingTime" type="int"/>
  23901. <doc>
  23902. <![CDATA[Add an RPC processing time sample for a particular RPC method
  23903. @param methodName method name of the RPC
  23904. @param processingTime elapsed processing time of the RPC]]>
  23905. </doc>
  23906. </method>
  23907. <doc>
  23908. <![CDATA[The RPC metrics instrumentation]]>
  23909. </doc>
  23910. </class>
  23911. <!-- end class org.apache.hadoop.ipc.metrics.RpcInstrumentation -->
  23912. <!-- start class org.apache.hadoop.ipc.metrics.RpcInstrumentation.Detailed -->
  23913. <class name="RpcInstrumentation.Detailed" extends="org.apache.hadoop.metrics2.lib.AbstractMetricsSource"
  23914. abstract="false"
  23915. static="true" final="false" visibility="public"
  23916. deprecated="not deprecated">
  23917. <method name="addRpcProcessingTime"
  23918. abstract="false" native="false" synchronized="true"
  23919. static="false" final="false" visibility="public"
  23920. deprecated="not deprecated">
  23921. <param name="methodName" type="java.lang.String"/>
  23922. <param name="processingTime" type="int"/>
  23923. </method>
  23924. <doc>
  23925. <![CDATA[Use a separate source for detailed (per call) RPC metrics for
  23926. easy and efficient filtering]]>
  23927. </doc>
  23928. </class>
  23929. <!-- end class org.apache.hadoop.ipc.metrics.RpcInstrumentation.Detailed -->
  23930. </package>
  23931. <package name="org.apache.hadoop.jmx">
  23932. <!-- start class org.apache.hadoop.jmx.JMXJsonServlet -->
  23933. <class name="JMXJsonServlet" extends="javax.servlet.http.HttpServlet"
  23934. abstract="false"
  23935. static="false" final="false" visibility="public"
  23936. deprecated="not deprecated">
  23937. <constructor name="JMXJsonServlet"
  23938. static="false" final="false" visibility="public"
  23939. deprecated="not deprecated">
  23940. </constructor>
  23941. <method name="init"
  23942. abstract="false" native="false" synchronized="false"
  23943. static="false" final="false" visibility="public"
  23944. deprecated="not deprecated">
  23945. <exception name="ServletException" type="javax.servlet.ServletException"/>
  23946. <doc>
  23947. <![CDATA[Initialize this servlet.]]>
  23948. </doc>
  23949. </method>
  23950. <method name="doGet"
  23951. abstract="false" native="false" synchronized="false"
  23952. static="false" final="false" visibility="public"
  23953. deprecated="not deprecated">
  23954. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  23955. <param name="response" type="javax.servlet.http.HttpServletResponse"/>
  23956. <doc>
  23957. <![CDATA[Process a GET request for the specified resource.
  23958. @param request
  23959. The servlet request we are processing
  23960. @param response
  23961. The servlet response we are creating]]>
  23962. </doc>
  23963. </method>
  23964. <field name="mBeanServer" type="javax.management.MBeanServer"
  23965. transient="true" volatile="false"
  23966. static="false" final="false" visibility="protected"
  23967. deprecated="not deprecated">
  23968. <doc>
  23969. <![CDATA[MBean server.]]>
  23970. </doc>
  23971. </field>
  23972. <doc>
  23973. <![CDATA[Provides Read only web access to JMX.
  23974. <p>
  23975. This servlet generally will be placed under the /jmx URL for each
  23976. HttpServer. It provides read only
  23977. access to JMX metrics. The optional <code>qry</code> parameter
  23978. may be used to query only a subset of the JMX Beans. This query
  23979. functionality is provided through the
  23980. {@link MBeanServer#queryNames(ObjectName, javax.management.QueryExp)}
  23981. method.
  23982. <p>
  23983. For example <code>http://.../jmx?qry=Hadoop:*</code> will return
  23984. all hadoop metrics exposed through JMX.
  23985. <p>
  23986. If the <code>qry</code> parameter is not formatted correctly then a
  23987. 400 BAD REQUEST http response code will be returned.
  23988. <p>
  23989. The return format is JSON and in the form
  23990. <p>
  23991. <code><pre>
  23992. {
  23993. "beans" : [
  23994. {
  23995. "name":"bean-name"
  23996. ...
  23997. }
  23998. ]
  23999. }
  24000. </pre></code>
  24001. <p>
  24002. The servlet attempts to convert the the JMXBeans into JSON. Each
  24003. bean's attributes will be converted to a JSON object member.
  24004. If the attribute is a boolean, a number, a string, or an array
  24005. it will be converted to the JSON equivalent.
  24006. If the value is a {@link CompositeData} then it will be converted
  24007. to a JSON object with the keys as the name of the JSON member and
  24008. the value is converted following these same rules.
  24009. If the value is a {@link TabularData} then it will be converted
  24010. to an array of the {@link CompositeData} elements that it contains.
  24011. All other objects will be converted to a string and output as such.
  24012. The bean's name and modelerType will be returned for all beans.]]>
  24013. </doc>
  24014. </class>
  24015. <!-- end class org.apache.hadoop.jmx.JMXJsonServlet -->
  24016. </package>
  24017. <package name="org.apache.hadoop.log">
  24018. <!-- start class org.apache.hadoop.log.EventCounter -->
  24019. <class name="EventCounter" extends="org.apache.hadoop.log.metrics.EventCounter"
  24020. abstract="false"
  24021. static="false" final="false" visibility="public"
  24022. deprecated="use {@link org.apache.hadoop.log.metrics.EventCounter} instead">
  24023. <constructor name="EventCounter"
  24024. static="false" final="false" visibility="public"
  24025. deprecated="not deprecated">
  24026. </constructor>
  24027. <doc>
  24028. <![CDATA[A log4J Appender that simply counts logging events in three levels:
  24029. fatal, error and warn. The class name is used in log4j.properties
  24030. @deprecated use {@link org.apache.hadoop.log.metrics.EventCounter} instead]]>
  24031. </doc>
  24032. </class>
  24033. <!-- end class org.apache.hadoop.log.EventCounter -->
  24034. <!-- start class org.apache.hadoop.log.LogLevel -->
  24035. <class name="LogLevel" extends="java.lang.Object"
  24036. abstract="false"
  24037. static="false" final="false" visibility="public"
  24038. deprecated="not deprecated">
  24039. <constructor name="LogLevel"
  24040. static="false" final="false" visibility="public"
  24041. deprecated="not deprecated">
  24042. </constructor>
  24043. <method name="main"
  24044. abstract="false" native="false" synchronized="false"
  24045. static="true" final="false" visibility="public"
  24046. deprecated="not deprecated">
  24047. <param name="args" type="java.lang.String[]"/>
  24048. <doc>
  24049. <![CDATA[A command line implementation]]>
  24050. </doc>
  24051. </method>
  24052. <field name="USAGES" type="java.lang.String"
  24053. transient="false" volatile="false"
  24054. static="true" final="true" visibility="public"
  24055. deprecated="not deprecated">
  24056. </field>
  24057. <doc>
  24058. <![CDATA[Change log level in runtime.]]>
  24059. </doc>
  24060. </class>
  24061. <!-- end class org.apache.hadoop.log.LogLevel -->
  24062. <!-- start class org.apache.hadoop.log.LogLevel.Servlet -->
  24063. <class name="LogLevel.Servlet" extends="javax.servlet.http.HttpServlet"
  24064. abstract="false"
  24065. static="true" final="false" visibility="public"
  24066. deprecated="not deprecated">
  24067. <constructor name="LogLevel.Servlet"
  24068. static="false" final="false" visibility="public"
  24069. deprecated="not deprecated">
  24070. </constructor>
  24071. <method name="doGet"
  24072. abstract="false" native="false" synchronized="false"
  24073. static="false" final="false" visibility="public"
  24074. deprecated="not deprecated">
  24075. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  24076. <param name="response" type="javax.servlet.http.HttpServletResponse"/>
  24077. <exception name="ServletException" type="javax.servlet.ServletException"/>
  24078. <exception name="IOException" type="java.io.IOException"/>
  24079. </method>
  24080. <doc>
  24081. <![CDATA[A servlet implementation]]>
  24082. </doc>
  24083. </class>
  24084. <!-- end class org.apache.hadoop.log.LogLevel.Servlet -->
  24085. </package>
  24086. <package name="org.apache.hadoop.log.metrics">
  24087. <!-- start class org.apache.hadoop.log.metrics.EventCounter -->
  24088. <class name="EventCounter" extends="org.apache.log4j.AppenderSkeleton"
  24089. abstract="false"
  24090. static="false" final="false" visibility="public"
  24091. deprecated="not deprecated">
  24092. <constructor name="EventCounter"
  24093. static="false" final="false" visibility="public"
  24094. deprecated="not deprecated">
  24095. </constructor>
  24096. <method name="getFatal" return="long"
  24097. abstract="false" native="false" synchronized="false"
  24098. static="true" final="false" visibility="public"
  24099. deprecated="not deprecated">
  24100. </method>
  24101. <method name="getError" return="long"
  24102. abstract="false" native="false" synchronized="false"
  24103. static="true" final="false" visibility="public"
  24104. deprecated="not deprecated">
  24105. </method>
  24106. <method name="getWarn" return="long"
  24107. abstract="false" native="false" synchronized="false"
  24108. static="true" final="false" visibility="public"
  24109. deprecated="not deprecated">
  24110. </method>
  24111. <method name="getInfo" return="long"
  24112. abstract="false" native="false" synchronized="false"
  24113. static="true" final="false" visibility="public"
  24114. deprecated="not deprecated">
  24115. </method>
  24116. <method name="append"
  24117. abstract="false" native="false" synchronized="false"
  24118. static="false" final="false" visibility="public"
  24119. deprecated="not deprecated">
  24120. <param name="event" type="org.apache.log4j.spi.LoggingEvent"/>
  24121. </method>
  24122. <method name="close"
  24123. abstract="false" native="false" synchronized="false"
  24124. static="false" final="false" visibility="public"
  24125. deprecated="not deprecated">
  24126. </method>
  24127. <method name="requiresLayout" return="boolean"
  24128. abstract="false" native="false" synchronized="false"
  24129. static="false" final="false" visibility="public"
  24130. deprecated="not deprecated">
  24131. </method>
  24132. <doc>
  24133. <![CDATA[A log4J Appender that simply counts logging events in three levels:
  24134. fatal, error and warn. The class name is used in log4j.properties]]>
  24135. </doc>
  24136. </class>
  24137. <!-- end class org.apache.hadoop.log.metrics.EventCounter -->
  24138. </package>
  24139. <package name="org.apache.hadoop.metrics">
  24140. <!-- start class org.apache.hadoop.metrics.ContextFactory -->
  24141. <class name="ContextFactory" extends="java.lang.Object"
  24142. abstract="false"
  24143. static="false" final="false" visibility="public"
  24144. deprecated="in favor of lEsS_tHaNcode>org.apache.hadoop.metrics2lEsS_tHaN/code> usage.">
  24145. <constructor name="ContextFactory"
  24146. static="false" final="false" visibility="protected"
  24147. deprecated="not deprecated">
  24148. <doc>
  24149. <![CDATA[Creates a new instance of ContextFactory]]>
  24150. </doc>
  24151. </constructor>
  24152. <method name="getAttribute" return="java.lang.Object"
  24153. abstract="false" native="false" synchronized="false"
  24154. static="false" final="false" visibility="public"
  24155. deprecated="not deprecated">
  24156. <param name="attributeName" type="java.lang.String"/>
  24157. <doc>
  24158. <![CDATA[Returns the value of the named attribute, or null if there is no
  24159. attribute of that name.
  24160. @param attributeName the attribute name
  24161. @return the attribute value]]>
  24162. </doc>
  24163. </method>
  24164. <method name="getAttributeNames" return="java.lang.String[]"
  24165. abstract="false" native="false" synchronized="false"
  24166. static="false" final="false" visibility="public"
  24167. deprecated="not deprecated">
  24168. <doc>
  24169. <![CDATA[Returns the names of all the factory's attributes.
  24170. @return the attribute names]]>
  24171. </doc>
  24172. </method>
  24173. <method name="setAttribute"
  24174. abstract="false" native="false" synchronized="false"
  24175. static="false" final="false" visibility="public"
  24176. deprecated="not deprecated">
  24177. <param name="attributeName" type="java.lang.String"/>
  24178. <param name="value" type="java.lang.Object"/>
  24179. <doc>
  24180. <![CDATA[Sets the named factory attribute to the specified value, creating it
  24181. if it did not already exist. If the value is null, this is the same as
  24182. calling removeAttribute.
  24183. @param attributeName the attribute name
  24184. @param value the new attribute value]]>
  24185. </doc>
  24186. </method>
  24187. <method name="removeAttribute"
  24188. abstract="false" native="false" synchronized="false"
  24189. static="false" final="false" visibility="public"
  24190. deprecated="not deprecated">
  24191. <param name="attributeName" type="java.lang.String"/>
  24192. <doc>
  24193. <![CDATA[Removes the named attribute if it exists.
  24194. @param attributeName the attribute name]]>
  24195. </doc>
  24196. </method>
  24197. <method name="getContext" return="org.apache.hadoop.metrics.MetricsContext"
  24198. abstract="false" native="false" synchronized="true"
  24199. static="false" final="false" visibility="public"
  24200. deprecated="not deprecated">
  24201. <param name="refName" type="java.lang.String"/>
  24202. <param name="contextName" type="java.lang.String"/>
  24203. <exception name="IOException" type="java.io.IOException"/>
  24204. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  24205. <exception name="InstantiationException" type="java.lang.InstantiationException"/>
  24206. <exception name="IllegalAccessException" type="java.lang.IllegalAccessException"/>
  24207. <doc>
  24208. <![CDATA[Returns the named MetricsContext instance, constructing it if necessary
  24209. using the factory's current configuration attributes. <p/>
  24210. When constructing the instance, if the factory property
  24211. <i>contextName</i>.class</code> exists,
  24212. its value is taken to be the name of the class to instantiate. Otherwise,
  24213. the default is to create an instance of
  24214. <code>org.apache.hadoop.metrics.spi.NullContext</code>, which is a
  24215. dummy "no-op" context which will cause all metric data to be discarded.
  24216. @param contextName the name of the context
  24217. @return the named MetricsContext]]>
  24218. </doc>
  24219. </method>
  24220. <method name="getContext" return="org.apache.hadoop.metrics.MetricsContext"
  24221. abstract="false" native="false" synchronized="true"
  24222. static="false" final="false" visibility="public"
  24223. deprecated="not deprecated">
  24224. <param name="contextName" type="java.lang.String"/>
  24225. <exception name="IOException" type="java.io.IOException"/>
  24226. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  24227. <exception name="InstantiationException" type="java.lang.InstantiationException"/>
  24228. <exception name="IllegalAccessException" type="java.lang.IllegalAccessException"/>
  24229. </method>
  24230. <method name="getAllContexts" return="java.util.Collection"
  24231. abstract="false" native="false" synchronized="true"
  24232. static="false" final="false" visibility="public"
  24233. deprecated="not deprecated">
  24234. <doc>
  24235. <![CDATA[Returns all MetricsContexts built by this factory.]]>
  24236. </doc>
  24237. </method>
  24238. <method name="getNullContext" return="org.apache.hadoop.metrics.MetricsContext"
  24239. abstract="false" native="false" synchronized="true"
  24240. static="true" final="false" visibility="public"
  24241. deprecated="not deprecated">
  24242. <param name="contextName" type="java.lang.String"/>
  24243. <doc>
  24244. <![CDATA[Returns a "null" context - one which does nothing.]]>
  24245. </doc>
  24246. </method>
  24247. <method name="getFactory" return="org.apache.hadoop.metrics.ContextFactory"
  24248. abstract="false" native="false" synchronized="true"
  24249. static="true" final="false" visibility="public"
  24250. deprecated="not deprecated">
  24251. <exception name="IOException" type="java.io.IOException"/>
  24252. <doc>
  24253. <![CDATA[Returns the singleton ContextFactory instance, constructing it if
  24254. necessary. <p/>
  24255. When the instance is constructed, this method checks if the file
  24256. <code>hadoop-metrics.properties</code> exists on the class path. If it
  24257. exists, it must be in the format defined by java.util.Properties, and all
  24258. the properties in the file are set as attributes on the newly created
  24259. ContextFactory instance.
  24260. @return the singleton ContextFactory instance]]>
  24261. </doc>
  24262. </method>
  24263. <doc>
  24264. <![CDATA[Factory class for creating MetricsContext objects. To obtain an instance
  24265. of this class, use the static <code>getFactory()</code> method.
  24266. @deprecated in favor of <code>org.apache.hadoop.metrics2</code> usage.]]>
  24267. </doc>
  24268. </class>
  24269. <!-- end class org.apache.hadoop.metrics.ContextFactory -->
  24270. <!-- start interface org.apache.hadoop.metrics.MetricsContext -->
  24271. <interface name="MetricsContext" abstract="true"
  24272. static="false" final="false" visibility="public"
  24273. deprecated="in favor of lEsS_tHaNcode>org.apache.hadoop.metrics2lEsS_tHaN/code> usage.">
  24274. <method name="init"
  24275. abstract="false" native="false" synchronized="false"
  24276. static="false" final="false" visibility="public"
  24277. deprecated="not deprecated">
  24278. <param name="contextName" type="java.lang.String"/>
  24279. <param name="factory" type="org.apache.hadoop.metrics.ContextFactory"/>
  24280. <doc>
  24281. <![CDATA[Initialize this context.
  24282. @param contextName The given name for this context
  24283. @param factory The creator of this context]]>
  24284. </doc>
  24285. </method>
  24286. <method name="getContextName" return="java.lang.String"
  24287. abstract="false" native="false" synchronized="false"
  24288. static="false" final="false" visibility="public"
  24289. deprecated="not deprecated">
  24290. <doc>
  24291. <![CDATA[Returns the context name.
  24292. @return the context name]]>
  24293. </doc>
  24294. </method>
  24295. <method name="startMonitoring"
  24296. abstract="false" native="false" synchronized="false"
  24297. static="false" final="false" visibility="public"
  24298. deprecated="not deprecated">
  24299. <exception name="IOException" type="java.io.IOException"/>
  24300. <doc>
  24301. <![CDATA[Starts or restarts monitoring, the emitting of metrics records as they are
  24302. updated.]]>
  24303. </doc>
  24304. </method>
  24305. <method name="stopMonitoring"
  24306. abstract="false" native="false" synchronized="false"
  24307. static="false" final="false" visibility="public"
  24308. deprecated="not deprecated">
  24309. <doc>
  24310. <![CDATA[Stops monitoring. This does not free any data that the implementation
  24311. may have buffered for sending at the next timer event. It
  24312. is OK to call <code>startMonitoring()</code> again after calling
  24313. this.
  24314. @see #close()]]>
  24315. </doc>
  24316. </method>
  24317. <method name="isMonitoring" return="boolean"
  24318. abstract="false" native="false" synchronized="false"
  24319. static="false" final="false" visibility="public"
  24320. deprecated="not deprecated">
  24321. <doc>
  24322. <![CDATA[Returns true if monitoring is currently in progress.]]>
  24323. </doc>
  24324. </method>
  24325. <method name="close"
  24326. abstract="false" native="false" synchronized="false"
  24327. static="false" final="false" visibility="public"
  24328. deprecated="not deprecated">
  24329. <doc>
  24330. <![CDATA[Stops monitoring and also frees any buffered data, returning this
  24331. object to its initial state.]]>
  24332. </doc>
  24333. </method>
  24334. <method name="createRecord" return="org.apache.hadoop.metrics.MetricsRecord"
  24335. abstract="false" native="false" synchronized="false"
  24336. static="false" final="false" visibility="public"
  24337. deprecated="not deprecated">
  24338. <param name="recordName" type="java.lang.String"/>
  24339. <doc>
  24340. <![CDATA[Creates a new MetricsRecord instance with the given <code>recordName</code>.
  24341. Throws an exception if the metrics implementation is configured with a fixed
  24342. set of record names and <code>recordName</code> is not in that set.
  24343. @param recordName the name of the record
  24344. @throws MetricsException if recordName conflicts with configuration data]]>
  24345. </doc>
  24346. </method>
  24347. <method name="registerUpdater"
  24348. abstract="false" native="false" synchronized="false"
  24349. static="false" final="false" visibility="public"
  24350. deprecated="not deprecated">
  24351. <param name="updater" type="org.apache.hadoop.metrics.Updater"/>
  24352. <doc>
  24353. <![CDATA[Registers a callback to be called at regular time intervals, as
  24354. determined by the implementation-class specific configuration.
  24355. @param updater object to be run periodically; it should updated
  24356. some metrics records and then return]]>
  24357. </doc>
  24358. </method>
  24359. <method name="unregisterUpdater"
  24360. abstract="false" native="false" synchronized="false"
  24361. static="false" final="false" visibility="public"
  24362. deprecated="not deprecated">
  24363. <param name="updater" type="org.apache.hadoop.metrics.Updater"/>
  24364. <doc>
  24365. <![CDATA[Removes a callback, if it exists.
  24366. @param updater object to be removed from the callback list]]>
  24367. </doc>
  24368. </method>
  24369. <method name="getPeriod" return="int"
  24370. abstract="false" native="false" synchronized="false"
  24371. static="false" final="false" visibility="public"
  24372. deprecated="not deprecated">
  24373. <doc>
  24374. <![CDATA[Returns the timer period.]]>
  24375. </doc>
  24376. </method>
  24377. <method name="getAllRecords" return="java.util.Map"
  24378. abstract="false" native="false" synchronized="false"
  24379. static="false" final="false" visibility="public"
  24380. deprecated="not deprecated">
  24381. <doc>
  24382. <![CDATA[Retrieves all the records managed by this MetricsContext.
  24383. Useful for monitoring systems that are polling-based.
  24384. @return A non-null map from all record names to the records managed.]]>
  24385. </doc>
  24386. </method>
  24387. <field name="DEFAULT_PERIOD" type="int"
  24388. transient="false" volatile="false"
  24389. static="true" final="true" visibility="public"
  24390. deprecated="not deprecated">
  24391. <doc>
  24392. <![CDATA[Default period in seconds at which data is sent to the metrics system.]]>
  24393. </doc>
  24394. </field>
  24395. <doc>
  24396. <![CDATA[The main interface to the metrics package.
  24397. @deprecated in favor of <code>org.apache.hadoop.metrics2</code> usage.]]>
  24398. </doc>
  24399. </interface>
  24400. <!-- end interface org.apache.hadoop.metrics.MetricsContext -->
  24401. <!-- start class org.apache.hadoop.metrics.MetricsException -->
  24402. <class name="MetricsException" extends="java.lang.RuntimeException"
  24403. abstract="false"
  24404. static="false" final="false" visibility="public"
  24405. deprecated="in favor of {@link org.apache.hadoop.metrics2.MetricsException}.">
  24406. <constructor name="MetricsException"
  24407. static="false" final="false" visibility="public"
  24408. deprecated="not deprecated">
  24409. <doc>
  24410. <![CDATA[Creates a new instance of MetricsException]]>
  24411. </doc>
  24412. </constructor>
  24413. <constructor name="MetricsException" type="java.lang.String"
  24414. static="false" final="false" visibility="public"
  24415. deprecated="not deprecated">
  24416. <doc>
  24417. <![CDATA[Creates a new instance of MetricsException
  24418. @param message an error message]]>
  24419. </doc>
  24420. </constructor>
  24421. <doc>
  24422. <![CDATA[General-purpose, unchecked metrics exception.
  24423. @deprecated in favor of {@link org.apache.hadoop.metrics2.MetricsException}.]]>
  24424. </doc>
  24425. </class>
  24426. <!-- end class org.apache.hadoop.metrics.MetricsException -->
  24427. <!-- start interface org.apache.hadoop.metrics.MetricsRecord -->
  24428. <interface name="MetricsRecord" abstract="true"
  24429. static="false" final="false" visibility="public"
  24430. deprecated="in favor of lEsS_tHaNcode>org.apache.hadoop.metrics2lEsS_tHaN/code> usage.">
  24431. <method name="getRecordName" return="java.lang.String"
  24432. abstract="false" native="false" synchronized="false"
  24433. static="false" final="false" visibility="public"
  24434. deprecated="not deprecated">
  24435. <doc>
  24436. <![CDATA[Returns the record name.
  24437. @return the record name]]>
  24438. </doc>
  24439. </method>
  24440. <method name="setTag"
  24441. abstract="false" native="false" synchronized="false"
  24442. static="false" final="false" visibility="public"
  24443. deprecated="not deprecated">
  24444. <param name="tagName" type="java.lang.String"/>
  24445. <param name="tagValue" type="java.lang.String"/>
  24446. <doc>
  24447. <![CDATA[Sets the named tag to the specified value. The tagValue may be null,
  24448. which is treated the same as an empty String.
  24449. @param tagName name of the tag
  24450. @param tagValue new value of the tag
  24451. @throws MetricsException if the tagName conflicts with the configuration]]>
  24452. </doc>
  24453. </method>
  24454. <method name="setTag"
  24455. abstract="false" native="false" synchronized="false"
  24456. static="false" final="false" visibility="public"
  24457. deprecated="not deprecated">
  24458. <param name="tagName" type="java.lang.String"/>
  24459. <param name="tagValue" type="int"/>
  24460. <doc>
  24461. <![CDATA[Sets the named tag to the specified value.
  24462. @param tagName name of the tag
  24463. @param tagValue new value of the tag
  24464. @throws MetricsException if the tagName conflicts with the configuration]]>
  24465. </doc>
  24466. </method>
  24467. <method name="setTag"
  24468. abstract="false" native="false" synchronized="false"
  24469. static="false" final="false" visibility="public"
  24470. deprecated="not deprecated">
  24471. <param name="tagName" type="java.lang.String"/>
  24472. <param name="tagValue" type="long"/>
  24473. <doc>
  24474. <![CDATA[Sets the named tag to the specified value.
  24475. @param tagName name of the tag
  24476. @param tagValue new value of the tag
  24477. @throws MetricsException if the tagName conflicts with the configuration]]>
  24478. </doc>
  24479. </method>
  24480. <method name="setTag"
  24481. abstract="false" native="false" synchronized="false"
  24482. static="false" final="false" visibility="public"
  24483. deprecated="not deprecated">
  24484. <param name="tagName" type="java.lang.String"/>
  24485. <param name="tagValue" type="short"/>
  24486. <doc>
  24487. <![CDATA[Sets the named tag to the specified value.
  24488. @param tagName name of the tag
  24489. @param tagValue new value of the tag
  24490. @throws MetricsException if the tagName conflicts with the configuration]]>
  24491. </doc>
  24492. </method>
  24493. <method name="setTag"
  24494. abstract="false" native="false" synchronized="false"
  24495. static="false" final="false" visibility="public"
  24496. deprecated="not deprecated">
  24497. <param name="tagName" type="java.lang.String"/>
  24498. <param name="tagValue" type="byte"/>
  24499. <doc>
  24500. <![CDATA[Sets the named tag to the specified value.
  24501. @param tagName name of the tag
  24502. @param tagValue new value of the tag
  24503. @throws MetricsException if the tagName conflicts with the configuration]]>
  24504. </doc>
  24505. </method>
  24506. <method name="removeTag"
  24507. abstract="false" native="false" synchronized="false"
  24508. static="false" final="false" visibility="public"
  24509. deprecated="not deprecated">
  24510. <param name="tagName" type="java.lang.String"/>
  24511. <doc>
  24512. <![CDATA[Removes any tag of the specified name.
  24513. @param tagName name of a tag]]>
  24514. </doc>
  24515. </method>
  24516. <method name="setMetric"
  24517. abstract="false" native="false" synchronized="false"
  24518. static="false" final="false" visibility="public"
  24519. deprecated="not deprecated">
  24520. <param name="metricName" type="java.lang.String"/>
  24521. <param name="metricValue" type="int"/>
  24522. <doc>
  24523. <![CDATA[Sets the named metric to the specified value.
  24524. @param metricName name of the metric
  24525. @param metricValue new value of the metric
  24526. @throws MetricsException if the metricName or the type of the metricValue
  24527. conflicts with the configuration]]>
  24528. </doc>
  24529. </method>
  24530. <method name="setMetric"
  24531. abstract="false" native="false" synchronized="false"
  24532. static="false" final="false" visibility="public"
  24533. deprecated="not deprecated">
  24534. <param name="metricName" type="java.lang.String"/>
  24535. <param name="metricValue" type="long"/>
  24536. <doc>
  24537. <![CDATA[Sets the named metric to the specified value.
  24538. @param metricName name of the metric
  24539. @param metricValue new value of the metric
  24540. @throws MetricsException if the metricName or the type of the metricValue
  24541. conflicts with the configuration]]>
  24542. </doc>
  24543. </method>
  24544. <method name="setMetric"
  24545. abstract="false" native="false" synchronized="false"
  24546. static="false" final="false" visibility="public"
  24547. deprecated="not deprecated">
  24548. <param name="metricName" type="java.lang.String"/>
  24549. <param name="metricValue" type="short"/>
  24550. <doc>
  24551. <![CDATA[Sets the named metric to the specified value.
  24552. @param metricName name of the metric
  24553. @param metricValue new value of the metric
  24554. @throws MetricsException if the metricName or the type of the metricValue
  24555. conflicts with the configuration]]>
  24556. </doc>
  24557. </method>
  24558. <method name="setMetric"
  24559. abstract="false" native="false" synchronized="false"
  24560. static="false" final="false" visibility="public"
  24561. deprecated="not deprecated">
  24562. <param name="metricName" type="java.lang.String"/>
  24563. <param name="metricValue" type="byte"/>
  24564. <doc>
  24565. <![CDATA[Sets the named metric to the specified value.
  24566. @param metricName name of the metric
  24567. @param metricValue new value of the metric
  24568. @throws MetricsException if the metricName or the type of the metricValue
  24569. conflicts with the configuration]]>
  24570. </doc>
  24571. </method>
  24572. <method name="setMetric"
  24573. abstract="false" native="false" synchronized="false"
  24574. static="false" final="false" visibility="public"
  24575. deprecated="not deprecated">
  24576. <param name="metricName" type="java.lang.String"/>
  24577. <param name="metricValue" type="float"/>
  24578. <doc>
  24579. <![CDATA[Sets the named metric to the specified value.
  24580. @param metricName name of the metric
  24581. @param metricValue new value of the metric
  24582. @throws MetricsException if the metricName or the type of the metricValue
  24583. conflicts with the configuration]]>
  24584. </doc>
  24585. </method>
  24586. <method name="incrMetric"
  24587. abstract="false" native="false" synchronized="false"
  24588. static="false" final="false" visibility="public"
  24589. deprecated="not deprecated">
  24590. <param name="metricName" type="java.lang.String"/>
  24591. <param name="metricValue" type="int"/>
  24592. <doc>
  24593. <![CDATA[Increments the named metric by the specified value.
  24594. @param metricName name of the metric
  24595. @param metricValue incremental value
  24596. @throws MetricsException if the metricName or the type of the metricValue
  24597. conflicts with the configuration]]>
  24598. </doc>
  24599. </method>
  24600. <method name="incrMetric"
  24601. abstract="false" native="false" synchronized="false"
  24602. static="false" final="false" visibility="public"
  24603. deprecated="not deprecated">
  24604. <param name="metricName" type="java.lang.String"/>
  24605. <param name="metricValue" type="long"/>
  24606. <doc>
  24607. <![CDATA[Increments the named metric by the specified value.
  24608. @param metricName name of the metric
  24609. @param metricValue incremental value
  24610. @throws MetricsException if the metricName or the type of the metricValue
  24611. conflicts with the configuration]]>
  24612. </doc>
  24613. </method>
  24614. <method name="incrMetric"
  24615. abstract="false" native="false" synchronized="false"
  24616. static="false" final="false" visibility="public"
  24617. deprecated="not deprecated">
  24618. <param name="metricName" type="java.lang.String"/>
  24619. <param name="metricValue" type="short"/>
  24620. <doc>
  24621. <![CDATA[Increments the named metric by the specified value.
  24622. @param metricName name of the metric
  24623. @param metricValue incremental value
  24624. @throws MetricsException if the metricName or the type of the metricValue
  24625. conflicts with the configuration]]>
  24626. </doc>
  24627. </method>
  24628. <method name="incrMetric"
  24629. abstract="false" native="false" synchronized="false"
  24630. static="false" final="false" visibility="public"
  24631. deprecated="not deprecated">
  24632. <param name="metricName" type="java.lang.String"/>
  24633. <param name="metricValue" type="byte"/>
  24634. <doc>
  24635. <![CDATA[Increments the named metric by the specified value.
  24636. @param metricName name of the metric
  24637. @param metricValue incremental value
  24638. @throws MetricsException if the metricName or the type of the metricValue
  24639. conflicts with the configuration]]>
  24640. </doc>
  24641. </method>
  24642. <method name="incrMetric"
  24643. abstract="false" native="false" synchronized="false"
  24644. static="false" final="false" visibility="public"
  24645. deprecated="not deprecated">
  24646. <param name="metricName" type="java.lang.String"/>
  24647. <param name="metricValue" type="float"/>
  24648. <doc>
  24649. <![CDATA[Increments the named metric by the specified value.
  24650. @param metricName name of the metric
  24651. @param metricValue incremental value
  24652. @throws MetricsException if the metricName or the type of the metricValue
  24653. conflicts with the configuration]]>
  24654. </doc>
  24655. </method>
  24656. <method name="update"
  24657. abstract="false" native="false" synchronized="false"
  24658. static="false" final="false" visibility="public"
  24659. deprecated="not deprecated">
  24660. <doc>
  24661. <![CDATA[Updates the table of buffered data which is to be sent periodically.
  24662. If the tag values match an existing row, that row is updated;
  24663. otherwise, a new row is added.]]>
  24664. </doc>
  24665. </method>
  24666. <method name="remove"
  24667. abstract="false" native="false" synchronized="false"
  24668. static="false" final="false" visibility="public"
  24669. deprecated="not deprecated">
  24670. <doc>
  24671. <![CDATA[Removes, from the buffered data table, all rows having tags
  24672. that equal the tags that have been set on this record. For example,
  24673. if there are no tags on this record, all rows for this record name
  24674. would be removed. Or, if there is a single tag on this record, then
  24675. just rows containing a tag with the same name and value would be removed.]]>
  24676. </doc>
  24677. </method>
  24678. <doc>
  24679. <![CDATA[A named and optionally tagged set of records to be sent to the metrics
  24680. system. <p/>
  24681. A record name identifies the kind of data to be reported. For example, a
  24682. program reporting statistics relating to the disks on a computer might use
  24683. a record name "diskStats".<p/>
  24684. A record has zero or more <i>tags</i>. A tag has a name and a value. To
  24685. continue the example, the "diskStats" record might use a tag named
  24686. "diskName" to identify a particular disk. Sometimes it is useful to have
  24687. more than one tag, so there might also be a "diskType" with value "ide" or
  24688. "scsi" or whatever.<p/>
  24689. A record also has zero or more <i>metrics</i>. These are the named
  24690. values that are to be reported to the metrics system. In the "diskStats"
  24691. example, possible metric names would be "diskPercentFull", "diskPercentBusy",
  24692. "kbReadPerSecond", etc.<p/>
  24693. The general procedure for using a MetricsRecord is to fill in its tag and
  24694. metric values, and then call <code>update()</code> to pass the record to the
  24695. client library.
  24696. Metric data is not immediately sent to the metrics system
  24697. each time that <code>update()</code> is called.
  24698. An internal table is maintained, identified by the record name. This
  24699. table has columns
  24700. corresponding to the tag and the metric names, and rows
  24701. corresponding to each unique set of tag values. An update
  24702. either modifies an existing row in the table, or adds a new row with a set of
  24703. tag values that are different from all the other rows. Note that if there
  24704. are no tags, then there can be at most one row in the table. <p/>
  24705. Once a row is added to the table, its data will be sent to the metrics system
  24706. on every timer period, whether or not it has been updated since the previous
  24707. timer period. If this is inappropriate, for example if metrics were being
  24708. reported by some transient object in an application, the <code>remove()</code>
  24709. method can be used to remove the row and thus stop the data from being
  24710. sent.<p/>
  24711. Note that the <code>update()</code> method is atomic. This means that it is
  24712. safe for different threads to be updating the same metric. More precisely,
  24713. it is OK for different threads to call <code>update()</code> on MetricsRecord instances
  24714. with the same set of tag names and tag values. Different threads should
  24715. <b>not</b> use the same MetricsRecord instance at the same time.
  24716. @deprecated in favor of <code>org.apache.hadoop.metrics2</code> usage.]]>
  24717. </doc>
  24718. </interface>
  24719. <!-- end interface org.apache.hadoop.metrics.MetricsRecord -->
  24720. <!-- start class org.apache.hadoop.metrics.MetricsServlet -->
  24721. <class name="MetricsServlet" extends="javax.servlet.http.HttpServlet"
  24722. abstract="false"
  24723. static="false" final="false" visibility="public"
  24724. deprecated="in favor of lEsS_tHaNcode>org.apache.hadoop.metrics2lEsS_tHaN/code> usage.">
  24725. <constructor name="MetricsServlet"
  24726. static="false" final="false" visibility="public"
  24727. deprecated="not deprecated">
  24728. </constructor>
  24729. <method name="doGet"
  24730. abstract="false" native="false" synchronized="false"
  24731. static="false" final="false" visibility="public"
  24732. deprecated="not deprecated">
  24733. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  24734. <param name="response" type="javax.servlet.http.HttpServletResponse"/>
  24735. <exception name="ServletException" type="javax.servlet.ServletException"/>
  24736. <exception name="IOException" type="java.io.IOException"/>
  24737. </method>
  24738. <doc>
  24739. <![CDATA[A servlet to print out metrics data. By default, the servlet returns a
  24740. textual representation (no promises are made for parseability), and
  24741. users can use "?format=json" for parseable output.
  24742. @deprecated in favor of <code>org.apache.hadoop.metrics2</code> usage.]]>
  24743. </doc>
  24744. </class>
  24745. <!-- end class org.apache.hadoop.metrics.MetricsServlet -->
  24746. <!-- start class org.apache.hadoop.metrics.MetricsUtil -->
  24747. <class name="MetricsUtil" extends="java.lang.Object"
  24748. abstract="false"
  24749. static="false" final="false" visibility="public"
  24750. deprecated="in favor of lEsS_tHaNcode>org.apache.hadoop.metrics2lEsS_tHaN/code> usage.">
  24751. <method name="getContext" return="org.apache.hadoop.metrics.MetricsContext"
  24752. abstract="false" native="false" synchronized="false"
  24753. static="true" final="false" visibility="public"
  24754. deprecated="not deprecated">
  24755. <param name="contextName" type="java.lang.String"/>
  24756. </method>
  24757. <method name="getContext" return="org.apache.hadoop.metrics.MetricsContext"
  24758. abstract="false" native="false" synchronized="false"
  24759. static="true" final="false" visibility="public"
  24760. deprecated="not deprecated">
  24761. <param name="refName" type="java.lang.String"/>
  24762. <param name="contextName" type="java.lang.String"/>
  24763. <doc>
  24764. <![CDATA[Utility method to return the named context.
  24765. If the desired context cannot be created for any reason, the exception
  24766. is logged, and a null context is returned.]]>
  24767. </doc>
  24768. </method>
  24769. <method name="createRecord" return="org.apache.hadoop.metrics.MetricsRecord"
  24770. abstract="false" native="false" synchronized="false"
  24771. static="true" final="false" visibility="public"
  24772. deprecated="not deprecated">
  24773. <param name="context" type="org.apache.hadoop.metrics.MetricsContext"/>
  24774. <param name="recordName" type="java.lang.String"/>
  24775. <doc>
  24776. <![CDATA[Utility method to create and return new metrics record instance within the
  24777. given context. This record is tagged with the host name.
  24778. @param context the context
  24779. @param recordName name of the record
  24780. @return newly created metrics record]]>
  24781. </doc>
  24782. </method>
  24783. <field name="LOG" type="org.apache.commons.logging.Log"
  24784. transient="false" volatile="false"
  24785. static="true" final="true" visibility="public"
  24786. deprecated="not deprecated">
  24787. </field>
  24788. <doc>
  24789. <![CDATA[Utility class to simplify creation and reporting of hadoop metrics.
  24790. For examples of usage, see NameNodeMetrics.
  24791. @see org.apache.hadoop.metrics.MetricsRecord
  24792. @see org.apache.hadoop.metrics.MetricsContext
  24793. @see org.apache.hadoop.metrics.ContextFactory
  24794. @deprecated in favor of <code>org.apache.hadoop.metrics2</code> usage.]]>
  24795. </doc>
  24796. </class>
  24797. <!-- end class org.apache.hadoop.metrics.MetricsUtil -->
  24798. <!-- start interface org.apache.hadoop.metrics.Updater -->
  24799. <interface name="Updater" abstract="true"
  24800. static="false" final="false" visibility="public"
  24801. deprecated="in favor of lEsS_tHaNcode>org.apache.hadoop.metrics2lEsS_tHaN/code> usage.">
  24802. <method name="doUpdates"
  24803. abstract="false" native="false" synchronized="false"
  24804. static="false" final="false" visibility="public"
  24805. deprecated="not deprecated">
  24806. <param name="context" type="org.apache.hadoop.metrics.MetricsContext"/>
  24807. <doc>
  24808. <![CDATA[Timer-based call-back from the metric library.]]>
  24809. </doc>
  24810. </method>
  24811. <doc>
  24812. <![CDATA[Call-back interface. See <code>MetricsContext.registerUpdater()</code>.
  24813. @deprecated in favor of <code>org.apache.hadoop.metrics2</code> usage.]]>
  24814. </doc>
  24815. </interface>
  24816. <!-- end interface org.apache.hadoop.metrics.Updater -->
  24817. </package>
  24818. <package name="org.apache.hadoop.metrics.file">
  24819. <!-- start class org.apache.hadoop.metrics.file.FileContext -->
  24820. <class name="FileContext" extends="org.apache.hadoop.metrics.spi.AbstractMetricsContext"
  24821. abstract="false"
  24822. static="false" final="false" visibility="public"
  24823. deprecated="use {@link org.apache.hadoop.metrics2.sink.FileSink} instead.">
  24824. <constructor name="FileContext"
  24825. static="false" final="false" visibility="public"
  24826. deprecated="not deprecated">
  24827. <doc>
  24828. <![CDATA[Creates a new instance of FileContext]]>
  24829. </doc>
  24830. </constructor>
  24831. <method name="init"
  24832. abstract="false" native="false" synchronized="false"
  24833. static="false" final="false" visibility="public"
  24834. deprecated="not deprecated">
  24835. <param name="contextName" type="java.lang.String"/>
  24836. <param name="factory" type="org.apache.hadoop.metrics.ContextFactory"/>
  24837. </method>
  24838. <method name="getFileName" return="java.lang.String"
  24839. abstract="false" native="false" synchronized="false"
  24840. static="false" final="false" visibility="public"
  24841. deprecated="not deprecated">
  24842. <doc>
  24843. <![CDATA[Returns the configured file name, or null.]]>
  24844. </doc>
  24845. </method>
  24846. <method name="startMonitoring"
  24847. abstract="false" native="false" synchronized="false"
  24848. static="false" final="false" visibility="public"
  24849. deprecated="not deprecated">
  24850. <exception name="IOException" type="java.io.IOException"/>
  24851. <doc>
  24852. <![CDATA[Starts or restarts monitoring, by opening in append-mode, the
  24853. file specified by the <code>fileName</code> attribute,
  24854. if specified. Otherwise the data will be written to standard
  24855. output.]]>
  24856. </doc>
  24857. </method>
  24858. <method name="stopMonitoring"
  24859. abstract="false" native="false" synchronized="false"
  24860. static="false" final="false" visibility="public"
  24861. deprecated="not deprecated">
  24862. <doc>
  24863. <![CDATA[Stops monitoring, closing the file.
  24864. @see #close()]]>
  24865. </doc>
  24866. </method>
  24867. <method name="emitRecord"
  24868. abstract="false" native="false" synchronized="false"
  24869. static="false" final="false" visibility="public"
  24870. deprecated="not deprecated">
  24871. <param name="contextName" type="java.lang.String"/>
  24872. <param name="recordName" type="java.lang.String"/>
  24873. <param name="outRec" type="org.apache.hadoop.metrics.spi.OutputRecord"/>
  24874. <doc>
  24875. <![CDATA[Emits a metrics record to a file.]]>
  24876. </doc>
  24877. </method>
  24878. <method name="flush"
  24879. abstract="false" native="false" synchronized="false"
  24880. static="false" final="false" visibility="public"
  24881. deprecated="not deprecated">
  24882. <doc>
  24883. <![CDATA[Flushes the output writer, forcing updates to disk.]]>
  24884. </doc>
  24885. </method>
  24886. <field name="FILE_NAME_PROPERTY" type="java.lang.String"
  24887. transient="false" volatile="false"
  24888. static="true" final="true" visibility="protected"
  24889. deprecated="not deprecated">
  24890. </field>
  24891. <field name="PERIOD_PROPERTY" type="java.lang.String"
  24892. transient="false" volatile="false"
  24893. static="true" final="true" visibility="protected"
  24894. deprecated="not deprecated">
  24895. </field>
  24896. <doc>
  24897. <![CDATA[Metrics context for writing metrics to a file.<p/>
  24898. This class is configured by setting ContextFactory attributes which in turn
  24899. are usually configured through a properties file. All the attributes are
  24900. prefixed by the contextName. For example, the properties file might contain:
  24901. <pre>
  24902. myContextName.fileName=/tmp/metrics.log
  24903. myContextName.period=5
  24904. </pre>
  24905. @deprecated use {@link org.apache.hadoop.metrics2.sink.FileSink} instead.]]>
  24906. </doc>
  24907. </class>
  24908. <!-- end class org.apache.hadoop.metrics.file.FileContext -->
  24909. </package>
  24910. <package name="org.apache.hadoop.metrics.ganglia">
  24911. <!-- start class org.apache.hadoop.metrics.ganglia.GangliaContext -->
  24912. <class name="GangliaContext" extends="org.apache.hadoop.metrics.spi.AbstractMetricsContext"
  24913. abstract="false"
  24914. static="false" final="false" visibility="public"
  24915. deprecated="in favor of lEsS_tHaNcode>org.apache.hadoop.metrics2lEsS_tHaN/code> usage.">
  24916. <constructor name="GangliaContext"
  24917. static="false" final="false" visibility="public"
  24918. deprecated="not deprecated">
  24919. <doc>
  24920. <![CDATA[Creates a new instance of GangliaContext]]>
  24921. </doc>
  24922. </constructor>
  24923. <method name="init"
  24924. abstract="false" native="false" synchronized="false"
  24925. static="false" final="false" visibility="public"
  24926. deprecated="not deprecated">
  24927. <param name="contextName" type="java.lang.String"/>
  24928. <param name="factory" type="org.apache.hadoop.metrics.ContextFactory"/>
  24929. </method>
  24930. <method name="emitRecord"
  24931. abstract="false" native="false" synchronized="false"
  24932. static="false" final="false" visibility="public"
  24933. deprecated="not deprecated">
  24934. <param name="contextName" type="java.lang.String"/>
  24935. <param name="recordName" type="java.lang.String"/>
  24936. <param name="outRec" type="org.apache.hadoop.metrics.spi.OutputRecord"/>
  24937. <exception name="IOException" type="java.io.IOException"/>
  24938. </method>
  24939. <method name="emitMetric"
  24940. abstract="false" native="false" synchronized="false"
  24941. static="false" final="false" visibility="protected"
  24942. deprecated="not deprecated">
  24943. <param name="name" type="java.lang.String"/>
  24944. <param name="type" type="java.lang.String"/>
  24945. <param name="value" type="java.lang.String"/>
  24946. <exception name="IOException" type="java.io.IOException"/>
  24947. </method>
  24948. <method name="getUnits" return="java.lang.String"
  24949. abstract="false" native="false" synchronized="false"
  24950. static="false" final="false" visibility="protected"
  24951. deprecated="not deprecated">
  24952. <param name="metricName" type="java.lang.String"/>
  24953. </method>
  24954. <method name="getSlope" return="int"
  24955. abstract="false" native="false" synchronized="false"
  24956. static="false" final="false" visibility="protected"
  24957. deprecated="not deprecated">
  24958. <param name="metricName" type="java.lang.String"/>
  24959. </method>
  24960. <method name="getTmax" return="int"
  24961. abstract="false" native="false" synchronized="false"
  24962. static="false" final="false" visibility="protected"
  24963. deprecated="not deprecated">
  24964. <param name="metricName" type="java.lang.String"/>
  24965. </method>
  24966. <method name="getDmax" return="int"
  24967. abstract="false" native="false" synchronized="false"
  24968. static="false" final="false" visibility="protected"
  24969. deprecated="not deprecated">
  24970. <param name="metricName" type="java.lang.String"/>
  24971. </method>
  24972. <method name="xdr_string"
  24973. abstract="false" native="false" synchronized="false"
  24974. static="false" final="false" visibility="protected"
  24975. deprecated="not deprecated">
  24976. <param name="s" type="java.lang.String"/>
  24977. <doc>
  24978. <![CDATA[Puts a string into the buffer by first writing the size of the string
  24979. as an int, followed by the bytes of the string, padded if necessary to
  24980. a multiple of 4.]]>
  24981. </doc>
  24982. </method>
  24983. <method name="xdr_int"
  24984. abstract="false" native="false" synchronized="false"
  24985. static="false" final="false" visibility="protected"
  24986. deprecated="not deprecated">
  24987. <param name="i" type="int"/>
  24988. <doc>
  24989. <![CDATA[Puts an integer into the buffer as 4 bytes, big-endian.]]>
  24990. </doc>
  24991. </method>
  24992. <field name="buffer" type="byte[]"
  24993. transient="false" volatile="false"
  24994. static="false" final="false" visibility="protected"
  24995. deprecated="not deprecated">
  24996. </field>
  24997. <field name="offset" type="int"
  24998. transient="false" volatile="false"
  24999. static="false" final="false" visibility="protected"
  25000. deprecated="not deprecated">
  25001. </field>
  25002. <field name="metricsServers" type="java.util.List"
  25003. transient="false" volatile="false"
  25004. static="false" final="false" visibility="protected"
  25005. deprecated="not deprecated">
  25006. </field>
  25007. <field name="datagramSocket" type="java.net.DatagramSocket"
  25008. transient="false" volatile="false"
  25009. static="false" final="false" visibility="protected"
  25010. deprecated="not deprecated">
  25011. </field>
  25012. <doc>
  25013. <![CDATA[Context for sending metrics to Ganglia.
  25014. @deprecated in favor of <code>org.apache.hadoop.metrics2</code> usage.]]>
  25015. </doc>
  25016. </class>
  25017. <!-- end class org.apache.hadoop.metrics.ganglia.GangliaContext -->
  25018. <!-- start class org.apache.hadoop.metrics.ganglia.GangliaContext31 -->
  25019. <class name="GangliaContext31" extends="org.apache.hadoop.metrics.ganglia.GangliaContext"
  25020. abstract="false"
  25021. static="false" final="false" visibility="public"
  25022. deprecated="not deprecated">
  25023. <constructor name="GangliaContext31"
  25024. static="false" final="false" visibility="public"
  25025. deprecated="not deprecated">
  25026. </constructor>
  25027. <method name="init"
  25028. abstract="false" native="false" synchronized="false"
  25029. static="false" final="false" visibility="public"
  25030. deprecated="not deprecated">
  25031. <param name="contextName" type="java.lang.String"/>
  25032. <param name="factory" type="org.apache.hadoop.metrics.ContextFactory"/>
  25033. </method>
  25034. <method name="emitMetric"
  25035. abstract="false" native="false" synchronized="false"
  25036. static="false" final="false" visibility="protected"
  25037. deprecated="not deprecated">
  25038. <param name="name" type="java.lang.String"/>
  25039. <param name="type" type="java.lang.String"/>
  25040. <param name="value" type="java.lang.String"/>
  25041. <exception name="IOException" type="java.io.IOException"/>
  25042. </method>
  25043. <doc>
  25044. <![CDATA[Context for sending metrics to Ganglia version 3.1.x.
  25045. 3.1.1 has a slightly different wire portal compared to 3.0.x.]]>
  25046. </doc>
  25047. </class>
  25048. <!-- end class org.apache.hadoop.metrics.ganglia.GangliaContext31 -->
  25049. </package>
  25050. <package name="org.apache.hadoop.metrics.jvm">
  25051. <!-- start class org.apache.hadoop.metrics.jvm.EventCounter -->
  25052. <class name="EventCounter" extends="org.apache.hadoop.log.metrics.EventCounter"
  25053. abstract="false"
  25054. static="false" final="false" visibility="public"
  25055. deprecated="use {@link org.apache.hadoop.log.metrics.EventCounter} instead">
  25056. <constructor name="EventCounter"
  25057. static="false" final="false" visibility="public"
  25058. deprecated="not deprecated">
  25059. </constructor>
  25060. <doc>
  25061. <![CDATA[A log4J Appender that simply counts logging events in three levels:
  25062. fatal, error and warn.
  25063. @deprecated use {@link org.apache.hadoop.log.metrics.EventCounter} instead]]>
  25064. </doc>
  25065. </class>
  25066. <!-- end class org.apache.hadoop.metrics.jvm.EventCounter -->
  25067. <!-- start class org.apache.hadoop.metrics.jvm.JvmMetrics -->
  25068. <class name="JvmMetrics" extends="java.lang.Object"
  25069. abstract="false"
  25070. static="false" final="false" visibility="public"
  25071. deprecated="in favor of lEsS_tHaNcode>org.apache.hadoop.metrics2lEsS_tHaN/code> usage.">
  25072. <implements name="org.apache.hadoop.metrics.Updater"/>
  25073. <method name="init" return="org.apache.hadoop.metrics.jvm.JvmMetrics"
  25074. abstract="false" native="false" synchronized="true"
  25075. static="true" final="false" visibility="public"
  25076. deprecated="not deprecated">
  25077. <param name="processName" type="java.lang.String"/>
  25078. <param name="sessionId" type="java.lang.String"/>
  25079. </method>
  25080. <method name="init" return="org.apache.hadoop.metrics.jvm.JvmMetrics"
  25081. abstract="false" native="false" synchronized="true"
  25082. static="true" final="false" visibility="public"
  25083. deprecated="not deprecated">
  25084. <param name="processName" type="java.lang.String"/>
  25085. <param name="sessionId" type="java.lang.String"/>
  25086. <param name="recordName" type="java.lang.String"/>
  25087. </method>
  25088. <method name="doUpdates"
  25089. abstract="false" native="false" synchronized="false"
  25090. static="false" final="false" visibility="public"
  25091. deprecated="not deprecated">
  25092. <param name="context" type="org.apache.hadoop.metrics.MetricsContext"/>
  25093. <doc>
  25094. <![CDATA[This will be called periodically (with the period being configuration
  25095. dependent).]]>
  25096. </doc>
  25097. </method>
  25098. <doc>
  25099. <![CDATA[Singleton class which reports Java Virtual Machine metrics to the metrics API.
  25100. Any application can create an instance of this class in order to emit
  25101. Java VM metrics.
  25102. @deprecated in favor of <code>org.apache.hadoop.metrics2</code> usage.]]>
  25103. </doc>
  25104. </class>
  25105. <!-- end class org.apache.hadoop.metrics.jvm.JvmMetrics -->
  25106. </package>
  25107. <package name="org.apache.hadoop.metrics.spi">
  25108. <!-- start class org.apache.hadoop.metrics.spi.AbstractMetricsContext -->
  25109. <class name="AbstractMetricsContext" extends="java.lang.Object"
  25110. abstract="true"
  25111. static="false" final="false" visibility="public"
  25112. deprecated="in favor of lEsS_tHaNcode>org.apache.hadoop.metrics2lEsS_tHaN/code> usage.">
  25113. <implements name="org.apache.hadoop.metrics.MetricsContext"/>
  25114. <constructor name="AbstractMetricsContext"
  25115. static="false" final="false" visibility="protected"
  25116. deprecated="not deprecated">
  25117. <doc>
  25118. <![CDATA[Creates a new instance of AbstractMetricsContext]]>
  25119. </doc>
  25120. </constructor>
  25121. <method name="init"
  25122. abstract="false" native="false" synchronized="false"
  25123. static="false" final="false" visibility="public"
  25124. deprecated="not deprecated">
  25125. <param name="contextName" type="java.lang.String"/>
  25126. <param name="factory" type="org.apache.hadoop.metrics.ContextFactory"/>
  25127. <doc>
  25128. <![CDATA[Initializes the context.]]>
  25129. </doc>
  25130. </method>
  25131. <method name="getAttribute" return="java.lang.String"
  25132. abstract="false" native="false" synchronized="false"
  25133. static="false" final="false" visibility="protected"
  25134. deprecated="not deprecated">
  25135. <param name="attributeName" type="java.lang.String"/>
  25136. <doc>
  25137. <![CDATA[Convenience method for subclasses to access factory attributes.]]>
  25138. </doc>
  25139. </method>
  25140. <method name="getAttributeTable" return="java.util.Map"
  25141. abstract="false" native="false" synchronized="false"
  25142. static="false" final="false" visibility="protected"
  25143. deprecated="not deprecated">
  25144. <param name="tableName" type="java.lang.String"/>
  25145. <doc>
  25146. <![CDATA[Returns an attribute-value map derived from the factory attributes
  25147. by finding all factory attributes that begin with
  25148. <i>contextName</i>.<i>tableName</i>. The returned map consists of
  25149. those attributes with the contextName and tableName stripped off.]]>
  25150. </doc>
  25151. </method>
  25152. <method name="getContextName" return="java.lang.String"
  25153. abstract="false" native="false" synchronized="false"
  25154. static="false" final="false" visibility="public"
  25155. deprecated="not deprecated">
  25156. <doc>
  25157. <![CDATA[Returns the context name.]]>
  25158. </doc>
  25159. </method>
  25160. <method name="getContextFactory" return="org.apache.hadoop.metrics.ContextFactory"
  25161. abstract="false" native="false" synchronized="false"
  25162. static="false" final="false" visibility="public"
  25163. deprecated="not deprecated">
  25164. <doc>
  25165. <![CDATA[Returns the factory by which this context was created.]]>
  25166. </doc>
  25167. </method>
  25168. <method name="startMonitoring"
  25169. abstract="false" native="false" synchronized="true"
  25170. static="false" final="false" visibility="public"
  25171. deprecated="not deprecated">
  25172. <exception name="IOException" type="java.io.IOException"/>
  25173. <doc>
  25174. <![CDATA[Starts or restarts monitoring, the emitting of metrics records.]]>
  25175. </doc>
  25176. </method>
  25177. <method name="stopMonitoring"
  25178. abstract="false" native="false" synchronized="true"
  25179. static="false" final="false" visibility="public"
  25180. deprecated="not deprecated">
  25181. <doc>
  25182. <![CDATA[Stops monitoring. This does not free buffered data.
  25183. @see #close()]]>
  25184. </doc>
  25185. </method>
  25186. <method name="isMonitoring" return="boolean"
  25187. abstract="false" native="false" synchronized="false"
  25188. static="false" final="false" visibility="public"
  25189. deprecated="not deprecated">
  25190. <doc>
  25191. <![CDATA[Returns true if monitoring is currently in progress.]]>
  25192. </doc>
  25193. </method>
  25194. <method name="close"
  25195. abstract="false" native="false" synchronized="true"
  25196. static="false" final="false" visibility="public"
  25197. deprecated="not deprecated">
  25198. <doc>
  25199. <![CDATA[Stops monitoring and frees buffered data, returning this
  25200. object to its initial state.]]>
  25201. </doc>
  25202. </method>
  25203. <method name="createRecord" return="org.apache.hadoop.metrics.MetricsRecord"
  25204. abstract="false" native="false" synchronized="true"
  25205. static="false" final="true" visibility="public"
  25206. deprecated="not deprecated">
  25207. <param name="recordName" type="java.lang.String"/>
  25208. <doc>
  25209. <![CDATA[Creates a new AbstractMetricsRecord instance with the given <code>recordName</code>.
  25210. Throws an exception if the metrics implementation is configured with a fixed
  25211. set of record names and <code>recordName</code> is not in that set.
  25212. @param recordName the name of the record
  25213. @throws MetricsException if recordName conflicts with configuration data]]>
  25214. </doc>
  25215. </method>
  25216. <method name="newRecord" return="org.apache.hadoop.metrics.MetricsRecord"
  25217. abstract="false" native="false" synchronized="false"
  25218. static="false" final="false" visibility="protected"
  25219. deprecated="not deprecated">
  25220. <param name="recordName" type="java.lang.String"/>
  25221. <doc>
  25222. <![CDATA[Subclasses should override this if they subclass MetricsRecordImpl.
  25223. @param recordName the name of the record
  25224. @return newly created instance of MetricsRecordImpl or subclass]]>
  25225. </doc>
  25226. </method>
  25227. <method name="registerUpdater"
  25228. abstract="false" native="false" synchronized="true"
  25229. static="false" final="false" visibility="public"
  25230. deprecated="not deprecated">
  25231. <param name="updater" type="org.apache.hadoop.metrics.Updater"/>
  25232. <doc>
  25233. <![CDATA[Registers a callback to be called at time intervals determined by
  25234. the configuration.
  25235. @param updater object to be run periodically; it should update
  25236. some metrics records]]>
  25237. </doc>
  25238. </method>
  25239. <method name="unregisterUpdater"
  25240. abstract="false" native="false" synchronized="true"
  25241. static="false" final="false" visibility="public"
  25242. deprecated="not deprecated">
  25243. <param name="updater" type="org.apache.hadoop.metrics.Updater"/>
  25244. <doc>
  25245. <![CDATA[Removes a callback, if it exists.
  25246. @param updater object to be removed from the callback list]]>
  25247. </doc>
  25248. </method>
  25249. <method name="getAllRecords" return="java.util.Map"
  25250. abstract="false" native="false" synchronized="true"
  25251. static="false" final="false" visibility="public"
  25252. deprecated="not deprecated">
  25253. <doc>
  25254. <![CDATA[Retrieves all the records managed by this MetricsContext.
  25255. Useful for monitoring systems that are polling-based.
  25256. @return A non-null collection of all monitoring records.]]>
  25257. </doc>
  25258. </method>
  25259. <method name="emitRecord"
  25260. abstract="true" native="false" synchronized="false"
  25261. static="false" final="false" visibility="protected"
  25262. deprecated="not deprecated">
  25263. <param name="contextName" type="java.lang.String"/>
  25264. <param name="recordName" type="java.lang.String"/>
  25265. <param name="outRec" type="org.apache.hadoop.metrics.spi.OutputRecord"/>
  25266. <exception name="IOException" type="java.io.IOException"/>
  25267. <doc>
  25268. <![CDATA[Sends a record to the metrics system.]]>
  25269. </doc>
  25270. </method>
  25271. <method name="flush"
  25272. abstract="false" native="false" synchronized="false"
  25273. static="false" final="false" visibility="protected"
  25274. deprecated="not deprecated">
  25275. <exception name="IOException" type="java.io.IOException"/>
  25276. <doc>
  25277. <![CDATA[Called each period after all records have been emitted, this method does nothing.
  25278. Subclasses may override it in order to perform some kind of flush.]]>
  25279. </doc>
  25280. </method>
  25281. <method name="update"
  25282. abstract="false" native="false" synchronized="false"
  25283. static="false" final="false" visibility="protected"
  25284. deprecated="not deprecated">
  25285. <param name="record" type="org.apache.hadoop.metrics.spi.MetricsRecordImpl"/>
  25286. <doc>
  25287. <![CDATA[Called by MetricsRecordImpl.update(). Creates or updates a row in
  25288. the internal table of metric data.]]>
  25289. </doc>
  25290. </method>
  25291. <method name="remove"
  25292. abstract="false" native="false" synchronized="false"
  25293. static="false" final="false" visibility="protected"
  25294. deprecated="not deprecated">
  25295. <param name="record" type="org.apache.hadoop.metrics.spi.MetricsRecordImpl"/>
  25296. <doc>
  25297. <![CDATA[Called by MetricsRecordImpl.remove(). Removes all matching rows in
  25298. the internal table of metric data. A row matches if it has the same
  25299. tag names and values as record, but it may also have additional
  25300. tags.]]>
  25301. </doc>
  25302. </method>
  25303. <method name="getPeriod" return="int"
  25304. abstract="false" native="false" synchronized="false"
  25305. static="false" final="false" visibility="public"
  25306. deprecated="not deprecated">
  25307. <doc>
  25308. <![CDATA[Returns the timer period.]]>
  25309. </doc>
  25310. </method>
  25311. <method name="setPeriod"
  25312. abstract="false" native="false" synchronized="false"
  25313. static="false" final="false" visibility="protected"
  25314. deprecated="not deprecated">
  25315. <param name="period" type="int"/>
  25316. <doc>
  25317. <![CDATA[Sets the timer period]]>
  25318. </doc>
  25319. </method>
  25320. <method name="parseAndSetPeriod"
  25321. abstract="false" native="false" synchronized="false"
  25322. static="false" final="false" visibility="protected"
  25323. deprecated="not deprecated">
  25324. <param name="attributeName" type="java.lang.String"/>
  25325. <doc>
  25326. <![CDATA[If a period is set in the attribute passed in, override
  25327. the default with it.]]>
  25328. </doc>
  25329. </method>
  25330. <doc>
  25331. <![CDATA[The main class of the Service Provider Interface. This class should be
  25332. extended in order to integrate the Metrics API with a specific metrics
  25333. client library. <p/>
  25334. This class implements the internal table of metric data, and the timer
  25335. on which data is to be sent to the metrics system. Subclasses must
  25336. override the abstract <code>emitRecord</code> method in order to transmit
  25337. the data. <p/>
  25338. @deprecated in favor of <code>org.apache.hadoop.metrics2</code> usage.]]>
  25339. </doc>
  25340. </class>
  25341. <!-- end class org.apache.hadoop.metrics.spi.AbstractMetricsContext -->
  25342. <!-- start class org.apache.hadoop.metrics.spi.AbstractMetricsContext.MetricMap -->
  25343. <class name="AbstractMetricsContext.MetricMap" extends="java.util.TreeMap"
  25344. abstract="false"
  25345. static="true" final="false" visibility="public"
  25346. deprecated="not deprecated">
  25347. </class>
  25348. <!-- end class org.apache.hadoop.metrics.spi.AbstractMetricsContext.MetricMap -->
  25349. <!-- start class org.apache.hadoop.metrics.spi.AbstractMetricsContext.TagMap -->
  25350. <class name="AbstractMetricsContext.TagMap" extends="java.util.TreeMap"
  25351. abstract="false"
  25352. static="true" final="false" visibility="public"
  25353. deprecated="not deprecated">
  25354. <method name="containsAll" return="boolean"
  25355. abstract="false" native="false" synchronized="false"
  25356. static="false" final="false" visibility="public"
  25357. deprecated="not deprecated">
  25358. <param name="other" type="org.apache.hadoop.metrics.spi.AbstractMetricsContext.TagMap"/>
  25359. <doc>
  25360. <![CDATA[Returns true if this tagmap contains every tag in other.]]>
  25361. </doc>
  25362. </method>
  25363. </class>
  25364. <!-- end class org.apache.hadoop.metrics.spi.AbstractMetricsContext.TagMap -->
  25365. <!-- start class org.apache.hadoop.metrics.spi.CompositeContext -->
  25366. <class name="CompositeContext" extends="org.apache.hadoop.metrics.spi.AbstractMetricsContext"
  25367. abstract="false"
  25368. static="false" final="false" visibility="public"
  25369. deprecated="in favor of lEsS_tHaNcode>org.apache.hadoop.metrics2lEsS_tHaN/code> usage.">
  25370. <constructor name="CompositeContext"
  25371. static="false" final="false" visibility="public"
  25372. deprecated="not deprecated">
  25373. </constructor>
  25374. <method name="init"
  25375. abstract="false" native="false" synchronized="false"
  25376. static="false" final="false" visibility="public"
  25377. deprecated="not deprecated">
  25378. <param name="contextName" type="java.lang.String"/>
  25379. <param name="factory" type="org.apache.hadoop.metrics.ContextFactory"/>
  25380. </method>
  25381. <method name="newRecord" return="org.apache.hadoop.metrics.MetricsRecord"
  25382. abstract="false" native="false" synchronized="false"
  25383. static="false" final="false" visibility="public"
  25384. deprecated="not deprecated">
  25385. <param name="recordName" type="java.lang.String"/>
  25386. </method>
  25387. <method name="emitRecord"
  25388. abstract="false" native="false" synchronized="false"
  25389. static="false" final="false" visibility="protected"
  25390. deprecated="not deprecated">
  25391. <param name="contextName" type="java.lang.String"/>
  25392. <param name="recordName" type="java.lang.String"/>
  25393. <param name="outRec" type="org.apache.hadoop.metrics.spi.OutputRecord"/>
  25394. <exception name="IOException" type="java.io.IOException"/>
  25395. </method>
  25396. <method name="flush"
  25397. abstract="false" native="false" synchronized="false"
  25398. static="false" final="false" visibility="protected"
  25399. deprecated="not deprecated">
  25400. <exception name="IOException" type="java.io.IOException"/>
  25401. </method>
  25402. <method name="startMonitoring"
  25403. abstract="false" native="false" synchronized="false"
  25404. static="false" final="false" visibility="public"
  25405. deprecated="not deprecated">
  25406. <exception name="IOException" type="java.io.IOException"/>
  25407. </method>
  25408. <method name="stopMonitoring"
  25409. abstract="false" native="false" synchronized="false"
  25410. static="false" final="false" visibility="public"
  25411. deprecated="not deprecated">
  25412. </method>
  25413. <method name="isMonitoring" return="boolean"
  25414. abstract="false" native="false" synchronized="false"
  25415. static="false" final="false" visibility="public"
  25416. deprecated="not deprecated">
  25417. <doc>
  25418. <![CDATA[Return true if all subcontexts are monitoring.]]>
  25419. </doc>
  25420. </method>
  25421. <method name="close"
  25422. abstract="false" native="false" synchronized="false"
  25423. static="false" final="false" visibility="public"
  25424. deprecated="not deprecated">
  25425. </method>
  25426. <method name="registerUpdater"
  25427. abstract="false" native="false" synchronized="false"
  25428. static="false" final="false" visibility="public"
  25429. deprecated="not deprecated">
  25430. <param name="updater" type="org.apache.hadoop.metrics.Updater"/>
  25431. </method>
  25432. <method name="unregisterUpdater"
  25433. abstract="false" native="false" synchronized="false"
  25434. static="false" final="false" visibility="public"
  25435. deprecated="not deprecated">
  25436. <param name="updater" type="org.apache.hadoop.metrics.Updater"/>
  25437. </method>
  25438. <doc>
  25439. <![CDATA[@deprecated in favor of <code>org.apache.hadoop.metrics2</code> usage.]]>
  25440. </doc>
  25441. </class>
  25442. <!-- end class org.apache.hadoop.metrics.spi.CompositeContext -->
  25443. <!-- start class org.apache.hadoop.metrics.spi.MetricsRecordImpl -->
  25444. <class name="MetricsRecordImpl" extends="java.lang.Object"
  25445. abstract="false"
  25446. static="false" final="false" visibility="public"
  25447. deprecated="in favor of lEsS_tHaNcode>org.apache.hadoop.metrics2lEsS_tHaN/code> usage.">
  25448. <implements name="org.apache.hadoop.metrics.MetricsRecord"/>
  25449. <constructor name="MetricsRecordImpl" type="java.lang.String, org.apache.hadoop.metrics.spi.AbstractMetricsContext"
  25450. static="false" final="false" visibility="protected"
  25451. deprecated="not deprecated">
  25452. <doc>
  25453. <![CDATA[Creates a new instance of FileRecord]]>
  25454. </doc>
  25455. </constructor>
  25456. <method name="getRecordName" return="java.lang.String"
  25457. abstract="false" native="false" synchronized="false"
  25458. static="false" final="false" visibility="public"
  25459. deprecated="not deprecated">
  25460. <doc>
  25461. <![CDATA[Returns the record name.
  25462. @return the record name]]>
  25463. </doc>
  25464. </method>
  25465. <method name="setTag"
  25466. abstract="false" native="false" synchronized="false"
  25467. static="false" final="false" visibility="public"
  25468. deprecated="not deprecated">
  25469. <param name="tagName" type="java.lang.String"/>
  25470. <param name="tagValue" type="java.lang.String"/>
  25471. <doc>
  25472. <![CDATA[Sets the named tag to the specified value.
  25473. @param tagName name of the tag
  25474. @param tagValue new value of the tag
  25475. @throws MetricsException if the tagName conflicts with the configuration]]>
  25476. </doc>
  25477. </method>
  25478. <method name="setTag"
  25479. abstract="false" native="false" synchronized="false"
  25480. static="false" final="false" visibility="public"
  25481. deprecated="not deprecated">
  25482. <param name="tagName" type="java.lang.String"/>
  25483. <param name="tagValue" type="int"/>
  25484. <doc>
  25485. <![CDATA[Sets the named tag to the specified value.
  25486. @param tagName name of the tag
  25487. @param tagValue new value of the tag
  25488. @throws MetricsException if the tagName conflicts with the configuration]]>
  25489. </doc>
  25490. </method>
  25491. <method name="setTag"
  25492. abstract="false" native="false" synchronized="false"
  25493. static="false" final="false" visibility="public"
  25494. deprecated="not deprecated">
  25495. <param name="tagName" type="java.lang.String"/>
  25496. <param name="tagValue" type="long"/>
  25497. <doc>
  25498. <![CDATA[Sets the named tag to the specified value.
  25499. @param tagName name of the tag
  25500. @param tagValue new value of the tag
  25501. @throws MetricsException if the tagName conflicts with the configuration]]>
  25502. </doc>
  25503. </method>
  25504. <method name="setTag"
  25505. abstract="false" native="false" synchronized="false"
  25506. static="false" final="false" visibility="public"
  25507. deprecated="not deprecated">
  25508. <param name="tagName" type="java.lang.String"/>
  25509. <param name="tagValue" type="short"/>
  25510. <doc>
  25511. <![CDATA[Sets the named tag to the specified value.
  25512. @param tagName name of the tag
  25513. @param tagValue new value of the tag
  25514. @throws MetricsException if the tagName conflicts with the configuration]]>
  25515. </doc>
  25516. </method>
  25517. <method name="setTag"
  25518. abstract="false" native="false" synchronized="false"
  25519. static="false" final="false" visibility="public"
  25520. deprecated="not deprecated">
  25521. <param name="tagName" type="java.lang.String"/>
  25522. <param name="tagValue" type="byte"/>
  25523. <doc>
  25524. <![CDATA[Sets the named tag to the specified value.
  25525. @param tagName name of the tag
  25526. @param tagValue new value of the tag
  25527. @throws MetricsException if the tagName conflicts with the configuration]]>
  25528. </doc>
  25529. </method>
  25530. <method name="removeTag"
  25531. abstract="false" native="false" synchronized="false"
  25532. static="false" final="false" visibility="public"
  25533. deprecated="not deprecated">
  25534. <param name="tagName" type="java.lang.String"/>
  25535. <doc>
  25536. <![CDATA[Removes any tag of the specified name.]]>
  25537. </doc>
  25538. </method>
  25539. <method name="setMetric"
  25540. abstract="false" native="false" synchronized="false"
  25541. static="false" final="false" visibility="public"
  25542. deprecated="not deprecated">
  25543. <param name="metricName" type="java.lang.String"/>
  25544. <param name="metricValue" type="int"/>
  25545. <doc>
  25546. <![CDATA[Sets the named metric to the specified value.
  25547. @param metricName name of the metric
  25548. @param metricValue new value of the metric
  25549. @throws MetricsException if the metricName or the type of the metricValue
  25550. conflicts with the configuration]]>
  25551. </doc>
  25552. </method>
  25553. <method name="setMetric"
  25554. abstract="false" native="false" synchronized="false"
  25555. static="false" final="false" visibility="public"
  25556. deprecated="not deprecated">
  25557. <param name="metricName" type="java.lang.String"/>
  25558. <param name="metricValue" type="long"/>
  25559. <doc>
  25560. <![CDATA[Sets the named metric to the specified value.
  25561. @param metricName name of the metric
  25562. @param metricValue new value of the metric
  25563. @throws MetricsException if the metricName or the type of the metricValue
  25564. conflicts with the configuration]]>
  25565. </doc>
  25566. </method>
  25567. <method name="setMetric"
  25568. abstract="false" native="false" synchronized="false"
  25569. static="false" final="false" visibility="public"
  25570. deprecated="not deprecated">
  25571. <param name="metricName" type="java.lang.String"/>
  25572. <param name="metricValue" type="short"/>
  25573. <doc>
  25574. <![CDATA[Sets the named metric to the specified value.
  25575. @param metricName name of the metric
  25576. @param metricValue new value of the metric
  25577. @throws MetricsException if the metricName or the type of the metricValue
  25578. conflicts with the configuration]]>
  25579. </doc>
  25580. </method>
  25581. <method name="setMetric"
  25582. abstract="false" native="false" synchronized="false"
  25583. static="false" final="false" visibility="public"
  25584. deprecated="not deprecated">
  25585. <param name="metricName" type="java.lang.String"/>
  25586. <param name="metricValue" type="byte"/>
  25587. <doc>
  25588. <![CDATA[Sets the named metric to the specified value.
  25589. @param metricName name of the metric
  25590. @param metricValue new value of the metric
  25591. @throws MetricsException if the metricName or the type of the metricValue
  25592. conflicts with the configuration]]>
  25593. </doc>
  25594. </method>
  25595. <method name="setMetric"
  25596. abstract="false" native="false" synchronized="false"
  25597. static="false" final="false" visibility="public"
  25598. deprecated="not deprecated">
  25599. <param name="metricName" type="java.lang.String"/>
  25600. <param name="metricValue" type="float"/>
  25601. <doc>
  25602. <![CDATA[Sets the named metric to the specified value.
  25603. @param metricName name of the metric
  25604. @param metricValue new value of the metric
  25605. @throws MetricsException if the metricName or the type of the metricValue
  25606. conflicts with the configuration]]>
  25607. </doc>
  25608. </method>
  25609. <method name="incrMetric"
  25610. abstract="false" native="false" synchronized="false"
  25611. static="false" final="false" visibility="public"
  25612. deprecated="not deprecated">
  25613. <param name="metricName" type="java.lang.String"/>
  25614. <param name="metricValue" type="int"/>
  25615. <doc>
  25616. <![CDATA[Increments the named metric by the specified value.
  25617. @param metricName name of the metric
  25618. @param metricValue incremental value
  25619. @throws MetricsException if the metricName or the type of the metricValue
  25620. conflicts with the configuration]]>
  25621. </doc>
  25622. </method>
  25623. <method name="incrMetric"
  25624. abstract="false" native="false" synchronized="false"
  25625. static="false" final="false" visibility="public"
  25626. deprecated="not deprecated">
  25627. <param name="metricName" type="java.lang.String"/>
  25628. <param name="metricValue" type="long"/>
  25629. <doc>
  25630. <![CDATA[Increments the named metric by the specified value.
  25631. @param metricName name of the metric
  25632. @param metricValue incremental value
  25633. @throws MetricsException if the metricName or the type of the metricValue
  25634. conflicts with the configuration]]>
  25635. </doc>
  25636. </method>
  25637. <method name="incrMetric"
  25638. abstract="false" native="false" synchronized="false"
  25639. static="false" final="false" visibility="public"
  25640. deprecated="not deprecated">
  25641. <param name="metricName" type="java.lang.String"/>
  25642. <param name="metricValue" type="short"/>
  25643. <doc>
  25644. <![CDATA[Increments the named metric by the specified value.
  25645. @param metricName name of the metric
  25646. @param metricValue incremental value
  25647. @throws MetricsException if the metricName or the type of the metricValue
  25648. conflicts with the configuration]]>
  25649. </doc>
  25650. </method>
  25651. <method name="incrMetric"
  25652. abstract="false" native="false" synchronized="false"
  25653. static="false" final="false" visibility="public"
  25654. deprecated="not deprecated">
  25655. <param name="metricName" type="java.lang.String"/>
  25656. <param name="metricValue" type="byte"/>
  25657. <doc>
  25658. <![CDATA[Increments the named metric by the specified value.
  25659. @param metricName name of the metric
  25660. @param metricValue incremental value
  25661. @throws MetricsException if the metricName or the type of the metricValue
  25662. conflicts with the configuration]]>
  25663. </doc>
  25664. </method>
  25665. <method name="incrMetric"
  25666. abstract="false" native="false" synchronized="false"
  25667. static="false" final="false" visibility="public"
  25668. deprecated="not deprecated">
  25669. <param name="metricName" type="java.lang.String"/>
  25670. <param name="metricValue" type="float"/>
  25671. <doc>
  25672. <![CDATA[Increments the named metric by the specified value.
  25673. @param metricName name of the metric
  25674. @param metricValue incremental value
  25675. @throws MetricsException if the metricName or the type of the metricValue
  25676. conflicts with the configuration]]>
  25677. </doc>
  25678. </method>
  25679. <method name="update"
  25680. abstract="false" native="false" synchronized="false"
  25681. static="false" final="false" visibility="public"
  25682. deprecated="not deprecated">
  25683. <doc>
  25684. <![CDATA[Updates the table of buffered data which is to be sent periodically.
  25685. If the tag values match an existing row, that row is updated;
  25686. otherwise, a new row is added.]]>
  25687. </doc>
  25688. </method>
  25689. <method name="remove"
  25690. abstract="false" native="false" synchronized="false"
  25691. static="false" final="false" visibility="public"
  25692. deprecated="not deprecated">
  25693. <doc>
  25694. <![CDATA[Removes the row, if it exists, in the buffered data table having tags
  25695. that equal the tags that have been set on this record.]]>
  25696. </doc>
  25697. </method>
  25698. <doc>
  25699. <![CDATA[An implementation of MetricsRecord. Keeps a back-pointer to the context
  25700. from which it was created, and delegates back to it on <code>update</code>
  25701. and <code>remove()</code>.
  25702. @deprecated in favor of <code>org.apache.hadoop.metrics2</code> usage.]]>
  25703. </doc>
  25704. </class>
  25705. <!-- end class org.apache.hadoop.metrics.spi.MetricsRecordImpl -->
  25706. <!-- start class org.apache.hadoop.metrics.spi.MetricValue -->
  25707. <class name="MetricValue" extends="java.lang.Object"
  25708. abstract="false"
  25709. static="false" final="false" visibility="public"
  25710. deprecated="in favor of lEsS_tHaNcode>org.apache.hadoop.metrics2lEsS_tHaN/code> usage.">
  25711. <constructor name="MetricValue" type="java.lang.Number, boolean"
  25712. static="false" final="false" visibility="public"
  25713. deprecated="not deprecated">
  25714. <doc>
  25715. <![CDATA[Creates a new instance of MetricValue]]>
  25716. </doc>
  25717. </constructor>
  25718. <method name="isIncrement" return="boolean"
  25719. abstract="false" native="false" synchronized="false"
  25720. static="false" final="false" visibility="public"
  25721. deprecated="not deprecated">
  25722. </method>
  25723. <method name="isAbsolute" return="boolean"
  25724. abstract="false" native="false" synchronized="false"
  25725. static="false" final="false" visibility="public"
  25726. deprecated="not deprecated">
  25727. </method>
  25728. <method name="getNumber" return="java.lang.Number"
  25729. abstract="false" native="false" synchronized="false"
  25730. static="false" final="false" visibility="public"
  25731. deprecated="not deprecated">
  25732. </method>
  25733. <field name="ABSOLUTE" type="boolean"
  25734. transient="false" volatile="false"
  25735. static="true" final="true" visibility="public"
  25736. deprecated="not deprecated">
  25737. </field>
  25738. <field name="INCREMENT" type="boolean"
  25739. transient="false" volatile="false"
  25740. static="true" final="true" visibility="public"
  25741. deprecated="not deprecated">
  25742. </field>
  25743. <doc>
  25744. <![CDATA[A Number that is either an absolute or an incremental amount.
  25745. @deprecated in favor of <code>org.apache.hadoop.metrics2</code> usage.]]>
  25746. </doc>
  25747. </class>
  25748. <!-- end class org.apache.hadoop.metrics.spi.MetricValue -->
  25749. <!-- start class org.apache.hadoop.metrics.spi.NoEmitMetricsContext -->
  25750. <class name="NoEmitMetricsContext" extends="org.apache.hadoop.metrics.spi.AbstractMetricsContext"
  25751. abstract="false"
  25752. static="false" final="false" visibility="public"
  25753. deprecated="in favor of lEsS_tHaNcode>org.apache.hadoop.metrics2lEsS_tHaN/code> usage.">
  25754. <constructor name="NoEmitMetricsContext"
  25755. static="false" final="false" visibility="public"
  25756. deprecated="not deprecated">
  25757. <doc>
  25758. <![CDATA[Creates a new instance of NullContextWithUpdateThread]]>
  25759. </doc>
  25760. </constructor>
  25761. <method name="init"
  25762. abstract="false" native="false" synchronized="false"
  25763. static="false" final="false" visibility="public"
  25764. deprecated="not deprecated">
  25765. <param name="contextName" type="java.lang.String"/>
  25766. <param name="factory" type="org.apache.hadoop.metrics.ContextFactory"/>
  25767. </method>
  25768. <method name="emitRecord"
  25769. abstract="false" native="false" synchronized="false"
  25770. static="false" final="false" visibility="protected"
  25771. deprecated="not deprecated">
  25772. <param name="contextName" type="java.lang.String"/>
  25773. <param name="recordName" type="java.lang.String"/>
  25774. <param name="outRec" type="org.apache.hadoop.metrics.spi.OutputRecord"/>
  25775. <doc>
  25776. <![CDATA[Do-nothing version of emitRecord]]>
  25777. </doc>
  25778. </method>
  25779. <doc>
  25780. <![CDATA[A MetricsContext that does not emit data, but, unlike NullContextWithUpdate,
  25781. does save it for retrieval with getAllRecords().
  25782. This is useful if you want to support {@link MetricsServlet}, but
  25783. not emit metrics in any other way.
  25784. @deprecated in favor of <code>org.apache.hadoop.metrics2</code> usage.]]>
  25785. </doc>
  25786. </class>
  25787. <!-- end class org.apache.hadoop.metrics.spi.NoEmitMetricsContext -->
  25788. <!-- start class org.apache.hadoop.metrics.spi.NullContext -->
  25789. <class name="NullContext" extends="org.apache.hadoop.metrics.spi.AbstractMetricsContext"
  25790. abstract="false"
  25791. static="false" final="false" visibility="public"
  25792. deprecated="in favor of lEsS_tHaNcode>org.apache.hadoop.metrics2lEsS_tHaN/code> usage.">
  25793. <constructor name="NullContext"
  25794. static="false" final="false" visibility="public"
  25795. deprecated="not deprecated">
  25796. <doc>
  25797. <![CDATA[Creates a new instance of NullContext]]>
  25798. </doc>
  25799. </constructor>
  25800. <method name="startMonitoring"
  25801. abstract="false" native="false" synchronized="false"
  25802. static="false" final="false" visibility="public"
  25803. deprecated="not deprecated">
  25804. <doc>
  25805. <![CDATA[Do-nothing version of startMonitoring]]>
  25806. </doc>
  25807. </method>
  25808. <method name="emitRecord"
  25809. abstract="false" native="false" synchronized="false"
  25810. static="false" final="false" visibility="protected"
  25811. deprecated="not deprecated">
  25812. <param name="contextName" type="java.lang.String"/>
  25813. <param name="recordName" type="java.lang.String"/>
  25814. <param name="outRec" type="org.apache.hadoop.metrics.spi.OutputRecord"/>
  25815. <doc>
  25816. <![CDATA[Do-nothing version of emitRecord]]>
  25817. </doc>
  25818. </method>
  25819. <method name="update"
  25820. abstract="false" native="false" synchronized="false"
  25821. static="false" final="false" visibility="protected"
  25822. deprecated="not deprecated">
  25823. <param name="record" type="org.apache.hadoop.metrics.spi.MetricsRecordImpl"/>
  25824. <doc>
  25825. <![CDATA[Do-nothing version of update]]>
  25826. </doc>
  25827. </method>
  25828. <method name="remove"
  25829. abstract="false" native="false" synchronized="false"
  25830. static="false" final="false" visibility="protected"
  25831. deprecated="not deprecated">
  25832. <param name="record" type="org.apache.hadoop.metrics.spi.MetricsRecordImpl"/>
  25833. <doc>
  25834. <![CDATA[Do-nothing version of remove]]>
  25835. </doc>
  25836. </method>
  25837. <doc>
  25838. <![CDATA[Null metrics context: a metrics context which does nothing. Used as the
  25839. default context, so that no performance data is emitted if no configuration
  25840. data is found.
  25841. @deprecated in favor of <code>org.apache.hadoop.metrics2</code> usage.]]>
  25842. </doc>
  25843. </class>
  25844. <!-- end class org.apache.hadoop.metrics.spi.NullContext -->
  25845. <!-- start class org.apache.hadoop.metrics.spi.NullContextWithUpdateThread -->
  25846. <class name="NullContextWithUpdateThread" extends="org.apache.hadoop.metrics.spi.AbstractMetricsContext"
  25847. abstract="false"
  25848. static="false" final="false" visibility="public"
  25849. deprecated="in favor of lEsS_tHaNcode>org.apache.hadoop.metrics2lEsS_tHaN/code> usage.">
  25850. <constructor name="NullContextWithUpdateThread"
  25851. static="false" final="false" visibility="public"
  25852. deprecated="not deprecated">
  25853. <doc>
  25854. <![CDATA[Creates a new instance of NullContextWithUpdateThread]]>
  25855. </doc>
  25856. </constructor>
  25857. <method name="init"
  25858. abstract="false" native="false" synchronized="false"
  25859. static="false" final="false" visibility="public"
  25860. deprecated="not deprecated">
  25861. <param name="contextName" type="java.lang.String"/>
  25862. <param name="factory" type="org.apache.hadoop.metrics.ContextFactory"/>
  25863. </method>
  25864. <method name="emitRecord"
  25865. abstract="false" native="false" synchronized="false"
  25866. static="false" final="false" visibility="protected"
  25867. deprecated="not deprecated">
  25868. <param name="contextName" type="java.lang.String"/>
  25869. <param name="recordName" type="java.lang.String"/>
  25870. <param name="outRec" type="org.apache.hadoop.metrics.spi.OutputRecord"/>
  25871. <doc>
  25872. <![CDATA[Do-nothing version of emitRecord]]>
  25873. </doc>
  25874. </method>
  25875. <method name="update"
  25876. abstract="false" native="false" synchronized="false"
  25877. static="false" final="false" visibility="protected"
  25878. deprecated="not deprecated">
  25879. <param name="record" type="org.apache.hadoop.metrics.spi.MetricsRecordImpl"/>
  25880. <doc>
  25881. <![CDATA[Do-nothing version of update]]>
  25882. </doc>
  25883. </method>
  25884. <method name="remove"
  25885. abstract="false" native="false" synchronized="false"
  25886. static="false" final="false" visibility="protected"
  25887. deprecated="not deprecated">
  25888. <param name="record" type="org.apache.hadoop.metrics.spi.MetricsRecordImpl"/>
  25889. <doc>
  25890. <![CDATA[Do-nothing version of remove]]>
  25891. </doc>
  25892. </method>
  25893. <doc>
  25894. <![CDATA[A null context which has a thread calling
  25895. periodically when monitoring is started. This keeps the data sampled
  25896. correctly.
  25897. In all other respects, this is like the NULL context: No data is emitted.
  25898. This is suitable for Monitoring systems like JMX which reads the metrics
  25899. when someone reads the data from JMX.
  25900. The default impl of start and stop monitoring:
  25901. is the AbstractMetricsContext is good enough.
  25902. @deprecated in favor of <code>org.apache.hadoop.metrics2</code> usage.]]>
  25903. </doc>
  25904. </class>
  25905. <!-- end class org.apache.hadoop.metrics.spi.NullContextWithUpdateThread -->
  25906. <!-- start class org.apache.hadoop.metrics.spi.OutputRecord -->
  25907. <class name="OutputRecord" extends="java.lang.Object"
  25908. abstract="false"
  25909. static="false" final="false" visibility="public"
  25910. deprecated="in favor of lEsS_tHaNcode>org.apache.hadoop.metrics2lEsS_tHaN/code> usage.">
  25911. <method name="getTagNames" return="java.util.Set"
  25912. abstract="false" native="false" synchronized="false"
  25913. static="false" final="false" visibility="public"
  25914. deprecated="not deprecated">
  25915. <doc>
  25916. <![CDATA[Returns the set of tag names]]>
  25917. </doc>
  25918. </method>
  25919. <method name="getTag" return="java.lang.Object"
  25920. abstract="false" native="false" synchronized="false"
  25921. static="false" final="false" visibility="public"
  25922. deprecated="not deprecated">
  25923. <param name="name" type="java.lang.String"/>
  25924. <doc>
  25925. <![CDATA[Returns a tag object which is can be a String, Integer, Short or Byte.
  25926. @return the tag value, or null if there is no such tag]]>
  25927. </doc>
  25928. </method>
  25929. <method name="getMetricNames" return="java.util.Set"
  25930. abstract="false" native="false" synchronized="false"
  25931. static="false" final="false" visibility="public"
  25932. deprecated="not deprecated">
  25933. <doc>
  25934. <![CDATA[Returns the set of metric names.]]>
  25935. </doc>
  25936. </method>
  25937. <method name="getMetric" return="java.lang.Number"
  25938. abstract="false" native="false" synchronized="false"
  25939. static="false" final="false" visibility="public"
  25940. deprecated="not deprecated">
  25941. <param name="name" type="java.lang.String"/>
  25942. <doc>
  25943. <![CDATA[Returns the metric object which can be a Float, Integer, Short or Byte.]]>
  25944. </doc>
  25945. </method>
  25946. <method name="getTagsCopy" return="org.apache.hadoop.metrics.spi.AbstractMetricsContext.TagMap"
  25947. abstract="false" native="false" synchronized="false"
  25948. static="false" final="false" visibility="public"
  25949. deprecated="not deprecated">
  25950. <doc>
  25951. <![CDATA[Returns a copy of this record's tags.]]>
  25952. </doc>
  25953. </method>
  25954. <method name="getMetricsCopy" return="org.apache.hadoop.metrics.spi.AbstractMetricsContext.MetricMap"
  25955. abstract="false" native="false" synchronized="false"
  25956. static="false" final="false" visibility="public"
  25957. deprecated="not deprecated">
  25958. <doc>
  25959. <![CDATA[Returns a copy of this record's metrics.]]>
  25960. </doc>
  25961. </method>
  25962. <doc>
  25963. <![CDATA[Represents a record of metric data to be sent to a metrics system.
  25964. @deprecated in favor of <code>org.apache.hadoop.metrics2</code> usage.]]>
  25965. </doc>
  25966. </class>
  25967. <!-- end class org.apache.hadoop.metrics.spi.OutputRecord -->
  25968. <!-- start class org.apache.hadoop.metrics.spi.Util -->
  25969. <class name="Util" extends="java.lang.Object"
  25970. abstract="false"
  25971. static="false" final="false" visibility="public"
  25972. deprecated="not deprecated">
  25973. <method name="parse" return="java.util.List"
  25974. abstract="false" native="false" synchronized="false"
  25975. static="true" final="false" visibility="public"
  25976. deprecated="not deprecated">
  25977. <param name="specs" type="java.lang.String"/>
  25978. <param name="defaultPort" type="int"/>
  25979. <doc>
  25980. <![CDATA[Parses a space and/or comma separated sequence of server specifications
  25981. of the form <i>hostname</i> or <i>hostname:port</i>. If
  25982. the specs string is null, defaults to localhost:defaultPort.
  25983. @return a list of InetSocketAddress objects.]]>
  25984. </doc>
  25985. </method>
  25986. <doc>
  25987. <![CDATA[Static utility methods]]>
  25988. </doc>
  25989. </class>
  25990. <!-- end class org.apache.hadoop.metrics.spi.Util -->
  25991. </package>
  25992. <package name="org.apache.hadoop.metrics.util">
  25993. <!-- start class org.apache.hadoop.metrics.util.MBeanUtil -->
  25994. <class name="MBeanUtil" extends="java.lang.Object"
  25995. abstract="false"
  25996. static="false" final="false" visibility="public"
  25997. deprecated="in favor of {@link org.apache.hadoop.metrics2.util.MBeans}.">
  25998. <constructor name="MBeanUtil"
  25999. static="false" final="false" visibility="public"
  26000. deprecated="not deprecated">
  26001. </constructor>
  26002. <method name="registerMBean" return="javax.management.ObjectName"
  26003. abstract="false" native="false" synchronized="false"
  26004. static="true" final="false" visibility="public"
  26005. deprecated="not deprecated">
  26006. <param name="serviceName" type="java.lang.String"/>
  26007. <param name="nameName" type="java.lang.String"/>
  26008. <param name="theMbean" type="java.lang.Object"/>
  26009. <doc>
  26010. <![CDATA[Register the MBean using our standard MBeanName format
  26011. "hadoop:service=<serviceName>,name=<nameName>"
  26012. Where the <serviceName> and <nameName> are the supplied parameters
  26013. @param serviceName
  26014. @param nameName
  26015. @param theMbean - the MBean to register
  26016. @return the named used to register the MBean]]>
  26017. </doc>
  26018. </method>
  26019. <method name="unregisterMBean"
  26020. abstract="false" native="false" synchronized="false"
  26021. static="true" final="false" visibility="public"
  26022. deprecated="not deprecated">
  26023. <param name="mbeanName" type="javax.management.ObjectName"/>
  26024. </method>
  26025. <doc>
  26026. <![CDATA[This util class provides a method to register an MBean using
  26027. our standard naming convention as described in the doc
  26028. for {@link #registerMBean(String, String, Object)}
  26029. @deprecated in favor of {@link org.apache.hadoop.metrics2.util.MBeans}.]]>
  26030. </doc>
  26031. </class>
  26032. <!-- end class org.apache.hadoop.metrics.util.MBeanUtil -->
  26033. <!-- start class org.apache.hadoop.metrics.util.MetricsBase -->
  26034. <class name="MetricsBase" extends="java.lang.Object"
  26035. abstract="true"
  26036. static="false" final="false" visibility="public"
  26037. deprecated="in favor of lEsS_tHaNcode>org.apache.hadoop.metrics2lEsS_tHaN/code> usage.">
  26038. <constructor name="MetricsBase" type="java.lang.String"
  26039. static="false" final="false" visibility="protected"
  26040. deprecated="not deprecated">
  26041. </constructor>
  26042. <constructor name="MetricsBase" type="java.lang.String, java.lang.String"
  26043. static="false" final="false" visibility="protected"
  26044. deprecated="not deprecated">
  26045. </constructor>
  26046. <method name="pushMetric"
  26047. abstract="true" native="false" synchronized="false"
  26048. static="false" final="false" visibility="public"
  26049. deprecated="not deprecated">
  26050. <param name="mr" type="org.apache.hadoop.metrics.MetricsRecord"/>
  26051. </method>
  26052. <method name="getName" return="java.lang.String"
  26053. abstract="false" native="false" synchronized="false"
  26054. static="false" final="false" visibility="public"
  26055. deprecated="not deprecated">
  26056. </method>
  26057. <method name="getDescription" return="java.lang.String"
  26058. abstract="false" native="false" synchronized="false"
  26059. static="false" final="false" visibility="public"
  26060. deprecated="not deprecated">
  26061. </method>
  26062. <field name="NO_DESCRIPTION" type="java.lang.String"
  26063. transient="false" volatile="false"
  26064. static="true" final="true" visibility="public"
  26065. deprecated="not deprecated">
  26066. </field>
  26067. <doc>
  26068. <![CDATA[This is base class for all metrics
  26069. @deprecated in favor of <code>org.apache.hadoop.metrics2</code> usage.]]>
  26070. </doc>
  26071. </class>
  26072. <!-- end class org.apache.hadoop.metrics.util.MetricsBase -->
  26073. <!-- start class org.apache.hadoop.metrics.util.MetricsDynamicMBeanBase -->
  26074. <class name="MetricsDynamicMBeanBase" extends="java.lang.Object"
  26075. abstract="true"
  26076. static="false" final="false" visibility="public"
  26077. deprecated="in favor of lEsS_tHaNcode>org.apache.hadoop.metrics2lEsS_tHaN/code> usage.">
  26078. <implements name="javax.management.DynamicMBean"/>
  26079. <constructor name="MetricsDynamicMBeanBase" type="org.apache.hadoop.metrics.util.MetricsRegistry, java.lang.String"
  26080. static="false" final="false" visibility="protected"
  26081. deprecated="not deprecated">
  26082. </constructor>
  26083. <method name="getAttribute" return="java.lang.Object"
  26084. abstract="false" native="false" synchronized="false"
  26085. static="false" final="false" visibility="public"
  26086. deprecated="not deprecated">
  26087. <param name="attributeName" type="java.lang.String"/>
  26088. <exception name="AttributeNotFoundException" type="javax.management.AttributeNotFoundException"/>
  26089. <exception name="MBeanException" type="javax.management.MBeanException"/>
  26090. <exception name="ReflectionException" type="javax.management.ReflectionException"/>
  26091. </method>
  26092. <method name="getAttributes" return="javax.management.AttributeList"
  26093. abstract="false" native="false" synchronized="false"
  26094. static="false" final="false" visibility="public"
  26095. deprecated="not deprecated">
  26096. <param name="attributeNames" type="java.lang.String[]"/>
  26097. </method>
  26098. <method name="getMBeanInfo" return="javax.management.MBeanInfo"
  26099. abstract="false" native="false" synchronized="false"
  26100. static="false" final="false" visibility="public"
  26101. deprecated="not deprecated">
  26102. </method>
  26103. <method name="invoke" return="java.lang.Object"
  26104. abstract="false" native="false" synchronized="false"
  26105. static="false" final="false" visibility="public"
  26106. deprecated="not deprecated">
  26107. <param name="actionName" type="java.lang.String"/>
  26108. <param name="parms" type="java.lang.Object[]"/>
  26109. <param name="signature" type="java.lang.String[]"/>
  26110. <exception name="MBeanException" type="javax.management.MBeanException"/>
  26111. <exception name="ReflectionException" type="javax.management.ReflectionException"/>
  26112. </method>
  26113. <method name="setAttribute"
  26114. abstract="false" native="false" synchronized="false"
  26115. static="false" final="false" visibility="public"
  26116. deprecated="not deprecated">
  26117. <param name="attribute" type="javax.management.Attribute"/>
  26118. <exception name="AttributeNotFoundException" type="javax.management.AttributeNotFoundException"/>
  26119. <exception name="InvalidAttributeValueException" type="javax.management.InvalidAttributeValueException"/>
  26120. <exception name="MBeanException" type="javax.management.MBeanException"/>
  26121. <exception name="ReflectionException" type="javax.management.ReflectionException"/>
  26122. </method>
  26123. <method name="setAttributes" return="javax.management.AttributeList"
  26124. abstract="false" native="false" synchronized="false"
  26125. static="false" final="false" visibility="public"
  26126. deprecated="not deprecated">
  26127. <param name="attributes" type="javax.management.AttributeList"/>
  26128. </method>
  26129. <doc>
  26130. <![CDATA[This abstract base class facilitates creating dynamic mbeans automatically from
  26131. metrics.
  26132. The metrics constructors registers metrics in a registry.
  26133. Different categories of metrics should be in differnt classes with their own
  26134. registry (as in NameNodeMetrics and DataNodeMetrics).
  26135. Then the MBean can be created passing the registry to the constructor.
  26136. The MBean should be then registered using a mbean name (example):
  26137. MetricsHolder myMetrics = new MetricsHolder(); // has metrics and registry
  26138. MetricsTestMBean theMBean = new MetricsTestMBean(myMetrics.mregistry);
  26139. ObjectName mbeanName = MBeanUtil.registerMBean("ServiceFoo",
  26140. "TestStatistics", theMBean);
  26141. @deprecated in favor of <code>org.apache.hadoop.metrics2</code> usage.]]>
  26142. </doc>
  26143. </class>
  26144. <!-- end class org.apache.hadoop.metrics.util.MetricsDynamicMBeanBase -->
  26145. <!-- start class org.apache.hadoop.metrics.util.MetricsIntValue -->
  26146. <class name="MetricsIntValue" extends="org.apache.hadoop.metrics.util.MetricsBase"
  26147. abstract="false"
  26148. static="false" final="false" visibility="public"
  26149. deprecated="in favor of {@link org.apache.hadoop.metrics2.lib.MetricMutableGaugeInt}.">
  26150. <constructor name="MetricsIntValue" type="java.lang.String, org.apache.hadoop.metrics.util.MetricsRegistry, java.lang.String"
  26151. static="false" final="false" visibility="public"
  26152. deprecated="not deprecated">
  26153. <doc>
  26154. <![CDATA[Constructor - create a new metric
  26155. @param nam the name of the metrics to be used to publish the metric
  26156. @param registry - where the metrics object will be registered]]>
  26157. </doc>
  26158. </constructor>
  26159. <constructor name="MetricsIntValue" type="java.lang.String, org.apache.hadoop.metrics.util.MetricsRegistry"
  26160. static="false" final="false" visibility="public"
  26161. deprecated="not deprecated">
  26162. <doc>
  26163. <![CDATA[Constructor - create a new metric
  26164. @param nam the name of the metrics to be used to publish the metric
  26165. @param registry - where the metrics object will be registered
  26166. A description of {@link #NO_DESCRIPTION} is used]]>
  26167. </doc>
  26168. </constructor>
  26169. <method name="set"
  26170. abstract="false" native="false" synchronized="true"
  26171. static="false" final="false" visibility="public"
  26172. deprecated="not deprecated">
  26173. <param name="newValue" type="int"/>
  26174. <doc>
  26175. <![CDATA[Set the value
  26176. @param newValue]]>
  26177. </doc>
  26178. </method>
  26179. <method name="get" return="int"
  26180. abstract="false" native="false" synchronized="true"
  26181. static="false" final="false" visibility="public"
  26182. deprecated="not deprecated">
  26183. <doc>
  26184. <![CDATA[Get value
  26185. @return the value last set]]>
  26186. </doc>
  26187. </method>
  26188. <method name="pushMetric"
  26189. abstract="false" native="false" synchronized="true"
  26190. static="false" final="false" visibility="public"
  26191. deprecated="not deprecated">
  26192. <param name="mr" type="org.apache.hadoop.metrics.MetricsRecord"/>
  26193. <doc>
  26194. <![CDATA[Push the metric to the mr.
  26195. The metric is pushed only if it was updated since last push
  26196. Note this does NOT push to JMX
  26197. (JMX gets the info via {@link #get()}
  26198. @param mr]]>
  26199. </doc>
  26200. </method>
  26201. <doc>
  26202. <![CDATA[The MetricsIntValue class is for a metric that is not time varied
  26203. but changes only when it is set.
  26204. Each time its value is set, it is published only *once* at the next update
  26205. call.
  26206. @deprecated in favor of {@link org.apache.hadoop.metrics2.lib.MetricMutableGaugeInt}.]]>
  26207. </doc>
  26208. </class>
  26209. <!-- end class org.apache.hadoop.metrics.util.MetricsIntValue -->
  26210. <!-- start class org.apache.hadoop.metrics.util.MetricsLongValue -->
  26211. <class name="MetricsLongValue" extends="org.apache.hadoop.metrics.util.MetricsBase"
  26212. abstract="false"
  26213. static="false" final="false" visibility="public"
  26214. deprecated="in favor of lEsS_tHaNcode>org.apache.hadoop.metrics2lEsS_tHaN/code> usage.">
  26215. <constructor name="MetricsLongValue" type="java.lang.String, org.apache.hadoop.metrics.util.MetricsRegistry, java.lang.String"
  26216. static="false" final="false" visibility="public"
  26217. deprecated="not deprecated">
  26218. <doc>
  26219. <![CDATA[Constructor - create a new metric
  26220. @param nam the name of the metrics to be used to publish the metric
  26221. @param registry - where the metrics object will be registered]]>
  26222. </doc>
  26223. </constructor>
  26224. <constructor name="MetricsLongValue" type="java.lang.String, org.apache.hadoop.metrics.util.MetricsRegistry"
  26225. static="false" final="false" visibility="public"
  26226. deprecated="not deprecated">
  26227. <doc>
  26228. <![CDATA[Constructor - create a new metric
  26229. @param nam the name of the metrics to be used to publish the metric
  26230. @param registry - where the metrics object will be registered
  26231. A description of {@link #NO_DESCRIPTION} is used]]>
  26232. </doc>
  26233. </constructor>
  26234. <method name="set"
  26235. abstract="false" native="false" synchronized="true"
  26236. static="false" final="false" visibility="public"
  26237. deprecated="not deprecated">
  26238. <param name="newValue" type="long"/>
  26239. <doc>
  26240. <![CDATA[Set the value
  26241. @param newValue]]>
  26242. </doc>
  26243. </method>
  26244. <method name="get" return="long"
  26245. abstract="false" native="false" synchronized="true"
  26246. static="false" final="false" visibility="public"
  26247. deprecated="not deprecated">
  26248. <doc>
  26249. <![CDATA[Get value
  26250. @return the value last set]]>
  26251. </doc>
  26252. </method>
  26253. <method name="pushMetric"
  26254. abstract="false" native="false" synchronized="true"
  26255. static="false" final="false" visibility="public"
  26256. deprecated="not deprecated">
  26257. <param name="mr" type="org.apache.hadoop.metrics.MetricsRecord"/>
  26258. <doc>
  26259. <![CDATA[Push the metric to the mr.
  26260. The metric is pushed only if it was updated since last push
  26261. Note this does NOT push to JMX
  26262. (JMX gets the info via {@link #get()}
  26263. @param mr]]>
  26264. </doc>
  26265. </method>
  26266. <doc>
  26267. <![CDATA[The MetricsLongValue class is for a metric that is not time varied
  26268. but changes only when it is set.
  26269. Each time its value is set, it is published only *once* at the next update
  26270. call.
  26271. @deprecated in favor of <code>org.apache.hadoop.metrics2</code> usage.]]>
  26272. </doc>
  26273. </class>
  26274. <!-- end class org.apache.hadoop.metrics.util.MetricsLongValue -->
  26275. <!-- start class org.apache.hadoop.metrics.util.MetricsRegistry -->
  26276. <class name="MetricsRegistry" extends="java.lang.Object"
  26277. abstract="false"
  26278. static="false" final="false" visibility="public"
  26279. deprecated="in favor of {@link org.apache.hadoop.metrics2.lib.MetricsRegistry}.">
  26280. <constructor name="MetricsRegistry"
  26281. static="false" final="false" visibility="public"
  26282. deprecated="not deprecated">
  26283. </constructor>
  26284. <method name="size" return="int"
  26285. abstract="false" native="false" synchronized="false"
  26286. static="false" final="false" visibility="public"
  26287. deprecated="not deprecated">
  26288. <doc>
  26289. <![CDATA[@return number of metrics in the registry]]>
  26290. </doc>
  26291. </method>
  26292. <method name="add"
  26293. abstract="false" native="false" synchronized="true"
  26294. static="false" final="false" visibility="public"
  26295. deprecated="not deprecated">
  26296. <param name="metricsName" type="java.lang.String"/>
  26297. <param name="theMetricsObj" type="org.apache.hadoop.metrics.util.MetricsBase"/>
  26298. <doc>
  26299. <![CDATA[Add a new metrics to the registry
  26300. @param metricsName - the name
  26301. @param theMetricsObj - the metrics
  26302. @throws IllegalArgumentException if a name is already registered]]>
  26303. </doc>
  26304. </method>
  26305. <method name="get" return="org.apache.hadoop.metrics.util.MetricsBase"
  26306. abstract="false" native="false" synchronized="true"
  26307. static="false" final="false" visibility="public"
  26308. deprecated="not deprecated">
  26309. <param name="metricsName" type="java.lang.String"/>
  26310. <doc>
  26311. <![CDATA[@param metricsName
  26312. @return the metrics if there is one registered by the supplied name.
  26313. Returns null if none is registered]]>
  26314. </doc>
  26315. </method>
  26316. <method name="getKeyList" return="java.util.Collection"
  26317. abstract="false" native="false" synchronized="true"
  26318. static="false" final="false" visibility="public"
  26319. deprecated="not deprecated">
  26320. <doc>
  26321. <![CDATA[@return the list of metrics names]]>
  26322. </doc>
  26323. </method>
  26324. <method name="getMetricsList" return="java.util.Collection"
  26325. abstract="false" native="false" synchronized="true"
  26326. static="false" final="false" visibility="public"
  26327. deprecated="not deprecated">
  26328. <doc>
  26329. <![CDATA[@return the list of metrics]]>
  26330. </doc>
  26331. </method>
  26332. <doc>
  26333. <![CDATA[This is the registry for metrics.
  26334. Related set of metrics should be declared in a holding class and registered
  26335. in a registry for those metrics which is also stored in the the holding class.
  26336. @deprecated in favor of {@link org.apache.hadoop.metrics2.lib.MetricsRegistry}.]]>
  26337. </doc>
  26338. </class>
  26339. <!-- end class org.apache.hadoop.metrics.util.MetricsRegistry -->
  26340. <!-- start class org.apache.hadoop.metrics.util.MetricsTimeVaryingInt -->
  26341. <class name="MetricsTimeVaryingInt" extends="org.apache.hadoop.metrics.util.MetricsBase"
  26342. abstract="false"
  26343. static="false" final="false" visibility="public"
  26344. deprecated="in favor of {@link org.apache.hadoop.metrics2.lib.MetricMutableCounterInt}.">
  26345. <constructor name="MetricsTimeVaryingInt" type="java.lang.String, org.apache.hadoop.metrics.util.MetricsRegistry, java.lang.String"
  26346. static="false" final="false" visibility="public"
  26347. deprecated="not deprecated">
  26348. <doc>
  26349. <![CDATA[Constructor - create a new metric
  26350. @param nam the name of the metrics to be used to publish the metric
  26351. @param registry - where the metrics object will be registered
  26352. @param description - the description]]>
  26353. </doc>
  26354. </constructor>
  26355. <constructor name="MetricsTimeVaryingInt" type="java.lang.String, org.apache.hadoop.metrics.util.MetricsRegistry"
  26356. static="false" final="false" visibility="public"
  26357. deprecated="not deprecated">
  26358. <doc>
  26359. <![CDATA[Constructor - create a new metric
  26360. @param nam the name of the metrics to be used to publish the metric
  26361. @param registry - where the metrics object will be registered
  26362. A description of {@link #NO_DESCRIPTION} is used]]>
  26363. </doc>
  26364. </constructor>
  26365. <method name="inc"
  26366. abstract="false" native="false" synchronized="true"
  26367. static="false" final="false" visibility="public"
  26368. deprecated="not deprecated">
  26369. <param name="incr" type="int"/>
  26370. <doc>
  26371. <![CDATA[Inc metrics for incr vlaue
  26372. @param incr - number of operations]]>
  26373. </doc>
  26374. </method>
  26375. <method name="inc"
  26376. abstract="false" native="false" synchronized="true"
  26377. static="false" final="false" visibility="public"
  26378. deprecated="not deprecated">
  26379. <doc>
  26380. <![CDATA[Inc metrics by one]]>
  26381. </doc>
  26382. </method>
  26383. <method name="pushMetric"
  26384. abstract="false" native="false" synchronized="true"
  26385. static="false" final="false" visibility="public"
  26386. deprecated="not deprecated">
  26387. <param name="mr" type="org.apache.hadoop.metrics.MetricsRecord"/>
  26388. <doc>
  26389. <![CDATA[Push the delta metrics to the mr.
  26390. The delta is since the last push/interval.
  26391. Note this does NOT push to JMX
  26392. (JMX gets the info via {@link #previousIntervalValue}
  26393. @param mr]]>
  26394. </doc>
  26395. </method>
  26396. <method name="getPreviousIntervalValue" return="int"
  26397. abstract="false" native="false" synchronized="true"
  26398. static="false" final="false" visibility="public"
  26399. deprecated="not deprecated">
  26400. <doc>
  26401. <![CDATA[The Value at the Previous interval
  26402. @return prev interval value]]>
  26403. </doc>
  26404. </method>
  26405. <method name="getCurrentIntervalValue" return="int"
  26406. abstract="false" native="false" synchronized="true"
  26407. static="false" final="false" visibility="public"
  26408. deprecated="not deprecated">
  26409. <doc>
  26410. <![CDATA[The Value at the current interval
  26411. @return prev interval value]]>
  26412. </doc>
  26413. </method>
  26414. <doc>
  26415. <![CDATA[The MetricsTimeVaryingInt class is for a metric that naturally
  26416. varies over time (e.g. number of files created). The metrics is accumulated
  26417. over an interval (set in the metrics config file); the metrics is
  26418. published at the end of each interval and then
  26419. reset to zero. Hence the counter has the value in the current interval.
  26420. Note if one wants a time associated with the metric then use
  26421. @see org.apache.hadoop.metrics.util.MetricsTimeVaryingRate
  26422. @deprecated in favor of {@link org.apache.hadoop.metrics2.lib.MetricMutableCounterInt}.]]>
  26423. </doc>
  26424. </class>
  26425. <!-- end class org.apache.hadoop.metrics.util.MetricsTimeVaryingInt -->
  26426. <!-- start class org.apache.hadoop.metrics.util.MetricsTimeVaryingLong -->
  26427. <class name="MetricsTimeVaryingLong" extends="org.apache.hadoop.metrics.util.MetricsBase"
  26428. abstract="false"
  26429. static="false" final="false" visibility="public"
  26430. deprecated="in favor of {@link org.apache.hadoop.metrics2.lib.MetricMutableCounterLong}.">
  26431. <constructor name="MetricsTimeVaryingLong" type="java.lang.String, org.apache.hadoop.metrics.util.MetricsRegistry, java.lang.String"
  26432. static="false" final="false" visibility="public"
  26433. deprecated="not deprecated">
  26434. <doc>
  26435. <![CDATA[Constructor - create a new metric
  26436. @param nam the name of the metrics to be used to publish the metric
  26437. @param registry - where the metrics object will be registered]]>
  26438. </doc>
  26439. </constructor>
  26440. <constructor name="MetricsTimeVaryingLong" type="java.lang.String, org.apache.hadoop.metrics.util.MetricsRegistry"
  26441. static="false" final="false" visibility="public"
  26442. deprecated="not deprecated">
  26443. <doc>
  26444. <![CDATA[Constructor - create a new metric
  26445. @param nam the name of the metrics to be used to publish the metric
  26446. @param registry - where the metrics object will be registered
  26447. A description of {@link #NO_DESCRIPTION} is used]]>
  26448. </doc>
  26449. </constructor>
  26450. <method name="inc"
  26451. abstract="false" native="false" synchronized="true"
  26452. static="false" final="false" visibility="public"
  26453. deprecated="not deprecated">
  26454. <param name="incr" type="long"/>
  26455. <doc>
  26456. <![CDATA[Inc metrics for incr vlaue
  26457. @param incr - number of operations]]>
  26458. </doc>
  26459. </method>
  26460. <method name="inc"
  26461. abstract="false" native="false" synchronized="true"
  26462. static="false" final="false" visibility="public"
  26463. deprecated="not deprecated">
  26464. <doc>
  26465. <![CDATA[Inc metrics by one]]>
  26466. </doc>
  26467. </method>
  26468. <method name="pushMetric"
  26469. abstract="false" native="false" synchronized="true"
  26470. static="false" final="false" visibility="public"
  26471. deprecated="not deprecated">
  26472. <param name="mr" type="org.apache.hadoop.metrics.MetricsRecord"/>
  26473. <doc>
  26474. <![CDATA[Push the delta metrics to the mr.
  26475. The delta is since the last push/interval.
  26476. Note this does NOT push to JMX
  26477. (JMX gets the info via {@link #previousIntervalValue}
  26478. @param mr]]>
  26479. </doc>
  26480. </method>
  26481. <method name="getPreviousIntervalValue" return="long"
  26482. abstract="false" native="false" synchronized="true"
  26483. static="false" final="false" visibility="public"
  26484. deprecated="not deprecated">
  26485. <doc>
  26486. <![CDATA[The Value at the Previous interval
  26487. @return prev interval value]]>
  26488. </doc>
  26489. </method>
  26490. <method name="getCurrentIntervalValue" return="long"
  26491. abstract="false" native="false" synchronized="true"
  26492. static="false" final="false" visibility="public"
  26493. deprecated="not deprecated">
  26494. <doc>
  26495. <![CDATA[The Value at the current interval
  26496. @return prev interval value]]>
  26497. </doc>
  26498. </method>
  26499. <doc>
  26500. <![CDATA[The MetricsTimeVaryingLong class is for a metric that naturally
  26501. varies over time (e.g. number of files created). The metrics is accumulated
  26502. over an interval (set in the metrics config file); the metrics is
  26503. published at the end of each interval and then
  26504. reset to zero. Hence the counter has the value in the current interval.
  26505. Note if one wants a time associated with the metric then use
  26506. @see org.apache.hadoop.metrics.util.MetricsTimeVaryingRate
  26507. @deprecated in favor of {@link org.apache.hadoop.metrics2.lib.MetricMutableCounterLong}.]]>
  26508. </doc>
  26509. </class>
  26510. <!-- end class org.apache.hadoop.metrics.util.MetricsTimeVaryingLong -->
  26511. <!-- start class org.apache.hadoop.metrics.util.MetricsTimeVaryingRate -->
  26512. <class name="MetricsTimeVaryingRate" extends="org.apache.hadoop.metrics.util.MetricsBase"
  26513. abstract="false"
  26514. static="false" final="false" visibility="public"
  26515. deprecated="in favor of {@link org.apache.hadoop.metrics2.lib.MetricMutableGauge}.">
  26516. <constructor name="MetricsTimeVaryingRate" type="java.lang.String, org.apache.hadoop.metrics.util.MetricsRegistry, java.lang.String"
  26517. static="false" final="false" visibility="public"
  26518. deprecated="not deprecated">
  26519. <doc>
  26520. <![CDATA[Constructor - create a new metric
  26521. @param nam the name of the metrics to be used to publish the metric
  26522. @param registry - where the metrics object will be registered]]>
  26523. </doc>
  26524. </constructor>
  26525. <constructor name="MetricsTimeVaryingRate" type="java.lang.String, org.apache.hadoop.metrics.util.MetricsRegistry"
  26526. static="false" final="false" visibility="public"
  26527. deprecated="not deprecated">
  26528. <doc>
  26529. <![CDATA[Constructor - create a new metric
  26530. @param nam the name of the metrics to be used to publish the metric
  26531. @param registry - where the metrics object will be registered
  26532. A description of {@link #NO_DESCRIPTION} is used]]>
  26533. </doc>
  26534. </constructor>
  26535. <method name="inc"
  26536. abstract="false" native="false" synchronized="true"
  26537. static="false" final="false" visibility="public"
  26538. deprecated="not deprecated">
  26539. <param name="numOps" type="int"/>
  26540. <param name="time" type="long"/>
  26541. <doc>
  26542. <![CDATA[Increment the metrics for numOps operations
  26543. @param numOps - number of operations
  26544. @param time - time for numOps operations]]>
  26545. </doc>
  26546. </method>
  26547. <method name="inc"
  26548. abstract="false" native="false" synchronized="true"
  26549. static="false" final="false" visibility="public"
  26550. deprecated="not deprecated">
  26551. <param name="time" type="long"/>
  26552. <doc>
  26553. <![CDATA[Increment the metrics for one operation
  26554. @param time for one operation]]>
  26555. </doc>
  26556. </method>
  26557. <method name="pushMetric"
  26558. abstract="false" native="false" synchronized="true"
  26559. static="false" final="false" visibility="public"
  26560. deprecated="not deprecated">
  26561. <param name="mr" type="org.apache.hadoop.metrics.MetricsRecord"/>
  26562. <doc>
  26563. <![CDATA[Push the delta metrics to the mr.
  26564. The delta is since the last push/interval.
  26565. Note this does NOT push to JMX
  26566. (JMX gets the info via {@link #getPreviousIntervalAverageTime()} and
  26567. {@link #getPreviousIntervalNumOps()}
  26568. @param mr]]>
  26569. </doc>
  26570. </method>
  26571. <method name="getPreviousIntervalNumOps" return="int"
  26572. abstract="false" native="false" synchronized="true"
  26573. static="false" final="false" visibility="public"
  26574. deprecated="not deprecated">
  26575. <doc>
  26576. <![CDATA[The number of operations in the previous interval
  26577. @return - ops in prev interval]]>
  26578. </doc>
  26579. </method>
  26580. <method name="getPreviousIntervalAverageTime" return="long"
  26581. abstract="false" native="false" synchronized="true"
  26582. static="false" final="false" visibility="public"
  26583. deprecated="not deprecated">
  26584. <doc>
  26585. <![CDATA[The average rate of an operation in the previous interval
  26586. @return - the average rate.]]>
  26587. </doc>
  26588. </method>
  26589. <method name="getMinTime" return="long"
  26590. abstract="false" native="false" synchronized="true"
  26591. static="false" final="false" visibility="public"
  26592. deprecated="not deprecated">
  26593. <doc>
  26594. <![CDATA[The min time for a single operation since the last reset
  26595. {@link #resetMinMax()}
  26596. @return min time for an operation]]>
  26597. </doc>
  26598. </method>
  26599. <method name="getMaxTime" 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 max time for a single operation since the last reset
  26605. {@link #resetMinMax()}
  26606. @return max time for an operation]]>
  26607. </doc>
  26608. </method>
  26609. <method name="resetMinMax"
  26610. abstract="false" native="false" synchronized="true"
  26611. static="false" final="false" visibility="public"
  26612. deprecated="not deprecated">
  26613. <doc>
  26614. <![CDATA[Reset the min max values]]>
  26615. </doc>
  26616. </method>
  26617. <doc>
  26618. <![CDATA[The MetricsTimeVaryingRate class is for a rate based metric that
  26619. naturally varies over time (e.g. time taken to create a file).
  26620. The rate is averaged at each interval heart beat (the interval
  26621. is set in the metrics config file).
  26622. This class also keeps track of the min and max rates along with
  26623. a method to reset the min-max.
  26624. @deprecated in favor of {@link org.apache.hadoop.metrics2.lib.MetricMutableGauge}.]]>
  26625. </doc>
  26626. </class>
  26627. <!-- end class org.apache.hadoop.metrics.util.MetricsTimeVaryingRate -->
  26628. </package>
  26629. <package name="org.apache.hadoop.metrics2">
  26630. <!-- start class org.apache.hadoop.metrics2.Metric -->
  26631. <class name="Metric" extends="java.lang.Object"
  26632. abstract="true"
  26633. static="false" final="false" visibility="public"
  26634. deprecated="not deprecated">
  26635. <constructor name="Metric" type="java.lang.String"
  26636. static="false" final="false" visibility="public"
  26637. deprecated="not deprecated">
  26638. <doc>
  26639. <![CDATA[Construct the metric with name only
  26640. @param name of the metric]]>
  26641. </doc>
  26642. </constructor>
  26643. <constructor name="Metric" type="java.lang.String, java.lang.String"
  26644. static="false" final="false" visibility="public"
  26645. deprecated="not deprecated">
  26646. <doc>
  26647. <![CDATA[Construct the metric with a name and a description
  26648. @param name of the metric
  26649. @param desc description of the metric]]>
  26650. </doc>
  26651. </constructor>
  26652. <method name="name" return="java.lang.String"
  26653. abstract="false" native="false" synchronized="false"
  26654. static="false" final="false" visibility="public"
  26655. deprecated="not deprecated">
  26656. <doc>
  26657. <![CDATA[Get the name of the metric
  26658. @return the name]]>
  26659. </doc>
  26660. </method>
  26661. <method name="description" return="java.lang.String"
  26662. abstract="false" native="false" synchronized="false"
  26663. static="false" final="false" visibility="public"
  26664. deprecated="not deprecated">
  26665. <doc>
  26666. <![CDATA[Get the description of the metric
  26667. @return the description]]>
  26668. </doc>
  26669. </method>
  26670. <method name="value" return="java.lang.Number"
  26671. abstract="true" native="false" synchronized="false"
  26672. static="false" final="false" visibility="public"
  26673. deprecated="not deprecated">
  26674. <doc>
  26675. <![CDATA[Get the value of the metric
  26676. @return the value of the metric]]>
  26677. </doc>
  26678. </method>
  26679. <method name="visit"
  26680. abstract="true" native="false" synchronized="false"
  26681. static="false" final="false" visibility="public"
  26682. deprecated="not deprecated">
  26683. <param name="visitor" type="org.apache.hadoop.metrics2.MetricsVisitor"/>
  26684. <doc>
  26685. <![CDATA[Accept a visitor interface
  26686. @param visitor of the metric]]>
  26687. </doc>
  26688. </method>
  26689. <method name="equals" return="boolean"
  26690. abstract="false" native="false" synchronized="false"
  26691. static="false" final="false" visibility="public"
  26692. deprecated="not deprecated">
  26693. <param name="obj" type="java.lang.Object"/>
  26694. </method>
  26695. <method name="hashCode" return="int"
  26696. abstract="false" native="false" synchronized="false"
  26697. static="false" final="false" visibility="public"
  26698. deprecated="not deprecated">
  26699. </method>
  26700. <method name="toString" return="java.lang.String"
  26701. abstract="false" native="false" synchronized="false"
  26702. static="false" final="false" visibility="public"
  26703. deprecated="not deprecated">
  26704. </method>
  26705. <field name="NO_DESCRIPTION" type="java.lang.String"
  26706. transient="false" volatile="false"
  26707. static="true" final="true" visibility="public"
  26708. deprecated="not deprecated">
  26709. </field>
  26710. <doc>
  26711. <![CDATA[The immutable metric]]>
  26712. </doc>
  26713. </class>
  26714. <!-- end class org.apache.hadoop.metrics2.Metric -->
  26715. <!-- start class org.apache.hadoop.metrics2.MetricCounter -->
  26716. <class name="MetricCounter" extends="org.apache.hadoop.metrics2.Metric"
  26717. abstract="true"
  26718. static="false" final="false" visibility="public"
  26719. deprecated="not deprecated">
  26720. <constructor name="MetricCounter" type="java.lang.String, java.lang.String"
  26721. static="false" final="false" visibility="public"
  26722. deprecated="not deprecated">
  26723. <doc>
  26724. <![CDATA[Construct a counter metric
  26725. @param name of the metric
  26726. @param description of the metric]]>
  26727. </doc>
  26728. </constructor>
  26729. <method name="value" return="java.lang.Number"
  26730. abstract="true" native="false" synchronized="false"
  26731. static="false" final="false" visibility="public"
  26732. deprecated="not deprecated">
  26733. </method>
  26734. <doc>
  26735. <![CDATA[A generic immutable counter metric type
  26736. @param <T> value type of the metric]]>
  26737. </doc>
  26738. </class>
  26739. <!-- end class org.apache.hadoop.metrics2.MetricCounter -->
  26740. <!-- start class org.apache.hadoop.metrics2.MetricGauge -->
  26741. <class name="MetricGauge" extends="org.apache.hadoop.metrics2.Metric"
  26742. abstract="true"
  26743. static="false" final="false" visibility="public"
  26744. deprecated="not deprecated">
  26745. <constructor name="MetricGauge" type="java.lang.String, java.lang.String"
  26746. static="false" final="false" visibility="public"
  26747. deprecated="not deprecated">
  26748. <doc>
  26749. <![CDATA[Construct a gauge metric
  26750. @param name of the metric
  26751. @param description of the metric]]>
  26752. </doc>
  26753. </constructor>
  26754. <method name="value" return="java.lang.Number"
  26755. abstract="true" native="false" synchronized="false"
  26756. static="false" final="false" visibility="public"
  26757. deprecated="not deprecated">
  26758. </method>
  26759. <doc>
  26760. <![CDATA[A generic immutable gauge metric
  26761. @param <T> value type of the metric]]>
  26762. </doc>
  26763. </class>
  26764. <!-- end class org.apache.hadoop.metrics2.MetricGauge -->
  26765. <!-- start interface org.apache.hadoop.metrics2.MetricsBuilder -->
  26766. <interface name="MetricsBuilder" abstract="true"
  26767. static="false" final="false" visibility="public"
  26768. deprecated="not deprecated">
  26769. <method name="addRecord" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  26770. abstract="false" native="false" synchronized="false"
  26771. static="false" final="false" visibility="public"
  26772. deprecated="not deprecated">
  26773. <param name="name" type="java.lang.String"/>
  26774. <doc>
  26775. <![CDATA[Add a metrics record
  26776. @param name of the record
  26777. @return a metrics record builder for the record]]>
  26778. </doc>
  26779. </method>
  26780. <doc>
  26781. <![CDATA[The metrics builder interface]]>
  26782. </doc>
  26783. </interface>
  26784. <!-- end interface org.apache.hadoop.metrics2.MetricsBuilder -->
  26785. <!-- start class org.apache.hadoop.metrics2.MetricsException -->
  26786. <class name="MetricsException" extends="java.lang.RuntimeException"
  26787. abstract="false"
  26788. static="false" final="false" visibility="public"
  26789. deprecated="not deprecated">
  26790. <constructor name="MetricsException" type="java.lang.String"
  26791. static="false" final="false" visibility="public"
  26792. deprecated="not deprecated">
  26793. <doc>
  26794. <![CDATA[Construct the exception with a message
  26795. @param message for the exception]]>
  26796. </doc>
  26797. </constructor>
  26798. <constructor name="MetricsException" type="java.lang.String, java.lang.Throwable"
  26799. static="false" final="false" visibility="public"
  26800. deprecated="not deprecated">
  26801. <doc>
  26802. <![CDATA[Construct the exception with a message and a cause
  26803. @param message for the exception
  26804. @param cause of the exception]]>
  26805. </doc>
  26806. </constructor>
  26807. <constructor name="MetricsException" type="java.lang.Throwable"
  26808. static="false" final="false" visibility="public"
  26809. deprecated="not deprecated">
  26810. <doc>
  26811. <![CDATA[Construct the exception with a cause
  26812. @param cause of the exception]]>
  26813. </doc>
  26814. </constructor>
  26815. <doc>
  26816. <![CDATA[A general metrics exception wrapper]]>
  26817. </doc>
  26818. </class>
  26819. <!-- end class org.apache.hadoop.metrics2.MetricsException -->
  26820. <!-- start class org.apache.hadoop.metrics2.MetricsFilter -->
  26821. <class name="MetricsFilter" extends="java.lang.Object"
  26822. abstract="true"
  26823. static="false" final="false" visibility="public"
  26824. deprecated="not deprecated">
  26825. <implements name="org.apache.hadoop.metrics2.MetricsPlugin"/>
  26826. <constructor name="MetricsFilter"
  26827. static="false" final="false" visibility="public"
  26828. deprecated="not deprecated">
  26829. </constructor>
  26830. <method name="init"
  26831. abstract="true" native="false" synchronized="false"
  26832. static="false" final="false" visibility="public"
  26833. deprecated="not deprecated">
  26834. <param name="conf" type="org.apache.commons.configuration.SubsetConfiguration"/>
  26835. </method>
  26836. <method name="accepts" return="boolean"
  26837. abstract="true" native="false" synchronized="false"
  26838. static="false" final="false" visibility="public"
  26839. deprecated="not deprecated">
  26840. <param name="name" type="java.lang.String"/>
  26841. <doc>
  26842. <![CDATA[Whether to accept the name
  26843. @param name to filter on
  26844. @return true to accept; false otherwise.]]>
  26845. </doc>
  26846. </method>
  26847. <method name="accepts" return="boolean"
  26848. abstract="true" native="false" synchronized="false"
  26849. static="false" final="false" visibility="public"
  26850. deprecated="not deprecated">
  26851. <param name="tag" type="org.apache.hadoop.metrics2.MetricsTag"/>
  26852. <doc>
  26853. <![CDATA[Whether to accept the tag
  26854. @param tag to filter on
  26855. @return true to accept; false otherwise]]>
  26856. </doc>
  26857. </method>
  26858. <method name="accepts" return="boolean"
  26859. abstract="true" native="false" synchronized="false"
  26860. static="false" final="false" visibility="public"
  26861. deprecated="not deprecated">
  26862. <param name="tags" type="java.lang.Iterable"/>
  26863. <doc>
  26864. <![CDATA[Whether to accept the tags
  26865. @param tags to filter on
  26866. @return true to accept; false otherwise]]>
  26867. </doc>
  26868. </method>
  26869. <method name="accepts" return="boolean"
  26870. abstract="false" native="false" synchronized="false"
  26871. static="false" final="false" visibility="public"
  26872. deprecated="not deprecated">
  26873. <param name="record" type="org.apache.hadoop.metrics2.MetricsRecord"/>
  26874. <doc>
  26875. <![CDATA[Whether to accept the record
  26876. @param record to filter on
  26877. @return true to accept; false otherwise.]]>
  26878. </doc>
  26879. </method>
  26880. <doc>
  26881. <![CDATA[The metrics filter interface]]>
  26882. </doc>
  26883. </class>
  26884. <!-- end class org.apache.hadoop.metrics2.MetricsFilter -->
  26885. <!-- start interface org.apache.hadoop.metrics2.MetricsPlugin -->
  26886. <interface name="MetricsPlugin" abstract="true"
  26887. static="false" final="false" visibility="public"
  26888. deprecated="not deprecated">
  26889. <method name="init"
  26890. abstract="false" native="false" synchronized="false"
  26891. static="false" final="false" visibility="public"
  26892. deprecated="not deprecated">
  26893. <param name="conf" type="org.apache.commons.configuration.SubsetConfiguration"/>
  26894. <doc>
  26895. <![CDATA[Initialize the plugin
  26896. @param conf the configuration object for the plugin]]>
  26897. </doc>
  26898. </method>
  26899. <doc>
  26900. <![CDATA[A fairly generic plugin interface]]>
  26901. </doc>
  26902. </interface>
  26903. <!-- end interface org.apache.hadoop.metrics2.MetricsPlugin -->
  26904. <!-- start interface org.apache.hadoop.metrics2.MetricsRecord -->
  26905. <interface name="MetricsRecord" abstract="true"
  26906. static="false" final="false" visibility="public"
  26907. deprecated="not deprecated">
  26908. <method name="timestamp" return="long"
  26909. abstract="false" native="false" synchronized="false"
  26910. static="false" final="false" visibility="public"
  26911. deprecated="not deprecated">
  26912. <doc>
  26913. <![CDATA[Get the timestamp of the metrics
  26914. @return the timestamp]]>
  26915. </doc>
  26916. </method>
  26917. <method name="name" return="java.lang.String"
  26918. abstract="false" native="false" synchronized="false"
  26919. static="false" final="false" visibility="public"
  26920. deprecated="not deprecated">
  26921. <doc>
  26922. <![CDATA[Get the record name of the metrics
  26923. @return the record name]]>
  26924. </doc>
  26925. </method>
  26926. <method name="context" return="java.lang.String"
  26927. abstract="false" native="false" synchronized="false"
  26928. static="false" final="false" visibility="public"
  26929. deprecated="not deprecated">
  26930. <doc>
  26931. <![CDATA[Get the context name of the metrics
  26932. @return the context name]]>
  26933. </doc>
  26934. </method>
  26935. <method name="tags" return="java.lang.Iterable"
  26936. abstract="false" native="false" synchronized="false"
  26937. static="false" final="false" visibility="public"
  26938. deprecated="not deprecated">
  26939. <doc>
  26940. <![CDATA[Get the tags of the record
  26941. @return the tags]]>
  26942. </doc>
  26943. </method>
  26944. <method name="metrics" return="java.lang.Iterable"
  26945. abstract="false" native="false" synchronized="false"
  26946. static="false" final="false" visibility="public"
  26947. deprecated="not deprecated">
  26948. <doc>
  26949. <![CDATA[Get the metrics of the record
  26950. @return the metrics]]>
  26951. </doc>
  26952. </method>
  26953. <doc>
  26954. <![CDATA[An immutable snapshot of metrics with a timestamp]]>
  26955. </doc>
  26956. </interface>
  26957. <!-- end interface org.apache.hadoop.metrics2.MetricsRecord -->
  26958. <!-- start class org.apache.hadoop.metrics2.MetricsRecordBuilder -->
  26959. <class name="MetricsRecordBuilder" extends="java.lang.Object"
  26960. abstract="true"
  26961. static="false" final="false" visibility="public"
  26962. deprecated="not deprecated">
  26963. <constructor name="MetricsRecordBuilder"
  26964. static="false" final="false" visibility="public"
  26965. deprecated="not deprecated">
  26966. </constructor>
  26967. <method name="tag" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  26968. abstract="true" native="false" synchronized="false"
  26969. static="false" final="false" visibility="public"
  26970. deprecated="not deprecated">
  26971. <param name="name" type="java.lang.String"/>
  26972. <param name="description" type="java.lang.String"/>
  26973. <param name="value" type="java.lang.String"/>
  26974. <doc>
  26975. <![CDATA[Add a metrics tag
  26976. @param name of the tag
  26977. @param description of the tag
  26978. @param value of the tag
  26979. @return self]]>
  26980. </doc>
  26981. </method>
  26982. <method name="add" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  26983. abstract="true" native="false" synchronized="false"
  26984. static="false" final="false" visibility="public"
  26985. deprecated="not deprecated">
  26986. <param name="tag" type="org.apache.hadoop.metrics2.MetricsTag"/>
  26987. <doc>
  26988. <![CDATA[Add an immutable metrics tag object
  26989. @param tag a pre-made tag object (potentially save an object construction)
  26990. @return self]]>
  26991. </doc>
  26992. </method>
  26993. <method name="setContext" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  26994. abstract="true" native="false" synchronized="false"
  26995. static="false" final="false" visibility="public"
  26996. deprecated="not deprecated">
  26997. <param name="value" type="java.lang.String"/>
  26998. <doc>
  26999. <![CDATA[Set the context tag
  27000. @param value of the context
  27001. @return self]]>
  27002. </doc>
  27003. </method>
  27004. <method name="addCounter" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  27005. abstract="true" native="false" synchronized="false"
  27006. static="false" final="false" visibility="public"
  27007. deprecated="not deprecated">
  27008. <param name="name" type="java.lang.String"/>
  27009. <param name="description" type="java.lang.String"/>
  27010. <param name="value" type="int"/>
  27011. <doc>
  27012. <![CDATA[Add an int counter metric
  27013. @param name of the metric
  27014. @param description of the metric
  27015. @param value of the metric
  27016. @return self]]>
  27017. </doc>
  27018. </method>
  27019. <method name="addCounter" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  27020. abstract="true" native="false" synchronized="false"
  27021. static="false" final="false" visibility="public"
  27022. deprecated="not deprecated">
  27023. <param name="name" type="java.lang.String"/>
  27024. <param name="description" type="java.lang.String"/>
  27025. <param name="value" type="long"/>
  27026. <doc>
  27027. <![CDATA[Add an long counter metric
  27028. @param name of the metric
  27029. @param description of the metric
  27030. @param value of the metric
  27031. @return self]]>
  27032. </doc>
  27033. </method>
  27034. <method name="addGauge" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  27035. abstract="true" native="false" synchronized="false"
  27036. static="false" final="false" visibility="public"
  27037. deprecated="not deprecated">
  27038. <param name="name" type="java.lang.String"/>
  27039. <param name="description" type="java.lang.String"/>
  27040. <param name="value" type="int"/>
  27041. <doc>
  27042. <![CDATA[Add a int gauge metric
  27043. @param name of the metric
  27044. @param description of the metric
  27045. @param value of the metric
  27046. @return self]]>
  27047. </doc>
  27048. </method>
  27049. <method name="addGauge" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  27050. abstract="true" native="false" synchronized="false"
  27051. static="false" final="false" visibility="public"
  27052. deprecated="not deprecated">
  27053. <param name="name" type="java.lang.String"/>
  27054. <param name="description" type="java.lang.String"/>
  27055. <param name="value" type="long"/>
  27056. <doc>
  27057. <![CDATA[Add a long gauge metric
  27058. @param name of the metric
  27059. @param description of the metric
  27060. @param value of the metric
  27061. @return self]]>
  27062. </doc>
  27063. </method>
  27064. <method name="addGauge" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  27065. abstract="true" native="false" synchronized="false"
  27066. static="false" final="false" visibility="public"
  27067. deprecated="not deprecated">
  27068. <param name="name" type="java.lang.String"/>
  27069. <param name="description" type="java.lang.String"/>
  27070. <param name="value" type="float"/>
  27071. <doc>
  27072. <![CDATA[Add a float gauge metric
  27073. @param name of the metric
  27074. @param description of the metric
  27075. @param value of the metric
  27076. @return self]]>
  27077. </doc>
  27078. </method>
  27079. <method name="addGauge" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  27080. abstract="true" native="false" synchronized="false"
  27081. static="false" final="false" visibility="public"
  27082. deprecated="not deprecated">
  27083. <param name="name" type="java.lang.String"/>
  27084. <param name="description" type="java.lang.String"/>
  27085. <param name="value" type="double"/>
  27086. <doc>
  27087. <![CDATA[Add a double gauge metric
  27088. @param name of the metric
  27089. @param description of the metric
  27090. @param value of the metric
  27091. @return self]]>
  27092. </doc>
  27093. </method>
  27094. <method name="add" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  27095. abstract="true" native="false" synchronized="false"
  27096. static="false" final="false" visibility="public"
  27097. deprecated="not deprecated">
  27098. <param name="metric" type="org.apache.hadoop.metrics2.Metric"/>
  27099. <doc>
  27100. <![CDATA[Add a pre-made immutable metric object
  27101. @param metric the pre-made metric to save an object construction
  27102. @return self]]>
  27103. </doc>
  27104. </method>
  27105. <doc>
  27106. <![CDATA[The metrics record builder interface]]>
  27107. </doc>
  27108. </class>
  27109. <!-- end class org.apache.hadoop.metrics2.MetricsRecordBuilder -->
  27110. <!-- start interface org.apache.hadoop.metrics2.MetricsSink -->
  27111. <interface name="MetricsSink" abstract="true"
  27112. static="false" final="false" visibility="public"
  27113. deprecated="not deprecated">
  27114. <implements name="org.apache.hadoop.metrics2.MetricsPlugin"/>
  27115. <method name="putMetrics"
  27116. abstract="false" native="false" synchronized="false"
  27117. static="false" final="false" visibility="public"
  27118. deprecated="not deprecated">
  27119. <param name="record" type="org.apache.hadoop.metrics2.MetricsRecord"/>
  27120. <doc>
  27121. <![CDATA[Put a metrics record in the sink
  27122. @param record the record to put]]>
  27123. </doc>
  27124. </method>
  27125. <method name="flush"
  27126. abstract="false" native="false" synchronized="false"
  27127. static="false" final="false" visibility="public"
  27128. deprecated="not deprecated">
  27129. <doc>
  27130. <![CDATA[Flush any buffered metrics]]>
  27131. </doc>
  27132. </method>
  27133. <doc>
  27134. <![CDATA[The metrics sink interface]]>
  27135. </doc>
  27136. </interface>
  27137. <!-- end interface org.apache.hadoop.metrics2.MetricsSink -->
  27138. <!-- start interface org.apache.hadoop.metrics2.MetricsSource -->
  27139. <interface name="MetricsSource" abstract="true"
  27140. static="false" final="false" visibility="public"
  27141. deprecated="not deprecated">
  27142. <method name="getMetrics"
  27143. abstract="false" native="false" synchronized="false"
  27144. static="false" final="false" visibility="public"
  27145. deprecated="not deprecated">
  27146. <param name="builder" type="org.apache.hadoop.metrics2.MetricsBuilder"/>
  27147. <param name="all" type="boolean"/>
  27148. <doc>
  27149. <![CDATA[Get metrics from the source
  27150. @param builder to contain the resulting metrics snapshot
  27151. @param all if true, return all metrics even if unchanged.]]>
  27152. </doc>
  27153. </method>
  27154. <doc>
  27155. <![CDATA[The metrics source interface]]>
  27156. </doc>
  27157. </interface>
  27158. <!-- end interface org.apache.hadoop.metrics2.MetricsSource -->
  27159. <!-- start interface org.apache.hadoop.metrics2.MetricsSystem -->
  27160. <interface name="MetricsSystem" abstract="true"
  27161. static="false" final="false" visibility="public"
  27162. deprecated="not deprecated">
  27163. <implements name="org.apache.hadoop.metrics2.MetricsSystemMXBean"/>
  27164. <method name="register" return="org.apache.hadoop.metrics2.MetricsSource"
  27165. abstract="false" native="false" synchronized="false"
  27166. static="false" final="false" visibility="public"
  27167. deprecated="not deprecated">
  27168. <param name="name" type="java.lang.String"/>
  27169. <param name="desc" type="java.lang.String"/>
  27170. <param name="source" type="org.apache.hadoop.metrics2.MetricsSource"/>
  27171. <doc>
  27172. <![CDATA[Register a metrics source
  27173. @param <T> the type of the source
  27174. @param source to register
  27175. @param name of the source. Must be unique.
  27176. @param desc the description of the source.
  27177. @return the source
  27178. @exception MetricsException]]>
  27179. </doc>
  27180. </method>
  27181. <method name="register" return="org.apache.hadoop.metrics2.MetricsSink"
  27182. abstract="false" native="false" synchronized="false"
  27183. static="false" final="false" visibility="public"
  27184. deprecated="not deprecated">
  27185. <param name="name" type="java.lang.String"/>
  27186. <param name="desc" type="java.lang.String"/>
  27187. <param name="sink" type="org.apache.hadoop.metrics2.MetricsSink"/>
  27188. <doc>
  27189. <![CDATA[Register a metrics sink
  27190. @param <T> the type of the sink
  27191. @param sink to register
  27192. @param name of the sink. Must be unique.
  27193. @param desc the description of the sink
  27194. @return the sink
  27195. @exception MetricsException]]>
  27196. </doc>
  27197. </method>
  27198. <method name="register"
  27199. abstract="false" native="false" synchronized="false"
  27200. static="false" final="false" visibility="public"
  27201. deprecated="not deprecated">
  27202. <param name="callback" type="org.apache.hadoop.metrics2.MetricsSystem.Callback"/>
  27203. <doc>
  27204. <![CDATA[Register a callback interface for JMX events
  27205. @param callback the callback object implementing the MBean interface.]]>
  27206. </doc>
  27207. </method>
  27208. <method name="publishMetricsNow"
  27209. abstract="false" native="false" synchronized="false"
  27210. static="false" final="false" visibility="public"
  27211. deprecated="not deprecated">
  27212. <doc>
  27213. <![CDATA[Requests an immediate publish of all metrics from sources to sinks.
  27214. This is a "soft" request: the expectation is that a best effort will be
  27215. done to synchronously snapshot the metrics from all the sources and put
  27216. them in all the sinks (including flushing the sinks) before returning to
  27217. the caller. If this can't be accomplished in reasonable time it's OK to
  27218. return to the caller before everything is done.]]>
  27219. </doc>
  27220. </method>
  27221. <method name="shutdown"
  27222. abstract="false" native="false" synchronized="false"
  27223. static="false" final="false" visibility="public"
  27224. deprecated="not deprecated">
  27225. <doc>
  27226. <![CDATA[Shutdown the metrics system completely (usually during server shutdown.)
  27227. The MetricsSystemMXBean will be unregistered.]]>
  27228. </doc>
  27229. </method>
  27230. <doc>
  27231. <![CDATA[The metrics system interface]]>
  27232. </doc>
  27233. </interface>
  27234. <!-- end interface org.apache.hadoop.metrics2.MetricsSystem -->
  27235. <!-- start class org.apache.hadoop.metrics2.MetricsSystem.AbstractCallback -->
  27236. <class name="MetricsSystem.AbstractCallback" extends="java.lang.Object"
  27237. abstract="true"
  27238. static="true" final="false" visibility="public"
  27239. deprecated="not deprecated">
  27240. <implements name="org.apache.hadoop.metrics2.MetricsSystem.Callback"/>
  27241. <constructor name="MetricsSystem.AbstractCallback"
  27242. static="false" final="false" visibility="public"
  27243. deprecated="not deprecated">
  27244. </constructor>
  27245. <method name="preStart"
  27246. abstract="false" native="false" synchronized="false"
  27247. static="false" final="false" visibility="public"
  27248. deprecated="not deprecated">
  27249. </method>
  27250. <method name="postStart"
  27251. abstract="false" native="false" synchronized="false"
  27252. static="false" final="false" visibility="public"
  27253. deprecated="not deprecated">
  27254. </method>
  27255. <method name="preStop"
  27256. abstract="false" native="false" synchronized="false"
  27257. static="false" final="false" visibility="public"
  27258. deprecated="not deprecated">
  27259. </method>
  27260. <method name="postStop"
  27261. abstract="false" native="false" synchronized="false"
  27262. static="false" final="false" visibility="public"
  27263. deprecated="not deprecated">
  27264. </method>
  27265. <doc>
  27266. <![CDATA[Convenient abstract class for implementing callback interface]]>
  27267. </doc>
  27268. </class>
  27269. <!-- end class org.apache.hadoop.metrics2.MetricsSystem.AbstractCallback -->
  27270. <!-- start interface org.apache.hadoop.metrics2.MetricsSystem.Callback -->
  27271. <interface name="MetricsSystem.Callback" abstract="true"
  27272. static="true" final="false" visibility="public"
  27273. deprecated="not deprecated">
  27274. <method name="preStart"
  27275. abstract="false" native="false" synchronized="false"
  27276. static="false" final="false" visibility="public"
  27277. deprecated="not deprecated">
  27278. <doc>
  27279. <![CDATA[Called before start()]]>
  27280. </doc>
  27281. </method>
  27282. <method name="postStart"
  27283. abstract="false" native="false" synchronized="false"
  27284. static="false" final="false" visibility="public"
  27285. deprecated="not deprecated">
  27286. <doc>
  27287. <![CDATA[Called after start()]]>
  27288. </doc>
  27289. </method>
  27290. <method name="preStop"
  27291. abstract="false" native="false" synchronized="false"
  27292. static="false" final="false" visibility="public"
  27293. deprecated="not deprecated">
  27294. <doc>
  27295. <![CDATA[Called before stop()]]>
  27296. </doc>
  27297. </method>
  27298. <method name="postStop"
  27299. abstract="false" native="false" synchronized="false"
  27300. static="false" final="false" visibility="public"
  27301. deprecated="not deprecated">
  27302. <doc>
  27303. <![CDATA[Called after stop()]]>
  27304. </doc>
  27305. </method>
  27306. <doc>
  27307. <![CDATA[The metrics system callback interface]]>
  27308. </doc>
  27309. </interface>
  27310. <!-- end interface org.apache.hadoop.metrics2.MetricsSystem.Callback -->
  27311. <!-- start interface org.apache.hadoop.metrics2.MetricsSystemMXBean -->
  27312. <interface name="MetricsSystemMXBean" abstract="true"
  27313. static="false" final="false" visibility="public"
  27314. deprecated="not deprecated">
  27315. <method name="start"
  27316. abstract="false" native="false" synchronized="false"
  27317. static="false" final="false" visibility="public"
  27318. deprecated="not deprecated">
  27319. <doc>
  27320. <![CDATA[Start the metrics system
  27321. @exception MetricsException]]>
  27322. </doc>
  27323. </method>
  27324. <method name="stop"
  27325. abstract="false" native="false" synchronized="false"
  27326. static="false" final="false" visibility="public"
  27327. deprecated="not deprecated">
  27328. <doc>
  27329. <![CDATA[Stop the metrics system
  27330. @exception MetricsException]]>
  27331. </doc>
  27332. </method>
  27333. <method name="refreshMBeans"
  27334. abstract="false" native="false" synchronized="false"
  27335. static="false" final="false" visibility="public"
  27336. deprecated="not deprecated">
  27337. <doc>
  27338. <![CDATA[Force a refresh of MBeans
  27339. @exception MetricsException]]>
  27340. </doc>
  27341. </method>
  27342. <method name="currentConfig" return="java.lang.String"
  27343. abstract="false" native="false" synchronized="false"
  27344. static="false" final="false" visibility="public"
  27345. deprecated="not deprecated">
  27346. <doc>
  27347. <![CDATA[@return the current config
  27348. Note, avoid getConfig, as it'll turn it into an attribute,
  27349. which doesn't support multiple lines in the values.
  27350. @exception MetricsException]]>
  27351. </doc>
  27352. </method>
  27353. <doc>
  27354. <![CDATA[The JMX interface to the metrics system]]>
  27355. </doc>
  27356. </interface>
  27357. <!-- end interface org.apache.hadoop.metrics2.MetricsSystemMXBean -->
  27358. <!-- start class org.apache.hadoop.metrics2.MetricsTag -->
  27359. <class name="MetricsTag" extends="java.lang.Object"
  27360. abstract="false"
  27361. static="false" final="false" visibility="public"
  27362. deprecated="not deprecated">
  27363. <constructor name="MetricsTag" type="java.lang.String, java.lang.String, java.lang.String"
  27364. static="false" final="false" visibility="public"
  27365. deprecated="not deprecated">
  27366. <doc>
  27367. <![CDATA[Construct the tag with name, description and value
  27368. @param name of the tag
  27369. @param description of the tag
  27370. @param value of the tag]]>
  27371. </doc>
  27372. </constructor>
  27373. <method name="name" return="java.lang.String"
  27374. abstract="false" native="false" synchronized="false"
  27375. static="false" final="false" visibility="public"
  27376. deprecated="not deprecated">
  27377. <doc>
  27378. <![CDATA[Get the name of the tag
  27379. @return the name]]>
  27380. </doc>
  27381. </method>
  27382. <method name="description" return="java.lang.String"
  27383. abstract="false" native="false" synchronized="false"
  27384. static="false" final="false" visibility="public"
  27385. deprecated="not deprecated">
  27386. <doc>
  27387. <![CDATA[Get the description of the tag
  27388. @return the description]]>
  27389. </doc>
  27390. </method>
  27391. <method name="value" return="java.lang.String"
  27392. abstract="false" native="false" synchronized="false"
  27393. static="false" final="false" visibility="public"
  27394. deprecated="not deprecated">
  27395. <doc>
  27396. <![CDATA[Get the value of the tag
  27397. @return the value]]>
  27398. </doc>
  27399. </method>
  27400. <method name="equals" return="boolean"
  27401. abstract="false" native="false" synchronized="false"
  27402. static="false" final="false" visibility="public"
  27403. deprecated="not deprecated">
  27404. <param name="obj" type="java.lang.Object"/>
  27405. </method>
  27406. <method name="hashCode" return="int"
  27407. abstract="false" native="false" synchronized="false"
  27408. static="false" final="false" visibility="public"
  27409. deprecated="not deprecated">
  27410. </method>
  27411. <method name="toString" return="java.lang.String"
  27412. abstract="false" native="false" synchronized="false"
  27413. static="false" final="false" visibility="public"
  27414. deprecated="not deprecated">
  27415. </method>
  27416. <doc>
  27417. <![CDATA[Immutable tag for metrics (for grouping on host/queue/username etc.)]]>
  27418. </doc>
  27419. </class>
  27420. <!-- end class org.apache.hadoop.metrics2.MetricsTag -->
  27421. <!-- start interface org.apache.hadoop.metrics2.MetricsVisitor -->
  27422. <interface name="MetricsVisitor" abstract="true"
  27423. static="false" final="false" visibility="public"
  27424. deprecated="not deprecated">
  27425. <method name="gauge"
  27426. abstract="false" native="false" synchronized="false"
  27427. static="false" final="false" visibility="public"
  27428. deprecated="not deprecated">
  27429. <param name="metric" type="org.apache.hadoop.metrics2.MetricGauge"/>
  27430. <param name="value" type="int"/>
  27431. <doc>
  27432. <![CDATA[Callback for int value gauges
  27433. @param metric the metric object
  27434. @param value of the metric]]>
  27435. </doc>
  27436. </method>
  27437. <method name="gauge"
  27438. abstract="false" native="false" synchronized="false"
  27439. static="false" final="false" visibility="public"
  27440. deprecated="not deprecated">
  27441. <param name="metric" type="org.apache.hadoop.metrics2.MetricGauge"/>
  27442. <param name="value" type="long"/>
  27443. <doc>
  27444. <![CDATA[Callback for long value gauges
  27445. @param metric the metric object
  27446. @param value of the metric]]>
  27447. </doc>
  27448. </method>
  27449. <method name="gauge"
  27450. abstract="false" native="false" synchronized="false"
  27451. static="false" final="false" visibility="public"
  27452. deprecated="not deprecated">
  27453. <param name="metric" type="org.apache.hadoop.metrics2.MetricGauge"/>
  27454. <param name="value" type="float"/>
  27455. <doc>
  27456. <![CDATA[Callback for float value gauges
  27457. @param metric the metric object
  27458. @param value of the metric]]>
  27459. </doc>
  27460. </method>
  27461. <method name="gauge"
  27462. abstract="false" native="false" synchronized="false"
  27463. static="false" final="false" visibility="public"
  27464. deprecated="not deprecated">
  27465. <param name="metric" type="org.apache.hadoop.metrics2.MetricGauge"/>
  27466. <param name="value" type="double"/>
  27467. <doc>
  27468. <![CDATA[Callback for double value gauges
  27469. @param metric the metric object
  27470. @param value of the metric]]>
  27471. </doc>
  27472. </method>
  27473. <method name="counter"
  27474. abstract="false" native="false" synchronized="false"
  27475. static="false" final="false" visibility="public"
  27476. deprecated="not deprecated">
  27477. <param name="metric" type="org.apache.hadoop.metrics2.MetricCounter"/>
  27478. <param name="value" type="int"/>
  27479. <doc>
  27480. <![CDATA[Callback for integer value counters
  27481. @param metric the metric object
  27482. @param value of the metric]]>
  27483. </doc>
  27484. </method>
  27485. <method name="counter"
  27486. abstract="false" native="false" synchronized="false"
  27487. static="false" final="false" visibility="public"
  27488. deprecated="not deprecated">
  27489. <param name="metric" type="org.apache.hadoop.metrics2.MetricCounter"/>
  27490. <param name="value" type="long"/>
  27491. <doc>
  27492. <![CDATA[Callback for long value counters
  27493. @param metric the metric object
  27494. @param value of the metric]]>
  27495. </doc>
  27496. </method>
  27497. <doc>
  27498. <![CDATA[A visitor interface for metrics]]>
  27499. </doc>
  27500. </interface>
  27501. <!-- end interface org.apache.hadoop.metrics2.MetricsVisitor -->
  27502. </package>
  27503. <package name="org.apache.hadoop.metrics2.filter">
  27504. <!-- start class org.apache.hadoop.metrics2.filter.GlobFilter -->
  27505. <class name="GlobFilter" extends="org.apache.hadoop.metrics2.filter.AbstractPatternFilter"
  27506. abstract="false"
  27507. static="false" final="false" visibility="public"
  27508. deprecated="not deprecated">
  27509. <constructor name="GlobFilter"
  27510. static="false" final="false" visibility="public"
  27511. deprecated="not deprecated">
  27512. </constructor>
  27513. <method name="compile" return="java.util.regex.Pattern"
  27514. abstract="false" native="false" synchronized="false"
  27515. static="false" final="false" visibility="protected"
  27516. deprecated="not deprecated">
  27517. <param name="s" type="java.lang.String"/>
  27518. </method>
  27519. <doc>
  27520. <![CDATA[A glob pattern filter for metrics]]>
  27521. </doc>
  27522. </class>
  27523. <!-- end class org.apache.hadoop.metrics2.filter.GlobFilter -->
  27524. <!-- start class org.apache.hadoop.metrics2.filter.RegexFilter -->
  27525. <class name="RegexFilter" extends="org.apache.hadoop.metrics2.filter.AbstractPatternFilter"
  27526. abstract="false"
  27527. static="false" final="false" visibility="public"
  27528. deprecated="not deprecated">
  27529. <constructor name="RegexFilter"
  27530. static="false" final="false" visibility="public"
  27531. deprecated="not deprecated">
  27532. </constructor>
  27533. <method name="compile" return="java.util.regex.Pattern"
  27534. abstract="false" native="false" synchronized="false"
  27535. static="false" final="false" visibility="protected"
  27536. deprecated="not deprecated">
  27537. <param name="s" type="java.lang.String"/>
  27538. </method>
  27539. <doc>
  27540. <![CDATA[A regex pattern filter for metrics]]>
  27541. </doc>
  27542. </class>
  27543. <!-- end class org.apache.hadoop.metrics2.filter.RegexFilter -->
  27544. </package>
  27545. <package name="org.apache.hadoop.metrics2.impl">
  27546. <!-- start class org.apache.hadoop.metrics2.impl.MetricsConfigException -->
  27547. <class name="MetricsConfigException" extends="org.apache.hadoop.metrics2.MetricsException"
  27548. abstract="false"
  27549. static="false" final="false" visibility="public"
  27550. deprecated="not deprecated">
  27551. <doc>
  27552. <![CDATA[The metrics configuration runtime exception]]>
  27553. </doc>
  27554. </class>
  27555. <!-- end class org.apache.hadoop.metrics2.impl.MetricsConfigException -->
  27556. <!-- start class org.apache.hadoop.metrics2.impl.MetricsRecordImpl -->
  27557. <class name="MetricsRecordImpl" extends="java.lang.Object"
  27558. abstract="false"
  27559. static="false" final="false" visibility="public"
  27560. deprecated="not deprecated">
  27561. <implements name="org.apache.hadoop.metrics2.MetricsRecord"/>
  27562. <constructor name="MetricsRecordImpl" type="java.lang.String, long, java.lang.Iterable, java.lang.Iterable"
  27563. static="false" final="false" visibility="public"
  27564. deprecated="not deprecated">
  27565. <doc>
  27566. <![CDATA[Construct a metrics record
  27567. @param name of the record
  27568. @param timestamp of the record
  27569. @param tags of the record
  27570. @param metrics of the record]]>
  27571. </doc>
  27572. </constructor>
  27573. <method name="timestamp" return="long"
  27574. abstract="false" native="false" synchronized="false"
  27575. static="false" final="false" visibility="public"
  27576. deprecated="not deprecated">
  27577. </method>
  27578. <method name="name" return="java.lang.String"
  27579. abstract="false" native="false" synchronized="false"
  27580. static="false" final="false" visibility="public"
  27581. deprecated="not deprecated">
  27582. </method>
  27583. <method name="context" return="java.lang.String"
  27584. abstract="false" native="false" synchronized="false"
  27585. static="false" final="false" visibility="public"
  27586. deprecated="not deprecated">
  27587. </method>
  27588. <method name="tags" return="java.lang.Iterable"
  27589. abstract="false" native="false" synchronized="false"
  27590. static="false" final="false" visibility="public"
  27591. deprecated="not deprecated">
  27592. </method>
  27593. <method name="metrics" return="java.lang.Iterable"
  27594. abstract="false" native="false" synchronized="false"
  27595. static="false" final="false" visibility="public"
  27596. deprecated="not deprecated">
  27597. </method>
  27598. <method name="equals" return="boolean"
  27599. abstract="false" native="false" synchronized="false"
  27600. static="false" final="false" visibility="public"
  27601. deprecated="not deprecated">
  27602. <param name="obj" type="java.lang.Object"/>
  27603. </method>
  27604. <method name="hashCode" return="int"
  27605. abstract="false" native="false" synchronized="false"
  27606. static="false" final="false" visibility="public"
  27607. deprecated="not deprecated">
  27608. </method>
  27609. <method name="toString" return="java.lang.String"
  27610. abstract="false" native="false" synchronized="false"
  27611. static="false" final="false" visibility="public"
  27612. deprecated="not deprecated">
  27613. </method>
  27614. <field name="CONTEXT_KEY" type="java.lang.String"
  27615. transient="false" volatile="false"
  27616. static="true" final="true" visibility="protected"
  27617. deprecated="not deprecated">
  27618. </field>
  27619. <field name="DEFAULT_CONTEXT" type="java.lang.String"
  27620. transient="false" volatile="false"
  27621. static="true" final="true" visibility="protected"
  27622. deprecated="not deprecated">
  27623. </field>
  27624. </class>
  27625. <!-- end class org.apache.hadoop.metrics2.impl.MetricsRecordImpl -->
  27626. <!-- start class org.apache.hadoop.metrics2.impl.MetricsSystemImpl -->
  27627. <class name="MetricsSystemImpl" extends="java.lang.Object"
  27628. abstract="false"
  27629. static="false" final="false" visibility="public"
  27630. deprecated="not deprecated">
  27631. <implements name="org.apache.hadoop.metrics2.MetricsSystem"/>
  27632. <constructor name="MetricsSystemImpl" type="java.lang.String"
  27633. static="false" final="false" visibility="public"
  27634. deprecated="not deprecated">
  27635. <doc>
  27636. <![CDATA[Construct the metrics system
  27637. @param prefix for the system]]>
  27638. </doc>
  27639. </constructor>
  27640. <constructor name="MetricsSystemImpl"
  27641. static="false" final="false" visibility="public"
  27642. deprecated="not deprecated">
  27643. <doc>
  27644. <![CDATA[Construct the system but not initializing (read config etc.) it.]]>
  27645. </doc>
  27646. </constructor>
  27647. <method name="init"
  27648. abstract="false" native="false" synchronized="true"
  27649. static="false" final="false" visibility="public"
  27650. deprecated="not deprecated">
  27651. <param name="prefix" type="java.lang.String"/>
  27652. <doc>
  27653. <![CDATA[Initialized the metrics system with a prefix.
  27654. @param prefix the system will look for configs with the prefix]]>
  27655. </doc>
  27656. </method>
  27657. <method name="start"
  27658. abstract="false" native="false" synchronized="true"
  27659. static="false" final="false" visibility="public"
  27660. deprecated="not deprecated">
  27661. </method>
  27662. <method name="stop"
  27663. abstract="false" native="false" synchronized="true"
  27664. static="false" final="false" visibility="public"
  27665. deprecated="not deprecated">
  27666. </method>
  27667. <method name="register" return="org.apache.hadoop.metrics2.MetricsSource"
  27668. abstract="false" native="false" synchronized="true"
  27669. static="false" final="false" visibility="public"
  27670. deprecated="not deprecated">
  27671. <param name="name" type="java.lang.String"/>
  27672. <param name="desc" type="java.lang.String"/>
  27673. <param name="source" type="org.apache.hadoop.metrics2.MetricsSource"/>
  27674. </method>
  27675. <method name="register" return="org.apache.hadoop.metrics2.MetricsSink"
  27676. abstract="false" native="false" synchronized="true"
  27677. static="false" final="false" visibility="public"
  27678. deprecated="not deprecated">
  27679. <param name="name" type="java.lang.String"/>
  27680. <param name="description" type="java.lang.String"/>
  27681. <param name="sink" type="org.apache.hadoop.metrics2.MetricsSink"/>
  27682. </method>
  27683. <method name="register"
  27684. abstract="false" native="false" synchronized="true"
  27685. static="false" final="false" visibility="public"
  27686. deprecated="not deprecated">
  27687. <param name="callback" type="org.apache.hadoop.metrics2.MetricsSystem.Callback"/>
  27688. </method>
  27689. <method name="refreshMBeans"
  27690. abstract="false" native="false" synchronized="true"
  27691. static="false" final="false" visibility="public"
  27692. deprecated="not deprecated">
  27693. </method>
  27694. <method name="currentConfig" return="java.lang.String"
  27695. abstract="false" native="false" synchronized="true"
  27696. static="false" final="false" visibility="public"
  27697. deprecated="not deprecated">
  27698. </method>
  27699. <method name="publishMetricsNow"
  27700. abstract="false" native="false" synchronized="false"
  27701. static="false" final="false" visibility="public"
  27702. deprecated="not deprecated">
  27703. <doc>
  27704. <![CDATA[Requests an immediate publish of all metrics from sources to sinks.]]>
  27705. </doc>
  27706. </method>
  27707. <method name="shutdown"
  27708. abstract="false" native="false" synchronized="true"
  27709. static="false" final="false" visibility="public"
  27710. deprecated="not deprecated">
  27711. </method>
  27712. <doc>
  27713. <![CDATA[A base class for metrics system singletons]]>
  27714. </doc>
  27715. </class>
  27716. <!-- end class org.apache.hadoop.metrics2.impl.MetricsSystemImpl -->
  27717. </package>
  27718. <package name="org.apache.hadoop.metrics2.lib">
  27719. <!-- start class org.apache.hadoop.metrics2.lib.AbstractMetricsSource -->
  27720. <class name="AbstractMetricsSource" extends="java.lang.Object"
  27721. abstract="true"
  27722. static="false" final="false" visibility="public"
  27723. deprecated="not deprecated">
  27724. <implements name="org.apache.hadoop.metrics2.MetricsSource"/>
  27725. <constructor name="AbstractMetricsSource" type="java.lang.String, org.apache.hadoop.metrics2.lib.MetricMutableFactory"
  27726. static="false" final="false" visibility="public"
  27727. deprecated="not deprecated">
  27728. <doc>
  27729. <![CDATA[Construct the source with name and a mutable metrics factory
  27730. @param name of the default record
  27731. @param mf the factory to create mutable metrics]]>
  27732. </doc>
  27733. </constructor>
  27734. <constructor name="AbstractMetricsSource" type="java.lang.String"
  27735. static="false" final="false" visibility="public"
  27736. deprecated="not deprecated">
  27737. <doc>
  27738. <![CDATA[Construct the source with a name with a default factory
  27739. @param name of the default record]]>
  27740. </doc>
  27741. </constructor>
  27742. <method name="registry" return="org.apache.hadoop.metrics2.lib.MetricsRegistry"
  27743. abstract="false" native="false" synchronized="false"
  27744. static="false" final="false" visibility="public"
  27745. deprecated="not deprecated">
  27746. <doc>
  27747. <![CDATA[@return the registry for mutable metrics]]>
  27748. </doc>
  27749. </method>
  27750. <method name="getMetrics"
  27751. abstract="false" native="false" synchronized="false"
  27752. static="false" final="false" visibility="public"
  27753. deprecated="not deprecated">
  27754. <param name="builder" type="org.apache.hadoop.metrics2.MetricsBuilder"/>
  27755. <param name="all" type="boolean"/>
  27756. </method>
  27757. <field name="registry" type="org.apache.hadoop.metrics2.lib.MetricsRegistry"
  27758. transient="false" volatile="false"
  27759. static="false" final="true" visibility="protected"
  27760. deprecated="not deprecated">
  27761. </field>
  27762. <doc>
  27763. <![CDATA[A convenient base class for writing metrics sources]]>
  27764. </doc>
  27765. </class>
  27766. <!-- end class org.apache.hadoop.metrics2.lib.AbstractMetricsSource -->
  27767. <!-- start class org.apache.hadoop.metrics2.lib.DefaultMetricsSystem -->
  27768. <class name="DefaultMetricsSystem" extends="java.lang.Enum"
  27769. abstract="false"
  27770. static="false" final="true" visibility="public"
  27771. deprecated="not deprecated">
  27772. <implements name="org.apache.hadoop.metrics2.MetricsSystem"/>
  27773. <method name="values" return="org.apache.hadoop.metrics2.lib.DefaultMetricsSystem[]"
  27774. abstract="false" native="false" synchronized="false"
  27775. static="true" final="false" visibility="public"
  27776. deprecated="not deprecated">
  27777. </method>
  27778. <method name="valueOf" return="org.apache.hadoop.metrics2.lib.DefaultMetricsSystem"
  27779. abstract="false" native="false" synchronized="false"
  27780. static="true" final="false" visibility="public"
  27781. deprecated="not deprecated">
  27782. <param name="name" type="java.lang.String"/>
  27783. </method>
  27784. <method name="initialize" return="org.apache.hadoop.metrics2.MetricsSystem"
  27785. abstract="false" native="false" synchronized="false"
  27786. static="true" final="false" visibility="public"
  27787. deprecated="not deprecated">
  27788. <param name="prefix" type="java.lang.String"/>
  27789. <doc>
  27790. <![CDATA[Common static convenience method to initialize the metrics system
  27791. @param prefix for configuration
  27792. @return the metrics system instance]]>
  27793. </doc>
  27794. </method>
  27795. <method name="register" return="org.apache.hadoop.metrics2.MetricsSource"
  27796. abstract="false" native="false" synchronized="false"
  27797. static="false" final="false" visibility="public"
  27798. deprecated="not deprecated">
  27799. <param name="name" type="java.lang.String"/>
  27800. <param name="desc" type="java.lang.String"/>
  27801. <param name="source" type="org.apache.hadoop.metrics2.MetricsSource"/>
  27802. </method>
  27803. <method name="registerSource" return="org.apache.hadoop.metrics2.MetricsSource"
  27804. abstract="false" native="false" synchronized="false"
  27805. static="true" final="false" visibility="public"
  27806. deprecated="not deprecated">
  27807. <param name="name" type="java.lang.String"/>
  27808. <param name="desc" type="java.lang.String"/>
  27809. <param name="source" type="org.apache.hadoop.metrics2.MetricsSource"/>
  27810. <doc>
  27811. <![CDATA[Common static method to register a source
  27812. @param <T> type of the source
  27813. @param name of the source
  27814. @param desc description
  27815. @param source the source object to register
  27816. @return the source object]]>
  27817. </doc>
  27818. </method>
  27819. <method name="register" return="org.apache.hadoop.metrics2.MetricsSink"
  27820. abstract="false" native="false" synchronized="false"
  27821. static="false" final="false" visibility="public"
  27822. deprecated="not deprecated">
  27823. <param name="name" type="java.lang.String"/>
  27824. <param name="desc" type="java.lang.String"/>
  27825. <param name="sink" type="org.apache.hadoop.metrics2.MetricsSink"/>
  27826. </method>
  27827. <method name="register"
  27828. abstract="false" native="false" synchronized="false"
  27829. static="false" final="false" visibility="public"
  27830. deprecated="not deprecated">
  27831. <param name="callback" type="org.apache.hadoop.metrics2.MetricsSystem.Callback"/>
  27832. </method>
  27833. <method name="publishMetricsNow"
  27834. abstract="false" native="false" synchronized="false"
  27835. static="false" final="false" visibility="public"
  27836. deprecated="not deprecated">
  27837. </method>
  27838. <method name="start"
  27839. abstract="false" native="false" synchronized="false"
  27840. static="false" final="false" visibility="public"
  27841. deprecated="not deprecated">
  27842. </method>
  27843. <method name="stop"
  27844. abstract="false" native="false" synchronized="false"
  27845. static="false" final="false" visibility="public"
  27846. deprecated="not deprecated">
  27847. </method>
  27848. <method name="refreshMBeans"
  27849. abstract="false" native="false" synchronized="false"
  27850. static="false" final="false" visibility="public"
  27851. deprecated="not deprecated">
  27852. </method>
  27853. <method name="currentConfig" return="java.lang.String"
  27854. abstract="false" native="false" synchronized="false"
  27855. static="false" final="false" visibility="public"
  27856. deprecated="not deprecated">
  27857. </method>
  27858. <method name="shutdown"
  27859. abstract="false" native="false" synchronized="false"
  27860. static="false" final="false" visibility="public"
  27861. deprecated="not deprecated">
  27862. </method>
  27863. <field name="INSTANCE" type="org.apache.hadoop.metrics2.lib.DefaultMetricsSystem"
  27864. transient="false" volatile="false"
  27865. static="true" final="true" visibility="public"
  27866. deprecated="not deprecated">
  27867. <doc>
  27868. <![CDATA[The singleton instance]]>
  27869. </doc>
  27870. </field>
  27871. <doc>
  27872. <![CDATA[The default metrics system singleton]]>
  27873. </doc>
  27874. </class>
  27875. <!-- end class org.apache.hadoop.metrics2.lib.DefaultMetricsSystem -->
  27876. <!-- start class org.apache.hadoop.metrics2.lib.MetricMutable -->
  27877. <class name="MetricMutable" extends="java.lang.Object"
  27878. abstract="true"
  27879. static="false" final="false" visibility="public"
  27880. deprecated="not deprecated">
  27881. <constructor name="MetricMutable" type="java.lang.String, java.lang.String"
  27882. static="false" final="false" visibility="public"
  27883. deprecated="not deprecated">
  27884. <doc>
  27885. <![CDATA[Construct a mutable metric
  27886. @param name of the metric
  27887. @param description of the metric]]>
  27888. </doc>
  27889. </constructor>
  27890. <method name="snapshot"
  27891. abstract="true" native="false" synchronized="false"
  27892. static="false" final="false" visibility="public"
  27893. deprecated="not deprecated">
  27894. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  27895. <param name="all" type="boolean"/>
  27896. <doc>
  27897. <![CDATA[Get a snapshot/snapshot of the metric
  27898. @param builder the metrics record builder
  27899. @param all if true, snapshot unchanged metrics as well]]>
  27900. </doc>
  27901. </method>
  27902. <method name="snapshot"
  27903. abstract="false" native="false" synchronized="false"
  27904. static="false" final="false" visibility="public"
  27905. deprecated="not deprecated">
  27906. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  27907. <doc>
  27908. <![CDATA[Get a sampe/snapshot of metric if changed
  27909. @param builder the metrics record builder]]>
  27910. </doc>
  27911. </method>
  27912. <method name="setChanged"
  27913. abstract="false" native="false" synchronized="false"
  27914. static="false" final="false" visibility="protected"
  27915. deprecated="not deprecated">
  27916. <doc>
  27917. <![CDATA[Set the changed flag in mutable operations]]>
  27918. </doc>
  27919. </method>
  27920. <method name="clearChanged"
  27921. abstract="false" native="false" synchronized="false"
  27922. static="false" final="false" visibility="protected"
  27923. deprecated="not deprecated">
  27924. <doc>
  27925. <![CDATA[Clear the changed flag in the snapshot operations]]>
  27926. </doc>
  27927. </method>
  27928. <method name="changed" return="boolean"
  27929. abstract="false" native="false" synchronized="false"
  27930. static="false" final="false" visibility="public"
  27931. deprecated="not deprecated">
  27932. <doc>
  27933. <![CDATA[@return true if metric is changed since last snapshot/snapshot]]>
  27934. </doc>
  27935. </method>
  27936. <field name="name" type="java.lang.String"
  27937. transient="false" volatile="false"
  27938. static="false" final="true" visibility="public"
  27939. deprecated="not deprecated">
  27940. <doc>
  27941. <![CDATA[name of the metric]]>
  27942. </doc>
  27943. </field>
  27944. <field name="description" type="java.lang.String"
  27945. transient="false" volatile="false"
  27946. static="false" final="true" visibility="public"
  27947. deprecated="not deprecated">
  27948. <doc>
  27949. <![CDATA[description of the metric]]>
  27950. </doc>
  27951. </field>
  27952. <doc>
  27953. <![CDATA[The mutable metric interface]]>
  27954. </doc>
  27955. </class>
  27956. <!-- end class org.apache.hadoop.metrics2.lib.MetricMutable -->
  27957. <!-- start class org.apache.hadoop.metrics2.lib.MetricMutableCounter -->
  27958. <class name="MetricMutableCounter" extends="org.apache.hadoop.metrics2.lib.MetricMutable"
  27959. abstract="true"
  27960. static="false" final="false" visibility="public"
  27961. deprecated="not deprecated">
  27962. <constructor name="MetricMutableCounter" type="java.lang.String, java.lang.String"
  27963. static="false" final="false" visibility="public"
  27964. deprecated="not deprecated">
  27965. <doc>
  27966. <![CDATA[Construct the metric with name and description
  27967. @param name
  27968. @param description]]>
  27969. </doc>
  27970. </constructor>
  27971. <method name="incr"
  27972. abstract="true" native="false" synchronized="false"
  27973. static="false" final="false" visibility="public"
  27974. deprecated="not deprecated">
  27975. <doc>
  27976. <![CDATA[Increment the metric value by 1.]]>
  27977. </doc>
  27978. </method>
  27979. <doc>
  27980. <![CDATA[The mutable counter (monotonically increasing) metric interface
  27981. @param <T> the type of the metric]]>
  27982. </doc>
  27983. </class>
  27984. <!-- end class org.apache.hadoop.metrics2.lib.MetricMutableCounter -->
  27985. <!-- start class org.apache.hadoop.metrics2.lib.MetricMutableCounterInt -->
  27986. <class name="MetricMutableCounterInt" extends="org.apache.hadoop.metrics2.lib.MetricMutableCounter"
  27987. abstract="false"
  27988. static="false" final="false" visibility="public"
  27989. deprecated="not deprecated">
  27990. <constructor name="MetricMutableCounterInt" type="java.lang.String, java.lang.String, int"
  27991. static="false" final="false" visibility="public"
  27992. deprecated="not deprecated">
  27993. <doc>
  27994. <![CDATA[Construct a mutable int counter
  27995. @param name of the counter
  27996. @param description of the counter
  27997. @param initValue the initial value of the counter]]>
  27998. </doc>
  27999. </constructor>
  28000. <method name="incr"
  28001. abstract="false" native="false" synchronized="true"
  28002. static="false" final="false" visibility="public"
  28003. deprecated="not deprecated">
  28004. </method>
  28005. <method name="incr"
  28006. abstract="false" native="false" synchronized="true"
  28007. static="false" final="false" visibility="public"
  28008. deprecated="not deprecated">
  28009. <param name="delta" type="int"/>
  28010. <doc>
  28011. <![CDATA[Increment the value by a delta
  28012. @param delta of the increment]]>
  28013. </doc>
  28014. </method>
  28015. <method name="snapshot"
  28016. abstract="false" native="false" synchronized="false"
  28017. static="false" final="false" visibility="public"
  28018. deprecated="not deprecated">
  28019. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  28020. <param name="all" type="boolean"/>
  28021. </method>
  28022. <doc>
  28023. <![CDATA[A mutable int counter for implementing metrics sources]]>
  28024. </doc>
  28025. </class>
  28026. <!-- end class org.apache.hadoop.metrics2.lib.MetricMutableCounterInt -->
  28027. <!-- start class org.apache.hadoop.metrics2.lib.MetricMutableCounterLong -->
  28028. <class name="MetricMutableCounterLong" extends="org.apache.hadoop.metrics2.lib.MetricMutableCounter"
  28029. abstract="false"
  28030. static="false" final="false" visibility="public"
  28031. deprecated="not deprecated">
  28032. <constructor name="MetricMutableCounterLong" type="java.lang.String, java.lang.String, long"
  28033. static="false" final="false" visibility="public"
  28034. deprecated="not deprecated">
  28035. <doc>
  28036. <![CDATA[Construct a mutable long counter
  28037. @param name of the counter
  28038. @param description of the counter
  28039. @param initValue the initial value of the counter]]>
  28040. </doc>
  28041. </constructor>
  28042. <method name="incr"
  28043. abstract="false" native="false" synchronized="true"
  28044. static="false" final="false" visibility="public"
  28045. deprecated="not deprecated">
  28046. </method>
  28047. <method name="incr"
  28048. abstract="false" native="false" synchronized="true"
  28049. static="false" final="false" visibility="public"
  28050. deprecated="not deprecated">
  28051. <param name="delta" type="long"/>
  28052. <doc>
  28053. <![CDATA[Increment the value by a delta
  28054. @param delta of the increment]]>
  28055. </doc>
  28056. </method>
  28057. <method name="snapshot"
  28058. abstract="false" native="false" synchronized="false"
  28059. static="false" final="false" visibility="public"
  28060. deprecated="not deprecated">
  28061. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  28062. <param name="all" type="boolean"/>
  28063. </method>
  28064. <doc>
  28065. <![CDATA[A mutable long counter]]>
  28066. </doc>
  28067. </class>
  28068. <!-- end class org.apache.hadoop.metrics2.lib.MetricMutableCounterLong -->
  28069. <!-- start class org.apache.hadoop.metrics2.lib.MetricMutableFactory -->
  28070. <class name="MetricMutableFactory" extends="java.lang.Object"
  28071. abstract="false"
  28072. static="false" final="false" visibility="public"
  28073. deprecated="not deprecated">
  28074. <constructor name="MetricMutableFactory"
  28075. static="false" final="false" visibility="public"
  28076. deprecated="not deprecated">
  28077. </constructor>
  28078. <method name="newMetric" return="org.apache.hadoop.metrics2.lib.MetricMutable"
  28079. abstract="false" native="false" synchronized="false"
  28080. static="false" final="false" visibility="public"
  28081. deprecated="not deprecated">
  28082. <param name="name" type="java.lang.String"/>
  28083. <doc>
  28084. <![CDATA[Create a new mutable metric by name
  28085. Usually overridden by app specific factory
  28086. @param name of the metric
  28087. @return a new metric object]]>
  28088. </doc>
  28089. </method>
  28090. <method name="newCounter" return="org.apache.hadoop.metrics2.lib.MetricMutableCounterInt"
  28091. abstract="false" native="false" synchronized="false"
  28092. static="false" final="false" visibility="public"
  28093. deprecated="not deprecated">
  28094. <param name="name" type="java.lang.String"/>
  28095. <param name="description" type="java.lang.String"/>
  28096. <param name="initValue" type="int"/>
  28097. <doc>
  28098. <![CDATA[Create a mutable integer counter
  28099. @param name of the metric
  28100. @param description of the metric
  28101. @param initValue of the metric
  28102. @return a new metric object]]>
  28103. </doc>
  28104. </method>
  28105. <method name="newCounterInt" return="org.apache.hadoop.metrics2.lib.MetricMutableCounterInt"
  28106. abstract="false" native="false" synchronized="false"
  28107. static="false" final="false" visibility="public"
  28108. deprecated="not deprecated">
  28109. <param name="name" type="java.lang.String"/>
  28110. <doc>
  28111. <![CDATA[Create a mutable integer counter with name only.
  28112. Usually gets overridden.
  28113. @param name of the metric
  28114. @return a new metric object]]>
  28115. </doc>
  28116. </method>
  28117. <method name="newCounter" return="org.apache.hadoop.metrics2.lib.MetricMutableCounterLong"
  28118. abstract="false" native="false" synchronized="false"
  28119. static="false" final="false" visibility="public"
  28120. deprecated="not deprecated">
  28121. <param name="name" type="java.lang.String"/>
  28122. <param name="description" type="java.lang.String"/>
  28123. <param name="initValue" type="long"/>
  28124. <doc>
  28125. <![CDATA[Create a mutable long integer counter
  28126. @param name of the metric
  28127. @param description of the metric
  28128. @param initValue of the metric
  28129. @return a new metric object]]>
  28130. </doc>
  28131. </method>
  28132. <method name="newCounterLong" return="org.apache.hadoop.metrics2.lib.MetricMutableCounterLong"
  28133. abstract="false" native="false" synchronized="false"
  28134. static="false" final="false" visibility="public"
  28135. deprecated="not deprecated">
  28136. <param name="name" type="java.lang.String"/>
  28137. <doc>
  28138. <![CDATA[Create a mutable long integer counter with a name
  28139. Usually gets overridden.
  28140. @param name of the metric
  28141. @return a new metric object]]>
  28142. </doc>
  28143. </method>
  28144. <method name="newGauge" return="org.apache.hadoop.metrics2.lib.MetricMutableGaugeInt"
  28145. abstract="false" native="false" synchronized="false"
  28146. static="false" final="false" visibility="public"
  28147. deprecated="not deprecated">
  28148. <param name="name" type="java.lang.String"/>
  28149. <param name="description" type="java.lang.String"/>
  28150. <param name="initValue" type="int"/>
  28151. <doc>
  28152. <![CDATA[Create a mutable integer gauge
  28153. @param name of the metric
  28154. @param description of the metric
  28155. @param initValue of the metric
  28156. @return a new metric object]]>
  28157. </doc>
  28158. </method>
  28159. <method name="newGaugeInt" return="org.apache.hadoop.metrics2.lib.MetricMutableGaugeInt"
  28160. abstract="false" native="false" synchronized="false"
  28161. static="false" final="false" visibility="public"
  28162. deprecated="not deprecated">
  28163. <param name="name" type="java.lang.String"/>
  28164. <doc>
  28165. <![CDATA[Create a mutable integer gauge with name only.
  28166. Usually gets overridden.
  28167. @param name of the metric
  28168. @return a new metric object]]>
  28169. </doc>
  28170. </method>
  28171. <method name="newGauge" return="org.apache.hadoop.metrics2.lib.MetricMutableGaugeLong"
  28172. abstract="false" native="false" synchronized="false"
  28173. static="false" final="false" visibility="public"
  28174. deprecated="not deprecated">
  28175. <param name="name" type="java.lang.String"/>
  28176. <param name="description" type="java.lang.String"/>
  28177. <param name="initValue" type="long"/>
  28178. <doc>
  28179. <![CDATA[Create a mutable long integer gauge
  28180. @param name of the metric
  28181. @param description of the metric
  28182. @param initValue of the metric
  28183. @return a new metric object]]>
  28184. </doc>
  28185. </method>
  28186. <method name="newGaugeLong" return="org.apache.hadoop.metrics2.lib.MetricMutableGaugeLong"
  28187. abstract="false" native="false" synchronized="false"
  28188. static="false" final="false" visibility="public"
  28189. deprecated="not deprecated">
  28190. <param name="name" type="java.lang.String"/>
  28191. <doc>
  28192. <![CDATA[Create a mutable long integer gauge with name only.
  28193. Usually gets overridden.
  28194. @param name of the metric
  28195. @return a new metric object]]>
  28196. </doc>
  28197. </method>
  28198. <method name="newStat" return="org.apache.hadoop.metrics2.lib.MetricMutableStat"
  28199. abstract="false" native="false" synchronized="false"
  28200. static="false" final="false" visibility="public"
  28201. deprecated="not deprecated">
  28202. <param name="name" type="java.lang.String"/>
  28203. <param name="description" type="java.lang.String"/>
  28204. <param name="sampleName" type="java.lang.String"/>
  28205. <param name="valueName" type="java.lang.String"/>
  28206. <param name="extended" type="boolean"/>
  28207. <doc>
  28208. <![CDATA[Create a mutable stat metric
  28209. @param name of the metric
  28210. @param description of the metric
  28211. @param sampleName of the metric (e.g., ops)
  28212. @param valueName of the metric (e.g., time or latency)
  28213. @param extended if true, produces extended stat (stdev, min/max etc.)
  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. <doc>
  28223. <![CDATA[Create a mutable stat metric with name only.
  28224. Usually gets overridden.
  28225. @param name of the metric
  28226. @return a new metric object]]>
  28227. </doc>
  28228. </method>
  28229. <doc>
  28230. <![CDATA[Factory class for mutable metrics]]>
  28231. </doc>
  28232. </class>
  28233. <!-- end class org.apache.hadoop.metrics2.lib.MetricMutableFactory -->
  28234. <!-- start class org.apache.hadoop.metrics2.lib.MetricMutableGauge -->
  28235. <class name="MetricMutableGauge" extends="org.apache.hadoop.metrics2.lib.MetricMutable"
  28236. abstract="true"
  28237. static="false" final="false" visibility="public"
  28238. deprecated="not deprecated">
  28239. <constructor name="MetricMutableGauge" type="java.lang.String, java.lang.String"
  28240. static="false" final="false" visibility="public"
  28241. deprecated="not deprecated">
  28242. <doc>
  28243. <![CDATA[Construct the metric with name and description
  28244. @param name of the metric
  28245. @param description of the metric]]>
  28246. </doc>
  28247. </constructor>
  28248. <method name="incr"
  28249. abstract="true" native="false" synchronized="false"
  28250. static="false" final="false" visibility="public"
  28251. deprecated="not deprecated">
  28252. <doc>
  28253. <![CDATA[Increment the value of the metric by 1]]>
  28254. </doc>
  28255. </method>
  28256. <method name="decr"
  28257. abstract="true" native="false" synchronized="false"
  28258. static="false" final="false" visibility="public"
  28259. deprecated="not deprecated">
  28260. <doc>
  28261. <![CDATA[Decrement the value of the metric by 1]]>
  28262. </doc>
  28263. </method>
  28264. <doc>
  28265. <![CDATA[The mutable gauge metric interface
  28266. @param <T> the type of the metric]]>
  28267. </doc>
  28268. </class>
  28269. <!-- end class org.apache.hadoop.metrics2.lib.MetricMutableGauge -->
  28270. <!-- start class org.apache.hadoop.metrics2.lib.MetricMutableGaugeInt -->
  28271. <class name="MetricMutableGaugeInt" extends="org.apache.hadoop.metrics2.lib.MetricMutableGauge"
  28272. abstract="false"
  28273. static="false" final="false" visibility="public"
  28274. deprecated="not deprecated">
  28275. <constructor name="MetricMutableGaugeInt" type="java.lang.String, java.lang.String, int"
  28276. static="false" final="false" visibility="public"
  28277. deprecated="not deprecated">
  28278. <doc>
  28279. <![CDATA[Construct a mutable int gauge metric
  28280. @param name of the gauge
  28281. @param description of the gauge
  28282. @param initValue the initial value of the gauge]]>
  28283. </doc>
  28284. </constructor>
  28285. <method name="incr"
  28286. abstract="false" native="false" synchronized="true"
  28287. static="false" final="false" visibility="public"
  28288. deprecated="not deprecated">
  28289. </method>
  28290. <method name="incr"
  28291. abstract="false" native="false" synchronized="true"
  28292. static="false" final="false" visibility="public"
  28293. deprecated="not deprecated">
  28294. <param name="delta" type="int"/>
  28295. <doc>
  28296. <![CDATA[Increment by delta
  28297. @param delta of the increment]]>
  28298. </doc>
  28299. </method>
  28300. <method name="decr"
  28301. abstract="false" native="false" synchronized="true"
  28302. static="false" final="false" visibility="public"
  28303. deprecated="not deprecated">
  28304. </method>
  28305. <method name="decr"
  28306. abstract="false" native="false" synchronized="true"
  28307. static="false" final="false" visibility="public"
  28308. deprecated="not deprecated">
  28309. <param name="delta" type="int"/>
  28310. <doc>
  28311. <![CDATA[decrement by delta
  28312. @param delta of the decrement]]>
  28313. </doc>
  28314. </method>
  28315. <method name="set"
  28316. abstract="false" native="false" synchronized="false"
  28317. static="false" final="false" visibility="public"
  28318. deprecated="not deprecated">
  28319. <param name="value" type="int"/>
  28320. <doc>
  28321. <![CDATA[Set the value of the metric
  28322. @param value to set]]>
  28323. </doc>
  28324. </method>
  28325. <method name="snapshot"
  28326. abstract="false" native="false" synchronized="false"
  28327. static="false" final="false" visibility="public"
  28328. deprecated="not deprecated">
  28329. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  28330. <param name="all" type="boolean"/>
  28331. </method>
  28332. <doc>
  28333. <![CDATA[A mutable int gauge]]>
  28334. </doc>
  28335. </class>
  28336. <!-- end class org.apache.hadoop.metrics2.lib.MetricMutableGaugeInt -->
  28337. <!-- start class org.apache.hadoop.metrics2.lib.MetricMutableGaugeLong -->
  28338. <class name="MetricMutableGaugeLong" extends="org.apache.hadoop.metrics2.lib.MetricMutableGauge"
  28339. abstract="false"
  28340. static="false" final="false" visibility="public"
  28341. deprecated="not deprecated">
  28342. <constructor name="MetricMutableGaugeLong" type="java.lang.String, java.lang.String, long"
  28343. static="false" final="false" visibility="public"
  28344. deprecated="not deprecated">
  28345. <doc>
  28346. <![CDATA[Construct a mutable long gauge metric
  28347. @param name of the gauge
  28348. @param description of the gauge
  28349. @param initValue the initial value of the gauge]]>
  28350. </doc>
  28351. </constructor>
  28352. <method name="incr"
  28353. abstract="false" native="false" synchronized="true"
  28354. static="false" final="false" visibility="public"
  28355. deprecated="not deprecated">
  28356. </method>
  28357. <method name="incr"
  28358. abstract="false" native="false" synchronized="true"
  28359. static="false" final="false" visibility="public"
  28360. deprecated="not deprecated">
  28361. <param name="delta" type="long"/>
  28362. <doc>
  28363. <![CDATA[Increment by delta
  28364. @param delta of the increment]]>
  28365. </doc>
  28366. </method>
  28367. <method name="decr"
  28368. abstract="false" native="false" synchronized="true"
  28369. static="false" final="false" visibility="public"
  28370. deprecated="not deprecated">
  28371. </method>
  28372. <method name="decr"
  28373. abstract="false" native="false" synchronized="true"
  28374. static="false" final="false" visibility="public"
  28375. deprecated="not deprecated">
  28376. <param name="delta" type="long"/>
  28377. <doc>
  28378. <![CDATA[decrement by delta
  28379. @param delta of the decrement]]>
  28380. </doc>
  28381. </method>
  28382. <method name="set"
  28383. abstract="false" native="false" synchronized="false"
  28384. static="false" final="false" visibility="public"
  28385. deprecated="not deprecated">
  28386. <param name="value" type="long"/>
  28387. <doc>
  28388. <![CDATA[Set the value of the metric
  28389. @param value to set]]>
  28390. </doc>
  28391. </method>
  28392. <method name="snapshot"
  28393. abstract="false" native="false" synchronized="false"
  28394. static="false" final="false" visibility="public"
  28395. deprecated="not deprecated">
  28396. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  28397. <param name="all" type="boolean"/>
  28398. </method>
  28399. <doc>
  28400. <![CDATA[A mutable long gauge]]>
  28401. </doc>
  28402. </class>
  28403. <!-- end class org.apache.hadoop.metrics2.lib.MetricMutableGaugeLong -->
  28404. <!-- start class org.apache.hadoop.metrics2.lib.MetricMutableStat -->
  28405. <class name="MetricMutableStat" extends="org.apache.hadoop.metrics2.lib.MetricMutable"
  28406. abstract="false"
  28407. static="false" final="false" visibility="public"
  28408. deprecated="not deprecated">
  28409. <constructor name="MetricMutableStat" type="java.lang.String, java.lang.String, java.lang.String, java.lang.String, boolean"
  28410. static="false" final="false" visibility="public"
  28411. deprecated="not deprecated">
  28412. <doc>
  28413. <![CDATA[Construct a sample statistics metric
  28414. @param name of the metric
  28415. @param description of the metric
  28416. @param sampleName of the metric (e.g. "ops")
  28417. @param valueName of the metric (e.g. "time", "latency")
  28418. @param extended create extended stats (stdev, min/max etc.) by default.]]>
  28419. </doc>
  28420. </constructor>
  28421. <constructor name="MetricMutableStat" type="java.lang.String, java.lang.String, java.lang.String, java.lang.String"
  28422. static="false" final="false" visibility="public"
  28423. deprecated="not deprecated">
  28424. <doc>
  28425. <![CDATA[Construct a snapshot stat metric with extended stat off by default
  28426. @param name of the metric
  28427. @param description of the metric
  28428. @param sampleName of the metric (e.g. "ops")
  28429. @param valueName of the metric (e.g. "time", "latency")]]>
  28430. </doc>
  28431. </constructor>
  28432. <method name="add"
  28433. abstract="false" native="false" synchronized="true"
  28434. static="false" final="false" visibility="public"
  28435. deprecated="not deprecated">
  28436. <param name="numSamples" type="long"/>
  28437. <param name="sum" type="long"/>
  28438. <doc>
  28439. <![CDATA[Add a number of samples and their sum to the running stat
  28440. @param numSamples number of samples
  28441. @param sum of the samples]]>
  28442. </doc>
  28443. </method>
  28444. <method name="add"
  28445. abstract="false" native="false" synchronized="true"
  28446. static="false" final="false" visibility="public"
  28447. deprecated="not deprecated">
  28448. <param name="value" type="long"/>
  28449. <doc>
  28450. <![CDATA[Add a snapshot to the metric
  28451. @param value of the metric]]>
  28452. </doc>
  28453. </method>
  28454. <method name="snapshot"
  28455. abstract="false" native="false" synchronized="true"
  28456. static="false" final="false" visibility="public"
  28457. deprecated="not deprecated">
  28458. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  28459. <param name="all" type="boolean"/>
  28460. </method>
  28461. <method name="resetMinMax"
  28462. abstract="false" native="false" synchronized="false"
  28463. static="false" final="false" visibility="public"
  28464. deprecated="not deprecated">
  28465. <doc>
  28466. <![CDATA[Reset the all time min max of the metric]]>
  28467. </doc>
  28468. </method>
  28469. <doc>
  28470. <![CDATA[A mutable metric with stats
  28471. Useful for keep throughput/latency stats.
  28472. e.g., new MetricMutableStat("rpcName", "rpcName stats", "ops", "time");]]>
  28473. </doc>
  28474. </class>
  28475. <!-- end class org.apache.hadoop.metrics2.lib.MetricMutableStat -->
  28476. <!-- start class org.apache.hadoop.metrics2.lib.MetricsRegistry -->
  28477. <class name="MetricsRegistry" extends="java.lang.Object"
  28478. abstract="false"
  28479. static="false" final="false" visibility="public"
  28480. deprecated="not deprecated">
  28481. <constructor name="MetricsRegistry" type="java.lang.String"
  28482. static="false" final="false" visibility="public"
  28483. deprecated="not deprecated">
  28484. <doc>
  28485. <![CDATA[Construct the registry with a record name
  28486. @param name of the record of the metrics]]>
  28487. </doc>
  28488. </constructor>
  28489. <constructor name="MetricsRegistry" type="java.lang.String, org.apache.hadoop.metrics2.lib.MetricMutableFactory"
  28490. static="false" final="false" visibility="public"
  28491. deprecated="not deprecated">
  28492. <doc>
  28493. <![CDATA[Construct the registry with a name and a metric factory
  28494. @param name of the record of the metrics
  28495. @param factory for creating new mutable metrics]]>
  28496. </doc>
  28497. </constructor>
  28498. <method name="name" return="java.lang.String"
  28499. abstract="false" native="false" synchronized="false"
  28500. static="false" final="false" visibility="public"
  28501. deprecated="not deprecated">
  28502. <doc>
  28503. <![CDATA[@return the name of the metrics registry]]>
  28504. </doc>
  28505. </method>
  28506. <method name="get" return="org.apache.hadoop.metrics2.lib.MetricMutable"
  28507. abstract="false" native="false" synchronized="false"
  28508. static="false" final="false" visibility="public"
  28509. deprecated="not deprecated">
  28510. <param name="name" type="java.lang.String"/>
  28511. <doc>
  28512. <![CDATA[Get a metric by name
  28513. @param name of the metric
  28514. @return the metric object]]>
  28515. </doc>
  28516. </method>
  28517. <method name="newCounter" return="org.apache.hadoop.metrics2.lib.MetricMutableCounterInt"
  28518. abstract="false" native="false" synchronized="false"
  28519. static="false" final="false" visibility="public"
  28520. deprecated="not deprecated">
  28521. <param name="name" type="java.lang.String"/>
  28522. <param name="description" type="java.lang.String"/>
  28523. <param name="initValue" type="int"/>
  28524. <doc>
  28525. <![CDATA[Create a mutable integer counter
  28526. @param name of the metric
  28527. @param description of the metric
  28528. @param initValue of the metric
  28529. @return a new counter object]]>
  28530. </doc>
  28531. </method>
  28532. <method name="newCounter" return="org.apache.hadoop.metrics2.lib.MetricMutableCounterLong"
  28533. abstract="false" native="false" synchronized="false"
  28534. static="false" final="false" visibility="public"
  28535. deprecated="not deprecated">
  28536. <param name="name" type="java.lang.String"/>
  28537. <param name="description" type="java.lang.String"/>
  28538. <param name="initValue" type="long"/>
  28539. <doc>
  28540. <![CDATA[Create a mutable long integer counter
  28541. @param name of the metric
  28542. @param description of the metric
  28543. @param initValue of the metric
  28544. @return a new counter object]]>
  28545. </doc>
  28546. </method>
  28547. <method name="newGauge" return="org.apache.hadoop.metrics2.lib.MetricMutableGaugeInt"
  28548. abstract="false" native="false" synchronized="false"
  28549. static="false" final="false" visibility="public"
  28550. deprecated="not deprecated">
  28551. <param name="name" type="java.lang.String"/>
  28552. <param name="description" type="java.lang.String"/>
  28553. <param name="initValue" type="int"/>
  28554. <doc>
  28555. <![CDATA[Create a mutable integer gauge
  28556. @param name of the metric
  28557. @param description of the metric
  28558. @param initValue of the metric
  28559. @return a new gauge object]]>
  28560. </doc>
  28561. </method>
  28562. <method name="newGauge" return="org.apache.hadoop.metrics2.lib.MetricMutableGaugeLong"
  28563. abstract="false" native="false" synchronized="false"
  28564. static="false" final="false" visibility="public"
  28565. deprecated="not deprecated">
  28566. <param name="name" type="java.lang.String"/>
  28567. <param name="description" type="java.lang.String"/>
  28568. <param name="initValue" type="long"/>
  28569. <doc>
  28570. <![CDATA[Create a mutable long integer gauge
  28571. @param name of the metric
  28572. @param description of the metric
  28573. @param initValue of the metric
  28574. @return a new gauge object]]>
  28575. </doc>
  28576. </method>
  28577. <method name="newStat" return="org.apache.hadoop.metrics2.lib.MetricMutableStat"
  28578. abstract="false" native="false" synchronized="false"
  28579. static="false" final="false" visibility="public"
  28580. deprecated="not deprecated">
  28581. <param name="name" type="java.lang.String"/>
  28582. <param name="description" type="java.lang.String"/>
  28583. <param name="sampleName" type="java.lang.String"/>
  28584. <param name="valueName" type="java.lang.String"/>
  28585. <param name="extended" type="boolean"/>
  28586. <doc>
  28587. <![CDATA[Create a mutable metric with stats
  28588. @param name of the metric
  28589. @param description of the metric
  28590. @param sampleName of the metric (e.g., "ops")
  28591. @param valueName of the metric (e.g., "time" or "latency")
  28592. @param extended produce extended stat (stdev, min/max etc.) if true.
  28593. @return a new metric 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. <doc>
  28605. <![CDATA[Create a mutable metric with stats
  28606. @param name of the metric
  28607. @param description of the metric
  28608. @param sampleName of the metric (e.g., "ops")
  28609. @param valueName of the metric (e.g., "time" or "latency")
  28610. @return a new metric object]]>
  28611. </doc>
  28612. </method>
  28613. <method name="newStat" return="org.apache.hadoop.metrics2.lib.MetricMutableStat"
  28614. abstract="false" native="false" synchronized="false"
  28615. static="false" final="false" visibility="public"
  28616. deprecated="not deprecated">
  28617. <param name="name" type="java.lang.String"/>
  28618. <doc>
  28619. <![CDATA[Create a mutable metric with stats using the name only
  28620. @param name of the metric
  28621. @return a new metric object]]>
  28622. </doc>
  28623. </method>
  28624. <method name="incr"
  28625. abstract="false" native="false" synchronized="false"
  28626. static="false" final="false" visibility="public"
  28627. deprecated="not deprecated">
  28628. <param name="name" type="java.lang.String"/>
  28629. <doc>
  28630. <![CDATA[Increment a metric by name.
  28631. @param name of the metric]]>
  28632. </doc>
  28633. </method>
  28634. <method name="incr"
  28635. abstract="false" native="false" synchronized="false"
  28636. static="false" final="false" visibility="public"
  28637. deprecated="not deprecated">
  28638. <param name="name" type="java.lang.String"/>
  28639. <param name="factory" type="org.apache.hadoop.metrics2.lib.MetricMutableFactory"/>
  28640. <doc>
  28641. <![CDATA[Increment a metric by name.
  28642. @param name of the metric
  28643. @param factory to lazily create the metric if not null]]>
  28644. </doc>
  28645. </method>
  28646. <method name="decr"
  28647. abstract="false" native="false" synchronized="false"
  28648. static="false" final="false" visibility="public"
  28649. deprecated="not deprecated">
  28650. <param name="name" type="java.lang.String"/>
  28651. <doc>
  28652. <![CDATA[Decrement a metric by name.
  28653. @param name of the metric]]>
  28654. </doc>
  28655. </method>
  28656. <method name="decr"
  28657. abstract="false" native="false" synchronized="false"
  28658. static="false" final="false" visibility="public"
  28659. deprecated="not deprecated">
  28660. <param name="name" type="java.lang.String"/>
  28661. <param name="factory" type="org.apache.hadoop.metrics2.lib.MetricMutableFactory"/>
  28662. <doc>
  28663. <![CDATA[Decrement a metric by name.
  28664. @param name of the metric
  28665. @param factory to lazily create the metric if not null]]>
  28666. </doc>
  28667. </method>
  28668. <method name="add"
  28669. abstract="false" native="false" synchronized="false"
  28670. static="false" final="false" visibility="public"
  28671. deprecated="not deprecated">
  28672. <param name="name" type="java.lang.String"/>
  28673. <param name="value" type="long"/>
  28674. <doc>
  28675. <![CDATA[Add a value to a metric by name.
  28676. @param name of the metric
  28677. @param value of the snapshot to add]]>
  28678. </doc>
  28679. </method>
  28680. <method name="add"
  28681. abstract="false" native="false" synchronized="false"
  28682. static="false" final="false" visibility="public"
  28683. deprecated="not deprecated">
  28684. <param name="name" type="java.lang.String"/>
  28685. <param name="value" type="long"/>
  28686. <param name="factory" type="org.apache.hadoop.metrics2.lib.MetricMutableFactory"/>
  28687. <doc>
  28688. <![CDATA[Decrement a metric by name.
  28689. @param name of the metric
  28690. @param value of the snapshot to add
  28691. @param factory to lazily create the metric if not null]]>
  28692. </doc>
  28693. </method>
  28694. <method name="setContext" return="org.apache.hadoop.metrics2.lib.MetricsRegistry"
  28695. abstract="false" native="false" synchronized="false"
  28696. static="false" final="false" visibility="public"
  28697. deprecated="not deprecated">
  28698. <param name="name" type="java.lang.String"/>
  28699. <doc>
  28700. <![CDATA[Set the metrics context tag
  28701. @param name of the context
  28702. @return the registry itself as a convenience]]>
  28703. </doc>
  28704. </method>
  28705. <method name="tag" return="org.apache.hadoop.metrics2.lib.MetricsRegistry"
  28706. abstract="false" native="false" synchronized="false"
  28707. static="false" final="false" visibility="public"
  28708. deprecated="not deprecated">
  28709. <param name="name" type="java.lang.String"/>
  28710. <param name="description" type="java.lang.String"/>
  28711. <param name="value" type="java.lang.String"/>
  28712. <doc>
  28713. <![CDATA[Add a tag to the metrics
  28714. @param name of the tag
  28715. @param description of the tag
  28716. @param value of the tag
  28717. @return the registry (for keep adding tags)]]>
  28718. </doc>
  28719. </method>
  28720. <method name="tag" return="org.apache.hadoop.metrics2.lib.MetricsRegistry"
  28721. abstract="false" native="false" synchronized="false"
  28722. static="false" final="false" visibility="public"
  28723. deprecated="not deprecated">
  28724. <param name="name" type="java.lang.String"/>
  28725. <param name="description" type="java.lang.String"/>
  28726. <param name="value" type="java.lang.String"/>
  28727. <param name="override" type="boolean"/>
  28728. <doc>
  28729. <![CDATA[Add a tag to the metrics
  28730. @param name of the tag
  28731. @param description of the tag
  28732. @param value of the tag
  28733. @param override existing tag if true
  28734. @return the registry (for keep adding tags)]]>
  28735. </doc>
  28736. </method>
  28737. <method name="tags" return="java.util.Set"
  28738. abstract="false" native="false" synchronized="false"
  28739. static="false" final="false" visibility="public"
  28740. deprecated="not deprecated">
  28741. <doc>
  28742. <![CDATA[Get the tags
  28743. @return the tags set]]>
  28744. </doc>
  28745. </method>
  28746. <method name="metrics" return="java.util.Set"
  28747. abstract="false" native="false" synchronized="false"
  28748. static="false" final="false" visibility="public"
  28749. deprecated="not deprecated">
  28750. <doc>
  28751. <![CDATA[Get the metrics
  28752. @return the metrics set]]>
  28753. </doc>
  28754. </method>
  28755. <method name="snapshot"
  28756. abstract="false" native="false" synchronized="false"
  28757. static="false" final="false" visibility="public"
  28758. deprecated="not deprecated">
  28759. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  28760. <param name="all" type="boolean"/>
  28761. <doc>
  28762. <![CDATA[Sample all the mutable metrics and put the snapshot in the builder
  28763. @param builder to contain the metrics snapshot
  28764. @param all get all the metrics even if the values are not changed.]]>
  28765. </doc>
  28766. </method>
  28767. <field name="CONTEXT_KEY" type="java.lang.String"
  28768. transient="false" volatile="false"
  28769. static="true" final="true" visibility="public"
  28770. deprecated="not deprecated">
  28771. <doc>
  28772. <![CDATA[key for the context tag]]>
  28773. </doc>
  28774. </field>
  28775. <field name="CONTEXT_DESC" type="java.lang.String"
  28776. transient="false" volatile="false"
  28777. static="true" final="true" visibility="public"
  28778. deprecated="not deprecated">
  28779. <doc>
  28780. <![CDATA[description for the context tag]]>
  28781. </doc>
  28782. </field>
  28783. <doc>
  28784. <![CDATA[An optional metrics registry class for creating and maintaining a
  28785. collection of MetricsMutables, making writing metrics source easier.]]>
  28786. </doc>
  28787. </class>
  28788. <!-- end class org.apache.hadoop.metrics2.lib.MetricsRegistry -->
  28789. </package>
  28790. <package name="org.apache.hadoop.metrics2.sink">
  28791. <!-- start class org.apache.hadoop.metrics2.sink.FileSink -->
  28792. <class name="FileSink" extends="java.lang.Object"
  28793. abstract="false"
  28794. static="false" final="false" visibility="public"
  28795. deprecated="not deprecated">
  28796. <implements name="org.apache.hadoop.metrics2.MetricsSink"/>
  28797. <constructor name="FileSink"
  28798. static="false" final="false" visibility="public"
  28799. deprecated="not deprecated">
  28800. </constructor>
  28801. <method name="init"
  28802. abstract="false" native="false" synchronized="false"
  28803. static="false" final="false" visibility="public"
  28804. deprecated="not deprecated">
  28805. <param name="conf" type="org.apache.commons.configuration.SubsetConfiguration"/>
  28806. </method>
  28807. <method name="putMetrics"
  28808. abstract="false" native="false" synchronized="false"
  28809. static="false" final="false" visibility="public"
  28810. deprecated="not deprecated">
  28811. <param name="record" type="org.apache.hadoop.metrics2.MetricsRecord"/>
  28812. </method>
  28813. <method name="flush"
  28814. abstract="false" native="false" synchronized="false"
  28815. static="false" final="false" visibility="public"
  28816. deprecated="not deprecated">
  28817. </method>
  28818. </class>
  28819. <!-- end class org.apache.hadoop.metrics2.sink.FileSink -->
  28820. </package>
  28821. <package name="org.apache.hadoop.metrics2.sink.ganglia">
  28822. <!-- start class org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink -->
  28823. <class name="AbstractGangliaSink" extends="java.lang.Object"
  28824. abstract="true"
  28825. static="false" final="false" visibility="public"
  28826. deprecated="not deprecated">
  28827. <implements name="org.apache.hadoop.metrics2.MetricsSink"/>
  28828. <constructor name="AbstractGangliaSink"
  28829. static="false" final="false" visibility="public"
  28830. deprecated="not deprecated">
  28831. </constructor>
  28832. <method name="init"
  28833. abstract="false" native="false" synchronized="false"
  28834. static="false" final="false" visibility="public"
  28835. deprecated="not deprecated">
  28836. <param name="conf" type="org.apache.commons.configuration.SubsetConfiguration"/>
  28837. </method>
  28838. <method name="flush"
  28839. abstract="false" native="false" synchronized="false"
  28840. static="false" final="false" visibility="public"
  28841. deprecated="not deprecated">
  28842. </method>
  28843. <method name="getGangliaConfForMetric" return="org.apache.hadoop.metrics2.sink.ganglia.GangliaConf"
  28844. abstract="false" native="false" synchronized="false"
  28845. static="false" final="false" visibility="protected"
  28846. deprecated="not deprecated">
  28847. <param name="metricName" type="java.lang.String"/>
  28848. <doc>
  28849. <![CDATA[Lookup GangliaConf from cache. If not found, return default values
  28850. @param metricName
  28851. @return looked up GangliaConf]]>
  28852. </doc>
  28853. </method>
  28854. <method name="getHostName" return="java.lang.String"
  28855. abstract="false" native="false" synchronized="false"
  28856. static="false" final="false" visibility="protected"
  28857. deprecated="not deprecated">
  28858. <doc>
  28859. <![CDATA[@return the hostName]]>
  28860. </doc>
  28861. </method>
  28862. <method name="xdr_string"
  28863. abstract="false" native="false" synchronized="false"
  28864. static="false" final="false" visibility="protected"
  28865. deprecated="not deprecated">
  28866. <param name="s" type="java.lang.String"/>
  28867. <doc>
  28868. <![CDATA[Puts a string into the buffer by first writing the size of the string as an
  28869. int, followed by the bytes of the string, padded if necessary to a multiple
  28870. of 4.
  28871. @param s the string to be written to buffer at offset location]]>
  28872. </doc>
  28873. </method>
  28874. <method name="xdr_int"
  28875. abstract="false" native="false" synchronized="false"
  28876. static="false" final="false" visibility="protected"
  28877. deprecated="not deprecated">
  28878. <param name="i" type="int"/>
  28879. <doc>
  28880. <![CDATA[Puts an integer into the buffer as 4 bytes, big-endian.]]>
  28881. </doc>
  28882. </method>
  28883. <method name="emitToGangliaHosts"
  28884. abstract="false" native="false" synchronized="false"
  28885. static="false" final="false" visibility="protected"
  28886. deprecated="not deprecated">
  28887. <exception name="IOException" type="java.io.IOException"/>
  28888. <doc>
  28889. <![CDATA[Sends Ganglia Metrics to the configured hosts
  28890. @throws IOException]]>
  28891. </doc>
  28892. </method>
  28893. <method name="isSupportSparseMetrics" return="boolean"
  28894. abstract="false" native="false" synchronized="false"
  28895. static="false" final="false" visibility="protected"
  28896. deprecated="not deprecated">
  28897. <doc>
  28898. <![CDATA[@return whether sparse metrics are supported]]>
  28899. </doc>
  28900. </method>
  28901. <field name="LOG" type="org.apache.commons.logging.Log"
  28902. transient="false" volatile="false"
  28903. static="false" final="true" visibility="public"
  28904. deprecated="not deprecated">
  28905. </field>
  28906. <field name="DEFAULT_UNITS" type="java.lang.String"
  28907. transient="false" volatile="false"
  28908. static="true" final="true" visibility="public"
  28909. deprecated="not deprecated">
  28910. </field>
  28911. <field name="DEFAULT_TMAX" type="int"
  28912. transient="false" volatile="false"
  28913. static="true" final="true" visibility="public"
  28914. deprecated="not deprecated">
  28915. </field>
  28916. <field name="DEFAULT_DMAX" type="int"
  28917. transient="false" volatile="false"
  28918. static="true" final="true" visibility="public"
  28919. deprecated="not deprecated">
  28920. </field>
  28921. <field name="DEFAULT_SLOPE" type="org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaSlope"
  28922. transient="false" volatile="false"
  28923. static="true" final="true" visibility="public"
  28924. deprecated="not deprecated">
  28925. </field>
  28926. <field name="DEFAULT_PORT" type="int"
  28927. transient="false" volatile="false"
  28928. static="true" final="true" visibility="public"
  28929. deprecated="not deprecated">
  28930. </field>
  28931. <field name="SERVERS_PROPERTY" type="java.lang.String"
  28932. transient="false" volatile="false"
  28933. static="true" final="true" visibility="public"
  28934. deprecated="not deprecated">
  28935. </field>
  28936. <field name="BUFFER_SIZE" type="int"
  28937. transient="false" volatile="false"
  28938. static="true" final="true" visibility="public"
  28939. deprecated="not deprecated">
  28940. </field>
  28941. <field name="SUPPORT_SPARSE_METRICS_PROPERTY" type="java.lang.String"
  28942. transient="false" volatile="false"
  28943. static="true" final="true" visibility="public"
  28944. deprecated="not deprecated">
  28945. </field>
  28946. <field name="SUPPORT_SPARSE_METRICS_DEFAULT" type="boolean"
  28947. transient="false" volatile="false"
  28948. static="true" final="true" visibility="public"
  28949. deprecated="not deprecated">
  28950. </field>
  28951. <field name="EQUAL" type="java.lang.String"
  28952. transient="false" volatile="false"
  28953. static="true" final="true" visibility="public"
  28954. deprecated="not deprecated">
  28955. </field>
  28956. <field name="gangliaMetricVisitor" type="org.apache.hadoop.metrics2.sink.ganglia.GangliaMetricVisitor"
  28957. transient="false" volatile="false"
  28958. static="false" final="true" visibility="protected"
  28959. deprecated="not deprecated">
  28960. <doc>
  28961. <![CDATA[Used for visiting Metrics]]>
  28962. </doc>
  28963. </field>
  28964. <doc>
  28965. <![CDATA[This the base class for Ganglia sink classes using metrics2. Lot of the code
  28966. has been derived from org.apache.hadoop.metrics.ganglia.GangliaContext.
  28967. As per the documentation, sink implementations doesn't have to worry about
  28968. thread safety. Hence the code wasn't written for thread safety and should
  28969. be modified in case the above assumption changes in the future.]]>
  28970. </doc>
  28971. </class>
  28972. <!-- end class org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink -->
  28973. <!-- start class org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaConfType -->
  28974. <class name="AbstractGangliaSink.GangliaConfType" extends="java.lang.Enum"
  28975. abstract="false"
  28976. static="true" final="true" visibility="public"
  28977. deprecated="not deprecated">
  28978. <method name="values" return="org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaConfType[]"
  28979. abstract="false" native="false" synchronized="false"
  28980. static="true" final="false" visibility="public"
  28981. deprecated="not deprecated">
  28982. </method>
  28983. <method name="valueOf" return="org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaConfType"
  28984. abstract="false" native="false" synchronized="false"
  28985. static="true" final="false" visibility="public"
  28986. deprecated="not deprecated">
  28987. <param name="name" type="java.lang.String"/>
  28988. </method>
  28989. <field name="slope" type="org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaConfType"
  28990. transient="false" volatile="false"
  28991. static="true" final="true" visibility="public"
  28992. deprecated="not deprecated">
  28993. </field>
  28994. <field name="units" type="org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaConfType"
  28995. transient="false" volatile="false"
  28996. static="true" final="true" visibility="public"
  28997. deprecated="not deprecated">
  28998. </field>
  28999. <field name="dmax" type="org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaConfType"
  29000. transient="false" volatile="false"
  29001. static="true" final="true" visibility="public"
  29002. deprecated="not deprecated">
  29003. </field>
  29004. <field name="tmax" type="org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaConfType"
  29005. transient="false" volatile="false"
  29006. static="true" final="true" visibility="public"
  29007. deprecated="not deprecated">
  29008. </field>
  29009. <doc>
  29010. <![CDATA[define enum for various type of conf]]>
  29011. </doc>
  29012. </class>
  29013. <!-- end class org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaConfType -->
  29014. <!-- start class org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaSlope -->
  29015. <class name="AbstractGangliaSink.GangliaSlope" extends="java.lang.Enum"
  29016. abstract="false"
  29017. static="true" final="true" visibility="public"
  29018. deprecated="not deprecated">
  29019. <method name="values" return="org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaSlope[]"
  29020. abstract="false" native="false" synchronized="false"
  29021. static="true" final="false" visibility="public"
  29022. deprecated="not deprecated">
  29023. </method>
  29024. <method name="valueOf" return="org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaSlope"
  29025. abstract="false" native="false" synchronized="false"
  29026. static="true" final="false" visibility="public"
  29027. deprecated="not deprecated">
  29028. <param name="name" type="java.lang.String"/>
  29029. </method>
  29030. <field name="zero" type="org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaSlope"
  29031. transient="false" volatile="false"
  29032. static="true" final="true" visibility="public"
  29033. deprecated="not deprecated">
  29034. </field>
  29035. <field name="positive" type="org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaSlope"
  29036. transient="false" volatile="false"
  29037. static="true" final="true" visibility="public"
  29038. deprecated="not deprecated">
  29039. </field>
  29040. <field name="negative" type="org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaSlope"
  29041. transient="false" volatile="false"
  29042. static="true" final="true" visibility="public"
  29043. deprecated="not deprecated">
  29044. </field>
  29045. <field name="both" type="org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaSlope"
  29046. transient="false" volatile="false"
  29047. static="true" final="true" visibility="public"
  29048. deprecated="not deprecated">
  29049. </field>
  29050. <doc>
  29051. <![CDATA[ganglia slope values which equal the ordinal]]>
  29052. </doc>
  29053. </class>
  29054. <!-- end class org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaSlope -->
  29055. <!-- start class org.apache.hadoop.metrics2.sink.ganglia.GangliaSink30 -->
  29056. <class name="GangliaSink30" extends="org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink"
  29057. abstract="false"
  29058. static="false" final="false" visibility="public"
  29059. deprecated="not deprecated">
  29060. <constructor name="GangliaSink30"
  29061. static="false" final="false" visibility="public"
  29062. deprecated="not deprecated">
  29063. </constructor>
  29064. <method name="putMetrics"
  29065. abstract="false" native="false" synchronized="false"
  29066. static="false" final="false" visibility="public"
  29067. deprecated="not deprecated">
  29068. <param name="record" type="org.apache.hadoop.metrics2.MetricsRecord"/>
  29069. </method>
  29070. <method name="emitMetric"
  29071. abstract="false" native="false" synchronized="false"
  29072. static="false" final="false" visibility="protected"
  29073. deprecated="not deprecated">
  29074. <param name="groupName" type="java.lang.String"/>
  29075. <param name="name" type="java.lang.String"/>
  29076. <param name="type" type="java.lang.String"/>
  29077. <param name="value" type="java.lang.String"/>
  29078. <param name="gConf" type="org.apache.hadoop.metrics2.sink.ganglia.GangliaConf"/>
  29079. <param name="gSlope" type="org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaSlope"/>
  29080. <exception name="IOException" type="java.io.IOException"/>
  29081. <doc>
  29082. <![CDATA[The method sends metrics to Ganglia servers. The method has been taken from
  29083. org.apache.hadoop.metrics.ganglia.GangliaContext30 with minimal changes in
  29084. order to keep it in sync.
  29085. @param groupName The group name of the metric
  29086. @param name The metric name
  29087. @param type The type of the metric
  29088. @param value The value of the metric
  29089. @param gConf The GangliaConf for this metric
  29090. @param gSlope The slope for this metric
  29091. @throws IOException]]>
  29092. </doc>
  29093. </method>
  29094. <field name="LOG" type="org.apache.commons.logging.Log"
  29095. transient="false" volatile="false"
  29096. static="false" final="true" visibility="public"
  29097. deprecated="not deprecated">
  29098. </field>
  29099. <field name="metricsCache" type="org.apache.hadoop.metrics2.util.MetricsCache"
  29100. transient="false" volatile="false"
  29101. static="false" final="false" visibility="protected"
  29102. deprecated="not deprecated">
  29103. </field>
  29104. <doc>
  29105. <![CDATA[This code supports Ganglia 3.0]]>
  29106. </doc>
  29107. </class>
  29108. <!-- end class org.apache.hadoop.metrics2.sink.ganglia.GangliaSink30 -->
  29109. <!-- start class org.apache.hadoop.metrics2.sink.ganglia.GangliaSink31 -->
  29110. <class name="GangliaSink31" extends="org.apache.hadoop.metrics2.sink.ganglia.GangliaSink30"
  29111. abstract="false"
  29112. static="false" final="false" visibility="public"
  29113. deprecated="not deprecated">
  29114. <constructor name="GangliaSink31"
  29115. static="false" final="false" visibility="public"
  29116. deprecated="not deprecated">
  29117. </constructor>
  29118. <method name="emitMetric"
  29119. abstract="false" native="false" synchronized="false"
  29120. static="false" final="false" visibility="protected"
  29121. deprecated="not deprecated">
  29122. <param name="groupName" type="java.lang.String"/>
  29123. <param name="name" type="java.lang.String"/>
  29124. <param name="type" type="java.lang.String"/>
  29125. <param name="value" type="java.lang.String"/>
  29126. <param name="gConf" type="org.apache.hadoop.metrics2.sink.ganglia.GangliaConf"/>
  29127. <param name="gSlope" type="org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaSlope"/>
  29128. <exception name="IOException" type="java.io.IOException"/>
  29129. <doc>
  29130. <![CDATA[The method sends metrics to Ganglia servers. The method has been taken from
  29131. org.apache.hadoop.metrics.ganglia.GangliaContext31 with minimal changes in
  29132. order to keep it in sync.
  29133. @param groupName The group name of the metric
  29134. @param name The metric name
  29135. @param type The type of the metric
  29136. @param value The value of the metric
  29137. @param gConf The GangliaConf for this metric
  29138. @param gSlope The slope for this metric
  29139. @throws IOException]]>
  29140. </doc>
  29141. </method>
  29142. <field name="LOG" type="org.apache.commons.logging.Log"
  29143. transient="false" volatile="false"
  29144. static="false" final="true" visibility="public"
  29145. deprecated="not deprecated">
  29146. </field>
  29147. <doc>
  29148. <![CDATA[This code supports Ganglia 3.1]]>
  29149. </doc>
  29150. </class>
  29151. <!-- end class org.apache.hadoop.metrics2.sink.ganglia.GangliaSink31 -->
  29152. </package>
  29153. <package name="org.apache.hadoop.metrics2.source">
  29154. <!-- start class org.apache.hadoop.metrics2.source.JvmMetricsSource -->
  29155. <class name="JvmMetricsSource" extends="java.lang.Object"
  29156. abstract="false"
  29157. static="false" final="false" visibility="public"
  29158. deprecated="not deprecated">
  29159. <implements name="org.apache.hadoop.metrics2.MetricsSource"/>
  29160. <method name="create" return="org.apache.hadoop.metrics2.source.JvmMetricsSource"
  29161. abstract="false" native="false" synchronized="false"
  29162. static="true" final="false" visibility="public"
  29163. deprecated="not deprecated">
  29164. <param name="processName" type="java.lang.String"/>
  29165. <param name="sessionId" type="java.lang.String"/>
  29166. <param name="ms" type="org.apache.hadoop.metrics2.MetricsSystem"/>
  29167. </method>
  29168. <method name="create" return="org.apache.hadoop.metrics2.source.JvmMetricsSource"
  29169. abstract="false" native="false" synchronized="false"
  29170. static="true" final="false" visibility="public"
  29171. deprecated="not deprecated">
  29172. <param name="processName" type="java.lang.String"/>
  29173. <param name="sessionId" type="java.lang.String"/>
  29174. </method>
  29175. <method name="getMetrics"
  29176. abstract="false" native="false" synchronized="false"
  29177. static="false" final="false" visibility="public"
  29178. deprecated="not deprecated">
  29179. <param name="builder" type="org.apache.hadoop.metrics2.MetricsBuilder"/>
  29180. <param name="all" type="boolean"/>
  29181. </method>
  29182. </class>
  29183. <!-- end class org.apache.hadoop.metrics2.source.JvmMetricsSource -->
  29184. </package>
  29185. <package name="org.apache.hadoop.metrics2.util">
  29186. <!-- start class org.apache.hadoop.metrics2.util.Contracts -->
  29187. <class name="Contracts" extends="java.lang.Object"
  29188. abstract="false"
  29189. static="false" final="false" visibility="public"
  29190. deprecated="not deprecated">
  29191. <method name="checkNotNull" return="java.lang.Object"
  29192. abstract="false" native="false" synchronized="false"
  29193. static="true" final="false" visibility="public"
  29194. deprecated="not deprecated">
  29195. <param name="ref" type="java.lang.Object"/>
  29196. <param name="msg" type="java.lang.Object"/>
  29197. <doc>
  29198. <![CDATA[Check that a reference is not null.
  29199. @param <T> type of the reference
  29200. @param ref the reference to check
  29201. @param msg the error message
  29202. @throws NullPointerException if {@code ref} is null
  29203. @return the checked reference for convenience]]>
  29204. </doc>
  29205. </method>
  29206. <method name="checkState"
  29207. abstract="false" native="false" synchronized="false"
  29208. static="true" final="false" visibility="public"
  29209. deprecated="not deprecated">
  29210. <param name="expression" type="boolean"/>
  29211. <param name="msg" type="java.lang.Object"/>
  29212. <doc>
  29213. <![CDATA[Check the state expression for false conditions
  29214. @param expression the boolean expression to check
  29215. @param msg the error message if {@code expression} is false
  29216. @throws IllegalStateException if {@code expression} is false]]>
  29217. </doc>
  29218. </method>
  29219. <method name="checkArg" return="java.lang.Object"
  29220. abstract="false" native="false" synchronized="false"
  29221. static="true" final="false" visibility="public"
  29222. deprecated="not deprecated">
  29223. <param name="arg" type="java.lang.Object"/>
  29224. <param name="expression" type="boolean"/>
  29225. <param name="msg" type="java.lang.Object"/>
  29226. <doc>
  29227. <![CDATA[Check an argument for false conditions
  29228. @param <T> type of the argument
  29229. @param arg the argument to check
  29230. @param expression the boolean expression for the condition
  29231. @param msg the error message if {@code expression} is false
  29232. @return the argument for convenience]]>
  29233. </doc>
  29234. </method>
  29235. <method name="checkArg" return="int"
  29236. abstract="false" native="false" synchronized="false"
  29237. static="true" final="false" visibility="public"
  29238. deprecated="not deprecated">
  29239. <param name="arg" type="int"/>
  29240. <param name="expression" type="boolean"/>
  29241. <param name="msg" type="java.lang.Object"/>
  29242. <doc>
  29243. <![CDATA[Check an argument for false conditions
  29244. @param arg the argument to check
  29245. @param expression the boolean expression for the condition
  29246. @param msg the error message if {@code expression} is false
  29247. @return the argument for convenience]]>
  29248. </doc>
  29249. </method>
  29250. <method name="checkArg" return="long"
  29251. abstract="false" native="false" synchronized="false"
  29252. static="true" final="false" visibility="public"
  29253. deprecated="not deprecated">
  29254. <param name="arg" type="long"/>
  29255. <param name="expression" type="boolean"/>
  29256. <param name="msg" type="java.lang.Object"/>
  29257. <doc>
  29258. <![CDATA[Check an argument for false conditions
  29259. @param arg the argument to check
  29260. @param expression the boolean expression for the condition
  29261. @param msg the error message if {@code expression} is false
  29262. @return the argument for convenience]]>
  29263. </doc>
  29264. </method>
  29265. <method name="checkArg" return="float"
  29266. abstract="false" native="false" synchronized="false"
  29267. static="true" final="false" visibility="public"
  29268. deprecated="not deprecated">
  29269. <param name="arg" type="float"/>
  29270. <param name="expression" type="boolean"/>
  29271. <param name="msg" type="java.lang.Object"/>
  29272. <doc>
  29273. <![CDATA[Check an argument for false conditions
  29274. @param arg the argument to check
  29275. @param expression the boolean expression for the condition
  29276. @param msg the error message if {@code expression} is false
  29277. @return the argument for convenience]]>
  29278. </doc>
  29279. </method>
  29280. <method name="checkArg" return="double"
  29281. abstract="false" native="false" synchronized="false"
  29282. static="true" final="false" visibility="public"
  29283. deprecated="not deprecated">
  29284. <param name="arg" type="double"/>
  29285. <param name="expression" type="boolean"/>
  29286. <param name="msg" type="java.lang.Object"/>
  29287. <doc>
  29288. <![CDATA[Check an argument for false conditions
  29289. @param arg the argument to check
  29290. @param expression the boolean expression for the condition
  29291. @param msg the error message if {@code expression} is false
  29292. @return the argument for convenience]]>
  29293. </doc>
  29294. </method>
  29295. <doc>
  29296. <![CDATA[Utilities for programming by contract (preconditions, postconditions etc.)]]>
  29297. </doc>
  29298. </class>
  29299. <!-- end class org.apache.hadoop.metrics2.util.Contracts -->
  29300. <!-- start class org.apache.hadoop.metrics2.util.MBeans -->
  29301. <class name="MBeans" extends="java.lang.Object"
  29302. abstract="false"
  29303. static="false" final="false" visibility="public"
  29304. deprecated="not deprecated">
  29305. <constructor name="MBeans"
  29306. static="false" final="false" visibility="public"
  29307. deprecated="not deprecated">
  29308. </constructor>
  29309. <method name="register" return="javax.management.ObjectName"
  29310. abstract="false" native="false" synchronized="false"
  29311. static="true" final="false" visibility="public"
  29312. deprecated="not deprecated">
  29313. <param name="serviceName" type="java.lang.String"/>
  29314. <param name="nameName" type="java.lang.String"/>
  29315. <param name="theMbean" type="java.lang.Object"/>
  29316. <doc>
  29317. <![CDATA[Register the MBean using our standard MBeanName format
  29318. "hadoop:service=<serviceName>,name=<nameName>"
  29319. Where the <serviceName> and <nameName> are the supplied parameters
  29320. @param serviceName
  29321. @param nameName
  29322. @param theMbean - the MBean to register
  29323. @return the named used to register the MBean]]>
  29324. </doc>
  29325. </method>
  29326. <method name="unregister"
  29327. abstract="false" native="false" synchronized="false"
  29328. static="true" final="false" visibility="public"
  29329. deprecated="not deprecated">
  29330. <param name="mbeanName" type="javax.management.ObjectName"/>
  29331. </method>
  29332. <doc>
  29333. <![CDATA[This util class provides a method to register an MBean using
  29334. our standard naming convention as described in the doc
  29335. for {link {@link #register(String, String, Object)}]]>
  29336. </doc>
  29337. </class>
  29338. <!-- end class org.apache.hadoop.metrics2.util.MBeans -->
  29339. <!-- start class org.apache.hadoop.metrics2.util.MetricsCache -->
  29340. <class name="MetricsCache" extends="java.lang.Object"
  29341. abstract="false"
  29342. static="false" final="false" visibility="public"
  29343. deprecated="not deprecated">
  29344. <constructor name="MetricsCache"
  29345. static="false" final="false" visibility="public"
  29346. deprecated="not deprecated">
  29347. </constructor>
  29348. <method name="update" return="org.apache.hadoop.metrics2.util.MetricsCache.Record"
  29349. abstract="false" native="false" synchronized="false"
  29350. static="false" final="false" visibility="public"
  29351. deprecated="not deprecated">
  29352. <param name="mr" type="org.apache.hadoop.metrics2.MetricsRecord"/>
  29353. <param name="includingTags" type="boolean"/>
  29354. <doc>
  29355. <![CDATA[Update the cache and return the cached record
  29356. @param mr the update record
  29357. @param includingTags cache tag values (for later lookup by name) if true
  29358. @return the updated cached record]]>
  29359. </doc>
  29360. </method>
  29361. <method name="update" return="org.apache.hadoop.metrics2.util.MetricsCache.Record"
  29362. abstract="false" native="false" synchronized="false"
  29363. static="false" final="false" visibility="public"
  29364. deprecated="not deprecated">
  29365. <param name="mr" type="org.apache.hadoop.metrics2.MetricsRecord"/>
  29366. </method>
  29367. <method name="get" 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="name" type="java.lang.String"/>
  29372. <param name="tags" type="java.util.Collection"/>
  29373. <doc>
  29374. <![CDATA[Get the cached record
  29375. @param name of the record
  29376. @param tags of the record
  29377. @return the cached record or null]]>
  29378. </doc>
  29379. </method>
  29380. <doc>
  29381. <![CDATA[A metrics cache for sinks that don't support sparse updates.]]>
  29382. </doc>
  29383. </class>
  29384. <!-- end class org.apache.hadoop.metrics2.util.MetricsCache -->
  29385. <!-- start class org.apache.hadoop.metrics2.util.MetricsCache.Record -->
  29386. <class name="MetricsCache.Record" extends="java.lang.Object"
  29387. abstract="false"
  29388. static="true" final="false" visibility="public"
  29389. deprecated="not deprecated">
  29390. <constructor name="MetricsCache.Record"
  29391. static="false" final="false" visibility="public"
  29392. deprecated="not deprecated">
  29393. </constructor>
  29394. <method name="getTag" return="java.lang.String"
  29395. abstract="false" native="false" synchronized="false"
  29396. static="false" final="false" visibility="public"
  29397. deprecated="not deprecated">
  29398. <param name="key" type="java.lang.String"/>
  29399. <doc>
  29400. <![CDATA[Get the tag value
  29401. @param key name of the tag
  29402. @return the tag value]]>
  29403. </doc>
  29404. </method>
  29405. <method name="getMetric" return="java.lang.Number"
  29406. abstract="false" native="false" synchronized="false"
  29407. static="false" final="false" visibility="public"
  29408. deprecated="not deprecated">
  29409. <param name="key" type="java.lang.String"/>
  29410. <doc>
  29411. <![CDATA[Get the metric value
  29412. @param key name of the metric
  29413. @return the metric value]]>
  29414. </doc>
  29415. </method>
  29416. <method name="getMetricInstance" return="org.apache.hadoop.metrics2.Metric"
  29417. abstract="false" native="false" synchronized="false"
  29418. static="false" final="false" visibility="public"
  29419. deprecated="not deprecated">
  29420. <param name="key" type="java.lang.String"/>
  29421. <doc>
  29422. <![CDATA[Get the metric value
  29423. @param key name of the metric
  29424. @return the metric value]]>
  29425. </doc>
  29426. </method>
  29427. <method name="metrics" return="java.util.Set"
  29428. abstract="false" native="false" synchronized="false"
  29429. static="false" final="false" visibility="public"
  29430. deprecated="not deprecated">
  29431. <doc>
  29432. <![CDATA[@return entry set of metrics]]>
  29433. </doc>
  29434. </method>
  29435. <method name="metricsEntrySet" return="java.util.Set"
  29436. abstract="false" native="false" synchronized="false"
  29437. static="false" final="false" visibility="public"
  29438. deprecated="not deprecated">
  29439. <doc>
  29440. <![CDATA[@return entry set of metrics]]>
  29441. </doc>
  29442. </method>
  29443. <doc>
  29444. <![CDATA[Cached record]]>
  29445. </doc>
  29446. </class>
  29447. <!-- end class org.apache.hadoop.metrics2.util.MetricsCache.Record -->
  29448. <!-- start class org.apache.hadoop.metrics2.util.SampleStat -->
  29449. <class name="SampleStat" extends="java.lang.Object"
  29450. abstract="false"
  29451. static="false" final="false" visibility="public"
  29452. deprecated="not deprecated">
  29453. <constructor name="SampleStat"
  29454. static="false" final="false" visibility="public"
  29455. deprecated="not deprecated">
  29456. <doc>
  29457. <![CDATA[Construct a new running sample stat]]>
  29458. </doc>
  29459. </constructor>
  29460. <method name="reset"
  29461. abstract="false" native="false" synchronized="false"
  29462. static="false" final="false" visibility="public"
  29463. deprecated="not deprecated">
  29464. </method>
  29465. <method name="copyTo"
  29466. abstract="false" native="false" synchronized="false"
  29467. static="false" final="false" visibility="public"
  29468. deprecated="not deprecated">
  29469. <param name="other" type="org.apache.hadoop.metrics2.util.SampleStat"/>
  29470. <doc>
  29471. <![CDATA[Copy the values to other (saves object creation and gc.)
  29472. @param other the destination to hold our values]]>
  29473. </doc>
  29474. </method>
  29475. <method name="add" return="org.apache.hadoop.metrics2.util.SampleStat"
  29476. abstract="false" native="false" synchronized="false"
  29477. static="false" final="false" visibility="public"
  29478. deprecated="not deprecated">
  29479. <param name="x" type="double"/>
  29480. <doc>
  29481. <![CDATA[Add a sample the running stat.
  29482. @param x the sample number
  29483. @return self]]>
  29484. </doc>
  29485. </method>
  29486. <method name="add" return="org.apache.hadoop.metrics2.util.SampleStat"
  29487. abstract="false" native="false" synchronized="false"
  29488. static="false" final="false" visibility="public"
  29489. deprecated="not deprecated">
  29490. <param name="nSamples" type="long"/>
  29491. <param name="x" type="double"/>
  29492. <doc>
  29493. <![CDATA[Add some sample and a partial sum to the running stat.
  29494. Note, min/max is not evaluated using this method.
  29495. @param nSamples number of samples
  29496. @param x the partial sum
  29497. @return self]]>
  29498. </doc>
  29499. </method>
  29500. <method name="numSamples" return="long"
  29501. abstract="false" native="false" synchronized="false"
  29502. static="false" final="false" visibility="public"
  29503. deprecated="not deprecated">
  29504. <doc>
  29505. <![CDATA[@return the total number of samples]]>
  29506. </doc>
  29507. </method>
  29508. <method name="mean" return="double"
  29509. abstract="false" native="false" synchronized="false"
  29510. static="false" final="false" visibility="public"
  29511. deprecated="not deprecated">
  29512. <doc>
  29513. <![CDATA[@return the arithmetic mean of the samples]]>
  29514. </doc>
  29515. </method>
  29516. <method name="variance" return="double"
  29517. abstract="false" native="false" synchronized="false"
  29518. static="false" final="false" visibility="public"
  29519. deprecated="not deprecated">
  29520. <doc>
  29521. <![CDATA[@return the variance of the samples]]>
  29522. </doc>
  29523. </method>
  29524. <method name="stddev" return="double"
  29525. abstract="false" native="false" synchronized="false"
  29526. static="false" final="false" visibility="public"
  29527. deprecated="not deprecated">
  29528. <doc>
  29529. <![CDATA[@return the standard deviation of the samples]]>
  29530. </doc>
  29531. </method>
  29532. <method name="min" return="double"
  29533. abstract="false" native="false" synchronized="false"
  29534. static="false" final="false" visibility="public"
  29535. deprecated="not deprecated">
  29536. <doc>
  29537. <![CDATA[@return the minimum value of the samples]]>
  29538. </doc>
  29539. </method>
  29540. <method name="max" return="double"
  29541. abstract="false" native="false" synchronized="false"
  29542. static="false" final="false" visibility="public"
  29543. deprecated="not deprecated">
  29544. <doc>
  29545. <![CDATA[@return the maximum value of the samples]]>
  29546. </doc>
  29547. </method>
  29548. <doc>
  29549. <![CDATA[Helper to compute running sample stats]]>
  29550. </doc>
  29551. </class>
  29552. <!-- end class org.apache.hadoop.metrics2.util.SampleStat -->
  29553. <!-- start class org.apache.hadoop.metrics2.util.SampleStat.MinMax -->
  29554. <class name="SampleStat.MinMax" extends="java.lang.Object"
  29555. abstract="false"
  29556. static="true" final="false" visibility="public"
  29557. deprecated="not deprecated">
  29558. <constructor name="SampleStat.MinMax"
  29559. static="false" final="false" visibility="public"
  29560. deprecated="not deprecated">
  29561. </constructor>
  29562. <method name="add"
  29563. abstract="false" native="false" synchronized="false"
  29564. static="false" final="false" visibility="public"
  29565. deprecated="not deprecated">
  29566. <param name="value" type="double"/>
  29567. </method>
  29568. <method name="min" return="double"
  29569. abstract="false" native="false" synchronized="false"
  29570. static="false" final="false" visibility="public"
  29571. deprecated="not deprecated">
  29572. </method>
  29573. <method name="max" return="double"
  29574. abstract="false" native="false" synchronized="false"
  29575. static="false" final="false" visibility="public"
  29576. deprecated="not deprecated">
  29577. </method>
  29578. <method name="reset"
  29579. abstract="false" native="false" synchronized="false"
  29580. static="false" final="false" visibility="public"
  29581. deprecated="not deprecated">
  29582. </method>
  29583. <method name="reset"
  29584. abstract="false" native="false" synchronized="false"
  29585. static="false" final="false" visibility="public"
  29586. deprecated="not deprecated">
  29587. <param name="other" type="org.apache.hadoop.metrics2.util.SampleStat.MinMax"/>
  29588. </method>
  29589. <doc>
  29590. <![CDATA[Helper to keep running min/max]]>
  29591. </doc>
  29592. </class>
  29593. <!-- end class org.apache.hadoop.metrics2.util.SampleStat.MinMax -->
  29594. <!-- start class org.apache.hadoop.metrics2.util.Servers -->
  29595. <class name="Servers" extends="java.lang.Object"
  29596. abstract="false"
  29597. static="false" final="false" visibility="public"
  29598. deprecated="not deprecated">
  29599. <method name="parse" return="java.util.List"
  29600. abstract="false" native="false" synchronized="false"
  29601. static="true" final="false" visibility="public"
  29602. deprecated="not deprecated">
  29603. <param name="specs" type="java.lang.String"/>
  29604. <param name="defaultPort" type="int"/>
  29605. <doc>
  29606. <![CDATA[Parses a space and/or comma separated sequence of server specifications
  29607. of the form <i>hostname</i> or <i>hostname:port</i>. If
  29608. the specs string is null, defaults to localhost:defaultPort.
  29609. @param specs server specs (see description)
  29610. @param defaultPort the default port if not specified
  29611. @return a list of InetSocketAddress objects.]]>
  29612. </doc>
  29613. </method>
  29614. <doc>
  29615. <![CDATA[Helpers to handle server addresses]]>
  29616. </doc>
  29617. </class>
  29618. <!-- end class org.apache.hadoop.metrics2.util.Servers -->
  29619. <!-- start class org.apache.hadoop.metrics2.util.TryIterator -->
  29620. <class name="TryIterator" extends="java.lang.Object"
  29621. abstract="true"
  29622. static="false" final="false" visibility="public"
  29623. deprecated="not deprecated">
  29624. <implements name="java.util.Iterator"/>
  29625. <constructor name="TryIterator"
  29626. static="false" final="false" visibility="public"
  29627. deprecated="not deprecated">
  29628. </constructor>
  29629. <method name="tryNext" return="java.lang.Object"
  29630. abstract="true" native="false" synchronized="false"
  29631. static="false" final="false" visibility="protected"
  29632. deprecated="not deprecated">
  29633. <doc>
  29634. <![CDATA[Return the next element. Must call {@link #done()} when done, otherwise
  29635. infinite loop could occur. If this method throws an exception, any
  29636. further attempts to use the iterator would result in an
  29637. {@link IllegalStateException}.
  29638. @return the next element if there is one or return {@link #done()}]]>
  29639. </doc>
  29640. </method>
  29641. <method name="done" return="java.lang.Object"
  29642. abstract="false" native="false" synchronized="false"
  29643. static="false" final="true" visibility="protected"
  29644. deprecated="not deprecated">
  29645. <doc>
  29646. <![CDATA[Implementations of {@link #tryNext} <b>must</b> call this method
  29647. when there are no more elements left in the iteration.
  29648. @return null as a convenience to implement {@link #tryNext()}]]>
  29649. </doc>
  29650. </method>
  29651. <method name="hasNext" return="boolean"
  29652. abstract="false" native="false" synchronized="false"
  29653. static="false" final="true" visibility="public"
  29654. deprecated="not deprecated">
  29655. <doc>
  29656. <![CDATA[@return true if we have a next element or false otherwise.]]>
  29657. </doc>
  29658. </method>
  29659. <method name="next" return="java.lang.Object"
  29660. abstract="false" native="false" synchronized="false"
  29661. static="false" final="true" visibility="public"
  29662. deprecated="not deprecated">
  29663. <doc>
  29664. <![CDATA[@return the next element if we have one.]]>
  29665. </doc>
  29666. </method>
  29667. <method name="current" return="java.lang.Object"
  29668. abstract="false" native="false" synchronized="false"
  29669. static="false" final="true" visibility="public"
  29670. deprecated="not deprecated">
  29671. <doc>
  29672. <![CDATA[@return the current element without advancing the iterator]]>
  29673. </doc>
  29674. </method>
  29675. <method name="remove"
  29676. abstract="false" native="false" synchronized="false"
  29677. static="false" final="true" visibility="public"
  29678. deprecated="not deprecated">
  29679. <doc>
  29680. <![CDATA[Guaranteed to throw UnsupportedOperationException]]>
  29681. </doc>
  29682. </method>
  29683. <doc>
  29684. <![CDATA[A base class for unmodifiable iterators (throws on remove)
  29685. This class also makes writing filtering iterators easier, where the only
  29686. way to discover the end of data is by trying to read it. The same applies
  29687. to writing iterator wrappers around stream read calls.
  29688. One only needs to implement the tryNext() method and call done() when done.
  29689. @param <T> the type of the iterator]]>
  29690. </doc>
  29691. </class>
  29692. <!-- end class org.apache.hadoop.metrics2.util.TryIterator -->
  29693. </package>
  29694. <package name="org.apache.hadoop.net">
  29695. <!-- start class org.apache.hadoop.net.CachedDNSToSwitchMapping -->
  29696. <class name="CachedDNSToSwitchMapping" extends="java.lang.Object"
  29697. abstract="false"
  29698. static="false" final="false" visibility="public"
  29699. deprecated="not deprecated">
  29700. <implements name="org.apache.hadoop.net.DNSToSwitchMapping"/>
  29701. <constructor name="CachedDNSToSwitchMapping" type="org.apache.hadoop.net.DNSToSwitchMapping"
  29702. static="false" final="false" visibility="public"
  29703. deprecated="not deprecated">
  29704. </constructor>
  29705. <method name="resolve" return="java.util.List"
  29706. abstract="false" native="false" synchronized="false"
  29707. static="false" final="false" visibility="public"
  29708. deprecated="not deprecated">
  29709. <param name="names" type="java.util.List"/>
  29710. </method>
  29711. <field name="rawMapping" type="org.apache.hadoop.net.DNSToSwitchMapping"
  29712. transient="false" volatile="false"
  29713. static="false" final="false" visibility="protected"
  29714. deprecated="not deprecated">
  29715. </field>
  29716. <doc>
  29717. <![CDATA[A cached implementation of DNSToSwitchMapping that takes an
  29718. raw DNSToSwitchMapping and stores the resolved network location in
  29719. a cache. The following calls to a resolved network location
  29720. will get its location from the cache.]]>
  29721. </doc>
  29722. </class>
  29723. <!-- end class org.apache.hadoop.net.CachedDNSToSwitchMapping -->
  29724. <!-- start class org.apache.hadoop.net.DNS -->
  29725. <class name="DNS" extends="java.lang.Object"
  29726. abstract="false"
  29727. static="false" final="false" visibility="public"
  29728. deprecated="not deprecated">
  29729. <constructor name="DNS"
  29730. static="false" final="false" visibility="public"
  29731. deprecated="not deprecated">
  29732. </constructor>
  29733. <method name="reverseDns" return="java.lang.String"
  29734. abstract="false" native="false" synchronized="false"
  29735. static="true" final="false" visibility="public"
  29736. deprecated="not deprecated">
  29737. <param name="hostIp" type="java.net.InetAddress"/>
  29738. <param name="ns" type="java.lang.String"/>
  29739. <exception name="NamingException" type="javax.naming.NamingException"/>
  29740. <doc>
  29741. <![CDATA[Returns the hostname associated with the specified IP address by the
  29742. provided nameserver.
  29743. @param hostIp
  29744. The address to reverse lookup
  29745. @param ns
  29746. The host name of a reachable DNS server
  29747. @return The host name associated with the provided IP
  29748. @throws NamingException
  29749. If a NamingException is encountered]]>
  29750. </doc>
  29751. </method>
  29752. <method name="getIPs" 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="strInterface" type="java.lang.String"/>
  29757. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  29758. <doc>
  29759. <![CDATA[Like {@link DNS#getIPs(String, boolean)}, but returns all
  29760. IPs associated with the given interface and its subinterfaces.]]>
  29761. </doc>
  29762. </method>
  29763. <method name="getIPs" return="java.lang.String[]"
  29764. abstract="false" native="false" synchronized="false"
  29765. static="true" final="false" visibility="public"
  29766. deprecated="not deprecated">
  29767. <param name="strInterface" type="java.lang.String"/>
  29768. <param name="returnSubinterfaces" type="boolean"/>
  29769. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  29770. <doc>
  29771. <![CDATA[Returns all the IPs associated with the provided interface, if any, in
  29772. textual form.
  29773. @param strInterface
  29774. The name of the network interface or subinterface to query
  29775. (eg eth0 or eth0:0) or the string "default"
  29776. @param returnSubinterfaces
  29777. Whether to return IPs associated with subinterfaces of
  29778. the given interface
  29779. @return A string vector of all the IPs associated with the provided
  29780. interface
  29781. @throws UnknownHostException
  29782. If an UnknownHostException is encountered in querying the
  29783. default interface or the given interface can not be found]]>
  29784. </doc>
  29785. </method>
  29786. <method name="getDefaultIP" return="java.lang.String"
  29787. abstract="false" native="false" synchronized="false"
  29788. static="true" final="false" visibility="public"
  29789. deprecated="not deprecated">
  29790. <param name="strInterface" type="java.lang.String"/>
  29791. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  29792. <doc>
  29793. <![CDATA[Returns the first available IP address associated with the provided
  29794. network interface
  29795. @param strInterface
  29796. The name of the network interface or subinterface to query
  29797. (e.g. eth0 or eth0:0) or the string "default"
  29798. @return The IP address in text form
  29799. @throws UnknownHostException
  29800. If one is encountered in querying the default interface]]>
  29801. </doc>
  29802. </method>
  29803. <method name="getHosts" return="java.lang.String[]"
  29804. abstract="false" native="false" synchronized="false"
  29805. static="true" final="false" visibility="public"
  29806. deprecated="not deprecated">
  29807. <param name="strInterface" type="java.lang.String"/>
  29808. <param name="nameserver" type="java.lang.String"/>
  29809. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  29810. <doc>
  29811. <![CDATA[Returns all the host names associated by the provided nameserver with the
  29812. address bound to the specified network interface
  29813. @param strInterface
  29814. The name of the network interface or subinterface to query
  29815. (e.g. eth0 or eth0:0) or the string "default"
  29816. @param nameserver
  29817. The DNS host name
  29818. @return A string vector of all host names associated with the IPs tied to
  29819. the specified interface
  29820. @throws UnknownHostException]]>
  29821. </doc>
  29822. </method>
  29823. <method name="getHosts" return="java.lang.String[]"
  29824. abstract="false" native="false" synchronized="false"
  29825. static="true" final="false" visibility="public"
  29826. deprecated="not deprecated">
  29827. <param name="strInterface" type="java.lang.String"/>
  29828. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  29829. <doc>
  29830. <![CDATA[Returns all the host names associated by the default nameserver with the
  29831. address bound to the specified network interface
  29832. @param strInterface
  29833. The name of the network interface to query (e.g. eth0)
  29834. @return The list of host names associated with IPs bound to the network
  29835. interface
  29836. @throws UnknownHostException
  29837. If one is encountered while querying the deault interface]]>
  29838. </doc>
  29839. </method>
  29840. <method name="getDefaultHost" return="java.lang.String"
  29841. abstract="false" native="false" synchronized="false"
  29842. static="true" final="false" visibility="public"
  29843. deprecated="not deprecated">
  29844. <param name="strInterface" type="java.lang.String"/>
  29845. <param name="nameserver" type="java.lang.String"/>
  29846. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  29847. <doc>
  29848. <![CDATA[Returns the default (first) host name associated by the provided
  29849. nameserver with the address bound to the specified network interface
  29850. @param strInterface
  29851. The name of the network interface to query (e.g. eth0)
  29852. @param nameserver
  29853. The DNS host name
  29854. @return The default host names associated with IPs bound to the network
  29855. interface
  29856. @throws UnknownHostException
  29857. If one is encountered while querying the deault interface]]>
  29858. </doc>
  29859. </method>
  29860. <method name="getDefaultHost" return="java.lang.String"
  29861. abstract="false" native="false" synchronized="false"
  29862. static="true" final="false" visibility="public"
  29863. deprecated="not deprecated">
  29864. <param name="strInterface" 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 default
  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. @return The default host name associated with IPs bound to the network
  29872. interface
  29873. @throws UnknownHostException
  29874. If one is encountered while querying the deault interface]]>
  29875. </doc>
  29876. </method>
  29877. <field name="LOG" type="org.apache.commons.logging.Log"
  29878. transient="false" volatile="false"
  29879. static="true" final="true" visibility="public"
  29880. deprecated="not deprecated">
  29881. </field>
  29882. <doc>
  29883. <![CDATA[A class that provides direct and reverse lookup functionalities, allowing
  29884. the querying of specific network interfaces or nameservers.]]>
  29885. </doc>
  29886. </class>
  29887. <!-- end class org.apache.hadoop.net.DNS -->
  29888. <!-- start interface org.apache.hadoop.net.DNSToSwitchMapping -->
  29889. <interface name="DNSToSwitchMapping" abstract="true"
  29890. static="false" final="false" visibility="public"
  29891. deprecated="not deprecated">
  29892. <method name="resolve" return="java.util.List"
  29893. abstract="false" native="false" synchronized="false"
  29894. static="false" final="false" visibility="public"
  29895. deprecated="not deprecated">
  29896. <param name="names" type="java.util.List"/>
  29897. <doc>
  29898. <![CDATA[Resolves a list of DNS-names/IP-addresses and returns back a list of
  29899. switch information (network paths). One-to-one correspondence must be
  29900. maintained between the elements in the lists.
  29901. Consider an element in the argument list - x.y.com. The switch information
  29902. that is returned must be a network path of the form /foo/rack,
  29903. where / is the root, and 'foo' is the switch where 'rack' is connected.
  29904. Note the hostname/ip-address is not part of the returned path.
  29905. The network topology of the cluster would determine the number of
  29906. components in the network path.
  29907. @param names
  29908. @return list of resolved network paths]]>
  29909. </doc>
  29910. </method>
  29911. <doc>
  29912. <![CDATA[An interface that should be implemented to allow pluggable
  29913. DNS-name/IP-address to RackID resolvers.]]>
  29914. </doc>
  29915. </interface>
  29916. <!-- end interface org.apache.hadoop.net.DNSToSwitchMapping -->
  29917. <!-- start class org.apache.hadoop.net.NetUtils -->
  29918. <class name="NetUtils" extends="java.lang.Object"
  29919. abstract="false"
  29920. static="false" final="false" visibility="public"
  29921. deprecated="not deprecated">
  29922. <constructor name="NetUtils"
  29923. static="false" final="false" visibility="public"
  29924. deprecated="not deprecated">
  29925. </constructor>
  29926. <method name="getSocketFactory" return="javax.net.SocketFactory"
  29927. abstract="false" native="false" synchronized="false"
  29928. static="true" final="false" visibility="public"
  29929. deprecated="not deprecated">
  29930. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  29931. <param name="clazz" type="java.lang.Class"/>
  29932. <doc>
  29933. <![CDATA[Get the socket factory for the given class according to its
  29934. configuration parameter
  29935. <tt>hadoop.rpc.socket.factory.class.&lt;ClassName&gt;</tt>. When no
  29936. such parameter exists then fall back on the default socket factory as
  29937. configured by <tt>hadoop.rpc.socket.factory.class.default</tt>. If
  29938. this default socket factory is not configured, then fall back on the JVM
  29939. default socket factory.
  29940. @param conf the configuration
  29941. @param clazz the class (usually a {@link VersionedProtocol})
  29942. @return a socket factory]]>
  29943. </doc>
  29944. </method>
  29945. <method name="getDefaultSocketFactory" 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. <doc>
  29951. <![CDATA[Get the default socket factory as specified by the configuration
  29952. parameter <tt>hadoop.rpc.socket.factory.default</tt>
  29953. @param conf the configuration
  29954. @return the default socket factory as specified in the configuration or
  29955. the JVM default socket factory if the configuration does not
  29956. contain a default socket factory property.]]>
  29957. </doc>
  29958. </method>
  29959. <method name="getSocketFactoryFromProperty" return="javax.net.SocketFactory"
  29960. abstract="false" native="false" synchronized="false"
  29961. static="true" final="false" visibility="public"
  29962. deprecated="not deprecated">
  29963. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  29964. <param name="propValue" type="java.lang.String"/>
  29965. <doc>
  29966. <![CDATA[Get the socket factory corresponding to the given proxy URI. If the
  29967. given proxy URI corresponds to an absence of configuration parameter,
  29968. returns null. If the URI is malformed raises an exception.
  29969. @param propValue the property which is the class name of the
  29970. SocketFactory to instantiate; assumed non null and non empty.
  29971. @return a socket factory as defined in the property value.]]>
  29972. </doc>
  29973. </method>
  29974. <method name="createSocketAddr" return="java.net.InetSocketAddress"
  29975. abstract="false" native="false" synchronized="false"
  29976. static="true" final="false" visibility="public"
  29977. deprecated="not deprecated">
  29978. <param name="target" type="java.lang.String"/>
  29979. <doc>
  29980. <![CDATA[Util method to build socket addr from either:
  29981. <host>:<post>
  29982. <fs>://<host>:<port>/<path>]]>
  29983. </doc>
  29984. </method>
  29985. <method name="createSocketAddr" return="java.net.InetSocketAddress"
  29986. abstract="false" native="false" synchronized="false"
  29987. static="true" final="false" visibility="public"
  29988. deprecated="not deprecated">
  29989. <param name="target" type="java.lang.String"/>
  29990. <param name="defaultPort" type="int"/>
  29991. <doc>
  29992. <![CDATA[Util method to build socket addr from either:
  29993. <host>
  29994. <host>:<post>
  29995. <fs>://<host>:<port>/<path>]]>
  29996. </doc>
  29997. </method>
  29998. <method name="makeSocketAddr" return="java.net.InetSocketAddress"
  29999. abstract="false" native="false" synchronized="false"
  30000. static="true" final="false" visibility="public"
  30001. deprecated="not deprecated">
  30002. <param name="host" type="java.lang.String"/>
  30003. <param name="port" type="int"/>
  30004. <doc>
  30005. <![CDATA[Create a socket address with the given host and port. The hostname
  30006. might be replaced with another host that was set via
  30007. {@link #addStaticResolution(String, String)}. The value of
  30008. hadoop.security.token.service.use_ip will determine whether the
  30009. standard java host resolver is used, or if the fully qualified resolver
  30010. is used.
  30011. @param host the hostname or IP use to instantiate the object
  30012. @param port the port number
  30013. @return InetSocketAddress]]>
  30014. </doc>
  30015. </method>
  30016. <method name="getCanonicalUri" return="java.net.URI"
  30017. abstract="false" native="false" synchronized="false"
  30018. static="true" final="false" visibility="public"
  30019. deprecated="not deprecated">
  30020. <param name="uri" type="java.net.URI"/>
  30021. <param name="defaultPort" type="int"/>
  30022. <doc>
  30023. <![CDATA[Resolve the uri's hostname and add the default port if not in the uri
  30024. @param uri to resolve
  30025. @param defaultPort if none is given
  30026. @return URI
  30027. @throws UnknownHostException]]>
  30028. </doc>
  30029. </method>
  30030. <method name="getServerAddress" return="java.lang.String"
  30031. abstract="false" native="false" synchronized="false"
  30032. static="true" final="false" visibility="public"
  30033. deprecated="not deprecated">
  30034. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  30035. <param name="oldBindAddressName" type="java.lang.String"/>
  30036. <param name="oldPortName" type="java.lang.String"/>
  30037. <param name="newBindAddressName" type="java.lang.String"/>
  30038. <doc>
  30039. <![CDATA[Handle the transition from pairs of attributes specifying a host and port
  30040. to a single colon separated one.
  30041. @param conf the configuration to check
  30042. @param oldBindAddressName the old address attribute name
  30043. @param oldPortName the old port attribute name
  30044. @param newBindAddressName the new combined name
  30045. @return the complete address from the configuration]]>
  30046. </doc>
  30047. </method>
  30048. <method name="addStaticResolution"
  30049. abstract="false" native="false" synchronized="false"
  30050. static="true" final="false" visibility="public"
  30051. deprecated="not deprecated">
  30052. <param name="host" type="java.lang.String"/>
  30053. <param name="resolvedName" type="java.lang.String"/>
  30054. <doc>
  30055. <![CDATA[Adds a static resolution for host. This can be used for setting up
  30056. hostnames with names that are fake to point to a well known host. For e.g.
  30057. in some testcases we require to have daemons with different hostnames
  30058. running on the same machine. In order to create connections to these
  30059. daemons, one can set up mappings from those hostnames to "localhost".
  30060. {@link NetUtils#getStaticResolution(String)} can be used to query for
  30061. the actual hostname.
  30062. @param host
  30063. @param resolvedName]]>
  30064. </doc>
  30065. </method>
  30066. <method name="getStaticResolution" return="java.lang.String"
  30067. abstract="false" native="false" synchronized="false"
  30068. static="true" final="false" visibility="public"
  30069. deprecated="not deprecated">
  30070. <param name="host" type="java.lang.String"/>
  30071. <doc>
  30072. <![CDATA[Retrieves the resolved name for the passed host. The resolved name must
  30073. have been set earlier using
  30074. {@link NetUtils#addStaticResolution(String, String)}
  30075. @param host
  30076. @return the resolution]]>
  30077. </doc>
  30078. </method>
  30079. <method name="getAllStaticResolutions" return="java.util.List"
  30080. abstract="false" native="false" synchronized="false"
  30081. static="true" final="false" visibility="public"
  30082. deprecated="not deprecated">
  30083. <doc>
  30084. <![CDATA[This is used to get all the resolutions that were added using
  30085. {@link NetUtils#addStaticResolution(String, String)}. The return
  30086. value is a List each element of which contains an array of String
  30087. of the form String[0]=hostname, String[1]=resolved-hostname
  30088. @return the list of resolutions]]>
  30089. </doc>
  30090. </method>
  30091. <method name="getConnectAddress" return="java.net.InetSocketAddress"
  30092. abstract="false" native="false" synchronized="false"
  30093. static="true" final="false" visibility="public"
  30094. deprecated="not deprecated">
  30095. <param name="server" type="org.apache.hadoop.ipc.Server"/>
  30096. <doc>
  30097. <![CDATA[Returns InetSocketAddress that a client can use to
  30098. connect to the server. Server.getListenerAddress() is not correct when
  30099. the server binds to "0.0.0.0". This returns "127.0.0.1:port" when
  30100. the getListenerAddress() returns "0.0.0.0:port".
  30101. @param server
  30102. @return socket address that a client can use to connect to the server.]]>
  30103. </doc>
  30104. </method>
  30105. <method name="getInputStream" return="java.io.InputStream"
  30106. abstract="false" native="false" synchronized="false"
  30107. static="true" final="false" visibility="public"
  30108. deprecated="not deprecated">
  30109. <param name="socket" type="java.net.Socket"/>
  30110. <exception name="IOException" type="java.io.IOException"/>
  30111. <doc>
  30112. <![CDATA[Same as getInputStream(socket, socket.getSoTimeout()).<br><br>
  30113. From documentation for {@link #getInputStream(Socket, long)}:<br>
  30114. Returns InputStream for the socket. If the socket has an associated
  30115. SocketChannel then it returns a
  30116. {@link SocketInputStream} with the given timeout. If the socket does not
  30117. have a channel, {@link Socket#getInputStream()} is returned. In the later
  30118. case, the timeout argument is ignored and the timeout set with
  30119. {@link Socket#setSoTimeout(int)} applies for reads.<br><br>
  30120. Any socket created using socket factories returned by {@link NetUtils},
  30121. must use this interface instead of {@link Socket#getInputStream()}.
  30122. @see #getInputStream(Socket, long)
  30123. @param socket
  30124. @return InputStream for reading from the socket.
  30125. @throws IOException]]>
  30126. </doc>
  30127. </method>
  30128. <method name="getInputStream" return="java.io.InputStream"
  30129. abstract="false" native="false" synchronized="false"
  30130. static="true" final="false" visibility="public"
  30131. deprecated="not deprecated">
  30132. <param name="socket" type="java.net.Socket"/>
  30133. <param name="timeout" type="long"/>
  30134. <exception name="IOException" type="java.io.IOException"/>
  30135. <doc>
  30136. <![CDATA[Returns InputStream for the socket. If the socket has an associated
  30137. SocketChannel then it returns a
  30138. {@link SocketInputStream} with the given timeout. If the socket does not
  30139. have a channel, {@link Socket#getInputStream()} is returned. In the later
  30140. case, the timeout argument is ignored and the timeout set with
  30141. {@link Socket#setSoTimeout(int)} applies for reads.<br><br>
  30142. Any socket created using socket factories returned by {@link NetUtils},
  30143. must use this interface instead of {@link Socket#getInputStream()}.
  30144. @see Socket#getChannel()
  30145. @param socket
  30146. @param timeout timeout in milliseconds. This may not always apply. zero
  30147. for waiting as long as necessary.
  30148. @return InputStream for reading from the socket.
  30149. @throws IOException]]>
  30150. </doc>
  30151. </method>
  30152. <method name="getOutputStream" return="java.io.OutputStream"
  30153. abstract="false" native="false" synchronized="false"
  30154. static="true" final="false" visibility="public"
  30155. deprecated="not deprecated">
  30156. <param name="socket" type="java.net.Socket"/>
  30157. <exception name="IOException" type="java.io.IOException"/>
  30158. <doc>
  30159. <![CDATA[Same as getOutputStream(socket, 0). Timeout of zero implies write will
  30160. wait until data is available.<br><br>
  30161. From documentation for {@link #getOutputStream(Socket, long)} : <br>
  30162. Returns OutputStream for the socket. If the socket has an associated
  30163. SocketChannel then it returns a
  30164. {@link SocketOutputStream} with the given timeout. If the socket does not
  30165. have a channel, {@link Socket#getOutputStream()} is returned. In the later
  30166. case, the timeout argument is ignored and the write will wait until
  30167. data is available.<br><br>
  30168. Any socket created using socket factories returned by {@link NetUtils},
  30169. must use this interface instead of {@link Socket#getOutputStream()}.
  30170. @see #getOutputStream(Socket, long)
  30171. @param socket
  30172. @return OutputStream for writing to the socket.
  30173. @throws IOException]]>
  30174. </doc>
  30175. </method>
  30176. <method name="getOutputStream" return="java.io.OutputStream"
  30177. abstract="false" native="false" synchronized="false"
  30178. static="true" final="false" visibility="public"
  30179. deprecated="not deprecated">
  30180. <param name="socket" type="java.net.Socket"/>
  30181. <param name="timeout" type="long"/>
  30182. <exception name="IOException" type="java.io.IOException"/>
  30183. <doc>
  30184. <![CDATA[Returns OutputStream for the socket. If the socket has an associated
  30185. SocketChannel then it returns a
  30186. {@link SocketOutputStream} with the given timeout. If the socket does not
  30187. have a channel, {@link Socket#getOutputStream()} is returned. In the later
  30188. case, the timeout argument is ignored and the write will wait until
  30189. data is available.<br><br>
  30190. Any socket created using socket factories returned by {@link NetUtils},
  30191. must use this interface instead of {@link Socket#getOutputStream()}.
  30192. @see Socket#getChannel()
  30193. @param socket
  30194. @param timeout timeout in milliseconds. This may not always apply. zero
  30195. for waiting as long as necessary.
  30196. @return OutputStream for writing to the socket.
  30197. @throws IOException]]>
  30198. </doc>
  30199. </method>
  30200. <method name="connect"
  30201. abstract="false" native="false" synchronized="false"
  30202. static="true" final="false" visibility="public"
  30203. deprecated="not deprecated">
  30204. <param name="socket" type="java.net.Socket"/>
  30205. <param name="address" type="java.net.SocketAddress"/>
  30206. <param name="timeout" type="int"/>
  30207. <exception name="IOException" type="java.io.IOException"/>
  30208. <doc>
  30209. <![CDATA[This is a drop-in replacement for
  30210. {@link Socket#connect(SocketAddress, int)}.
  30211. In the case of normal sockets that don't have associated channels, this
  30212. just invokes <code>socket.connect(endpoint, timeout)</code>. If
  30213. <code>socket.getChannel()</code> returns a non-null channel,
  30214. connect is implemented using Hadoop's selectors. This is done mainly
  30215. to avoid Sun's connect implementation from creating thread-local
  30216. selectors, since Hadoop does not have control on when these are closed
  30217. and could end up taking all the available file descriptors.
  30218. @see java.net.Socket#connect(java.net.SocketAddress, int)
  30219. @param socket
  30220. @param address the remote address
  30221. @param timeout timeout in milliseconds]]>
  30222. </doc>
  30223. </method>
  30224. <method name="connect"
  30225. abstract="false" native="false" synchronized="false"
  30226. static="true" final="false" visibility="public"
  30227. deprecated="not deprecated">
  30228. <param name="socket" type="java.net.Socket"/>
  30229. <param name="endpoint" type="java.net.SocketAddress"/>
  30230. <param name="localAddr" type="java.net.SocketAddress"/>
  30231. <param name="timeout" type="int"/>
  30232. <exception name="IOException" type="java.io.IOException"/>
  30233. <doc>
  30234. <![CDATA[Like {@link NetUtils#connect(Socket, SocketAddress, int)} but
  30235. also takes a local address and port to bind the socket to.
  30236. @param socket
  30237. @param endpoint the remote address
  30238. @param localAddr the local address to bind the socket to
  30239. @param timeout timeout in milliseconds]]>
  30240. </doc>
  30241. </method>
  30242. <method name="normalizeHostName" return="java.lang.String"
  30243. abstract="false" native="false" synchronized="false"
  30244. static="true" final="false" visibility="public"
  30245. deprecated="not deprecated">
  30246. <param name="name" type="java.lang.String"/>
  30247. <doc>
  30248. <![CDATA[Given a string representation of a host, return its ip address
  30249. in textual presentation.
  30250. @param name a string representation of a host:
  30251. either a textual representation its IP address or its host name
  30252. @return its IP address in the string format]]>
  30253. </doc>
  30254. </method>
  30255. <method name="normalizeHostNames" return="java.util.List"
  30256. abstract="false" native="false" synchronized="false"
  30257. static="true" final="false" visibility="public"
  30258. deprecated="not deprecated">
  30259. <param name="names" type="java.util.Collection"/>
  30260. <doc>
  30261. <![CDATA[Given a collection of string representation of hosts, return a list of
  30262. corresponding IP addresses in the textual representation.
  30263. @param names a collection of string representations of hosts
  30264. @return a list of corresponding IP addresses in the string format
  30265. @see #normalizeHostName(String)]]>
  30266. </doc>
  30267. </method>
  30268. <method name="verifyHostnames"
  30269. abstract="false" native="false" synchronized="false"
  30270. static="true" final="false" visibility="public"
  30271. deprecated="not deprecated">
  30272. <param name="names" type="java.lang.String[]"/>
  30273. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  30274. <doc>
  30275. <![CDATA[Performs a sanity check on the list of hostnames/IPs to verify they at least
  30276. appear to be valid.
  30277. @param names - List of hostnames/IPs
  30278. @throws UnknownHostException]]>
  30279. </doc>
  30280. </method>
  30281. <method name="getLocalInetAddress" return="java.net.InetAddress"
  30282. abstract="false" native="false" synchronized="false"
  30283. static="true" final="false" visibility="public"
  30284. deprecated="not deprecated">
  30285. <param name="host" type="java.lang.String"/>
  30286. <exception name="SocketException" type="java.net.SocketException"/>
  30287. <doc>
  30288. <![CDATA[Checks if {@code host} is a local host name and return {@link InetAddress}
  30289. corresponding to that address.
  30290. @param host the specified host
  30291. @return a valid local {@link InetAddress} or null
  30292. @throws SocketException if an I/O error occurs]]>
  30293. </doc>
  30294. </method>
  30295. <method name="isValidSubnet" return="boolean"
  30296. abstract="false" native="false" synchronized="false"
  30297. static="true" final="false" visibility="public"
  30298. deprecated="not deprecated">
  30299. <param name="subnet" type="java.lang.String"/>
  30300. <doc>
  30301. <![CDATA[@return true if the given string is a subnet specified
  30302. using CIDR notation, false otherwise]]>
  30303. </doc>
  30304. </method>
  30305. <method name="getIPs" return="java.util.List"
  30306. abstract="false" native="false" synchronized="false"
  30307. static="true" final="false" visibility="public"
  30308. deprecated="not deprecated">
  30309. <param name="subnet" type="java.lang.String"/>
  30310. <param name="returnSubinterfaces" type="boolean"/>
  30311. <doc>
  30312. <![CDATA[Return an InetAddress for each interface that matches the
  30313. given subnet specified using CIDR notation.
  30314. @param subnet subnet specified using CIDR notation
  30315. @param returnSubinterfaces
  30316. whether to return IPs associated with subinterfaces
  30317. @throws IllegalArgumentException if subnet is invalid]]>
  30318. </doc>
  30319. </method>
  30320. </class>
  30321. <!-- end class org.apache.hadoop.net.NetUtils -->
  30322. <!-- start class org.apache.hadoop.net.NetworkTopology -->
  30323. <class name="NetworkTopology" extends="java.lang.Object"
  30324. abstract="false"
  30325. static="false" final="false" visibility="public"
  30326. deprecated="not deprecated">
  30327. <constructor name="NetworkTopology"
  30328. static="false" final="false" visibility="public"
  30329. deprecated="not deprecated">
  30330. </constructor>
  30331. <method name="getInstance" return="org.apache.hadoop.net.NetworkTopology"
  30332. abstract="false" native="false" synchronized="false"
  30333. static="true" final="false" visibility="public"
  30334. deprecated="not deprecated">
  30335. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  30336. <doc>
  30337. <![CDATA[Get an instance of NetworkTopology based on the value of the configuration
  30338. parameter net.topology.impl.
  30339. @param conf the configuration to be used
  30340. @return an instance of NetworkTopology]]>
  30341. </doc>
  30342. </method>
  30343. <method name="add"
  30344. abstract="false" native="false" synchronized="false"
  30345. static="false" final="false" visibility="public"
  30346. deprecated="not deprecated">
  30347. <param name="node" type="org.apache.hadoop.net.Node"/>
  30348. <doc>
  30349. <![CDATA[Add a leaf node
  30350. Update node counter & rack counter if neccessary
  30351. @param node
  30352. node to be added
  30353. @exception IllegalArgumentException if add a node to a leave
  30354. or node to be added is not a leaf]]>
  30355. </doc>
  30356. </method>
  30357. <method name="getNodeForNetworkLocation" return="org.apache.hadoop.net.Node"
  30358. abstract="false" native="false" synchronized="false"
  30359. static="false" final="false" visibility="protected"
  30360. deprecated="not deprecated">
  30361. <param name="node" type="org.apache.hadoop.net.Node"/>
  30362. <doc>
  30363. <![CDATA[Return a reference to the node given its string representation.
  30364. Default implementation delegates to {@link #getNode(String)}.
  30365. <p>To be overridden in subclasses for specific NetworkTopology
  30366. implementations, as alternative to overriding the full {@link #add(Node)}
  30367. method.
  30368. @param node The string representation of this node's network location is
  30369. used to retrieve a Node object.
  30370. @return a reference to the node; null if the node is not in the tree
  30371. @see #add(Node)
  30372. @see #getNode(String)]]>
  30373. </doc>
  30374. </method>
  30375. <method name="remove"
  30376. abstract="false" native="false" synchronized="false"
  30377. static="false" final="false" visibility="public"
  30378. deprecated="not deprecated">
  30379. <param name="node" type="org.apache.hadoop.net.Node"/>
  30380. <doc>
  30381. <![CDATA[Remove a node
  30382. Update node counter & rack counter if neccessary
  30383. @param node
  30384. node to be removed]]>
  30385. </doc>
  30386. </method>
  30387. <method name="contains" return="boolean"
  30388. abstract="false" native="false" synchronized="false"
  30389. static="false" final="false" visibility="public"
  30390. deprecated="not deprecated">
  30391. <param name="node" type="org.apache.hadoop.net.Node"/>
  30392. <doc>
  30393. <![CDATA[Check if the tree contains node <i>node</i>
  30394. @param node
  30395. a node
  30396. @return true if <i>node</i> is already in the tree; false otherwise]]>
  30397. </doc>
  30398. </method>
  30399. <method name="getNode" return="org.apache.hadoop.net.Node"
  30400. abstract="false" native="false" synchronized="false"
  30401. static="false" final="false" visibility="public"
  30402. deprecated="not deprecated">
  30403. <param name="loc" type="java.lang.String"/>
  30404. <doc>
  30405. <![CDATA[Given a string representation of a node, return its reference
  30406. @param loc
  30407. a path-like string representation of a node
  30408. @return a reference to the node; null if the node is not in the tree]]>
  30409. </doc>
  30410. </method>
  30411. <method name="getRack" return="java.lang.String"
  30412. abstract="false" native="false" synchronized="false"
  30413. static="false" final="false" visibility="public"
  30414. deprecated="not deprecated">
  30415. <param name="loc" type="java.lang.String"/>
  30416. <doc>
  30417. <![CDATA[Given a string representation of a rack for a specific network
  30418. location
  30419. To be overridden in subclasses for specific NetworkTopology
  30420. implementations, as alternative to overriding the full
  30421. {@link #getRack(String)} method.
  30422. @param loc
  30423. a path-like string representation of a network location
  30424. @return a rack string]]>
  30425. </doc>
  30426. </method>
  30427. <method name="getNumOfRacks" return="int"
  30428. abstract="false" native="false" synchronized="false"
  30429. static="false" final="false" visibility="public"
  30430. deprecated="not deprecated">
  30431. <doc>
  30432. <![CDATA[Return the total number of racks]]>
  30433. </doc>
  30434. </method>
  30435. <method name="getNumOfLeaves" return="int"
  30436. abstract="false" native="false" synchronized="false"
  30437. static="false" final="false" visibility="public"
  30438. deprecated="not deprecated">
  30439. <doc>
  30440. <![CDATA[Return the total number of nodes]]>
  30441. </doc>
  30442. </method>
  30443. <method name="getDistance" return="int"
  30444. abstract="false" native="false" synchronized="false"
  30445. static="false" final="false" visibility="public"
  30446. deprecated="not deprecated">
  30447. <param name="node1" type="org.apache.hadoop.net.Node"/>
  30448. <param name="node2" type="org.apache.hadoop.net.Node"/>
  30449. <doc>
  30450. <![CDATA[Return the distance between two nodes
  30451. It is assumed that the distance from one node to its parent is 1
  30452. The distance between two nodes is calculated by summing up their distances
  30453. to their closest common ancestor.
  30454. @param node1 one node
  30455. @param node2 another node
  30456. @return the distance between node1 and node2
  30457. node1 or node2 do not belong to the cluster]]>
  30458. </doc>
  30459. </method>
  30460. <method name="isOnSameRack" return="boolean"
  30461. abstract="false" native="false" synchronized="false"
  30462. static="false" final="false" visibility="public"
  30463. deprecated="not deprecated">
  30464. <param name="node1" type="org.apache.hadoop.net.Node"/>
  30465. <param name="node2" type="org.apache.hadoop.net.Node"/>
  30466. <doc>
  30467. <![CDATA[Check if two nodes are on the same rack
  30468. @param node1 one node
  30469. @param node2 another node
  30470. @return true if node1 and node2 are pm the same rack; false otherwise
  30471. @exception IllegalArgumentException when either node1 or node2 is null, or
  30472. node1 or node2 do not belong to the cluster]]>
  30473. </doc>
  30474. </method>
  30475. <method name="isNodeGroupAware" return="boolean"
  30476. abstract="false" native="false" synchronized="false"
  30477. static="false" final="false" visibility="public"
  30478. deprecated="not deprecated">
  30479. <doc>
  30480. <![CDATA[Check if network topology is aware of NodeGroup]]>
  30481. </doc>
  30482. </method>
  30483. <method name="isOnSameNodeGroup" return="boolean"
  30484. abstract="false" native="false" synchronized="false"
  30485. static="false" final="false" visibility="public"
  30486. deprecated="not deprecated">
  30487. <param name="node1" type="org.apache.hadoop.net.Node"/>
  30488. <param name="node2" type="org.apache.hadoop.net.Node"/>
  30489. <doc>
  30490. <![CDATA[Return false directly as not aware of NodeGroup, to be override in sub-class]]>
  30491. </doc>
  30492. </method>
  30493. <method name="isSameParents" return="boolean"
  30494. abstract="false" native="false" synchronized="false"
  30495. static="false" final="false" visibility="protected"
  30496. deprecated="not deprecated">
  30497. <param name="node1" type="org.apache.hadoop.net.Node"/>
  30498. <param name="node2" type="org.apache.hadoop.net.Node"/>
  30499. <doc>
  30500. <![CDATA[Compare the parents of each node for equality
  30501. <p>To be overridden in subclasses for specific NetworkTopology
  30502. implementations, as alternative to overriding the full
  30503. {@link #isOnSameRack(Node, Node)} method.
  30504. @param node1 the first node to compare
  30505. @param node2 the second node to compare
  30506. @return true if their parents are equal, false otherwise
  30507. @see #isOnSameRack(Node, Node)]]>
  30508. </doc>
  30509. </method>
  30510. <method name="chooseRandom" return="org.apache.hadoop.net.Node"
  30511. abstract="false" native="false" synchronized="false"
  30512. static="false" final="false" visibility="public"
  30513. deprecated="not deprecated">
  30514. <param name="scope" type="java.lang.String"/>
  30515. <doc>
  30516. <![CDATA[randomly choose one node from <i>scope</i>
  30517. if scope starts with ~, choose one from the all nodes except for the
  30518. ones in <i>scope</i>; otherwise, choose one from <i>scope</i>
  30519. @param scope range of nodes from which a node will be choosen
  30520. @return the choosen node]]>
  30521. </doc>
  30522. </method>
  30523. <method name="getLeaves" return="java.util.List"
  30524. abstract="false" native="false" synchronized="false"
  30525. static="false" final="false" visibility="public"
  30526. deprecated="not deprecated">
  30527. <param name="scope" type="java.lang.String"/>
  30528. <doc>
  30529. <![CDATA[return leaves in <i>scope</i>
  30530. @param scope a path string
  30531. @return leaves nodes under specific scope]]>
  30532. </doc>
  30533. </method>
  30534. <method name="countNumOfAvailableNodes" return="int"
  30535. abstract="false" native="false" synchronized="false"
  30536. static="false" final="false" visibility="public"
  30537. deprecated="not deprecated">
  30538. <param name="scope" type="java.lang.String"/>
  30539. <param name="excludedNodes" type="java.util.Collection"/>
  30540. <doc>
  30541. <![CDATA[return the number of leaves in <i>scope</i> but not in <i>excludedNodes</i>
  30542. if scope starts with ~, return the number of nodes that are not
  30543. in <i>scope</i> and <i>excludedNodes</i>;
  30544. @param scope a path string that may start with ~
  30545. @param excludedNodes a list of nodes
  30546. @return number of available nodes]]>
  30547. </doc>
  30548. </method>
  30549. <method name="toString" return="java.lang.String"
  30550. abstract="false" native="false" synchronized="false"
  30551. static="false" final="false" visibility="public"
  30552. deprecated="not deprecated">
  30553. <doc>
  30554. <![CDATA[convert a network tree to a string]]>
  30555. </doc>
  30556. </method>
  30557. <method name="getFirstHalf" return="java.lang.String"
  30558. abstract="false" native="false" synchronized="false"
  30559. static="true" final="false" visibility="public"
  30560. deprecated="not deprecated">
  30561. <param name="networkLocation" type="java.lang.String"/>
  30562. <doc>
  30563. <![CDATA[Divide networklocation string into two parts by last separator, and get the
  30564. first part here.
  30565. @param networkLocation
  30566. @return]]>
  30567. </doc>
  30568. </method>
  30569. <method name="getLastHalf" return="java.lang.String"
  30570. abstract="false" native="false" synchronized="false"
  30571. static="true" final="false" visibility="public"
  30572. deprecated="not deprecated">
  30573. <param name="networkLocation" type="java.lang.String"/>
  30574. <doc>
  30575. <![CDATA[Divide networklocation string into two parts by last separator, and get the
  30576. second part here.
  30577. @param networkLocation
  30578. @return]]>
  30579. </doc>
  30580. </method>
  30581. <method name="swap"
  30582. abstract="false" native="false" synchronized="false"
  30583. static="true" final="false" visibility="protected"
  30584. deprecated="not deprecated">
  30585. <param name="nodes" type="org.apache.hadoop.net.Node[]"/>
  30586. <param name="i" type="int"/>
  30587. <param name="j" type="int"/>
  30588. </method>
  30589. <method name="pseudoSortByDistance"
  30590. abstract="false" native="false" synchronized="false"
  30591. static="false" final="false" visibility="public"
  30592. deprecated="not deprecated">
  30593. <param name="reader" type="org.apache.hadoop.net.Node"/>
  30594. <param name="nodes" type="org.apache.hadoop.net.Node[]"/>
  30595. <doc>
  30596. <![CDATA[Sort nodes array by their distances to <i>reader</i>
  30597. It linearly scans the array, if a local node is found, swap it with
  30598. the first element of the array.
  30599. If a local rack node is found, swap it with the first element following
  30600. the local node.
  30601. If neither local node or local rack node is found, put a random replica
  30602. location at postion 0.
  30603. It leaves the rest nodes untouched.]]>
  30604. </doc>
  30605. </method>
  30606. <field name="DEFAULT_RACK" type="java.lang.String"
  30607. transient="false" volatile="false"
  30608. static="true" final="true" visibility="public"
  30609. deprecated="not deprecated">
  30610. </field>
  30611. <field name="DEFAULT_HOST_LEVEL" type="int"
  30612. transient="false" volatile="false"
  30613. static="true" final="true" visibility="public"
  30614. deprecated="not deprecated">
  30615. </field>
  30616. <field name="LOG" type="org.apache.commons.logging.Log"
  30617. transient="false" volatile="false"
  30618. static="true" final="true" visibility="public"
  30619. deprecated="not deprecated">
  30620. </field>
  30621. <field name="numOfRacks" type="int"
  30622. transient="false" volatile="false"
  30623. static="false" final="false" visibility="protected"
  30624. deprecated="not deprecated">
  30625. </field>
  30626. <field name="netlock" type="java.util.concurrent.locks.ReadWriteLock"
  30627. transient="false" volatile="false"
  30628. static="false" final="false" visibility="protected"
  30629. deprecated="not deprecated">
  30630. </field>
  30631. <field name="r" type="java.util.Random"
  30632. transient="false" volatile="false"
  30633. static="true" final="true" visibility="protected"
  30634. deprecated="not deprecated">
  30635. </field>
  30636. <doc>
  30637. <![CDATA[The class represents a cluster of computer with a tree hierarchical
  30638. network topology.
  30639. For example, a cluster may be consists of many data centers filled
  30640. with racks of computers.
  30641. In a network topology, leaves represent data nodes (computers) and inner
  30642. nodes represent switches/routers that manage traffic in/out of data centers
  30643. or racks.]]>
  30644. </doc>
  30645. </class>
  30646. <!-- end class org.apache.hadoop.net.NetworkTopology -->
  30647. <!-- start class org.apache.hadoop.net.NetworkTopology.InvalidTopologyException -->
  30648. <class name="NetworkTopology.InvalidTopologyException" extends="java.lang.RuntimeException"
  30649. abstract="false"
  30650. static="true" final="false" visibility="public"
  30651. deprecated="not deprecated">
  30652. <constructor name="NetworkTopology.InvalidTopologyException" type="java.lang.String"
  30653. static="false" final="false" visibility="public"
  30654. deprecated="not deprecated">
  30655. </constructor>
  30656. </class>
  30657. <!-- end class org.apache.hadoop.net.NetworkTopology.InvalidTopologyException -->
  30658. <!-- start class org.apache.hadoop.net.NetworkTopologyWithNodeGroup -->
  30659. <class name="NetworkTopologyWithNodeGroup" extends="org.apache.hadoop.net.NetworkTopology"
  30660. abstract="false"
  30661. static="false" final="false" visibility="public"
  30662. deprecated="not deprecated">
  30663. <constructor name="NetworkTopologyWithNodeGroup"
  30664. static="false" final="false" visibility="public"
  30665. deprecated="not deprecated">
  30666. </constructor>
  30667. <method name="getNodeForNetworkLocation" return="org.apache.hadoop.net.Node"
  30668. abstract="false" native="false" synchronized="false"
  30669. static="false" final="false" visibility="protected"
  30670. deprecated="not deprecated">
  30671. <param name="node" type="org.apache.hadoop.net.Node"/>
  30672. </method>
  30673. <method name="getRack" return="java.lang.String"
  30674. abstract="false" native="false" synchronized="false"
  30675. static="false" final="false" visibility="public"
  30676. deprecated="not deprecated">
  30677. <param name="loc" type="java.lang.String"/>
  30678. </method>
  30679. <method name="getNodeGroup" return="java.lang.String"
  30680. abstract="false" native="false" synchronized="false"
  30681. static="false" final="false" visibility="public"
  30682. deprecated="not deprecated">
  30683. <param name="loc" type="java.lang.String"/>
  30684. <doc>
  30685. <![CDATA[Given a string representation of a node group for a specific network
  30686. location
  30687. @param loc
  30688. a path-like string representation of a network location
  30689. @return a node group string]]>
  30690. </doc>
  30691. </method>
  30692. <method name="isOnSameRack" return="boolean"
  30693. abstract="false" native="false" synchronized="false"
  30694. static="false" final="false" visibility="public"
  30695. deprecated="not deprecated">
  30696. <param name="node1" type="org.apache.hadoop.net.Node"/>
  30697. <param name="node2" type="org.apache.hadoop.net.Node"/>
  30698. </method>
  30699. <method name="isOnSameNodeGroup" return="boolean"
  30700. abstract="false" native="false" synchronized="false"
  30701. static="false" final="false" visibility="public"
  30702. deprecated="not deprecated">
  30703. <param name="node1" type="org.apache.hadoop.net.Node"/>
  30704. <param name="node2" type="org.apache.hadoop.net.Node"/>
  30705. <doc>
  30706. <![CDATA[Check if two nodes are on the same node group (hypervisor) The
  30707. assumption here is: each nodes are leaf nodes.
  30708. @param node1
  30709. one node (can be null)
  30710. @param node2
  30711. another node (can be null)
  30712. @return true if node1 and node2 are on the same node group; false
  30713. otherwise
  30714. @exception IllegalArgumentException
  30715. when either node1 or node2 is null, or node1 or node2 do
  30716. not belong to the cluster]]>
  30717. </doc>
  30718. </method>
  30719. <method name="isNodeGroupAware" return="boolean"
  30720. abstract="false" native="false" synchronized="false"
  30721. static="false" final="false" visibility="public"
  30722. deprecated="not deprecated">
  30723. <doc>
  30724. <![CDATA[Check if network topology is aware of NodeGroup]]>
  30725. </doc>
  30726. </method>
  30727. <method name="add"
  30728. abstract="false" native="false" synchronized="false"
  30729. static="false" final="false" visibility="public"
  30730. deprecated="not deprecated">
  30731. <param name="node" type="org.apache.hadoop.net.Node"/>
  30732. <doc>
  30733. <![CDATA[Add a leaf node
  30734. Update node counter & rack counter if necessary
  30735. @param node node to be added; can be null
  30736. @exception IllegalArgumentException if add a node to a leave
  30737. or node to be added is not a leaf]]>
  30738. </doc>
  30739. </method>
  30740. <method name="remove"
  30741. abstract="false" native="false" synchronized="false"
  30742. static="false" final="false" visibility="public"
  30743. deprecated="not deprecated">
  30744. <param name="node" type="org.apache.hadoop.net.Node"/>
  30745. <doc>
  30746. <![CDATA[Remove a node
  30747. Update node counter and rack counter if necessary
  30748. @param node node to be removed; can be null]]>
  30749. </doc>
  30750. </method>
  30751. <method name="pseudoSortByDistance"
  30752. abstract="false" native="false" synchronized="false"
  30753. static="false" final="false" visibility="public"
  30754. deprecated="not deprecated">
  30755. <param name="reader" type="org.apache.hadoop.net.Node"/>
  30756. <param name="nodes" type="org.apache.hadoop.net.Node[]"/>
  30757. <doc>
  30758. <![CDATA[Sort nodes array by their distances to <i>reader</i>
  30759. It linearly scans the array, if a local node is found, swap it with
  30760. the first element of the array.
  30761. If a local node group node is found, swap it with the first element
  30762. following the local node.
  30763. If a local rack node is found, swap it with the first element following
  30764. the local node group node.
  30765. If neither local node, node group node or local rack node is found, put a
  30766. random replica location at position 0.
  30767. It leaves the rest nodes untouched.
  30768. @param reader the node that wishes to read a block from one of the nodes
  30769. @param nodes the list of nodes containing data for the reader]]>
  30770. </doc>
  30771. </method>
  30772. <field name="DEFAULT_NODEGROUP" type="java.lang.String"
  30773. transient="false" volatile="false"
  30774. static="true" final="true" visibility="public"
  30775. deprecated="not deprecated">
  30776. </field>
  30777. <doc>
  30778. <![CDATA[The class extends NetworkTopology to represents a cluster of computer with
  30779. a 4-layers hierarchical network topology.
  30780. In this network topology, leaves represent data nodes (computers) and inner
  30781. nodes represent switches/routers that manage traffic in/out of data centers,
  30782. racks or physical host (with virtual switch).
  30783. @see NetworkTopology]]>
  30784. </doc>
  30785. </class>
  30786. <!-- end class org.apache.hadoop.net.NetworkTopologyWithNodeGroup -->
  30787. <!-- start interface org.apache.hadoop.net.Node -->
  30788. <interface name="Node" abstract="true"
  30789. static="false" final="false" visibility="public"
  30790. deprecated="not deprecated">
  30791. <method name="getNetworkLocation" return="java.lang.String"
  30792. abstract="false" native="false" synchronized="false"
  30793. static="false" final="false" visibility="public"
  30794. deprecated="not deprecated">
  30795. <doc>
  30796. <![CDATA[Return the string representation of this node's network location]]>
  30797. </doc>
  30798. </method>
  30799. <method name="setNetworkLocation"
  30800. abstract="false" native="false" synchronized="false"
  30801. static="false" final="false" visibility="public"
  30802. deprecated="not deprecated">
  30803. <param name="location" type="java.lang.String"/>
  30804. <doc>
  30805. <![CDATA[Set the node's network location]]>
  30806. </doc>
  30807. </method>
  30808. <method name="getName" return="java.lang.String"
  30809. abstract="false" native="false" synchronized="false"
  30810. static="false" final="false" visibility="public"
  30811. deprecated="not deprecated">
  30812. <doc>
  30813. <![CDATA[Return this node's name]]>
  30814. </doc>
  30815. </method>
  30816. <method name="getParent" return="org.apache.hadoop.net.Node"
  30817. abstract="false" native="false" synchronized="false"
  30818. static="false" final="false" visibility="public"
  30819. deprecated="not deprecated">
  30820. <doc>
  30821. <![CDATA[Return this node's parent]]>
  30822. </doc>
  30823. </method>
  30824. <method name="setParent"
  30825. abstract="false" native="false" synchronized="false"
  30826. static="false" final="false" visibility="public"
  30827. deprecated="not deprecated">
  30828. <param name="parent" type="org.apache.hadoop.net.Node"/>
  30829. <doc>
  30830. <![CDATA[Set this node's parent]]>
  30831. </doc>
  30832. </method>
  30833. <method name="getLevel" return="int"
  30834. abstract="false" native="false" synchronized="false"
  30835. static="false" final="false" visibility="public"
  30836. deprecated="not deprecated">
  30837. <doc>
  30838. <![CDATA[Return this node's level in the tree.
  30839. E.g. the root of a tree returns 0 and its children return 1]]>
  30840. </doc>
  30841. </method>
  30842. <method name="setLevel"
  30843. abstract="false" native="false" synchronized="false"
  30844. static="false" final="false" visibility="public"
  30845. deprecated="not deprecated">
  30846. <param name="i" type="int"/>
  30847. <doc>
  30848. <![CDATA[Set this node's level in the tree.]]>
  30849. </doc>
  30850. </method>
  30851. <doc>
  30852. <![CDATA[The interface defines a node in a network topology.
  30853. A node may be a leave representing a data node or an inner
  30854. node representing a datacenter or rack.
  30855. Each data has a name and its location in the network is
  30856. decided by a string with syntax similar to a file name.
  30857. For example, a data node's name is hostname:port# and if it's located at
  30858. rack "orange" in datacenter "dog", the string representation of its
  30859. network location is /dog/orange]]>
  30860. </doc>
  30861. </interface>
  30862. <!-- end interface org.apache.hadoop.net.Node -->
  30863. <!-- start class org.apache.hadoop.net.NodeBase -->
  30864. <class name="NodeBase" extends="java.lang.Object"
  30865. abstract="false"
  30866. static="false" final="false" visibility="public"
  30867. deprecated="not deprecated">
  30868. <implements name="org.apache.hadoop.net.Node"/>
  30869. <constructor name="NodeBase"
  30870. static="false" final="false" visibility="public"
  30871. deprecated="not deprecated">
  30872. <doc>
  30873. <![CDATA[Default constructor]]>
  30874. </doc>
  30875. </constructor>
  30876. <constructor name="NodeBase" type="java.lang.String"
  30877. static="false" final="false" visibility="public"
  30878. deprecated="not deprecated">
  30879. <doc>
  30880. <![CDATA[Construct a node from its path
  30881. @param path
  30882. a concatenation of this node's location, the path seperator, and its name]]>
  30883. </doc>
  30884. </constructor>
  30885. <constructor name="NodeBase" type="java.lang.String, java.lang.String"
  30886. static="false" final="false" visibility="public"
  30887. deprecated="not deprecated">
  30888. <doc>
  30889. <![CDATA[Construct a node from its name and its location
  30890. @param name this node's name
  30891. @param location this node's location]]>
  30892. </doc>
  30893. </constructor>
  30894. <constructor name="NodeBase" type="java.lang.String, java.lang.String, org.apache.hadoop.net.Node, int"
  30895. static="false" final="false" visibility="public"
  30896. deprecated="not deprecated">
  30897. <doc>
  30898. <![CDATA[Construct a node from its name and its location
  30899. @param name this node's name
  30900. @param location this node's location
  30901. @param parent this node's parent node
  30902. @param level this node's level in the tree]]>
  30903. </doc>
  30904. </constructor>
  30905. <method name="getName" return="java.lang.String"
  30906. abstract="false" native="false" synchronized="false"
  30907. static="false" final="false" visibility="public"
  30908. deprecated="not deprecated">
  30909. <doc>
  30910. <![CDATA[Return this node's name]]>
  30911. </doc>
  30912. </method>
  30913. <method name="getNetworkLocation" return="java.lang.String"
  30914. abstract="false" native="false" synchronized="false"
  30915. static="false" final="false" visibility="public"
  30916. deprecated="not deprecated">
  30917. <doc>
  30918. <![CDATA[Return this node's network location]]>
  30919. </doc>
  30920. </method>
  30921. <method name="setNetworkLocation"
  30922. abstract="false" native="false" synchronized="false"
  30923. static="false" final="false" visibility="public"
  30924. deprecated="not deprecated">
  30925. <param name="location" type="java.lang.String"/>
  30926. <doc>
  30927. <![CDATA[Set this node's network location]]>
  30928. </doc>
  30929. </method>
  30930. <method name="getPath" return="java.lang.String"
  30931. abstract="false" native="false" synchronized="false"
  30932. static="true" final="false" visibility="public"
  30933. deprecated="not deprecated">
  30934. <param name="node" type="org.apache.hadoop.net.Node"/>
  30935. <doc>
  30936. <![CDATA[Return this node's path]]>
  30937. </doc>
  30938. </method>
  30939. <method name="toString" return="java.lang.String"
  30940. abstract="false" native="false" synchronized="false"
  30941. static="false" final="false" visibility="public"
  30942. deprecated="not deprecated">
  30943. <doc>
  30944. <![CDATA[Return this node's string representation]]>
  30945. </doc>
  30946. </method>
  30947. <method name="normalize" return="java.lang.String"
  30948. abstract="false" native="false" synchronized="false"
  30949. static="true" final="false" visibility="public"
  30950. deprecated="not deprecated">
  30951. <param name="path" type="java.lang.String"/>
  30952. <doc>
  30953. <![CDATA[Normalize a path]]>
  30954. </doc>
  30955. </method>
  30956. <method name="getParent" return="org.apache.hadoop.net.Node"
  30957. abstract="false" native="false" synchronized="false"
  30958. static="false" final="false" visibility="public"
  30959. deprecated="not deprecated">
  30960. <doc>
  30961. <![CDATA[Return this node's parent]]>
  30962. </doc>
  30963. </method>
  30964. <method name="setParent"
  30965. abstract="false" native="false" synchronized="false"
  30966. static="false" final="false" visibility="public"
  30967. deprecated="not deprecated">
  30968. <param name="parent" type="org.apache.hadoop.net.Node"/>
  30969. <doc>
  30970. <![CDATA[Set this node's parent]]>
  30971. </doc>
  30972. </method>
  30973. <method name="getLevel" return="int"
  30974. abstract="false" native="false" synchronized="false"
  30975. static="false" final="false" visibility="public"
  30976. deprecated="not deprecated">
  30977. <doc>
  30978. <![CDATA[Return this node's level in the tree.
  30979. E.g. the root of a tree returns 0 and its children return 1]]>
  30980. </doc>
  30981. </method>
  30982. <method name="setLevel"
  30983. abstract="false" native="false" synchronized="false"
  30984. static="false" final="false" visibility="public"
  30985. deprecated="not deprecated">
  30986. <param name="level" type="int"/>
  30987. <doc>
  30988. <![CDATA[Set this node's level in the tree]]>
  30989. </doc>
  30990. </method>
  30991. <field name="PATH_SEPARATOR" type="char"
  30992. transient="false" volatile="false"
  30993. static="true" final="true" visibility="public"
  30994. deprecated="not deprecated">
  30995. </field>
  30996. <field name="PATH_SEPARATOR_STR" type="java.lang.String"
  30997. transient="false" volatile="false"
  30998. static="true" final="true" visibility="public"
  30999. deprecated="not deprecated">
  31000. </field>
  31001. <field name="ROOT" type="java.lang.String"
  31002. transient="false" volatile="false"
  31003. static="true" final="true" visibility="public"
  31004. deprecated="not deprecated">
  31005. </field>
  31006. <field name="name" type="java.lang.String"
  31007. transient="false" volatile="false"
  31008. static="false" final="false" visibility="protected"
  31009. deprecated="not deprecated">
  31010. </field>
  31011. <field name="location" type="java.lang.String"
  31012. transient="false" volatile="false"
  31013. static="false" final="false" visibility="protected"
  31014. deprecated="not deprecated">
  31015. </field>
  31016. <field name="level" type="int"
  31017. transient="false" volatile="false"
  31018. static="false" final="false" visibility="protected"
  31019. deprecated="not deprecated">
  31020. </field>
  31021. <field name="parent" type="org.apache.hadoop.net.Node"
  31022. transient="false" volatile="false"
  31023. static="false" final="false" visibility="protected"
  31024. deprecated="not deprecated">
  31025. </field>
  31026. <doc>
  31027. <![CDATA[A base class that implements interface Node]]>
  31028. </doc>
  31029. </class>
  31030. <!-- end class org.apache.hadoop.net.NodeBase -->
  31031. <!-- start class org.apache.hadoop.net.ScriptBasedMapping -->
  31032. <class name="ScriptBasedMapping" extends="org.apache.hadoop.net.CachedDNSToSwitchMapping"
  31033. abstract="false"
  31034. static="false" final="true" visibility="public"
  31035. deprecated="not deprecated">
  31036. <implements name="org.apache.hadoop.conf.Configurable"/>
  31037. <constructor name="ScriptBasedMapping"
  31038. static="false" final="false" visibility="public"
  31039. deprecated="not deprecated">
  31040. </constructor>
  31041. <constructor name="ScriptBasedMapping" type="org.apache.hadoop.conf.Configuration"
  31042. static="false" final="false" visibility="public"
  31043. deprecated="not deprecated">
  31044. </constructor>
  31045. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  31046. abstract="false" native="false" synchronized="false"
  31047. static="false" final="false" visibility="public"
  31048. deprecated="not deprecated">
  31049. </method>
  31050. <method name="setConf"
  31051. abstract="false" native="false" synchronized="false"
  31052. static="false" final="false" visibility="public"
  31053. deprecated="not deprecated">
  31054. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  31055. </method>
  31056. <doc>
  31057. <![CDATA[This class implements the {@link DNSToSwitchMapping} interface using a
  31058. script configured via topology.script.file.name .]]>
  31059. </doc>
  31060. </class>
  31061. <!-- end class org.apache.hadoop.net.ScriptBasedMapping -->
  31062. <!-- start class org.apache.hadoop.net.SocketInputStream -->
  31063. <class name="SocketInputStream" extends="java.io.InputStream"
  31064. abstract="false"
  31065. static="false" final="false" visibility="public"
  31066. deprecated="not deprecated">
  31067. <implements name="java.nio.channels.ReadableByteChannel"/>
  31068. <constructor name="SocketInputStream" type="java.nio.channels.ReadableByteChannel, long"
  31069. static="false" final="false" visibility="public"
  31070. deprecated="not deprecated">
  31071. <exception name="IOException" type="java.io.IOException"/>
  31072. <doc>
  31073. <![CDATA[Create a new input stream with the given timeout. If the timeout
  31074. is zero, it will be treated as infinite timeout. The socket's
  31075. channel will be configured to be non-blocking.
  31076. @param channel
  31077. Channel for reading, should also be a {@link SelectableChannel}.
  31078. The channel will be configured to be non-blocking.
  31079. @param timeout timeout in milliseconds. must not be negative.
  31080. @throws IOException]]>
  31081. </doc>
  31082. </constructor>
  31083. <constructor name="SocketInputStream" type="java.net.Socket, long"
  31084. static="false" final="false" visibility="public"
  31085. deprecated="not deprecated">
  31086. <exception name="IOException" type="java.io.IOException"/>
  31087. <doc>
  31088. <![CDATA[Same as SocketInputStream(socket.getChannel(), timeout): <br><br>
  31089. Create a new input stream with the given timeout. If the timeout
  31090. is zero, it will be treated as infinite timeout. The socket's
  31091. channel will be configured to be non-blocking.
  31092. @see SocketInputStream#SocketInputStream(ReadableByteChannel, long)
  31093. @param socket should have a channel associated with it.
  31094. @param timeout timeout timeout in milliseconds. must not be negative.
  31095. @throws IOException]]>
  31096. </doc>
  31097. </constructor>
  31098. <constructor name="SocketInputStream" type="java.net.Socket"
  31099. static="false" final="false" visibility="public"
  31100. deprecated="not deprecated">
  31101. <exception name="IOException" type="java.io.IOException"/>
  31102. <doc>
  31103. <![CDATA[Same as SocketInputStream(socket.getChannel(), socket.getSoTimeout())
  31104. :<br><br>
  31105. Create a new input stream with the given timeout. If the timeout
  31106. is zero, it will be treated as infinite timeout. The socket's
  31107. channel will be configured to be non-blocking.
  31108. @see SocketInputStream#SocketInputStream(ReadableByteChannel, long)
  31109. @param socket should have a channel associated with it.
  31110. @throws IOException]]>
  31111. </doc>
  31112. </constructor>
  31113. <method name="read" return="int"
  31114. abstract="false" native="false" synchronized="false"
  31115. static="false" final="false" visibility="public"
  31116. deprecated="not deprecated">
  31117. <exception name="IOException" type="java.io.IOException"/>
  31118. </method>
  31119. <method name="read" return="int"
  31120. abstract="false" native="false" synchronized="false"
  31121. static="false" final="false" visibility="public"
  31122. deprecated="not deprecated">
  31123. <param name="b" type="byte[]"/>
  31124. <param name="off" type="int"/>
  31125. <param name="len" type="int"/>
  31126. <exception name="IOException" type="java.io.IOException"/>
  31127. </method>
  31128. <method name="close"
  31129. abstract="false" native="false" synchronized="true"
  31130. static="false" final="false" visibility="public"
  31131. deprecated="not deprecated">
  31132. <exception name="IOException" type="java.io.IOException"/>
  31133. </method>
  31134. <method name="getChannel" return="java.nio.channels.ReadableByteChannel"
  31135. abstract="false" native="false" synchronized="false"
  31136. static="false" final="false" visibility="public"
  31137. deprecated="not deprecated">
  31138. <doc>
  31139. <![CDATA[Returns underlying channel used by inputstream.
  31140. This is useful in certain cases like channel for
  31141. {@link FileChannel#transferFrom(ReadableByteChannel, long, long)}.]]>
  31142. </doc>
  31143. </method>
  31144. <method name="isOpen" return="boolean"
  31145. abstract="false" native="false" synchronized="false"
  31146. static="false" final="false" visibility="public"
  31147. deprecated="not deprecated">
  31148. </method>
  31149. <method name="read" return="int"
  31150. abstract="false" native="false" synchronized="false"
  31151. static="false" final="false" visibility="public"
  31152. deprecated="not deprecated">
  31153. <param name="dst" type="java.nio.ByteBuffer"/>
  31154. <exception name="IOException" type="java.io.IOException"/>
  31155. </method>
  31156. <method name="waitForReadable"
  31157. abstract="false" native="false" synchronized="false"
  31158. static="false" final="false" visibility="public"
  31159. deprecated="not deprecated">
  31160. <exception name="IOException" type="java.io.IOException"/>
  31161. <doc>
  31162. <![CDATA[waits for the underlying channel to be ready for reading.
  31163. The timeout specified for this stream applies to this wait.
  31164. @throws SocketTimeoutException
  31165. if select on the channel times out.
  31166. @throws IOException
  31167. if any other I/O error occurs.]]>
  31168. </doc>
  31169. </method>
  31170. <doc>
  31171. <![CDATA[This implements an input stream that can have a timeout while reading.
  31172. This sets non-blocking flag on the socket channel.
  31173. So after create this object, read() on
  31174. {@link Socket#getInputStream()} and write() on
  31175. {@link Socket#getOutputStream()} for the associated socket will throw
  31176. IllegalBlockingModeException.
  31177. Please use {@link SocketOutputStream} for writing.]]>
  31178. </doc>
  31179. </class>
  31180. <!-- end class org.apache.hadoop.net.SocketInputStream -->
  31181. <!-- start class org.apache.hadoop.net.SocketOutputStream -->
  31182. <class name="SocketOutputStream" extends="java.io.OutputStream"
  31183. abstract="false"
  31184. static="false" final="false" visibility="public"
  31185. deprecated="not deprecated">
  31186. <implements name="java.nio.channels.WritableByteChannel"/>
  31187. <constructor name="SocketOutputStream" type="java.nio.channels.WritableByteChannel, long"
  31188. static="false" final="false" visibility="public"
  31189. deprecated="not deprecated">
  31190. <exception name="IOException" type="java.io.IOException"/>
  31191. <doc>
  31192. <![CDATA[Create a new ouput stream with the given timeout. If the timeout
  31193. is zero, it will be treated as infinite timeout. The socket's
  31194. channel will be configured to be non-blocking.
  31195. @param channel
  31196. Channel for writing, should also be a {@link SelectableChannel}.
  31197. The channel will be configured to be non-blocking.
  31198. @param timeout timeout in milliseconds. must not be negative.
  31199. @throws IOException]]>
  31200. </doc>
  31201. </constructor>
  31202. <constructor name="SocketOutputStream" type="java.net.Socket, long"
  31203. static="false" final="false" visibility="public"
  31204. deprecated="not deprecated">
  31205. <exception name="IOException" type="java.io.IOException"/>
  31206. <doc>
  31207. <![CDATA[Same as SocketOutputStream(socket.getChannel(), timeout):<br><br>
  31208. Create a new ouput stream with the given timeout. If the timeout
  31209. is zero, it will be treated as infinite timeout. The socket's
  31210. channel will be configured to be non-blocking.
  31211. @see SocketOutputStream#SocketOutputStream(WritableByteChannel, long)
  31212. @param socket should have a channel associated with it.
  31213. @param timeout timeout timeout in milliseconds. must not be negative.
  31214. @throws IOException]]>
  31215. </doc>
  31216. </constructor>
  31217. <method name="write"
  31218. abstract="false" native="false" synchronized="false"
  31219. static="false" final="false" visibility="public"
  31220. deprecated="not deprecated">
  31221. <param name="b" type="int"/>
  31222. <exception name="IOException" type="java.io.IOException"/>
  31223. </method>
  31224. <method name="write"
  31225. abstract="false" native="false" synchronized="false"
  31226. static="false" final="false" visibility="public"
  31227. deprecated="not deprecated">
  31228. <param name="b" type="byte[]"/>
  31229. <param name="off" type="int"/>
  31230. <param name="len" type="int"/>
  31231. <exception name="IOException" type="java.io.IOException"/>
  31232. </method>
  31233. <method name="close"
  31234. abstract="false" native="false" synchronized="true"
  31235. static="false" final="false" visibility="public"
  31236. deprecated="not deprecated">
  31237. <exception name="IOException" type="java.io.IOException"/>
  31238. </method>
  31239. <method name="getChannel" return="java.nio.channels.WritableByteChannel"
  31240. abstract="false" native="false" synchronized="false"
  31241. static="false" final="false" visibility="public"
  31242. deprecated="not deprecated">
  31243. <doc>
  31244. <![CDATA[Returns underlying channel used by this stream.
  31245. This is useful in certain cases like channel for
  31246. {@link FileChannel#transferTo(long, long, WritableByteChannel)}]]>
  31247. </doc>
  31248. </method>
  31249. <method name="isOpen" return="boolean"
  31250. abstract="false" native="false" synchronized="false"
  31251. static="false" final="false" visibility="public"
  31252. deprecated="not deprecated">
  31253. </method>
  31254. <method name="write" return="int"
  31255. abstract="false" native="false" synchronized="false"
  31256. static="false" final="false" visibility="public"
  31257. deprecated="not deprecated">
  31258. <param name="src" type="java.nio.ByteBuffer"/>
  31259. <exception name="IOException" type="java.io.IOException"/>
  31260. </method>
  31261. <method name="waitForWritable"
  31262. abstract="false" native="false" synchronized="false"
  31263. static="false" final="false" visibility="public"
  31264. deprecated="not deprecated">
  31265. <exception name="IOException" type="java.io.IOException"/>
  31266. <doc>
  31267. <![CDATA[waits for the underlying channel to be ready for writing.
  31268. The timeout specified for this stream applies to this wait.
  31269. @throws SocketTimeoutException
  31270. if select on the channel times out.
  31271. @throws IOException
  31272. if any other I/O error occurs.]]>
  31273. </doc>
  31274. </method>
  31275. <method name="transferToFully"
  31276. abstract="false" native="false" synchronized="false"
  31277. static="false" final="false" visibility="public"
  31278. deprecated="not deprecated">
  31279. <param name="fileCh" type="java.nio.channels.FileChannel"/>
  31280. <param name="position" type="long"/>
  31281. <param name="count" type="int"/>
  31282. <exception name="IOException" type="java.io.IOException"/>
  31283. <doc>
  31284. <![CDATA[Transfers data from FileChannel using
  31285. {@link FileChannel#transferTo(long, long, WritableByteChannel)}.
  31286. Similar to readFully(), this waits till requested amount of
  31287. data is transfered.
  31288. @param fileCh FileChannel to transfer data from.
  31289. @param position position within the channel where the transfer begins
  31290. @param count number of bytes to transfer.
  31291. @throws EOFException
  31292. If end of input file is reached before requested number of
  31293. bytes are transfered.
  31294. @throws SocketTimeoutException
  31295. If this channel blocks transfer longer than timeout for
  31296. this stream.
  31297. @throws IOException Includes any exception thrown by
  31298. {@link FileChannel#transferTo(long, long, WritableByteChannel)}.]]>
  31299. </doc>
  31300. </method>
  31301. <doc>
  31302. <![CDATA[This implements an output stream that can have a timeout while writing.
  31303. This sets non-blocking flag on the socket channel.
  31304. So after creating this object , read() on
  31305. {@link Socket#getInputStream()} and write() on
  31306. {@link Socket#getOutputStream()} on the associated socket will throw
  31307. llegalBlockingModeException.
  31308. Please use {@link SocketInputStream} for reading.]]>
  31309. </doc>
  31310. </class>
  31311. <!-- end class org.apache.hadoop.net.SocketOutputStream -->
  31312. <!-- start class org.apache.hadoop.net.SocksSocketFactory -->
  31313. <class name="SocksSocketFactory" extends="javax.net.SocketFactory"
  31314. abstract="false"
  31315. static="false" final="false" visibility="public"
  31316. deprecated="not deprecated">
  31317. <implements name="org.apache.hadoop.conf.Configurable"/>
  31318. <constructor name="SocksSocketFactory"
  31319. static="false" final="false" visibility="public"
  31320. deprecated="not deprecated">
  31321. <doc>
  31322. <![CDATA[Default empty constructor (for use with the reflection API).]]>
  31323. </doc>
  31324. </constructor>
  31325. <constructor name="SocksSocketFactory" type="java.net.Proxy"
  31326. static="false" final="false" visibility="public"
  31327. deprecated="not deprecated">
  31328. <doc>
  31329. <![CDATA[Constructor with a supplied Proxy
  31330. @param proxy the proxy to use to create sockets]]>
  31331. </doc>
  31332. </constructor>
  31333. <method name="createSocket" return="java.net.Socket"
  31334. abstract="false" native="false" synchronized="false"
  31335. static="false" final="false" visibility="public"
  31336. deprecated="not deprecated">
  31337. <exception name="IOException" type="java.io.IOException"/>
  31338. </method>
  31339. <method name="createSocket" return="java.net.Socket"
  31340. abstract="false" native="false" synchronized="false"
  31341. static="false" final="false" visibility="public"
  31342. deprecated="not deprecated">
  31343. <param name="addr" type="java.net.InetAddress"/>
  31344. <param name="port" type="int"/>
  31345. <exception name="IOException" type="java.io.IOException"/>
  31346. </method>
  31347. <method name="createSocket" return="java.net.Socket"
  31348. abstract="false" native="false" synchronized="false"
  31349. static="false" final="false" visibility="public"
  31350. deprecated="not deprecated">
  31351. <param name="addr" type="java.net.InetAddress"/>
  31352. <param name="port" type="int"/>
  31353. <param name="localHostAddr" type="java.net.InetAddress"/>
  31354. <param name="localPort" type="int"/>
  31355. <exception name="IOException" type="java.io.IOException"/>
  31356. </method>
  31357. <method name="createSocket" return="java.net.Socket"
  31358. abstract="false" native="false" synchronized="false"
  31359. static="false" final="false" visibility="public"
  31360. deprecated="not deprecated">
  31361. <param name="host" type="java.lang.String"/>
  31362. <param name="port" type="int"/>
  31363. <exception name="IOException" type="java.io.IOException"/>
  31364. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  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="host" type="java.lang.String"/>
  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. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  31376. </method>
  31377. <method name="hashCode" return="int"
  31378. abstract="false" native="false" synchronized="false"
  31379. static="false" final="false" visibility="public"
  31380. deprecated="not deprecated">
  31381. </method>
  31382. <method name="equals" return="boolean"
  31383. abstract="false" native="false" synchronized="false"
  31384. static="false" final="false" visibility="public"
  31385. deprecated="not deprecated">
  31386. <param name="obj" type="java.lang.Object"/>
  31387. </method>
  31388. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  31389. abstract="false" native="false" synchronized="false"
  31390. static="false" final="false" visibility="public"
  31391. deprecated="not deprecated">
  31392. </method>
  31393. <method name="setConf"
  31394. abstract="false" native="false" synchronized="false"
  31395. static="false" final="false" visibility="public"
  31396. deprecated="not deprecated">
  31397. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  31398. </method>
  31399. <doc>
  31400. <![CDATA[Specialized SocketFactory to create sockets with a SOCKS proxy]]>
  31401. </doc>
  31402. </class>
  31403. <!-- end class org.apache.hadoop.net.SocksSocketFactory -->
  31404. <!-- start class org.apache.hadoop.net.StandardSocketFactory -->
  31405. <class name="StandardSocketFactory" extends="javax.net.SocketFactory"
  31406. abstract="false"
  31407. static="false" final="false" visibility="public"
  31408. deprecated="not deprecated">
  31409. <constructor name="StandardSocketFactory"
  31410. static="false" final="false" visibility="public"
  31411. deprecated="not deprecated">
  31412. <doc>
  31413. <![CDATA[Default empty constructor (for use with the reflection API).]]>
  31414. </doc>
  31415. </constructor>
  31416. <method name="createSocket" return="java.net.Socket"
  31417. abstract="false" native="false" synchronized="false"
  31418. static="false" final="false" visibility="public"
  31419. deprecated="not deprecated">
  31420. <exception name="IOException" type="java.io.IOException"/>
  31421. </method>
  31422. <method name="createSocket" return="java.net.Socket"
  31423. abstract="false" native="false" synchronized="false"
  31424. static="false" final="false" visibility="public"
  31425. deprecated="not deprecated">
  31426. <param name="addr" type="java.net.InetAddress"/>
  31427. <param name="port" type="int"/>
  31428. <exception name="IOException" type="java.io.IOException"/>
  31429. </method>
  31430. <method name="createSocket" return="java.net.Socket"
  31431. abstract="false" native="false" synchronized="false"
  31432. static="false" final="false" visibility="public"
  31433. deprecated="not deprecated">
  31434. <param name="addr" type="java.net.InetAddress"/>
  31435. <param name="port" type="int"/>
  31436. <param name="localHostAddr" type="java.net.InetAddress"/>
  31437. <param name="localPort" type="int"/>
  31438. <exception name="IOException" type="java.io.IOException"/>
  31439. </method>
  31440. <method name="createSocket" return="java.net.Socket"
  31441. abstract="false" native="false" synchronized="false"
  31442. static="false" final="false" visibility="public"
  31443. deprecated="not deprecated">
  31444. <param name="host" type="java.lang.String"/>
  31445. <param name="port" type="int"/>
  31446. <exception name="IOException" type="java.io.IOException"/>
  31447. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  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="host" type="java.lang.String"/>
  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. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  31459. </method>
  31460. <method name="equals" return="boolean"
  31461. abstract="false" native="false" synchronized="false"
  31462. static="false" final="false" visibility="public"
  31463. deprecated="not deprecated">
  31464. <param name="obj" type="java.lang.Object"/>
  31465. </method>
  31466. <method name="hashCode" return="int"
  31467. abstract="false" native="false" synchronized="false"
  31468. static="false" final="false" visibility="public"
  31469. deprecated="not deprecated">
  31470. </method>
  31471. <doc>
  31472. <![CDATA[Specialized SocketFactory to create sockets with a SOCKS proxy]]>
  31473. </doc>
  31474. </class>
  31475. <!-- end class org.apache.hadoop.net.StandardSocketFactory -->
  31476. </package>
  31477. <package name="org.apache.hadoop.record">
  31478. <!-- start class org.apache.hadoop.record.BinaryRecordInput -->
  31479. <class name="BinaryRecordInput" extends="java.lang.Object"
  31480. abstract="false"
  31481. static="false" final="false" visibility="public"
  31482. deprecated="not deprecated">
  31483. <implements name="org.apache.hadoop.record.RecordInput"/>
  31484. <constructor name="BinaryRecordInput" type="java.io.InputStream"
  31485. static="false" final="false" visibility="public"
  31486. deprecated="not deprecated">
  31487. <doc>
  31488. <![CDATA[Creates a new instance of BinaryRecordInput]]>
  31489. </doc>
  31490. </constructor>
  31491. <constructor name="BinaryRecordInput" type="java.io.DataInput"
  31492. static="false" final="false" visibility="public"
  31493. deprecated="not deprecated">
  31494. <doc>
  31495. <![CDATA[Creates a new instance of BinaryRecordInput]]>
  31496. </doc>
  31497. </constructor>
  31498. <method name="get" return="org.apache.hadoop.record.BinaryRecordInput"
  31499. abstract="false" native="false" synchronized="false"
  31500. static="true" final="false" visibility="public"
  31501. deprecated="not deprecated">
  31502. <param name="inp" type="java.io.DataInput"/>
  31503. <doc>
  31504. <![CDATA[Get a thread-local record input for the supplied DataInput.
  31505. @param inp data input stream
  31506. @return binary record input corresponding to the supplied DataInput.]]>
  31507. </doc>
  31508. </method>
  31509. <method name="readByte" return="byte"
  31510. abstract="false" native="false" synchronized="false"
  31511. static="false" final="false" visibility="public"
  31512. deprecated="not deprecated">
  31513. <param name="tag" type="java.lang.String"/>
  31514. <exception name="IOException" type="java.io.IOException"/>
  31515. </method>
  31516. <method name="readBool" return="boolean"
  31517. abstract="false" native="false" synchronized="false"
  31518. static="false" final="false" visibility="public"
  31519. deprecated="not deprecated">
  31520. <param name="tag" type="java.lang.String"/>
  31521. <exception name="IOException" type="java.io.IOException"/>
  31522. </method>
  31523. <method name="readInt" return="int"
  31524. abstract="false" native="false" synchronized="false"
  31525. static="false" final="false" visibility="public"
  31526. deprecated="not deprecated">
  31527. <param name="tag" type="java.lang.String"/>
  31528. <exception name="IOException" type="java.io.IOException"/>
  31529. </method>
  31530. <method name="readLong" return="long"
  31531. abstract="false" native="false" synchronized="false"
  31532. static="false" final="false" visibility="public"
  31533. deprecated="not deprecated">
  31534. <param name="tag" type="java.lang.String"/>
  31535. <exception name="IOException" type="java.io.IOException"/>
  31536. </method>
  31537. <method name="readFloat" return="float"
  31538. abstract="false" native="false" synchronized="false"
  31539. static="false" final="false" visibility="public"
  31540. deprecated="not deprecated">
  31541. <param name="tag" type="java.lang.String"/>
  31542. <exception name="IOException" type="java.io.IOException"/>
  31543. </method>
  31544. <method name="readDouble" return="double"
  31545. abstract="false" native="false" synchronized="false"
  31546. static="false" final="false" visibility="public"
  31547. deprecated="not deprecated">
  31548. <param name="tag" type="java.lang.String"/>
  31549. <exception name="IOException" type="java.io.IOException"/>
  31550. </method>
  31551. <method name="readString" return="java.lang.String"
  31552. abstract="false" native="false" synchronized="false"
  31553. static="false" final="false" visibility="public"
  31554. deprecated="not deprecated">
  31555. <param name="tag" type="java.lang.String"/>
  31556. <exception name="IOException" type="java.io.IOException"/>
  31557. </method>
  31558. <method name="readBuffer" return="org.apache.hadoop.record.Buffer"
  31559. abstract="false" native="false" synchronized="false"
  31560. static="false" final="false" visibility="public"
  31561. deprecated="not deprecated">
  31562. <param name="tag" type="java.lang.String"/>
  31563. <exception name="IOException" type="java.io.IOException"/>
  31564. </method>
  31565. <method name="startRecord"
  31566. abstract="false" native="false" synchronized="false"
  31567. static="false" final="false" visibility="public"
  31568. deprecated="not deprecated">
  31569. <param name="tag" type="java.lang.String"/>
  31570. <exception name="IOException" type="java.io.IOException"/>
  31571. </method>
  31572. <method name="endRecord"
  31573. abstract="false" native="false" synchronized="false"
  31574. static="false" final="false" visibility="public"
  31575. deprecated="not deprecated">
  31576. <param name="tag" type="java.lang.String"/>
  31577. <exception name="IOException" type="java.io.IOException"/>
  31578. </method>
  31579. <method name="startVector" return="org.apache.hadoop.record.Index"
  31580. abstract="false" native="false" synchronized="false"
  31581. static="false" final="false" visibility="public"
  31582. deprecated="not deprecated">
  31583. <param name="tag" type="java.lang.String"/>
  31584. <exception name="IOException" type="java.io.IOException"/>
  31585. </method>
  31586. <method name="endVector"
  31587. abstract="false" native="false" synchronized="false"
  31588. static="false" final="false" visibility="public"
  31589. deprecated="not deprecated">
  31590. <param name="tag" type="java.lang.String"/>
  31591. <exception name="IOException" type="java.io.IOException"/>
  31592. </method>
  31593. <method name="startMap" return="org.apache.hadoop.record.Index"
  31594. abstract="false" native="false" synchronized="false"
  31595. static="false" final="false" visibility="public"
  31596. deprecated="not deprecated">
  31597. <param name="tag" type="java.lang.String"/>
  31598. <exception name="IOException" type="java.io.IOException"/>
  31599. </method>
  31600. <method name="endMap"
  31601. abstract="false" native="false" synchronized="false"
  31602. static="false" final="false" visibility="public"
  31603. deprecated="not deprecated">
  31604. <param name="tag" type="java.lang.String"/>
  31605. <exception name="IOException" type="java.io.IOException"/>
  31606. </method>
  31607. </class>
  31608. <!-- end class org.apache.hadoop.record.BinaryRecordInput -->
  31609. <!-- start class org.apache.hadoop.record.BinaryRecordOutput -->
  31610. <class name="BinaryRecordOutput" extends="java.lang.Object"
  31611. abstract="false"
  31612. static="false" final="false" visibility="public"
  31613. deprecated="not deprecated">
  31614. <implements name="org.apache.hadoop.record.RecordOutput"/>
  31615. <constructor name="BinaryRecordOutput" type="java.io.OutputStream"
  31616. static="false" final="false" visibility="public"
  31617. deprecated="not deprecated">
  31618. <doc>
  31619. <![CDATA[Creates a new instance of BinaryRecordOutput]]>
  31620. </doc>
  31621. </constructor>
  31622. <constructor name="BinaryRecordOutput" type="java.io.DataOutput"
  31623. static="false" final="false" visibility="public"
  31624. deprecated="not deprecated">
  31625. <doc>
  31626. <![CDATA[Creates a new instance of BinaryRecordOutput]]>
  31627. </doc>
  31628. </constructor>
  31629. <method name="get" return="org.apache.hadoop.record.BinaryRecordOutput"
  31630. abstract="false" native="false" synchronized="false"
  31631. static="true" final="false" visibility="public"
  31632. deprecated="not deprecated">
  31633. <param name="out" type="java.io.DataOutput"/>
  31634. <doc>
  31635. <![CDATA[Get a thread-local record output for the supplied DataOutput.
  31636. @param out data output stream
  31637. @return binary record output corresponding to the supplied DataOutput.]]>
  31638. </doc>
  31639. </method>
  31640. <method name="writeByte"
  31641. abstract="false" native="false" synchronized="false"
  31642. static="false" final="false" visibility="public"
  31643. deprecated="not deprecated">
  31644. <param name="b" type="byte"/>
  31645. <param name="tag" type="java.lang.String"/>
  31646. <exception name="IOException" type="java.io.IOException"/>
  31647. </method>
  31648. <method name="writeBool"
  31649. abstract="false" native="false" synchronized="false"
  31650. static="false" final="false" visibility="public"
  31651. deprecated="not deprecated">
  31652. <param name="b" type="boolean"/>
  31653. <param name="tag" type="java.lang.String"/>
  31654. <exception name="IOException" type="java.io.IOException"/>
  31655. </method>
  31656. <method name="writeInt"
  31657. abstract="false" native="false" synchronized="false"
  31658. static="false" final="false" visibility="public"
  31659. deprecated="not deprecated">
  31660. <param name="i" type="int"/>
  31661. <param name="tag" type="java.lang.String"/>
  31662. <exception name="IOException" type="java.io.IOException"/>
  31663. </method>
  31664. <method name="writeLong"
  31665. abstract="false" native="false" synchronized="false"
  31666. static="false" final="false" visibility="public"
  31667. deprecated="not deprecated">
  31668. <param name="l" type="long"/>
  31669. <param name="tag" type="java.lang.String"/>
  31670. <exception name="IOException" type="java.io.IOException"/>
  31671. </method>
  31672. <method name="writeFloat"
  31673. abstract="false" native="false" synchronized="false"
  31674. static="false" final="false" visibility="public"
  31675. deprecated="not deprecated">
  31676. <param name="f" type="float"/>
  31677. <param name="tag" type="java.lang.String"/>
  31678. <exception name="IOException" type="java.io.IOException"/>
  31679. </method>
  31680. <method name="writeDouble"
  31681. abstract="false" native="false" synchronized="false"
  31682. static="false" final="false" visibility="public"
  31683. deprecated="not deprecated">
  31684. <param name="d" type="double"/>
  31685. <param name="tag" type="java.lang.String"/>
  31686. <exception name="IOException" type="java.io.IOException"/>
  31687. </method>
  31688. <method name="writeString"
  31689. abstract="false" native="false" synchronized="false"
  31690. static="false" final="false" visibility="public"
  31691. deprecated="not deprecated">
  31692. <param name="s" type="java.lang.String"/>
  31693. <param name="tag" type="java.lang.String"/>
  31694. <exception name="IOException" type="java.io.IOException"/>
  31695. </method>
  31696. <method name="writeBuffer"
  31697. abstract="false" native="false" synchronized="false"
  31698. static="false" final="false" visibility="public"
  31699. deprecated="not deprecated">
  31700. <param name="buf" type="org.apache.hadoop.record.Buffer"/>
  31701. <param name="tag" type="java.lang.String"/>
  31702. <exception name="IOException" type="java.io.IOException"/>
  31703. </method>
  31704. <method name="startRecord"
  31705. abstract="false" native="false" synchronized="false"
  31706. static="false" final="false" visibility="public"
  31707. deprecated="not deprecated">
  31708. <param name="r" type="org.apache.hadoop.record.Record"/>
  31709. <param name="tag" type="java.lang.String"/>
  31710. <exception name="IOException" type="java.io.IOException"/>
  31711. </method>
  31712. <method name="endRecord"
  31713. abstract="false" native="false" synchronized="false"
  31714. static="false" final="false" visibility="public"
  31715. deprecated="not deprecated">
  31716. <param name="r" type="org.apache.hadoop.record.Record"/>
  31717. <param name="tag" type="java.lang.String"/>
  31718. <exception name="IOException" type="java.io.IOException"/>
  31719. </method>
  31720. <method name="startVector"
  31721. abstract="false" native="false" synchronized="false"
  31722. static="false" final="false" visibility="public"
  31723. deprecated="not deprecated">
  31724. <param name="v" type="java.util.ArrayList"/>
  31725. <param name="tag" type="java.lang.String"/>
  31726. <exception name="IOException" type="java.io.IOException"/>
  31727. </method>
  31728. <method name="endVector"
  31729. abstract="false" native="false" synchronized="false"
  31730. static="false" final="false" visibility="public"
  31731. deprecated="not deprecated">
  31732. <param name="v" type="java.util.ArrayList"/>
  31733. <param name="tag" type="java.lang.String"/>
  31734. <exception name="IOException" type="java.io.IOException"/>
  31735. </method>
  31736. <method name="startMap"
  31737. abstract="false" native="false" synchronized="false"
  31738. static="false" final="false" visibility="public"
  31739. deprecated="not deprecated">
  31740. <param name="v" type="java.util.TreeMap"/>
  31741. <param name="tag" type="java.lang.String"/>
  31742. <exception name="IOException" type="java.io.IOException"/>
  31743. </method>
  31744. <method name="endMap"
  31745. abstract="false" native="false" synchronized="false"
  31746. static="false" final="false" visibility="public"
  31747. deprecated="not deprecated">
  31748. <param name="v" type="java.util.TreeMap"/>
  31749. <param name="tag" type="java.lang.String"/>
  31750. <exception name="IOException" type="java.io.IOException"/>
  31751. </method>
  31752. </class>
  31753. <!-- end class org.apache.hadoop.record.BinaryRecordOutput -->
  31754. <!-- start class org.apache.hadoop.record.Buffer -->
  31755. <class name="Buffer" extends="java.lang.Object"
  31756. abstract="false"
  31757. static="false" final="false" visibility="public"
  31758. deprecated="not deprecated">
  31759. <implements name="java.lang.Comparable"/>
  31760. <implements name="java.lang.Cloneable"/>
  31761. <constructor name="Buffer"
  31762. static="false" final="false" visibility="public"
  31763. deprecated="not deprecated">
  31764. <doc>
  31765. <![CDATA[Create a zero-count sequence.]]>
  31766. </doc>
  31767. </constructor>
  31768. <constructor name="Buffer" type="byte[]"
  31769. static="false" final="false" visibility="public"
  31770. deprecated="not deprecated">
  31771. <doc>
  31772. <![CDATA[Create a Buffer using the byte array as the initial value.
  31773. @param bytes This array becomes the backing storage for the object.]]>
  31774. </doc>
  31775. </constructor>
  31776. <constructor name="Buffer" type="byte[], int, int"
  31777. static="false" final="false" visibility="public"
  31778. deprecated="not deprecated">
  31779. <doc>
  31780. <![CDATA[Create a Buffer using the byte range as the initial value.
  31781. @param bytes Copy of this array becomes the backing storage for the object.
  31782. @param offset offset into byte array
  31783. @param length length of data]]>
  31784. </doc>
  31785. </constructor>
  31786. <method name="set"
  31787. abstract="false" native="false" synchronized="false"
  31788. static="false" final="false" visibility="public"
  31789. deprecated="not deprecated">
  31790. <param name="bytes" type="byte[]"/>
  31791. <doc>
  31792. <![CDATA[Use the specified bytes array as underlying sequence.
  31793. @param bytes byte sequence]]>
  31794. </doc>
  31795. </method>
  31796. <method name="copy"
  31797. abstract="false" native="false" synchronized="false"
  31798. static="false" final="true" visibility="public"
  31799. deprecated="not deprecated">
  31800. <param name="bytes" type="byte[]"/>
  31801. <param name="offset" type="int"/>
  31802. <param name="length" type="int"/>
  31803. <doc>
  31804. <![CDATA[Copy the specified byte array to the Buffer. Replaces the current buffer.
  31805. @param bytes byte array to be assigned
  31806. @param offset offset into byte array
  31807. @param length length of data]]>
  31808. </doc>
  31809. </method>
  31810. <method name="get" return="byte[]"
  31811. abstract="false" native="false" synchronized="false"
  31812. static="false" final="false" visibility="public"
  31813. deprecated="not deprecated">
  31814. <doc>
  31815. <![CDATA[Get the data from the Buffer.
  31816. @return The data is only valid between 0 and getCount() - 1.]]>
  31817. </doc>
  31818. </method>
  31819. <method name="getCount" return="int"
  31820. abstract="false" native="false" synchronized="false"
  31821. static="false" final="false" visibility="public"
  31822. deprecated="not deprecated">
  31823. <doc>
  31824. <![CDATA[Get the current count of the buffer.]]>
  31825. </doc>
  31826. </method>
  31827. <method name="getCapacity" return="int"
  31828. abstract="false" native="false" synchronized="false"
  31829. static="false" final="false" visibility="public"
  31830. deprecated="not deprecated">
  31831. <doc>
  31832. <![CDATA[Get the capacity, which is the maximum count that could handled without
  31833. resizing the backing storage.
  31834. @return The number of bytes]]>
  31835. </doc>
  31836. </method>
  31837. <method name="setCapacity"
  31838. abstract="false" native="false" synchronized="false"
  31839. static="false" final="false" visibility="public"
  31840. deprecated="not deprecated">
  31841. <param name="newCapacity" type="int"/>
  31842. <doc>
  31843. <![CDATA[Change the capacity of the backing storage.
  31844. The data is preserved if newCapacity >= getCount().
  31845. @param newCapacity The new capacity in bytes.]]>
  31846. </doc>
  31847. </method>
  31848. <method name="reset"
  31849. abstract="false" native="false" synchronized="false"
  31850. static="false" final="false" visibility="public"
  31851. deprecated="not deprecated">
  31852. <doc>
  31853. <![CDATA[Reset the buffer to 0 size]]>
  31854. </doc>
  31855. </method>
  31856. <method name="truncate"
  31857. abstract="false" native="false" synchronized="false"
  31858. static="false" final="false" visibility="public"
  31859. deprecated="not deprecated">
  31860. <doc>
  31861. <![CDATA[Change the capacity of the backing store to be the same as the current
  31862. count of buffer.]]>
  31863. </doc>
  31864. </method>
  31865. <method name="append"
  31866. abstract="false" native="false" synchronized="false"
  31867. static="false" final="false" visibility="public"
  31868. deprecated="not deprecated">
  31869. <param name="bytes" type="byte[]"/>
  31870. <param name="offset" type="int"/>
  31871. <param name="length" type="int"/>
  31872. <doc>
  31873. <![CDATA[Append specified bytes to the buffer.
  31874. @param bytes byte array to be appended
  31875. @param offset offset into byte array
  31876. @param length length of data]]>
  31877. </doc>
  31878. </method>
  31879. <method name="append"
  31880. abstract="false" native="false" synchronized="false"
  31881. static="false" final="false" visibility="public"
  31882. deprecated="not deprecated">
  31883. <param name="bytes" type="byte[]"/>
  31884. <doc>
  31885. <![CDATA[Append specified bytes to the buffer
  31886. @param bytes byte array to be appended]]>
  31887. </doc>
  31888. </method>
  31889. <method name="hashCode" return="int"
  31890. abstract="false" native="false" synchronized="false"
  31891. static="false" final="false" visibility="public"
  31892. deprecated="not deprecated">
  31893. </method>
  31894. <method name="compareTo" return="int"
  31895. abstract="false" native="false" synchronized="false"
  31896. static="false" final="false" visibility="public"
  31897. deprecated="not deprecated">
  31898. <param name="other" type="java.lang.Object"/>
  31899. <doc>
  31900. <![CDATA[Define the sort order of the Buffer.
  31901. @param other The other buffer
  31902. @return Positive if this is bigger than other, 0 if they are equal, and
  31903. negative if this is smaller than other.]]>
  31904. </doc>
  31905. </method>
  31906. <method name="equals" return="boolean"
  31907. abstract="false" native="false" synchronized="false"
  31908. static="false" final="false" visibility="public"
  31909. deprecated="not deprecated">
  31910. <param name="other" type="java.lang.Object"/>
  31911. </method>
  31912. <method name="toString" return="java.lang.String"
  31913. abstract="false" native="false" synchronized="false"
  31914. static="false" final="false" visibility="public"
  31915. deprecated="not deprecated">
  31916. </method>
  31917. <method name="toString" return="java.lang.String"
  31918. abstract="false" native="false" synchronized="false"
  31919. static="false" final="false" visibility="public"
  31920. deprecated="not deprecated">
  31921. <param name="charsetName" type="java.lang.String"/>
  31922. <exception name="UnsupportedEncodingException" type="java.io.UnsupportedEncodingException"/>
  31923. <doc>
  31924. <![CDATA[Convert the byte buffer to a string an specific character encoding
  31925. @param charsetName Valid Java Character Set Name]]>
  31926. </doc>
  31927. </method>
  31928. <method name="clone" return="java.lang.Object"
  31929. abstract="false" native="false" synchronized="false"
  31930. static="false" final="false" visibility="public"
  31931. deprecated="not deprecated">
  31932. <exception name="CloneNotSupportedException" type="java.lang.CloneNotSupportedException"/>
  31933. </method>
  31934. <doc>
  31935. <![CDATA[A byte sequence that is used as a Java native type for buffer.
  31936. It is resizable and distinguishes between the count of the seqeunce and
  31937. the current capacity.]]>
  31938. </doc>
  31939. </class>
  31940. <!-- end class org.apache.hadoop.record.Buffer -->
  31941. <!-- start class org.apache.hadoop.record.CsvRecordInput -->
  31942. <class name="CsvRecordInput" extends="java.lang.Object"
  31943. abstract="false"
  31944. static="false" final="false" visibility="public"
  31945. deprecated="not deprecated">
  31946. <implements name="org.apache.hadoop.record.RecordInput"/>
  31947. <constructor name="CsvRecordInput" type="java.io.InputStream"
  31948. static="false" final="false" visibility="public"
  31949. deprecated="not deprecated">
  31950. <doc>
  31951. <![CDATA[Creates a new instance of CsvRecordInput]]>
  31952. </doc>
  31953. </constructor>
  31954. <method name="readByte" return="byte"
  31955. abstract="false" native="false" synchronized="false"
  31956. static="false" final="false" visibility="public"
  31957. deprecated="not deprecated">
  31958. <param name="tag" type="java.lang.String"/>
  31959. <exception name="IOException" type="java.io.IOException"/>
  31960. </method>
  31961. <method name="readBool" return="boolean"
  31962. abstract="false" native="false" synchronized="false"
  31963. static="false" final="false" visibility="public"
  31964. deprecated="not deprecated">
  31965. <param name="tag" type="java.lang.String"/>
  31966. <exception name="IOException" type="java.io.IOException"/>
  31967. </method>
  31968. <method name="readInt" return="int"
  31969. abstract="false" native="false" synchronized="false"
  31970. static="false" final="false" visibility="public"
  31971. deprecated="not deprecated">
  31972. <param name="tag" type="java.lang.String"/>
  31973. <exception name="IOException" type="java.io.IOException"/>
  31974. </method>
  31975. <method name="readLong" return="long"
  31976. abstract="false" native="false" synchronized="false"
  31977. static="false" final="false" visibility="public"
  31978. deprecated="not deprecated">
  31979. <param name="tag" type="java.lang.String"/>
  31980. <exception name="IOException" type="java.io.IOException"/>
  31981. </method>
  31982. <method name="readFloat" return="float"
  31983. abstract="false" native="false" synchronized="false"
  31984. static="false" final="false" visibility="public"
  31985. deprecated="not deprecated">
  31986. <param name="tag" type="java.lang.String"/>
  31987. <exception name="IOException" type="java.io.IOException"/>
  31988. </method>
  31989. <method name="readDouble" return="double"
  31990. abstract="false" native="false" synchronized="false"
  31991. static="false" final="false" visibility="public"
  31992. deprecated="not deprecated">
  31993. <param name="tag" type="java.lang.String"/>
  31994. <exception name="IOException" type="java.io.IOException"/>
  31995. </method>
  31996. <method name="readString" return="java.lang.String"
  31997. abstract="false" native="false" synchronized="false"
  31998. static="false" final="false" visibility="public"
  31999. deprecated="not deprecated">
  32000. <param name="tag" type="java.lang.String"/>
  32001. <exception name="IOException" type="java.io.IOException"/>
  32002. </method>
  32003. <method name="readBuffer" return="org.apache.hadoop.record.Buffer"
  32004. abstract="false" native="false" synchronized="false"
  32005. static="false" final="false" visibility="public"
  32006. deprecated="not deprecated">
  32007. <param name="tag" type="java.lang.String"/>
  32008. <exception name="IOException" type="java.io.IOException"/>
  32009. </method>
  32010. <method name="startRecord"
  32011. abstract="false" native="false" synchronized="false"
  32012. static="false" final="false" visibility="public"
  32013. deprecated="not deprecated">
  32014. <param name="tag" type="java.lang.String"/>
  32015. <exception name="IOException" type="java.io.IOException"/>
  32016. </method>
  32017. <method name="endRecord"
  32018. abstract="false" native="false" synchronized="false"
  32019. static="false" final="false" visibility="public"
  32020. deprecated="not deprecated">
  32021. <param name="tag" type="java.lang.String"/>
  32022. <exception name="IOException" type="java.io.IOException"/>
  32023. </method>
  32024. <method name="startVector" return="org.apache.hadoop.record.Index"
  32025. abstract="false" native="false" synchronized="false"
  32026. static="false" final="false" visibility="public"
  32027. deprecated="not deprecated">
  32028. <param name="tag" type="java.lang.String"/>
  32029. <exception name="IOException" type="java.io.IOException"/>
  32030. </method>
  32031. <method name="endVector"
  32032. abstract="false" native="false" synchronized="false"
  32033. static="false" final="false" visibility="public"
  32034. deprecated="not deprecated">
  32035. <param name="tag" type="java.lang.String"/>
  32036. <exception name="IOException" type="java.io.IOException"/>
  32037. </method>
  32038. <method name="startMap" return="org.apache.hadoop.record.Index"
  32039. abstract="false" native="false" synchronized="false"
  32040. static="false" final="false" visibility="public"
  32041. deprecated="not deprecated">
  32042. <param name="tag" type="java.lang.String"/>
  32043. <exception name="IOException" type="java.io.IOException"/>
  32044. </method>
  32045. <method name="endMap"
  32046. abstract="false" native="false" synchronized="false"
  32047. static="false" final="false" visibility="public"
  32048. deprecated="not deprecated">
  32049. <param name="tag" type="java.lang.String"/>
  32050. <exception name="IOException" type="java.io.IOException"/>
  32051. </method>
  32052. </class>
  32053. <!-- end class org.apache.hadoop.record.CsvRecordInput -->
  32054. <!-- start class org.apache.hadoop.record.CsvRecordOutput -->
  32055. <class name="CsvRecordOutput" extends="java.lang.Object"
  32056. abstract="false"
  32057. static="false" final="false" visibility="public"
  32058. deprecated="not deprecated">
  32059. <implements name="org.apache.hadoop.record.RecordOutput"/>
  32060. <constructor name="CsvRecordOutput" type="java.io.OutputStream"
  32061. static="false" final="false" visibility="public"
  32062. deprecated="not deprecated">
  32063. <doc>
  32064. <![CDATA[Creates a new instance of CsvRecordOutput]]>
  32065. </doc>
  32066. </constructor>
  32067. <method name="writeByte"
  32068. abstract="false" native="false" synchronized="false"
  32069. static="false" final="false" visibility="public"
  32070. deprecated="not deprecated">
  32071. <param name="b" type="byte"/>
  32072. <param name="tag" type="java.lang.String"/>
  32073. <exception name="IOException" type="java.io.IOException"/>
  32074. </method>
  32075. <method name="writeBool"
  32076. abstract="false" native="false" synchronized="false"
  32077. static="false" final="false" visibility="public"
  32078. deprecated="not deprecated">
  32079. <param name="b" type="boolean"/>
  32080. <param name="tag" type="java.lang.String"/>
  32081. <exception name="IOException" type="java.io.IOException"/>
  32082. </method>
  32083. <method name="writeInt"
  32084. abstract="false" native="false" synchronized="false"
  32085. static="false" final="false" visibility="public"
  32086. deprecated="not deprecated">
  32087. <param name="i" type="int"/>
  32088. <param name="tag" type="java.lang.String"/>
  32089. <exception name="IOException" type="java.io.IOException"/>
  32090. </method>
  32091. <method name="writeLong"
  32092. abstract="false" native="false" synchronized="false"
  32093. static="false" final="false" visibility="public"
  32094. deprecated="not deprecated">
  32095. <param name="l" type="long"/>
  32096. <param name="tag" type="java.lang.String"/>
  32097. <exception name="IOException" type="java.io.IOException"/>
  32098. </method>
  32099. <method name="writeFloat"
  32100. abstract="false" native="false" synchronized="false"
  32101. static="false" final="false" visibility="public"
  32102. deprecated="not deprecated">
  32103. <param name="f" type="float"/>
  32104. <param name="tag" type="java.lang.String"/>
  32105. <exception name="IOException" type="java.io.IOException"/>
  32106. </method>
  32107. <method name="writeDouble"
  32108. abstract="false" native="false" synchronized="false"
  32109. static="false" final="false" visibility="public"
  32110. deprecated="not deprecated">
  32111. <param name="d" type="double"/>
  32112. <param name="tag" type="java.lang.String"/>
  32113. <exception name="IOException" type="java.io.IOException"/>
  32114. </method>
  32115. <method name="writeString"
  32116. abstract="false" native="false" synchronized="false"
  32117. static="false" final="false" visibility="public"
  32118. deprecated="not deprecated">
  32119. <param name="s" type="java.lang.String"/>
  32120. <param name="tag" type="java.lang.String"/>
  32121. <exception name="IOException" type="java.io.IOException"/>
  32122. </method>
  32123. <method name="writeBuffer"
  32124. abstract="false" native="false" synchronized="false"
  32125. static="false" final="false" visibility="public"
  32126. deprecated="not deprecated">
  32127. <param name="buf" type="org.apache.hadoop.record.Buffer"/>
  32128. <param name="tag" type="java.lang.String"/>
  32129. <exception name="IOException" type="java.io.IOException"/>
  32130. </method>
  32131. <method name="startRecord"
  32132. abstract="false" native="false" synchronized="false"
  32133. static="false" final="false" visibility="public"
  32134. deprecated="not deprecated">
  32135. <param name="r" type="org.apache.hadoop.record.Record"/>
  32136. <param name="tag" type="java.lang.String"/>
  32137. <exception name="IOException" type="java.io.IOException"/>
  32138. </method>
  32139. <method name="endRecord"
  32140. abstract="false" native="false" synchronized="false"
  32141. static="false" final="false" visibility="public"
  32142. deprecated="not deprecated">
  32143. <param name="r" type="org.apache.hadoop.record.Record"/>
  32144. <param name="tag" type="java.lang.String"/>
  32145. <exception name="IOException" type="java.io.IOException"/>
  32146. </method>
  32147. <method name="startVector"
  32148. abstract="false" native="false" synchronized="false"
  32149. static="false" final="false" visibility="public"
  32150. deprecated="not deprecated">
  32151. <param name="v" type="java.util.ArrayList"/>
  32152. <param name="tag" type="java.lang.String"/>
  32153. <exception name="IOException" type="java.io.IOException"/>
  32154. </method>
  32155. <method name="endVector"
  32156. abstract="false" native="false" synchronized="false"
  32157. static="false" final="false" visibility="public"
  32158. deprecated="not deprecated">
  32159. <param name="v" type="java.util.ArrayList"/>
  32160. <param name="tag" type="java.lang.String"/>
  32161. <exception name="IOException" type="java.io.IOException"/>
  32162. </method>
  32163. <method name="startMap"
  32164. abstract="false" native="false" synchronized="false"
  32165. static="false" final="false" visibility="public"
  32166. deprecated="not deprecated">
  32167. <param name="v" type="java.util.TreeMap"/>
  32168. <param name="tag" type="java.lang.String"/>
  32169. <exception name="IOException" type="java.io.IOException"/>
  32170. </method>
  32171. <method name="endMap"
  32172. abstract="false" native="false" synchronized="false"
  32173. static="false" final="false" visibility="public"
  32174. deprecated="not deprecated">
  32175. <param name="v" type="java.util.TreeMap"/>
  32176. <param name="tag" type="java.lang.String"/>
  32177. <exception name="IOException" type="java.io.IOException"/>
  32178. </method>
  32179. </class>
  32180. <!-- end class org.apache.hadoop.record.CsvRecordOutput -->
  32181. <!-- start interface org.apache.hadoop.record.Index -->
  32182. <interface name="Index" abstract="true"
  32183. static="false" final="false" visibility="public"
  32184. deprecated="not deprecated">
  32185. <method name="done" return="boolean"
  32186. abstract="false" native="false" synchronized="false"
  32187. static="false" final="false" visibility="public"
  32188. deprecated="not deprecated">
  32189. </method>
  32190. <method name="incr"
  32191. abstract="false" native="false" synchronized="false"
  32192. static="false" final="false" visibility="public"
  32193. deprecated="not deprecated">
  32194. </method>
  32195. <doc>
  32196. <![CDATA[Interface that acts as an iterator for deserializing maps.
  32197. The deserializer returns an instance that the record uses to
  32198. read vectors and maps. An example of usage is as follows:
  32199. <code>
  32200. Index idx = startVector(...);
  32201. while (!idx.done()) {
  32202. .... // read element of a vector
  32203. idx.incr();
  32204. }
  32205. </code>]]>
  32206. </doc>
  32207. </interface>
  32208. <!-- end interface org.apache.hadoop.record.Index -->
  32209. <!-- start class org.apache.hadoop.record.Record -->
  32210. <class name="Record" extends="java.lang.Object"
  32211. abstract="true"
  32212. static="false" final="false" visibility="public"
  32213. deprecated="not deprecated">
  32214. <implements name="org.apache.hadoop.io.WritableComparable"/>
  32215. <implements name="java.lang.Cloneable"/>
  32216. <constructor name="Record"
  32217. static="false" final="false" visibility="public"
  32218. deprecated="not deprecated">
  32219. </constructor>
  32220. <method name="serialize"
  32221. abstract="true" native="false" synchronized="false"
  32222. static="false" final="false" visibility="public"
  32223. deprecated="not deprecated">
  32224. <param name="rout" type="org.apache.hadoop.record.RecordOutput"/>
  32225. <param name="tag" type="java.lang.String"/>
  32226. <exception name="IOException" type="java.io.IOException"/>
  32227. <doc>
  32228. <![CDATA[Serialize a record with tag (ususally field name)
  32229. @param rout Record output destination
  32230. @param tag record tag (Used only in tagged serialization e.g. XML)]]>
  32231. </doc>
  32232. </method>
  32233. <method name="deserialize"
  32234. abstract="true" native="false" synchronized="false"
  32235. static="false" final="false" visibility="public"
  32236. deprecated="not deprecated">
  32237. <param name="rin" type="org.apache.hadoop.record.RecordInput"/>
  32238. <param name="tag" type="java.lang.String"/>
  32239. <exception name="IOException" type="java.io.IOException"/>
  32240. <doc>
  32241. <![CDATA[Deserialize a record with a tag (usually field name)
  32242. @param rin Record input source
  32243. @param tag Record tag (Used only in tagged serialization e.g. XML)]]>
  32244. </doc>
  32245. </method>
  32246. <method name="compareTo" return="int"
  32247. abstract="true" native="false" synchronized="false"
  32248. static="false" final="false" visibility="public"
  32249. deprecated="not deprecated">
  32250. <param name="peer" type="java.lang.Object"/>
  32251. <exception name="ClassCastException" type="java.lang.ClassCastException"/>
  32252. </method>
  32253. <method name="serialize"
  32254. abstract="false" native="false" synchronized="false"
  32255. static="false" final="false" visibility="public"
  32256. deprecated="not deprecated">
  32257. <param name="rout" type="org.apache.hadoop.record.RecordOutput"/>
  32258. <exception name="IOException" type="java.io.IOException"/>
  32259. <doc>
  32260. <![CDATA[Serialize a record without a tag
  32261. @param rout Record output destination]]>
  32262. </doc>
  32263. </method>
  32264. <method name="deserialize"
  32265. abstract="false" native="false" synchronized="false"
  32266. static="false" final="false" visibility="public"
  32267. deprecated="not deprecated">
  32268. <param name="rin" type="org.apache.hadoop.record.RecordInput"/>
  32269. <exception name="IOException" type="java.io.IOException"/>
  32270. <doc>
  32271. <![CDATA[Deserialize a record without a tag
  32272. @param rin Record input source]]>
  32273. </doc>
  32274. </method>
  32275. <method name="write"
  32276. abstract="false" native="false" synchronized="false"
  32277. static="false" final="false" visibility="public"
  32278. deprecated="not deprecated">
  32279. <param name="out" type="java.io.DataOutput"/>
  32280. <exception name="IOException" type="java.io.IOException"/>
  32281. </method>
  32282. <method name="readFields"
  32283. abstract="false" native="false" synchronized="false"
  32284. static="false" final="false" visibility="public"
  32285. deprecated="not deprecated">
  32286. <param name="din" type="java.io.DataInput"/>
  32287. <exception name="IOException" type="java.io.IOException"/>
  32288. </method>
  32289. <method name="toString" return="java.lang.String"
  32290. abstract="false" native="false" synchronized="false"
  32291. static="false" final="false" visibility="public"
  32292. deprecated="not deprecated">
  32293. </method>
  32294. <doc>
  32295. <![CDATA[Abstract class that is extended by generated classes.]]>
  32296. </doc>
  32297. </class>
  32298. <!-- end class org.apache.hadoop.record.Record -->
  32299. <!-- start class org.apache.hadoop.record.RecordComparator -->
  32300. <class name="RecordComparator" extends="org.apache.hadoop.io.WritableComparator"
  32301. abstract="true"
  32302. static="false" final="false" visibility="public"
  32303. deprecated="not deprecated">
  32304. <constructor name="RecordComparator" type="java.lang.Class"
  32305. static="false" final="false" visibility="protected"
  32306. deprecated="not deprecated">
  32307. <doc>
  32308. <![CDATA[Construct a raw {@link Record} comparison implementation.]]>
  32309. </doc>
  32310. </constructor>
  32311. <method name="compare" return="int"
  32312. abstract="true" native="false" synchronized="false"
  32313. static="false" final="false" visibility="public"
  32314. deprecated="not deprecated">
  32315. <param name="b1" type="byte[]"/>
  32316. <param name="s1" type="int"/>
  32317. <param name="l1" type="int"/>
  32318. <param name="b2" type="byte[]"/>
  32319. <param name="s2" type="int"/>
  32320. <param name="l2" type="int"/>
  32321. </method>
  32322. <method name="define"
  32323. abstract="false" native="false" synchronized="true"
  32324. static="true" final="false" visibility="public"
  32325. deprecated="not deprecated">
  32326. <param name="c" type="java.lang.Class"/>
  32327. <param name="comparator" type="org.apache.hadoop.record.RecordComparator"/>
  32328. <doc>
  32329. <![CDATA[Register an optimized comparator for a {@link Record} implementation.
  32330. @param c record classs for which a raw comparator is provided
  32331. @param comparator Raw comparator instance for class c]]>
  32332. </doc>
  32333. </method>
  32334. <doc>
  32335. <![CDATA[A raw record comparator base class]]>
  32336. </doc>
  32337. </class>
  32338. <!-- end class org.apache.hadoop.record.RecordComparator -->
  32339. <!-- start interface org.apache.hadoop.record.RecordInput -->
  32340. <interface name="RecordInput" abstract="true"
  32341. static="false" final="false" visibility="public"
  32342. deprecated="not deprecated">
  32343. <method name="readByte" return="byte"
  32344. abstract="false" native="false" synchronized="false"
  32345. static="false" final="false" visibility="public"
  32346. deprecated="not deprecated">
  32347. <param name="tag" type="java.lang.String"/>
  32348. <exception name="IOException" type="java.io.IOException"/>
  32349. <doc>
  32350. <![CDATA[Read a byte from serialized record.
  32351. @param tag Used by tagged serialization formats (such as XML)
  32352. @return value read from serialized record.]]>
  32353. </doc>
  32354. </method>
  32355. <method name="readBool" return="boolean"
  32356. abstract="false" native="false" synchronized="false"
  32357. static="false" final="false" visibility="public"
  32358. deprecated="not deprecated">
  32359. <param name="tag" type="java.lang.String"/>
  32360. <exception name="IOException" type="java.io.IOException"/>
  32361. <doc>
  32362. <![CDATA[Read a boolean from serialized record.
  32363. @param tag Used by tagged serialization formats (such as XML)
  32364. @return value read from serialized record.]]>
  32365. </doc>
  32366. </method>
  32367. <method name="readInt" return="int"
  32368. abstract="false" native="false" synchronized="false"
  32369. static="false" final="false" visibility="public"
  32370. deprecated="not deprecated">
  32371. <param name="tag" type="java.lang.String"/>
  32372. <exception name="IOException" type="java.io.IOException"/>
  32373. <doc>
  32374. <![CDATA[Read an integer from serialized record.
  32375. @param tag Used by tagged serialization formats (such as XML)
  32376. @return value read from serialized record.]]>
  32377. </doc>
  32378. </method>
  32379. <method name="readLong" return="long"
  32380. abstract="false" native="false" synchronized="false"
  32381. static="false" final="false" visibility="public"
  32382. deprecated="not deprecated">
  32383. <param name="tag" type="java.lang.String"/>
  32384. <exception name="IOException" type="java.io.IOException"/>
  32385. <doc>
  32386. <![CDATA[Read a long integer from serialized record.
  32387. @param tag Used by tagged serialization formats (such as XML)
  32388. @return value read from serialized record.]]>
  32389. </doc>
  32390. </method>
  32391. <method name="readFloat" return="float"
  32392. abstract="false" native="false" synchronized="false"
  32393. static="false" final="false" visibility="public"
  32394. deprecated="not deprecated">
  32395. <param name="tag" type="java.lang.String"/>
  32396. <exception name="IOException" type="java.io.IOException"/>
  32397. <doc>
  32398. <![CDATA[Read a single-precision float from serialized record.
  32399. @param tag Used by tagged serialization formats (such as XML)
  32400. @return value read from serialized record.]]>
  32401. </doc>
  32402. </method>
  32403. <method name="readDouble" return="double"
  32404. abstract="false" native="false" synchronized="false"
  32405. static="false" final="false" visibility="public"
  32406. deprecated="not deprecated">
  32407. <param name="tag" type="java.lang.String"/>
  32408. <exception name="IOException" type="java.io.IOException"/>
  32409. <doc>
  32410. <![CDATA[Read a double-precision number from serialized record.
  32411. @param tag Used by tagged serialization formats (such as XML)
  32412. @return value read from serialized record.]]>
  32413. </doc>
  32414. </method>
  32415. <method name="readString" return="java.lang.String"
  32416. abstract="false" native="false" synchronized="false"
  32417. static="false" final="false" visibility="public"
  32418. deprecated="not deprecated">
  32419. <param name="tag" type="java.lang.String"/>
  32420. <exception name="IOException" type="java.io.IOException"/>
  32421. <doc>
  32422. <![CDATA[Read a UTF-8 encoded string from serialized record.
  32423. @param tag Used by tagged serialization formats (such as XML)
  32424. @return value read from serialized record.]]>
  32425. </doc>
  32426. </method>
  32427. <method name="readBuffer" return="org.apache.hadoop.record.Buffer"
  32428. abstract="false" native="false" synchronized="false"
  32429. static="false" final="false" visibility="public"
  32430. deprecated="not deprecated">
  32431. <param name="tag" type="java.lang.String"/>
  32432. <exception name="IOException" type="java.io.IOException"/>
  32433. <doc>
  32434. <![CDATA[Read byte array from serialized record.
  32435. @param tag Used by tagged serialization formats (such as XML)
  32436. @return value read from serialized record.]]>
  32437. </doc>
  32438. </method>
  32439. <method name="startRecord"
  32440. abstract="false" native="false" synchronized="false"
  32441. static="false" final="false" visibility="public"
  32442. deprecated="not deprecated">
  32443. <param name="tag" type="java.lang.String"/>
  32444. <exception name="IOException" type="java.io.IOException"/>
  32445. <doc>
  32446. <![CDATA[Check the mark for start of the serialized record.
  32447. @param tag Used by tagged serialization formats (such as XML)]]>
  32448. </doc>
  32449. </method>
  32450. <method name="endRecord"
  32451. abstract="false" native="false" synchronized="false"
  32452. static="false" final="false" visibility="public"
  32453. deprecated="not deprecated">
  32454. <param name="tag" type="java.lang.String"/>
  32455. <exception name="IOException" type="java.io.IOException"/>
  32456. <doc>
  32457. <![CDATA[Check the mark for end of the serialized record.
  32458. @param tag Used by tagged serialization formats (such as XML)]]>
  32459. </doc>
  32460. </method>
  32461. <method name="startVector" return="org.apache.hadoop.record.Index"
  32462. abstract="false" native="false" synchronized="false"
  32463. static="false" final="false" visibility="public"
  32464. deprecated="not deprecated">
  32465. <param name="tag" type="java.lang.String"/>
  32466. <exception name="IOException" type="java.io.IOException"/>
  32467. <doc>
  32468. <![CDATA[Check the mark for start of the serialized vector.
  32469. @param tag Used by tagged serialization formats (such as XML)
  32470. @return Index that is used to count the number of elements.]]>
  32471. </doc>
  32472. </method>
  32473. <method name="endVector"
  32474. abstract="false" native="false" synchronized="false"
  32475. static="false" final="false" visibility="public"
  32476. deprecated="not deprecated">
  32477. <param name="tag" type="java.lang.String"/>
  32478. <exception name="IOException" type="java.io.IOException"/>
  32479. <doc>
  32480. <![CDATA[Check the mark for end of the serialized vector.
  32481. @param tag Used by tagged serialization formats (such as XML)]]>
  32482. </doc>
  32483. </method>
  32484. <method name="startMap" return="org.apache.hadoop.record.Index"
  32485. abstract="false" native="false" synchronized="false"
  32486. static="false" final="false" visibility="public"
  32487. deprecated="not deprecated">
  32488. <param name="tag" type="java.lang.String"/>
  32489. <exception name="IOException" type="java.io.IOException"/>
  32490. <doc>
  32491. <![CDATA[Check the mark for start of the serialized map.
  32492. @param tag Used by tagged serialization formats (such as XML)
  32493. @return Index that is used to count the number of map entries.]]>
  32494. </doc>
  32495. </method>
  32496. <method name="endMap"
  32497. abstract="false" native="false" synchronized="false"
  32498. static="false" final="false" visibility="public"
  32499. deprecated="not deprecated">
  32500. <param name="tag" type="java.lang.String"/>
  32501. <exception name="IOException" type="java.io.IOException"/>
  32502. <doc>
  32503. <![CDATA[Check the mark for end of the serialized map.
  32504. @param tag Used by tagged serialization formats (such as XML)]]>
  32505. </doc>
  32506. </method>
  32507. <doc>
  32508. <![CDATA[Interface that all the Deserializers have to implement.]]>
  32509. </doc>
  32510. </interface>
  32511. <!-- end interface org.apache.hadoop.record.RecordInput -->
  32512. <!-- start interface org.apache.hadoop.record.RecordOutput -->
  32513. <interface name="RecordOutput" abstract="true"
  32514. static="false" final="false" visibility="public"
  32515. deprecated="not deprecated">
  32516. <method name="writeByte"
  32517. abstract="false" native="false" synchronized="false"
  32518. static="false" final="false" visibility="public"
  32519. deprecated="not deprecated">
  32520. <param name="b" type="byte"/>
  32521. <param name="tag" type="java.lang.String"/>
  32522. <exception name="IOException" type="java.io.IOException"/>
  32523. <doc>
  32524. <![CDATA[Write a byte to serialized record.
  32525. @param b Byte to be serialized
  32526. @param tag Used by tagged serialization formats (such as XML)
  32527. @throws IOException Indicates error in serialization]]>
  32528. </doc>
  32529. </method>
  32530. <method name="writeBool"
  32531. abstract="false" native="false" synchronized="false"
  32532. static="false" final="false" visibility="public"
  32533. deprecated="not deprecated">
  32534. <param name="b" type="boolean"/>
  32535. <param name="tag" type="java.lang.String"/>
  32536. <exception name="IOException" type="java.io.IOException"/>
  32537. <doc>
  32538. <![CDATA[Write a boolean to serialized record.
  32539. @param b Boolean to be serialized
  32540. @param tag Used by tagged serialization formats (such as XML)
  32541. @throws IOException Indicates error in serialization]]>
  32542. </doc>
  32543. </method>
  32544. <method name="writeInt"
  32545. abstract="false" native="false" synchronized="false"
  32546. static="false" final="false" visibility="public"
  32547. deprecated="not deprecated">
  32548. <param name="i" type="int"/>
  32549. <param name="tag" type="java.lang.String"/>
  32550. <exception name="IOException" type="java.io.IOException"/>
  32551. <doc>
  32552. <![CDATA[Write an integer to serialized record.
  32553. @param i Integer to be serialized
  32554. @param tag Used by tagged serialization formats (such as XML)
  32555. @throws IOException Indicates error in serialization]]>
  32556. </doc>
  32557. </method>
  32558. <method name="writeLong"
  32559. abstract="false" native="false" synchronized="false"
  32560. static="false" final="false" visibility="public"
  32561. deprecated="not deprecated">
  32562. <param name="l" type="long"/>
  32563. <param name="tag" type="java.lang.String"/>
  32564. <exception name="IOException" type="java.io.IOException"/>
  32565. <doc>
  32566. <![CDATA[Write a long integer to serialized record.
  32567. @param l Long to be serialized
  32568. @param tag Used by tagged serialization formats (such as XML)
  32569. @throws IOException Indicates error in serialization]]>
  32570. </doc>
  32571. </method>
  32572. <method name="writeFloat"
  32573. abstract="false" native="false" synchronized="false"
  32574. static="false" final="false" visibility="public"
  32575. deprecated="not deprecated">
  32576. <param name="f" type="float"/>
  32577. <param name="tag" type="java.lang.String"/>
  32578. <exception name="IOException" type="java.io.IOException"/>
  32579. <doc>
  32580. <![CDATA[Write a single-precision float to serialized record.
  32581. @param f Float to be serialized
  32582. @param tag Used by tagged serialization formats (such as XML)
  32583. @throws IOException Indicates error in serialization]]>
  32584. </doc>
  32585. </method>
  32586. <method name="writeDouble"
  32587. abstract="false" native="false" synchronized="false"
  32588. static="false" final="false" visibility="public"
  32589. deprecated="not deprecated">
  32590. <param name="d" type="double"/>
  32591. <param name="tag" type="java.lang.String"/>
  32592. <exception name="IOException" type="java.io.IOException"/>
  32593. <doc>
  32594. <![CDATA[Write a double precision floating point number to serialized record.
  32595. @param d Double to be serialized
  32596. @param tag Used by tagged serialization formats (such as XML)
  32597. @throws IOException Indicates error in serialization]]>
  32598. </doc>
  32599. </method>
  32600. <method name="writeString"
  32601. abstract="false" native="false" synchronized="false"
  32602. static="false" final="false" visibility="public"
  32603. deprecated="not deprecated">
  32604. <param name="s" type="java.lang.String"/>
  32605. <param name="tag" type="java.lang.String"/>
  32606. <exception name="IOException" type="java.io.IOException"/>
  32607. <doc>
  32608. <![CDATA[Write a unicode string to serialized record.
  32609. @param s String to be serialized
  32610. @param tag Used by tagged serialization formats (such as XML)
  32611. @throws IOException Indicates error in serialization]]>
  32612. </doc>
  32613. </method>
  32614. <method name="writeBuffer"
  32615. abstract="false" native="false" synchronized="false"
  32616. static="false" final="false" visibility="public"
  32617. deprecated="not deprecated">
  32618. <param name="buf" type="org.apache.hadoop.record.Buffer"/>
  32619. <param name="tag" type="java.lang.String"/>
  32620. <exception name="IOException" type="java.io.IOException"/>
  32621. <doc>
  32622. <![CDATA[Write a buffer to serialized record.
  32623. @param buf Buffer to be serialized
  32624. @param tag Used by tagged serialization formats (such as XML)
  32625. @throws IOException Indicates error in serialization]]>
  32626. </doc>
  32627. </method>
  32628. <method name="startRecord"
  32629. abstract="false" native="false" synchronized="false"
  32630. static="false" final="false" visibility="public"
  32631. deprecated="not deprecated">
  32632. <param name="r" type="org.apache.hadoop.record.Record"/>
  32633. <param name="tag" type="java.lang.String"/>
  32634. <exception name="IOException" type="java.io.IOException"/>
  32635. <doc>
  32636. <![CDATA[Mark the start of a record to be serialized.
  32637. @param r Record to be serialized
  32638. @param tag Used by tagged serialization formats (such as XML)
  32639. @throws IOException Indicates error in serialization]]>
  32640. </doc>
  32641. </method>
  32642. <method name="endRecord"
  32643. abstract="false" native="false" synchronized="false"
  32644. static="false" final="false" visibility="public"
  32645. deprecated="not deprecated">
  32646. <param name="r" type="org.apache.hadoop.record.Record"/>
  32647. <param name="tag" type="java.lang.String"/>
  32648. <exception name="IOException" type="java.io.IOException"/>
  32649. <doc>
  32650. <![CDATA[Mark the end of a serialized record.
  32651. @param r Record to be serialized
  32652. @param tag Used by tagged serialization formats (such as XML)
  32653. @throws IOException Indicates error in serialization]]>
  32654. </doc>
  32655. </method>
  32656. <method name="startVector"
  32657. abstract="false" native="false" synchronized="false"
  32658. static="false" final="false" visibility="public"
  32659. deprecated="not deprecated">
  32660. <param name="v" type="java.util.ArrayList"/>
  32661. <param name="tag" type="java.lang.String"/>
  32662. <exception name="IOException" type="java.io.IOException"/>
  32663. <doc>
  32664. <![CDATA[Mark the start of a vector to be serialized.
  32665. @param v Vector to be serialized
  32666. @param tag Used by tagged serialization formats (such as XML)
  32667. @throws IOException Indicates error in serialization]]>
  32668. </doc>
  32669. </method>
  32670. <method name="endVector"
  32671. abstract="false" native="false" synchronized="false"
  32672. static="false" final="false" visibility="public"
  32673. deprecated="not deprecated">
  32674. <param name="v" type="java.util.ArrayList"/>
  32675. <param name="tag" type="java.lang.String"/>
  32676. <exception name="IOException" type="java.io.IOException"/>
  32677. <doc>
  32678. <![CDATA[Mark the end of a serialized vector.
  32679. @param v Vector to be serialized
  32680. @param tag Used by tagged serialization formats (such as XML)
  32681. @throws IOException Indicates error in serialization]]>
  32682. </doc>
  32683. </method>
  32684. <method name="startMap"
  32685. abstract="false" native="false" synchronized="false"
  32686. static="false" final="false" visibility="public"
  32687. deprecated="not deprecated">
  32688. <param name="m" type="java.util.TreeMap"/>
  32689. <param name="tag" type="java.lang.String"/>
  32690. <exception name="IOException" type="java.io.IOException"/>
  32691. <doc>
  32692. <![CDATA[Mark the start of a map to be serialized.
  32693. @param m Map to be serialized
  32694. @param tag Used by tagged serialization formats (such as XML)
  32695. @throws IOException Indicates error in serialization]]>
  32696. </doc>
  32697. </method>
  32698. <method name="endMap"
  32699. abstract="false" native="false" synchronized="false"
  32700. static="false" final="false" visibility="public"
  32701. deprecated="not deprecated">
  32702. <param name="m" type="java.util.TreeMap"/>
  32703. <param name="tag" type="java.lang.String"/>
  32704. <exception name="IOException" type="java.io.IOException"/>
  32705. <doc>
  32706. <![CDATA[Mark the end of a serialized map.
  32707. @param m Map to be serialized
  32708. @param tag Used by tagged serialization formats (such as XML)
  32709. @throws IOException Indicates error in serialization]]>
  32710. </doc>
  32711. </method>
  32712. <doc>
  32713. <![CDATA[Interface that alll the serializers have to implement.]]>
  32714. </doc>
  32715. </interface>
  32716. <!-- end interface org.apache.hadoop.record.RecordOutput -->
  32717. <!-- start class org.apache.hadoop.record.Utils -->
  32718. <class name="Utils" extends="java.lang.Object"
  32719. abstract="false"
  32720. static="false" final="false" visibility="public"
  32721. deprecated="not deprecated">
  32722. <method name="readFloat" return="float"
  32723. abstract="false" native="false" synchronized="false"
  32724. static="true" final="false" visibility="public"
  32725. deprecated="not deprecated">
  32726. <param name="bytes" type="byte[]"/>
  32727. <param name="start" type="int"/>
  32728. <doc>
  32729. <![CDATA[Parse a float from a byte array.]]>
  32730. </doc>
  32731. </method>
  32732. <method name="readDouble" return="double"
  32733. abstract="false" native="false" synchronized="false"
  32734. static="true" final="false" visibility="public"
  32735. deprecated="not deprecated">
  32736. <param name="bytes" type="byte[]"/>
  32737. <param name="start" type="int"/>
  32738. <doc>
  32739. <![CDATA[Parse a double from a byte array.]]>
  32740. </doc>
  32741. </method>
  32742. <method name="readVLong" return="long"
  32743. abstract="false" native="false" synchronized="false"
  32744. static="true" final="false" visibility="public"
  32745. deprecated="not deprecated">
  32746. <param name="bytes" type="byte[]"/>
  32747. <param name="start" type="int"/>
  32748. <exception name="IOException" type="java.io.IOException"/>
  32749. <doc>
  32750. <![CDATA[Reads a zero-compressed encoded long from a byte array and returns it.
  32751. @param bytes byte array with decode long
  32752. @param start starting index
  32753. @throws java.io.IOException
  32754. @return deserialized long]]>
  32755. </doc>
  32756. </method>
  32757. <method name="readVInt" return="int"
  32758. abstract="false" native="false" synchronized="false"
  32759. static="true" final="false" visibility="public"
  32760. deprecated="not deprecated">
  32761. <param name="bytes" type="byte[]"/>
  32762. <param name="start" type="int"/>
  32763. <exception name="IOException" type="java.io.IOException"/>
  32764. <doc>
  32765. <![CDATA[Reads a zero-compressed encoded integer from a byte array and returns it.
  32766. @param bytes byte array with the encoded integer
  32767. @param start start index
  32768. @throws java.io.IOException
  32769. @return deserialized integer]]>
  32770. </doc>
  32771. </method>
  32772. <method name="readVLong" return="long"
  32773. abstract="false" native="false" synchronized="false"
  32774. static="true" final="false" visibility="public"
  32775. deprecated="not deprecated">
  32776. <param name="in" type="java.io.DataInput"/>
  32777. <exception name="IOException" type="java.io.IOException"/>
  32778. <doc>
  32779. <![CDATA[Reads a zero-compressed encoded long from a stream and return it.
  32780. @param in input stream
  32781. @throws java.io.IOException
  32782. @return deserialized long]]>
  32783. </doc>
  32784. </method>
  32785. <method name="readVInt" return="int"
  32786. abstract="false" native="false" synchronized="false"
  32787. static="true" final="false" visibility="public"
  32788. deprecated="not deprecated">
  32789. <param name="in" type="java.io.DataInput"/>
  32790. <exception name="IOException" type="java.io.IOException"/>
  32791. <doc>
  32792. <![CDATA[Reads a zero-compressed encoded integer from a stream and returns it.
  32793. @param in input stream
  32794. @throws java.io.IOException
  32795. @return deserialized integer]]>
  32796. </doc>
  32797. </method>
  32798. <method name="getVIntSize" return="int"
  32799. abstract="false" native="false" synchronized="false"
  32800. static="true" final="false" visibility="public"
  32801. deprecated="not deprecated">
  32802. <param name="i" type="long"/>
  32803. <doc>
  32804. <![CDATA[Get the encoded length if an integer is stored in a variable-length format
  32805. @return the encoded length]]>
  32806. </doc>
  32807. </method>
  32808. <method name="writeVLong"
  32809. abstract="false" native="false" synchronized="false"
  32810. static="true" final="false" visibility="public"
  32811. deprecated="not deprecated">
  32812. <param name="stream" type="java.io.DataOutput"/>
  32813. <param name="i" type="long"/>
  32814. <exception name="IOException" type="java.io.IOException"/>
  32815. <doc>
  32816. <![CDATA[Serializes a long to a binary stream with zero-compressed encoding.
  32817. For -112 <= i <= 127, only one byte is used with the actual value.
  32818. For other values of i, the first byte value indicates whether the
  32819. long is positive or negative, and the number of bytes that follow.
  32820. If the first byte value v is between -113 and -120, the following long
  32821. is positive, with number of bytes that follow are -(v+112).
  32822. If the first byte value v is between -121 and -128, the following long
  32823. is negative, with number of bytes that follow are -(v+120). Bytes are
  32824. stored in the high-non-zero-byte-first order.
  32825. @param stream Binary output stream
  32826. @param i Long to be serialized
  32827. @throws java.io.IOException]]>
  32828. </doc>
  32829. </method>
  32830. <method name="writeVInt"
  32831. abstract="false" native="false" synchronized="false"
  32832. static="true" final="false" visibility="public"
  32833. deprecated="not deprecated">
  32834. <param name="stream" type="java.io.DataOutput"/>
  32835. <param name="i" type="int"/>
  32836. <exception name="IOException" type="java.io.IOException"/>
  32837. <doc>
  32838. <![CDATA[Serializes an int to a binary stream with zero-compressed encoding.
  32839. @param stream Binary output stream
  32840. @param i int to be serialized
  32841. @throws java.io.IOException]]>
  32842. </doc>
  32843. </method>
  32844. <method name="compareBytes" return="int"
  32845. abstract="false" native="false" synchronized="false"
  32846. static="true" final="false" visibility="public"
  32847. deprecated="not deprecated">
  32848. <param name="b1" type="byte[]"/>
  32849. <param name="s1" type="int"/>
  32850. <param name="l1" type="int"/>
  32851. <param name="b2" type="byte[]"/>
  32852. <param name="s2" type="int"/>
  32853. <param name="l2" type="int"/>
  32854. <doc>
  32855. <![CDATA[Lexicographic order of binary data.]]>
  32856. </doc>
  32857. </method>
  32858. <field name="hexchars" type="char[]"
  32859. transient="false" volatile="false"
  32860. static="true" final="true" visibility="public"
  32861. deprecated="not deprecated">
  32862. </field>
  32863. <doc>
  32864. <![CDATA[Various utility functions for Hadooop record I/O runtime.]]>
  32865. </doc>
  32866. </class>
  32867. <!-- end class org.apache.hadoop.record.Utils -->
  32868. <!-- start class org.apache.hadoop.record.XmlRecordInput -->
  32869. <class name="XmlRecordInput" extends="java.lang.Object"
  32870. abstract="false"
  32871. static="false" final="false" visibility="public"
  32872. deprecated="not deprecated">
  32873. <implements name="org.apache.hadoop.record.RecordInput"/>
  32874. <constructor name="XmlRecordInput" type="java.io.InputStream"
  32875. static="false" final="false" visibility="public"
  32876. deprecated="not deprecated">
  32877. <doc>
  32878. <![CDATA[Creates a new instance of XmlRecordInput]]>
  32879. </doc>
  32880. </constructor>
  32881. <method name="readByte" return="byte"
  32882. abstract="false" native="false" synchronized="false"
  32883. static="false" final="false" visibility="public"
  32884. deprecated="not deprecated">
  32885. <param name="tag" type="java.lang.String"/>
  32886. <exception name="IOException" type="java.io.IOException"/>
  32887. </method>
  32888. <method name="readBool" return="boolean"
  32889. abstract="false" native="false" synchronized="false"
  32890. static="false" final="false" visibility="public"
  32891. deprecated="not deprecated">
  32892. <param name="tag" type="java.lang.String"/>
  32893. <exception name="IOException" type="java.io.IOException"/>
  32894. </method>
  32895. <method name="readInt" return="int"
  32896. abstract="false" native="false" synchronized="false"
  32897. static="false" final="false" visibility="public"
  32898. deprecated="not deprecated">
  32899. <param name="tag" type="java.lang.String"/>
  32900. <exception name="IOException" type="java.io.IOException"/>
  32901. </method>
  32902. <method name="readLong" return="long"
  32903. abstract="false" native="false" synchronized="false"
  32904. static="false" final="false" visibility="public"
  32905. deprecated="not deprecated">
  32906. <param name="tag" type="java.lang.String"/>
  32907. <exception name="IOException" type="java.io.IOException"/>
  32908. </method>
  32909. <method name="readFloat" return="float"
  32910. abstract="false" native="false" synchronized="false"
  32911. static="false" final="false" visibility="public"
  32912. deprecated="not deprecated">
  32913. <param name="tag" type="java.lang.String"/>
  32914. <exception name="IOException" type="java.io.IOException"/>
  32915. </method>
  32916. <method name="readDouble" return="double"
  32917. abstract="false" native="false" synchronized="false"
  32918. static="false" final="false" visibility="public"
  32919. deprecated="not deprecated">
  32920. <param name="tag" type="java.lang.String"/>
  32921. <exception name="IOException" type="java.io.IOException"/>
  32922. </method>
  32923. <method name="readString" return="java.lang.String"
  32924. abstract="false" native="false" synchronized="false"
  32925. static="false" final="false" visibility="public"
  32926. deprecated="not deprecated">
  32927. <param name="tag" type="java.lang.String"/>
  32928. <exception name="IOException" type="java.io.IOException"/>
  32929. </method>
  32930. <method name="readBuffer" return="org.apache.hadoop.record.Buffer"
  32931. abstract="false" native="false" synchronized="false"
  32932. static="false" final="false" visibility="public"
  32933. deprecated="not deprecated">
  32934. <param name="tag" type="java.lang.String"/>
  32935. <exception name="IOException" type="java.io.IOException"/>
  32936. </method>
  32937. <method name="startRecord"
  32938. abstract="false" native="false" synchronized="false"
  32939. static="false" final="false" visibility="public"
  32940. deprecated="not deprecated">
  32941. <param name="tag" type="java.lang.String"/>
  32942. <exception name="IOException" type="java.io.IOException"/>
  32943. </method>
  32944. <method name="endRecord"
  32945. abstract="false" native="false" synchronized="false"
  32946. static="false" final="false" visibility="public"
  32947. deprecated="not deprecated">
  32948. <param name="tag" type="java.lang.String"/>
  32949. <exception name="IOException" type="java.io.IOException"/>
  32950. </method>
  32951. <method name="startVector" return="org.apache.hadoop.record.Index"
  32952. abstract="false" native="false" synchronized="false"
  32953. static="false" final="false" visibility="public"
  32954. deprecated="not deprecated">
  32955. <param name="tag" type="java.lang.String"/>
  32956. <exception name="IOException" type="java.io.IOException"/>
  32957. </method>
  32958. <method name="endVector"
  32959. abstract="false" native="false" synchronized="false"
  32960. static="false" final="false" visibility="public"
  32961. deprecated="not deprecated">
  32962. <param name="tag" type="java.lang.String"/>
  32963. <exception name="IOException" type="java.io.IOException"/>
  32964. </method>
  32965. <method name="startMap" return="org.apache.hadoop.record.Index"
  32966. abstract="false" native="false" synchronized="false"
  32967. static="false" final="false" visibility="public"
  32968. deprecated="not deprecated">
  32969. <param name="tag" type="java.lang.String"/>
  32970. <exception name="IOException" type="java.io.IOException"/>
  32971. </method>
  32972. <method name="endMap"
  32973. abstract="false" native="false" synchronized="false"
  32974. static="false" final="false" visibility="public"
  32975. deprecated="not deprecated">
  32976. <param name="tag" type="java.lang.String"/>
  32977. <exception name="IOException" type="java.io.IOException"/>
  32978. </method>
  32979. <doc>
  32980. <![CDATA[XML Deserializer.]]>
  32981. </doc>
  32982. </class>
  32983. <!-- end class org.apache.hadoop.record.XmlRecordInput -->
  32984. <!-- start class org.apache.hadoop.record.XmlRecordOutput -->
  32985. <class name="XmlRecordOutput" extends="java.lang.Object"
  32986. abstract="false"
  32987. static="false" final="false" visibility="public"
  32988. deprecated="not deprecated">
  32989. <implements name="org.apache.hadoop.record.RecordOutput"/>
  32990. <constructor name="XmlRecordOutput" type="java.io.OutputStream"
  32991. static="false" final="false" visibility="public"
  32992. deprecated="not deprecated">
  32993. <doc>
  32994. <![CDATA[Creates a new instance of XmlRecordOutput]]>
  32995. </doc>
  32996. </constructor>
  32997. <method name="writeByte"
  32998. abstract="false" native="false" synchronized="false"
  32999. static="false" final="false" visibility="public"
  33000. deprecated="not deprecated">
  33001. <param name="b" type="byte"/>
  33002. <param name="tag" type="java.lang.String"/>
  33003. <exception name="IOException" type="java.io.IOException"/>
  33004. </method>
  33005. <method name="writeBool"
  33006. abstract="false" native="false" synchronized="false"
  33007. static="false" final="false" visibility="public"
  33008. deprecated="not deprecated">
  33009. <param name="b" type="boolean"/>
  33010. <param name="tag" type="java.lang.String"/>
  33011. <exception name="IOException" type="java.io.IOException"/>
  33012. </method>
  33013. <method name="writeInt"
  33014. abstract="false" native="false" synchronized="false"
  33015. static="false" final="false" visibility="public"
  33016. deprecated="not deprecated">
  33017. <param name="i" type="int"/>
  33018. <param name="tag" type="java.lang.String"/>
  33019. <exception name="IOException" type="java.io.IOException"/>
  33020. </method>
  33021. <method name="writeLong"
  33022. abstract="false" native="false" synchronized="false"
  33023. static="false" final="false" visibility="public"
  33024. deprecated="not deprecated">
  33025. <param name="l" type="long"/>
  33026. <param name="tag" type="java.lang.String"/>
  33027. <exception name="IOException" type="java.io.IOException"/>
  33028. </method>
  33029. <method name="writeFloat"
  33030. abstract="false" native="false" synchronized="false"
  33031. static="false" final="false" visibility="public"
  33032. deprecated="not deprecated">
  33033. <param name="f" type="float"/>
  33034. <param name="tag" type="java.lang.String"/>
  33035. <exception name="IOException" type="java.io.IOException"/>
  33036. </method>
  33037. <method name="writeDouble"
  33038. abstract="false" native="false" synchronized="false"
  33039. static="false" final="false" visibility="public"
  33040. deprecated="not deprecated">
  33041. <param name="d" type="double"/>
  33042. <param name="tag" type="java.lang.String"/>
  33043. <exception name="IOException" type="java.io.IOException"/>
  33044. </method>
  33045. <method name="writeString"
  33046. abstract="false" native="false" synchronized="false"
  33047. static="false" final="false" visibility="public"
  33048. deprecated="not deprecated">
  33049. <param name="s" type="java.lang.String"/>
  33050. <param name="tag" type="java.lang.String"/>
  33051. <exception name="IOException" type="java.io.IOException"/>
  33052. </method>
  33053. <method name="writeBuffer"
  33054. abstract="false" native="false" synchronized="false"
  33055. static="false" final="false" visibility="public"
  33056. deprecated="not deprecated">
  33057. <param name="buf" type="org.apache.hadoop.record.Buffer"/>
  33058. <param name="tag" type="java.lang.String"/>
  33059. <exception name="IOException" type="java.io.IOException"/>
  33060. </method>
  33061. <method name="startRecord"
  33062. abstract="false" native="false" synchronized="false"
  33063. static="false" final="false" visibility="public"
  33064. deprecated="not deprecated">
  33065. <param name="r" type="org.apache.hadoop.record.Record"/>
  33066. <param name="tag" type="java.lang.String"/>
  33067. <exception name="IOException" type="java.io.IOException"/>
  33068. </method>
  33069. <method name="endRecord"
  33070. abstract="false" native="false" synchronized="false"
  33071. static="false" final="false" visibility="public"
  33072. deprecated="not deprecated">
  33073. <param name="r" type="org.apache.hadoop.record.Record"/>
  33074. <param name="tag" type="java.lang.String"/>
  33075. <exception name="IOException" type="java.io.IOException"/>
  33076. </method>
  33077. <method name="startVector"
  33078. abstract="false" native="false" synchronized="false"
  33079. static="false" final="false" visibility="public"
  33080. deprecated="not deprecated">
  33081. <param name="v" type="java.util.ArrayList"/>
  33082. <param name="tag" type="java.lang.String"/>
  33083. <exception name="IOException" type="java.io.IOException"/>
  33084. </method>
  33085. <method name="endVector"
  33086. abstract="false" native="false" synchronized="false"
  33087. static="false" final="false" visibility="public"
  33088. deprecated="not deprecated">
  33089. <param name="v" type="java.util.ArrayList"/>
  33090. <param name="tag" type="java.lang.String"/>
  33091. <exception name="IOException" type="java.io.IOException"/>
  33092. </method>
  33093. <method name="startMap"
  33094. abstract="false" native="false" synchronized="false"
  33095. static="false" final="false" visibility="public"
  33096. deprecated="not deprecated">
  33097. <param name="v" type="java.util.TreeMap"/>
  33098. <param name="tag" type="java.lang.String"/>
  33099. <exception name="IOException" type="java.io.IOException"/>
  33100. </method>
  33101. <method name="endMap"
  33102. abstract="false" native="false" synchronized="false"
  33103. static="false" final="false" visibility="public"
  33104. deprecated="not deprecated">
  33105. <param name="v" type="java.util.TreeMap"/>
  33106. <param name="tag" type="java.lang.String"/>
  33107. <exception name="IOException" type="java.io.IOException"/>
  33108. </method>
  33109. <doc>
  33110. <![CDATA[XML Serializer.]]>
  33111. </doc>
  33112. </class>
  33113. <!-- end class org.apache.hadoop.record.XmlRecordOutput -->
  33114. </package>
  33115. <package name="org.apache.hadoop.record.compiler">
  33116. <!-- start class org.apache.hadoop.record.compiler.CodeBuffer -->
  33117. <class name="CodeBuffer" extends="java.lang.Object"
  33118. abstract="false"
  33119. static="false" final="false" visibility="public"
  33120. deprecated="not deprecated">
  33121. <method name="toString" return="java.lang.String"
  33122. abstract="false" native="false" synchronized="false"
  33123. static="false" final="false" visibility="public"
  33124. deprecated="not deprecated">
  33125. </method>
  33126. <doc>
  33127. <![CDATA[A wrapper around StringBuffer that automatically does indentation]]>
  33128. </doc>
  33129. </class>
  33130. <!-- end class org.apache.hadoop.record.compiler.CodeBuffer -->
  33131. <!-- start class org.apache.hadoop.record.compiler.Consts -->
  33132. <class name="Consts" extends="java.lang.Object"
  33133. abstract="false"
  33134. static="false" final="false" visibility="public"
  33135. deprecated="not deprecated">
  33136. <field name="RIO_PREFIX" type="java.lang.String"
  33137. transient="false" volatile="false"
  33138. static="true" final="true" visibility="public"
  33139. deprecated="not deprecated">
  33140. </field>
  33141. <field name="RTI_VAR" type="java.lang.String"
  33142. transient="false" volatile="false"
  33143. static="true" final="true" visibility="public"
  33144. deprecated="not deprecated">
  33145. </field>
  33146. <field name="RTI_FILTER" type="java.lang.String"
  33147. transient="false" volatile="false"
  33148. static="true" final="true" visibility="public"
  33149. deprecated="not deprecated">
  33150. </field>
  33151. <field name="RTI_FILTER_FIELDS" type="java.lang.String"
  33152. transient="false" volatile="false"
  33153. static="true" final="true" visibility="public"
  33154. deprecated="not deprecated">
  33155. </field>
  33156. <field name="RECORD_OUTPUT" type="java.lang.String"
  33157. transient="false" volatile="false"
  33158. static="true" final="true" visibility="public"
  33159. deprecated="not deprecated">
  33160. </field>
  33161. <field name="RECORD_INPUT" type="java.lang.String"
  33162. transient="false" volatile="false"
  33163. static="true" final="true" visibility="public"
  33164. deprecated="not deprecated">
  33165. </field>
  33166. <field name="TAG" type="java.lang.String"
  33167. transient="false" volatile="false"
  33168. static="true" final="true" visibility="public"
  33169. deprecated="not deprecated">
  33170. </field>
  33171. <doc>
  33172. <![CDATA[const definitions for Record I/O compiler]]>
  33173. </doc>
  33174. </class>
  33175. <!-- end class org.apache.hadoop.record.compiler.Consts -->
  33176. <!-- start class org.apache.hadoop.record.compiler.JBoolean -->
  33177. <class name="JBoolean" extends="org.apache.hadoop.record.compiler.JType"
  33178. abstract="false"
  33179. static="false" final="false" visibility="public"
  33180. deprecated="not deprecated">
  33181. <constructor name="JBoolean"
  33182. static="false" final="false" visibility="public"
  33183. deprecated="not deprecated">
  33184. <doc>
  33185. <![CDATA[Creates a new instance of JBoolean]]>
  33186. </doc>
  33187. </constructor>
  33188. </class>
  33189. <!-- end class org.apache.hadoop.record.compiler.JBoolean -->
  33190. <!-- start class org.apache.hadoop.record.compiler.JBuffer -->
  33191. <class name="JBuffer" extends="org.apache.hadoop.record.compiler.JCompType"
  33192. abstract="false"
  33193. static="false" final="false" visibility="public"
  33194. deprecated="not deprecated">
  33195. <constructor name="JBuffer"
  33196. static="false" final="false" visibility="public"
  33197. deprecated="not deprecated">
  33198. <doc>
  33199. <![CDATA[Creates a new instance of JBuffer]]>
  33200. </doc>
  33201. </constructor>
  33202. <doc>
  33203. <![CDATA[Code generator for "buffer" type.]]>
  33204. </doc>
  33205. </class>
  33206. <!-- end class org.apache.hadoop.record.compiler.JBuffer -->
  33207. <!-- start class org.apache.hadoop.record.compiler.JByte -->
  33208. <class name="JByte" extends="org.apache.hadoop.record.compiler.JType"
  33209. abstract="false"
  33210. static="false" final="false" visibility="public"
  33211. deprecated="not deprecated">
  33212. <constructor name="JByte"
  33213. static="false" final="false" visibility="public"
  33214. deprecated="not deprecated">
  33215. </constructor>
  33216. <doc>
  33217. <![CDATA[Code generator for "byte" type.]]>
  33218. </doc>
  33219. </class>
  33220. <!-- end class org.apache.hadoop.record.compiler.JByte -->
  33221. <!-- start class org.apache.hadoop.record.compiler.JDouble -->
  33222. <class name="JDouble" extends="org.apache.hadoop.record.compiler.JType"
  33223. abstract="false"
  33224. static="false" final="false" visibility="public"
  33225. deprecated="not deprecated">
  33226. <constructor name="JDouble"
  33227. static="false" final="false" visibility="public"
  33228. deprecated="not deprecated">
  33229. <doc>
  33230. <![CDATA[Creates a new instance of JDouble]]>
  33231. </doc>
  33232. </constructor>
  33233. </class>
  33234. <!-- end class org.apache.hadoop.record.compiler.JDouble -->
  33235. <!-- start class org.apache.hadoop.record.compiler.JField -->
  33236. <class name="JField" extends="java.lang.Object"
  33237. abstract="false"
  33238. static="false" final="false" visibility="public"
  33239. deprecated="not deprecated">
  33240. <constructor name="JField" type="java.lang.String, java.lang.Object"
  33241. static="false" final="false" visibility="public"
  33242. deprecated="not deprecated">
  33243. <doc>
  33244. <![CDATA[Creates a new instance of JField]]>
  33245. </doc>
  33246. </constructor>
  33247. <doc>
  33248. <![CDATA[A thin wrappper around record field.]]>
  33249. </doc>
  33250. </class>
  33251. <!-- end class org.apache.hadoop.record.compiler.JField -->
  33252. <!-- start class org.apache.hadoop.record.compiler.JFile -->
  33253. <class name="JFile" extends="java.lang.Object"
  33254. abstract="false"
  33255. static="false" final="false" visibility="public"
  33256. deprecated="not deprecated">
  33257. <constructor name="JFile" type="java.lang.String, java.util.ArrayList, java.util.ArrayList"
  33258. static="false" final="false" visibility="public"
  33259. deprecated="not deprecated">
  33260. <doc>
  33261. <![CDATA[Creates a new instance of JFile
  33262. @param name possibly full pathname to the file
  33263. @param inclFiles included files (as JFile)
  33264. @param recList List of records defined within this file]]>
  33265. </doc>
  33266. </constructor>
  33267. <method name="genCode" return="int"
  33268. abstract="false" native="false" synchronized="false"
  33269. static="false" final="false" visibility="public"
  33270. deprecated="not deprecated">
  33271. <param name="language" type="java.lang.String"/>
  33272. <param name="destDir" type="java.lang.String"/>
  33273. <param name="options" type="java.util.ArrayList"/>
  33274. <exception name="IOException" type="java.io.IOException"/>
  33275. <doc>
  33276. <![CDATA[Generate record code in given language. Language should be all
  33277. lowercase.]]>
  33278. </doc>
  33279. </method>
  33280. <doc>
  33281. <![CDATA[Container for the Hadoop Record DDL.
  33282. The main components of the file are filename, list of included files,
  33283. and records defined in that file.]]>
  33284. </doc>
  33285. </class>
  33286. <!-- end class org.apache.hadoop.record.compiler.JFile -->
  33287. <!-- start class org.apache.hadoop.record.compiler.JFloat -->
  33288. <class name="JFloat" extends="org.apache.hadoop.record.compiler.JType"
  33289. abstract="false"
  33290. static="false" final="false" visibility="public"
  33291. deprecated="not deprecated">
  33292. <constructor name="JFloat"
  33293. static="false" final="false" visibility="public"
  33294. deprecated="not deprecated">
  33295. <doc>
  33296. <![CDATA[Creates a new instance of JFloat]]>
  33297. </doc>
  33298. </constructor>
  33299. </class>
  33300. <!-- end class org.apache.hadoop.record.compiler.JFloat -->
  33301. <!-- start class org.apache.hadoop.record.compiler.JInt -->
  33302. <class name="JInt" extends="org.apache.hadoop.record.compiler.JType"
  33303. abstract="false"
  33304. static="false" final="false" visibility="public"
  33305. deprecated="not deprecated">
  33306. <constructor name="JInt"
  33307. static="false" final="false" visibility="public"
  33308. deprecated="not deprecated">
  33309. <doc>
  33310. <![CDATA[Creates a new instance of JInt]]>
  33311. </doc>
  33312. </constructor>
  33313. <doc>
  33314. <![CDATA[Code generator for "int" type]]>
  33315. </doc>
  33316. </class>
  33317. <!-- end class org.apache.hadoop.record.compiler.JInt -->
  33318. <!-- start class org.apache.hadoop.record.compiler.JLong -->
  33319. <class name="JLong" extends="org.apache.hadoop.record.compiler.JType"
  33320. abstract="false"
  33321. static="false" final="false" visibility="public"
  33322. deprecated="not deprecated">
  33323. <constructor name="JLong"
  33324. static="false" final="false" visibility="public"
  33325. deprecated="not deprecated">
  33326. <doc>
  33327. <![CDATA[Creates a new instance of JLong]]>
  33328. </doc>
  33329. </constructor>
  33330. <doc>
  33331. <![CDATA[Code generator for "long" type]]>
  33332. </doc>
  33333. </class>
  33334. <!-- end class org.apache.hadoop.record.compiler.JLong -->
  33335. <!-- start class org.apache.hadoop.record.compiler.JMap -->
  33336. <class name="JMap" extends="org.apache.hadoop.record.compiler.JCompType"
  33337. abstract="false"
  33338. static="false" final="false" visibility="public"
  33339. deprecated="not deprecated">
  33340. <constructor name="JMap" type="org.apache.hadoop.record.compiler.JType, org.apache.hadoop.record.compiler.JType"
  33341. static="false" final="false" visibility="public"
  33342. deprecated="not deprecated">
  33343. <doc>
  33344. <![CDATA[Creates a new instance of JMap]]>
  33345. </doc>
  33346. </constructor>
  33347. </class>
  33348. <!-- end class org.apache.hadoop.record.compiler.JMap -->
  33349. <!-- start class org.apache.hadoop.record.compiler.JRecord -->
  33350. <class name="JRecord" extends="org.apache.hadoop.record.compiler.JCompType"
  33351. abstract="false"
  33352. static="false" final="false" visibility="public"
  33353. deprecated="not deprecated">
  33354. <constructor name="JRecord" type="java.lang.String, java.util.ArrayList"
  33355. static="false" final="false" visibility="public"
  33356. deprecated="not deprecated">
  33357. <doc>
  33358. <![CDATA[Creates a new instance of JRecord]]>
  33359. </doc>
  33360. </constructor>
  33361. </class>
  33362. <!-- end class org.apache.hadoop.record.compiler.JRecord -->
  33363. <!-- start class org.apache.hadoop.record.compiler.JString -->
  33364. <class name="JString" extends="org.apache.hadoop.record.compiler.JCompType"
  33365. abstract="false"
  33366. static="false" final="false" visibility="public"
  33367. deprecated="not deprecated">
  33368. <constructor name="JString"
  33369. static="false" final="false" visibility="public"
  33370. deprecated="not deprecated">
  33371. <doc>
  33372. <![CDATA[Creates a new instance of JString]]>
  33373. </doc>
  33374. </constructor>
  33375. </class>
  33376. <!-- end class org.apache.hadoop.record.compiler.JString -->
  33377. <!-- start class org.apache.hadoop.record.compiler.JType -->
  33378. <class name="JType" extends="java.lang.Object"
  33379. abstract="true"
  33380. static="false" final="false" visibility="public"
  33381. deprecated="not deprecated">
  33382. <constructor name="JType"
  33383. static="false" final="false" visibility="public"
  33384. deprecated="not deprecated">
  33385. </constructor>
  33386. <doc>
  33387. <![CDATA[Abstract Base class for all types supported by Hadoop Record I/O.]]>
  33388. </doc>
  33389. </class>
  33390. <!-- end class org.apache.hadoop.record.compiler.JType -->
  33391. <!-- start class org.apache.hadoop.record.compiler.JVector -->
  33392. <class name="JVector" extends="org.apache.hadoop.record.compiler.JCompType"
  33393. abstract="false"
  33394. static="false" final="false" visibility="public"
  33395. deprecated="not deprecated">
  33396. <constructor name="JVector" type="org.apache.hadoop.record.compiler.JType"
  33397. static="false" final="false" visibility="public"
  33398. deprecated="not deprecated">
  33399. <doc>
  33400. <![CDATA[Creates a new instance of JVector]]>
  33401. </doc>
  33402. </constructor>
  33403. </class>
  33404. <!-- end class org.apache.hadoop.record.compiler.JVector -->
  33405. </package>
  33406. <package name="org.apache.hadoop.record.compiler.ant">
  33407. <!-- start class org.apache.hadoop.record.compiler.ant.RccTask -->
  33408. <class name="RccTask" extends="org.apache.tools.ant.Task"
  33409. abstract="false"
  33410. static="false" final="false" visibility="public"
  33411. deprecated="not deprecated">
  33412. <constructor name="RccTask"
  33413. static="false" final="false" visibility="public"
  33414. deprecated="not deprecated">
  33415. <doc>
  33416. <![CDATA[Creates a new instance of RccTask]]>
  33417. </doc>
  33418. </constructor>
  33419. <method name="setLanguage"
  33420. abstract="false" native="false" synchronized="false"
  33421. static="false" final="false" visibility="public"
  33422. deprecated="not deprecated">
  33423. <param name="language" type="java.lang.String"/>
  33424. <doc>
  33425. <![CDATA[Sets the output language option
  33426. @param language "java"/"c++"]]>
  33427. </doc>
  33428. </method>
  33429. <method name="setFile"
  33430. abstract="false" native="false" synchronized="false"
  33431. static="false" final="false" visibility="public"
  33432. deprecated="not deprecated">
  33433. <param name="file" type="java.io.File"/>
  33434. <doc>
  33435. <![CDATA[Sets the record definition file attribute
  33436. @param file record definition file]]>
  33437. </doc>
  33438. </method>
  33439. <method name="setFailonerror"
  33440. abstract="false" native="false" synchronized="false"
  33441. static="false" final="false" visibility="public"
  33442. deprecated="not deprecated">
  33443. <param name="flag" type="boolean"/>
  33444. <doc>
  33445. <![CDATA[Given multiple files (via fileset), set the error handling behavior
  33446. @param flag true will throw build exception in case of failure (default)]]>
  33447. </doc>
  33448. </method>
  33449. <method name="setDestdir"
  33450. abstract="false" native="false" synchronized="false"
  33451. static="false" final="false" visibility="public"
  33452. deprecated="not deprecated">
  33453. <param name="dir" type="java.io.File"/>
  33454. <doc>
  33455. <![CDATA[Sets directory where output files will be generated
  33456. @param dir output directory]]>
  33457. </doc>
  33458. </method>
  33459. <method name="addFileset"
  33460. abstract="false" native="false" synchronized="false"
  33461. static="false" final="false" visibility="public"
  33462. deprecated="not deprecated">
  33463. <param name="set" type="org.apache.tools.ant.types.FileSet"/>
  33464. <doc>
  33465. <![CDATA[Adds a fileset that can consist of one or more files
  33466. @param set Set of record definition files]]>
  33467. </doc>
  33468. </method>
  33469. <method name="execute"
  33470. abstract="false" native="false" synchronized="false"
  33471. static="false" final="false" visibility="public"
  33472. deprecated="not deprecated">
  33473. <exception name="BuildException" type="org.apache.tools.ant.BuildException"/>
  33474. <doc>
  33475. <![CDATA[Invoke the Hadoop record compiler on each record definition file]]>
  33476. </doc>
  33477. </method>
  33478. <doc>
  33479. <![CDATA[Hadoop record compiler ant Task
  33480. <p> This task takes the given record definition files and compiles them into
  33481. java or c++
  33482. files. It is then up to the user to compile the generated files.
  33483. <p> The task requires the <code>file</code> or the nested fileset element to be
  33484. specified. Optional attributes are <code>language</code> (set the output
  33485. language, default is "java"),
  33486. <code>destdir</code> (name of the destination directory for generated java/c++
  33487. code, default is ".") and <code>failonerror</code> (specifies error handling
  33488. behavior. default is true).
  33489. <p><h4>Usage</h4>
  33490. <pre>
  33491. &lt;recordcc
  33492. destdir="${basedir}/gensrc"
  33493. language="java"&gt;
  33494. &lt;fileset include="**\/*.jr" /&gt;
  33495. &lt;/recordcc&gt;
  33496. </pre>]]>
  33497. </doc>
  33498. </class>
  33499. <!-- end class org.apache.hadoop.record.compiler.ant.RccTask -->
  33500. </package>
  33501. <package name="org.apache.hadoop.record.compiler.generated">
  33502. <!-- start class org.apache.hadoop.record.compiler.generated.ParseException -->
  33503. <class name="ParseException" extends="java.lang.Exception"
  33504. abstract="false"
  33505. static="false" final="false" visibility="public"
  33506. deprecated="not deprecated">
  33507. <constructor name="ParseException" type="org.apache.hadoop.record.compiler.generated.Token, int[][], java.lang.String[]"
  33508. static="false" final="false" visibility="public"
  33509. deprecated="not deprecated">
  33510. <doc>
  33511. <![CDATA[This constructor is used by the method "generateParseException"
  33512. in the generated parser. Calling this constructor generates
  33513. a new object of this type with the fields "currentToken",
  33514. "expectedTokenSequences", and "tokenImage" set. The boolean
  33515. flag "specialConstructor" is also set to true to indicate that
  33516. this constructor was used to create this object.
  33517. This constructor calls its super class with the empty string
  33518. to force the "toString" method of parent class "Throwable" to
  33519. print the error message in the form:
  33520. ParseException: <result of getMessage>]]>
  33521. </doc>
  33522. </constructor>
  33523. <constructor name="ParseException"
  33524. static="false" final="false" visibility="public"
  33525. deprecated="not deprecated">
  33526. <doc>
  33527. <![CDATA[The following constructors are for use by you for whatever
  33528. purpose you can think of. Constructing the exception in this
  33529. manner makes the exception behave in the normal way - i.e., as
  33530. documented in the class "Throwable". The fields "errorToken",
  33531. "expectedTokenSequences", and "tokenImage" do not contain
  33532. relevant information. The JavaCC generated code does not use
  33533. these constructors.]]>
  33534. </doc>
  33535. </constructor>
  33536. <constructor name="ParseException" type="java.lang.String"
  33537. static="false" final="false" visibility="public"
  33538. deprecated="not deprecated">
  33539. </constructor>
  33540. <method name="getMessage" return="java.lang.String"
  33541. abstract="false" native="false" synchronized="false"
  33542. static="false" final="false" visibility="public"
  33543. deprecated="not deprecated">
  33544. <doc>
  33545. <![CDATA[This method has the standard behavior when this object has been
  33546. created using the standard constructors. Otherwise, it uses
  33547. "currentToken" and "expectedTokenSequences" to generate a parse
  33548. error message and returns it. If this object has been created
  33549. due to a parse error, and you do not catch it (it gets thrown
  33550. from the parser), then this method is called during the printing
  33551. of the final stack trace, and hence the correct error message
  33552. gets displayed.]]>
  33553. </doc>
  33554. </method>
  33555. <method name="add_escapes" return="java.lang.String"
  33556. abstract="false" native="false" synchronized="false"
  33557. static="false" final="false" visibility="protected"
  33558. deprecated="not deprecated">
  33559. <param name="str" type="java.lang.String"/>
  33560. <doc>
  33561. <![CDATA[Used to convert raw characters to their escaped version
  33562. when these raw version cannot be used as part of an ASCII
  33563. string literal.]]>
  33564. </doc>
  33565. </method>
  33566. <field name="specialConstructor" type="boolean"
  33567. transient="false" volatile="false"
  33568. static="false" final="false" visibility="protected"
  33569. deprecated="not deprecated">
  33570. <doc>
  33571. <![CDATA[This variable determines which constructor was used to create
  33572. this object and thereby affects the semantics of the
  33573. "getMessage" method (see below).]]>
  33574. </doc>
  33575. </field>
  33576. <field name="currentToken" type="org.apache.hadoop.record.compiler.generated.Token"
  33577. transient="false" volatile="false"
  33578. static="false" final="false" visibility="public"
  33579. deprecated="not deprecated">
  33580. <doc>
  33581. <![CDATA[This is the last token that has been consumed successfully. If
  33582. this object has been created due to a parse error, the token
  33583. followng this token will (therefore) be the first error token.]]>
  33584. </doc>
  33585. </field>
  33586. <field name="expectedTokenSequences" type="int[][]"
  33587. transient="false" volatile="false"
  33588. static="false" final="false" visibility="public"
  33589. deprecated="not deprecated">
  33590. <doc>
  33591. <![CDATA[Each entry in this array is an array of integers. Each array
  33592. of integers represents a sequence of tokens (by their ordinal
  33593. values) that is expected at this point of the parse.]]>
  33594. </doc>
  33595. </field>
  33596. <field name="tokenImage" type="java.lang.String[]"
  33597. transient="false" volatile="false"
  33598. static="false" final="false" visibility="public"
  33599. deprecated="not deprecated">
  33600. <doc>
  33601. <![CDATA[This is a reference to the "tokenImage" array of the generated
  33602. parser within which the parse error occurred. This array is
  33603. defined in the generated ...Constants interface.]]>
  33604. </doc>
  33605. </field>
  33606. <field name="eol" type="java.lang.String"
  33607. transient="false" volatile="false"
  33608. static="false" final="false" visibility="protected"
  33609. deprecated="not deprecated">
  33610. <doc>
  33611. <![CDATA[The end of line string for this machine.]]>
  33612. </doc>
  33613. </field>
  33614. <doc>
  33615. <![CDATA[This exception is thrown when parse errors are encountered.
  33616. You can explicitly create objects of this exception type by
  33617. calling the method generateParseException in the generated
  33618. parser.
  33619. You can modify this class to customize your error reporting
  33620. mechanisms so long as you retain the public fields.]]>
  33621. </doc>
  33622. </class>
  33623. <!-- end class org.apache.hadoop.record.compiler.generated.ParseException -->
  33624. <!-- start class org.apache.hadoop.record.compiler.generated.Rcc -->
  33625. <class name="Rcc" extends="java.lang.Object"
  33626. abstract="false"
  33627. static="false" final="false" visibility="public"
  33628. deprecated="not deprecated">
  33629. <implements name="org.apache.hadoop.record.compiler.generated.RccConstants"/>
  33630. <constructor name="Rcc" type="java.io.InputStream"
  33631. static="false" final="false" visibility="public"
  33632. deprecated="not deprecated">
  33633. </constructor>
  33634. <constructor name="Rcc" type="java.io.InputStream, java.lang.String"
  33635. static="false" final="false" visibility="public"
  33636. deprecated="not deprecated">
  33637. </constructor>
  33638. <constructor name="Rcc" type="java.io.Reader"
  33639. static="false" final="false" visibility="public"
  33640. deprecated="not deprecated">
  33641. </constructor>
  33642. <constructor name="Rcc" type="org.apache.hadoop.record.compiler.generated.RccTokenManager"
  33643. static="false" final="false" visibility="public"
  33644. deprecated="not deprecated">
  33645. </constructor>
  33646. <method name="main"
  33647. abstract="false" native="false" synchronized="false"
  33648. static="true" final="false" visibility="public"
  33649. deprecated="not deprecated">
  33650. <param name="args" type="java.lang.String[]"/>
  33651. </method>
  33652. <method name="usage"
  33653. abstract="false" native="false" synchronized="false"
  33654. static="true" final="false" visibility="public"
  33655. deprecated="not deprecated">
  33656. </method>
  33657. <method name="driver" return="int"
  33658. abstract="false" native="false" synchronized="false"
  33659. static="true" final="false" visibility="public"
  33660. deprecated="not deprecated">
  33661. <param name="args" type="java.lang.String[]"/>
  33662. </method>
  33663. <method name="Input" return="org.apache.hadoop.record.compiler.JFile"
  33664. abstract="false" native="false" synchronized="false"
  33665. static="false" final="true" visibility="public"
  33666. deprecated="not deprecated">
  33667. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  33668. </method>
  33669. <method name="Include" return="org.apache.hadoop.record.compiler.JFile"
  33670. abstract="false" native="false" synchronized="false"
  33671. static="false" final="true" visibility="public"
  33672. deprecated="not deprecated">
  33673. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  33674. </method>
  33675. <method name="Module" return="java.util.ArrayList"
  33676. abstract="false" native="false" synchronized="false"
  33677. static="false" final="true" visibility="public"
  33678. deprecated="not deprecated">
  33679. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  33680. </method>
  33681. <method name="ModuleName" return="java.lang.String"
  33682. abstract="false" native="false" synchronized="false"
  33683. static="false" final="true" visibility="public"
  33684. deprecated="not deprecated">
  33685. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  33686. </method>
  33687. <method name="RecordList" return="java.util.ArrayList"
  33688. abstract="false" native="false" synchronized="false"
  33689. static="false" final="true" visibility="public"
  33690. deprecated="not deprecated">
  33691. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  33692. </method>
  33693. <method name="Record" return="org.apache.hadoop.record.compiler.JRecord"
  33694. abstract="false" native="false" synchronized="false"
  33695. static="false" final="true" visibility="public"
  33696. deprecated="not deprecated">
  33697. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  33698. </method>
  33699. <method name="Field" return="org.apache.hadoop.record.compiler.JField"
  33700. abstract="false" native="false" synchronized="false"
  33701. static="false" final="true" visibility="public"
  33702. deprecated="not deprecated">
  33703. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  33704. </method>
  33705. <method name="Type" return="org.apache.hadoop.record.compiler.JType"
  33706. abstract="false" native="false" synchronized="false"
  33707. static="false" final="true" visibility="public"
  33708. deprecated="not deprecated">
  33709. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  33710. </method>
  33711. <method name="Map" return="org.apache.hadoop.record.compiler.JMap"
  33712. abstract="false" native="false" synchronized="false"
  33713. static="false" final="true" visibility="public"
  33714. deprecated="not deprecated">
  33715. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  33716. </method>
  33717. <method name="Vector" return="org.apache.hadoop.record.compiler.JVector"
  33718. abstract="false" native="false" synchronized="false"
  33719. static="false" final="true" visibility="public"
  33720. deprecated="not deprecated">
  33721. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  33722. </method>
  33723. <method name="ReInit"
  33724. abstract="false" native="false" synchronized="false"
  33725. static="false" final="false" visibility="public"
  33726. deprecated="not deprecated">
  33727. <param name="stream" type="java.io.InputStream"/>
  33728. </method>
  33729. <method name="ReInit"
  33730. abstract="false" native="false" synchronized="false"
  33731. static="false" final="false" visibility="public"
  33732. deprecated="not deprecated">
  33733. <param name="stream" type="java.io.InputStream"/>
  33734. <param name="encoding" type="java.lang.String"/>
  33735. </method>
  33736. <method name="ReInit"
  33737. abstract="false" native="false" synchronized="false"
  33738. static="false" final="false" visibility="public"
  33739. deprecated="not deprecated">
  33740. <param name="stream" type="java.io.Reader"/>
  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="tm" type="org.apache.hadoop.record.compiler.generated.RccTokenManager"/>
  33747. </method>
  33748. <method name="getNextToken" return="org.apache.hadoop.record.compiler.generated.Token"
  33749. abstract="false" native="false" synchronized="false"
  33750. static="false" final="true" visibility="public"
  33751. deprecated="not deprecated">
  33752. </method>
  33753. <method name="getToken" return="org.apache.hadoop.record.compiler.generated.Token"
  33754. abstract="false" native="false" synchronized="false"
  33755. static="false" final="true" visibility="public"
  33756. deprecated="not deprecated">
  33757. <param name="index" type="int"/>
  33758. </method>
  33759. <method name="generateParseException" return="org.apache.hadoop.record.compiler.generated.ParseException"
  33760. abstract="false" native="false" synchronized="false"
  33761. static="false" final="false" visibility="public"
  33762. deprecated="not deprecated">
  33763. </method>
  33764. <method name="enable_tracing"
  33765. abstract="false" native="false" synchronized="false"
  33766. static="false" final="true" visibility="public"
  33767. deprecated="not deprecated">
  33768. </method>
  33769. <method name="disable_tracing"
  33770. abstract="false" native="false" synchronized="false"
  33771. static="false" final="true" visibility="public"
  33772. deprecated="not deprecated">
  33773. </method>
  33774. <field name="token_source" type="org.apache.hadoop.record.compiler.generated.RccTokenManager"
  33775. transient="false" volatile="false"
  33776. static="false" final="false" visibility="public"
  33777. deprecated="not deprecated">
  33778. </field>
  33779. <field name="token" type="org.apache.hadoop.record.compiler.generated.Token"
  33780. transient="false" volatile="false"
  33781. static="false" final="false" visibility="public"
  33782. deprecated="not deprecated">
  33783. </field>
  33784. <field name="jj_nt" type="org.apache.hadoop.record.compiler.generated.Token"
  33785. transient="false" volatile="false"
  33786. static="false" final="false" visibility="public"
  33787. deprecated="not deprecated">
  33788. </field>
  33789. </class>
  33790. <!-- end class org.apache.hadoop.record.compiler.generated.Rcc -->
  33791. <!-- start interface org.apache.hadoop.record.compiler.generated.RccConstants -->
  33792. <interface name="RccConstants" abstract="true"
  33793. static="false" final="false" visibility="public"
  33794. deprecated="not deprecated">
  33795. <field name="EOF" type="int"
  33796. transient="false" volatile="false"
  33797. static="true" final="true" visibility="public"
  33798. deprecated="not deprecated">
  33799. </field>
  33800. <field name="MODULE_TKN" type="int"
  33801. transient="false" volatile="false"
  33802. static="true" final="true" visibility="public"
  33803. deprecated="not deprecated">
  33804. </field>
  33805. <field name="RECORD_TKN" type="int"
  33806. transient="false" volatile="false"
  33807. static="true" final="true" visibility="public"
  33808. deprecated="not deprecated">
  33809. </field>
  33810. <field name="INCLUDE_TKN" type="int"
  33811. transient="false" volatile="false"
  33812. static="true" final="true" visibility="public"
  33813. deprecated="not deprecated">
  33814. </field>
  33815. <field name="BYTE_TKN" type="int"
  33816. transient="false" volatile="false"
  33817. static="true" final="true" visibility="public"
  33818. deprecated="not deprecated">
  33819. </field>
  33820. <field name="BOOLEAN_TKN" type="int"
  33821. transient="false" volatile="false"
  33822. static="true" final="true" visibility="public"
  33823. deprecated="not deprecated">
  33824. </field>
  33825. <field name="INT_TKN" type="int"
  33826. transient="false" volatile="false"
  33827. static="true" final="true" visibility="public"
  33828. deprecated="not deprecated">
  33829. </field>
  33830. <field name="LONG_TKN" type="int"
  33831. transient="false" volatile="false"
  33832. static="true" final="true" visibility="public"
  33833. deprecated="not deprecated">
  33834. </field>
  33835. <field name="FLOAT_TKN" type="int"
  33836. transient="false" volatile="false"
  33837. static="true" final="true" visibility="public"
  33838. deprecated="not deprecated">
  33839. </field>
  33840. <field name="DOUBLE_TKN" type="int"
  33841. transient="false" volatile="false"
  33842. static="true" final="true" visibility="public"
  33843. deprecated="not deprecated">
  33844. </field>
  33845. <field name="USTRING_TKN" type="int"
  33846. transient="false" volatile="false"
  33847. static="true" final="true" visibility="public"
  33848. deprecated="not deprecated">
  33849. </field>
  33850. <field name="BUFFER_TKN" type="int"
  33851. transient="false" volatile="false"
  33852. static="true" final="true" visibility="public"
  33853. deprecated="not deprecated">
  33854. </field>
  33855. <field name="VECTOR_TKN" type="int"
  33856. transient="false" volatile="false"
  33857. static="true" final="true" visibility="public"
  33858. deprecated="not deprecated">
  33859. </field>
  33860. <field name="MAP_TKN" type="int"
  33861. transient="false" volatile="false"
  33862. static="true" final="true" visibility="public"
  33863. deprecated="not deprecated">
  33864. </field>
  33865. <field name="LBRACE_TKN" type="int"
  33866. transient="false" volatile="false"
  33867. static="true" final="true" visibility="public"
  33868. deprecated="not deprecated">
  33869. </field>
  33870. <field name="RBRACE_TKN" type="int"
  33871. transient="false" volatile="false"
  33872. static="true" final="true" visibility="public"
  33873. deprecated="not deprecated">
  33874. </field>
  33875. <field name="LT_TKN" type="int"
  33876. transient="false" volatile="false"
  33877. static="true" final="true" visibility="public"
  33878. deprecated="not deprecated">
  33879. </field>
  33880. <field name="GT_TKN" type="int"
  33881. transient="false" volatile="false"
  33882. static="true" final="true" visibility="public"
  33883. deprecated="not deprecated">
  33884. </field>
  33885. <field name="SEMICOLON_TKN" type="int"
  33886. transient="false" volatile="false"
  33887. static="true" final="true" visibility="public"
  33888. deprecated="not deprecated">
  33889. </field>
  33890. <field name="COMMA_TKN" type="int"
  33891. transient="false" volatile="false"
  33892. static="true" final="true" visibility="public"
  33893. deprecated="not deprecated">
  33894. </field>
  33895. <field name="DOT_TKN" type="int"
  33896. transient="false" volatile="false"
  33897. static="true" final="true" visibility="public"
  33898. deprecated="not deprecated">
  33899. </field>
  33900. <field name="CSTRING_TKN" type="int"
  33901. transient="false" volatile="false"
  33902. static="true" final="true" visibility="public"
  33903. deprecated="not deprecated">
  33904. </field>
  33905. <field name="IDENT_TKN" type="int"
  33906. transient="false" volatile="false"
  33907. static="true" final="true" visibility="public"
  33908. deprecated="not deprecated">
  33909. </field>
  33910. <field name="DEFAULT" type="int"
  33911. transient="false" volatile="false"
  33912. static="true" final="true" visibility="public"
  33913. deprecated="not deprecated">
  33914. </field>
  33915. <field name="WithinOneLineComment" type="int"
  33916. transient="false" volatile="false"
  33917. static="true" final="true" visibility="public"
  33918. deprecated="not deprecated">
  33919. </field>
  33920. <field name="WithinMultiLineComment" type="int"
  33921. transient="false" volatile="false"
  33922. static="true" final="true" visibility="public"
  33923. deprecated="not deprecated">
  33924. </field>
  33925. <field name="tokenImage" type="java.lang.String[]"
  33926. transient="false" volatile="false"
  33927. static="true" final="true" visibility="public"
  33928. deprecated="not deprecated">
  33929. </field>
  33930. </interface>
  33931. <!-- end interface org.apache.hadoop.record.compiler.generated.RccConstants -->
  33932. <!-- start class org.apache.hadoop.record.compiler.generated.RccTokenManager -->
  33933. <class name="RccTokenManager" extends="java.lang.Object"
  33934. abstract="false"
  33935. static="false" final="false" visibility="public"
  33936. deprecated="not deprecated">
  33937. <implements name="org.apache.hadoop.record.compiler.generated.RccConstants"/>
  33938. <constructor name="RccTokenManager" type="org.apache.hadoop.record.compiler.generated.SimpleCharStream"
  33939. static="false" final="false" visibility="public"
  33940. deprecated="not deprecated">
  33941. </constructor>
  33942. <constructor name="RccTokenManager" type="org.apache.hadoop.record.compiler.generated.SimpleCharStream, int"
  33943. static="false" final="false" visibility="public"
  33944. deprecated="not deprecated">
  33945. </constructor>
  33946. <method name="setDebugStream"
  33947. abstract="false" native="false" synchronized="false"
  33948. static="false" final="false" visibility="public"
  33949. deprecated="not deprecated">
  33950. <param name="ds" type="java.io.PrintStream"/>
  33951. </method>
  33952. <method name="ReInit"
  33953. abstract="false" native="false" synchronized="false"
  33954. static="false" final="false" visibility="public"
  33955. deprecated="not deprecated">
  33956. <param name="stream" type="org.apache.hadoop.record.compiler.generated.SimpleCharStream"/>
  33957. </method>
  33958. <method name="ReInit"
  33959. abstract="false" native="false" synchronized="false"
  33960. static="false" final="false" visibility="public"
  33961. deprecated="not deprecated">
  33962. <param name="stream" type="org.apache.hadoop.record.compiler.generated.SimpleCharStream"/>
  33963. <param name="lexState" type="int"/>
  33964. </method>
  33965. <method name="SwitchTo"
  33966. abstract="false" native="false" synchronized="false"
  33967. static="false" final="false" visibility="public"
  33968. deprecated="not deprecated">
  33969. <param name="lexState" type="int"/>
  33970. </method>
  33971. <method name="jjFillToken" return="org.apache.hadoop.record.compiler.generated.Token"
  33972. abstract="false" native="false" synchronized="false"
  33973. static="false" final="false" visibility="protected"
  33974. deprecated="not deprecated">
  33975. </method>
  33976. <method name="getNextToken" return="org.apache.hadoop.record.compiler.generated.Token"
  33977. abstract="false" native="false" synchronized="false"
  33978. static="false" final="false" visibility="public"
  33979. deprecated="not deprecated">
  33980. </method>
  33981. <field name="debugStream" type="java.io.PrintStream"
  33982. transient="false" volatile="false"
  33983. static="false" final="false" visibility="public"
  33984. deprecated="not deprecated">
  33985. </field>
  33986. <field name="jjstrLiteralImages" type="java.lang.String[]"
  33987. transient="false" volatile="false"
  33988. static="true" final="true" visibility="public"
  33989. deprecated="not deprecated">
  33990. </field>
  33991. <field name="lexStateNames" type="java.lang.String[]"
  33992. transient="false" volatile="false"
  33993. static="true" final="true" visibility="public"
  33994. deprecated="not deprecated">
  33995. </field>
  33996. <field name="jjnewLexState" type="int[]"
  33997. transient="false" volatile="false"
  33998. static="true" final="true" visibility="public"
  33999. deprecated="not deprecated">
  34000. </field>
  34001. <field name="input_stream" type="org.apache.hadoop.record.compiler.generated.SimpleCharStream"
  34002. transient="false" volatile="false"
  34003. static="false" final="false" visibility="protected"
  34004. deprecated="not deprecated">
  34005. </field>
  34006. <field name="curChar" type="char"
  34007. transient="false" volatile="false"
  34008. static="false" final="false" visibility="protected"
  34009. deprecated="not deprecated">
  34010. </field>
  34011. </class>
  34012. <!-- end class org.apache.hadoop.record.compiler.generated.RccTokenManager -->
  34013. <!-- start class org.apache.hadoop.record.compiler.generated.SimpleCharStream -->
  34014. <class name="SimpleCharStream" extends="java.lang.Object"
  34015. abstract="false"
  34016. static="false" final="false" visibility="public"
  34017. deprecated="not deprecated">
  34018. <constructor name="SimpleCharStream" type="java.io.Reader, int, int, int"
  34019. static="false" final="false" visibility="public"
  34020. deprecated="not deprecated">
  34021. </constructor>
  34022. <constructor name="SimpleCharStream" type="java.io.Reader, int, int"
  34023. static="false" final="false" visibility="public"
  34024. deprecated="not deprecated">
  34025. </constructor>
  34026. <constructor name="SimpleCharStream" type="java.io.Reader"
  34027. static="false" final="false" visibility="public"
  34028. deprecated="not deprecated">
  34029. </constructor>
  34030. <constructor name="SimpleCharStream" type="java.io.InputStream, java.lang.String, int, int, int"
  34031. static="false" final="false" visibility="public"
  34032. deprecated="not deprecated">
  34033. <exception name="UnsupportedEncodingException" type="java.io.UnsupportedEncodingException"/>
  34034. </constructor>
  34035. <constructor name="SimpleCharStream" type="java.io.InputStream, int, int, int"
  34036. static="false" final="false" visibility="public"
  34037. deprecated="not deprecated">
  34038. </constructor>
  34039. <constructor name="SimpleCharStream" type="java.io.InputStream, java.lang.String, int, int"
  34040. static="false" final="false" visibility="public"
  34041. deprecated="not deprecated">
  34042. <exception name="UnsupportedEncodingException" type="java.io.UnsupportedEncodingException"/>
  34043. </constructor>
  34044. <constructor name="SimpleCharStream" type="java.io.InputStream, int, int"
  34045. static="false" final="false" visibility="public"
  34046. deprecated="not deprecated">
  34047. </constructor>
  34048. <constructor name="SimpleCharStream" type="java.io.InputStream, java.lang.String"
  34049. static="false" final="false" visibility="public"
  34050. deprecated="not deprecated">
  34051. <exception name="UnsupportedEncodingException" type="java.io.UnsupportedEncodingException"/>
  34052. </constructor>
  34053. <constructor name="SimpleCharStream" type="java.io.InputStream"
  34054. static="false" final="false" visibility="public"
  34055. deprecated="not deprecated">
  34056. </constructor>
  34057. <method name="setTabSize"
  34058. abstract="false" native="false" synchronized="false"
  34059. static="false" final="false" visibility="protected"
  34060. deprecated="not deprecated">
  34061. <param name="i" type="int"/>
  34062. </method>
  34063. <method name="getTabSize" return="int"
  34064. abstract="false" native="false" synchronized="false"
  34065. static="false" final="false" visibility="protected"
  34066. deprecated="not deprecated">
  34067. <param name="i" type="int"/>
  34068. </method>
  34069. <method name="ExpandBuff"
  34070. abstract="false" native="false" synchronized="false"
  34071. static="false" final="false" visibility="protected"
  34072. deprecated="not deprecated">
  34073. <param name="wrapAround" type="boolean"/>
  34074. </method>
  34075. <method name="FillBuff"
  34076. abstract="false" native="false" synchronized="false"
  34077. static="false" final="false" visibility="protected"
  34078. deprecated="not deprecated">
  34079. <exception name="IOException" type="java.io.IOException"/>
  34080. </method>
  34081. <method name="BeginToken" return="char"
  34082. abstract="false" native="false" synchronized="false"
  34083. static="false" final="false" visibility="public"
  34084. deprecated="not deprecated">
  34085. <exception name="IOException" type="java.io.IOException"/>
  34086. </method>
  34087. <method name="UpdateLineColumn"
  34088. abstract="false" native="false" synchronized="false"
  34089. static="false" final="false" visibility="protected"
  34090. deprecated="not deprecated">
  34091. <param name="c" type="char"/>
  34092. </method>
  34093. <method name="readChar" return="char"
  34094. abstract="false" native="false" synchronized="false"
  34095. static="false" final="false" visibility="public"
  34096. deprecated="not deprecated">
  34097. <exception name="IOException" type="java.io.IOException"/>
  34098. </method>
  34099. <method name="getEndColumn" return="int"
  34100. abstract="false" native="false" synchronized="false"
  34101. static="false" final="false" visibility="public"
  34102. deprecated="not deprecated">
  34103. </method>
  34104. <method name="getEndLine" return="int"
  34105. abstract="false" native="false" synchronized="false"
  34106. static="false" final="false" visibility="public"
  34107. deprecated="not deprecated">
  34108. </method>
  34109. <method name="getBeginColumn" return="int"
  34110. abstract="false" native="false" synchronized="false"
  34111. static="false" final="false" visibility="public"
  34112. deprecated="not deprecated">
  34113. </method>
  34114. <method name="getBeginLine" return="int"
  34115. abstract="false" native="false" synchronized="false"
  34116. static="false" final="false" visibility="public"
  34117. deprecated="not deprecated">
  34118. </method>
  34119. <method name="backup"
  34120. abstract="false" native="false" synchronized="false"
  34121. static="false" final="false" visibility="public"
  34122. deprecated="not deprecated">
  34123. <param name="amount" type="int"/>
  34124. </method>
  34125. <method name="ReInit"
  34126. abstract="false" native="false" synchronized="false"
  34127. static="false" final="false" visibility="public"
  34128. deprecated="not deprecated">
  34129. <param name="dstream" type="java.io.Reader"/>
  34130. <param name="startline" type="int"/>
  34131. <param name="startcolumn" type="int"/>
  34132. <param name="buffersize" type="int"/>
  34133. </method>
  34134. <method name="ReInit"
  34135. abstract="false" native="false" synchronized="false"
  34136. static="false" final="false" visibility="public"
  34137. deprecated="not deprecated">
  34138. <param name="dstream" type="java.io.Reader"/>
  34139. <param name="startline" type="int"/>
  34140. <param name="startcolumn" type="int"/>
  34141. </method>
  34142. <method name="ReInit"
  34143. abstract="false" native="false" synchronized="false"
  34144. static="false" final="false" visibility="public"
  34145. deprecated="not deprecated">
  34146. <param name="dstream" type="java.io.Reader"/>
  34147. </method>
  34148. <method name="ReInit"
  34149. abstract="false" native="false" synchronized="false"
  34150. static="false" final="false" visibility="public"
  34151. deprecated="not deprecated">
  34152. <param name="dstream" type="java.io.InputStream"/>
  34153. <param name="encoding" type="java.lang.String"/>
  34154. <param name="startline" type="int"/>
  34155. <param name="startcolumn" type="int"/>
  34156. <param name="buffersize" type="int"/>
  34157. <exception name="UnsupportedEncodingException" type="java.io.UnsupportedEncodingException"/>
  34158. </method>
  34159. <method name="ReInit"
  34160. abstract="false" native="false" synchronized="false"
  34161. static="false" final="false" visibility="public"
  34162. deprecated="not deprecated">
  34163. <param name="dstream" type="java.io.InputStream"/>
  34164. <param name="startline" type="int"/>
  34165. <param name="startcolumn" type="int"/>
  34166. <param name="buffersize" type="int"/>
  34167. </method>
  34168. <method name="ReInit"
  34169. abstract="false" native="false" synchronized="false"
  34170. static="false" final="false" visibility="public"
  34171. deprecated="not deprecated">
  34172. <param name="dstream" type="java.io.InputStream"/>
  34173. <param name="encoding" type="java.lang.String"/>
  34174. <exception name="UnsupportedEncodingException" type="java.io.UnsupportedEncodingException"/>
  34175. </method>
  34176. <method name="ReInit"
  34177. abstract="false" native="false" synchronized="false"
  34178. static="false" final="false" visibility="public"
  34179. deprecated="not deprecated">
  34180. <param name="dstream" type="java.io.InputStream"/>
  34181. </method>
  34182. <method name="ReInit"
  34183. abstract="false" native="false" synchronized="false"
  34184. static="false" final="false" visibility="public"
  34185. deprecated="not deprecated">
  34186. <param name="dstream" type="java.io.InputStream"/>
  34187. <param name="encoding" type="java.lang.String"/>
  34188. <param name="startline" type="int"/>
  34189. <param name="startcolumn" type="int"/>
  34190. <exception name="UnsupportedEncodingException" type="java.io.UnsupportedEncodingException"/>
  34191. </method>
  34192. <method name="ReInit"
  34193. abstract="false" native="false" synchronized="false"
  34194. static="false" final="false" visibility="public"
  34195. deprecated="not deprecated">
  34196. <param name="dstream" type="java.io.InputStream"/>
  34197. <param name="startline" type="int"/>
  34198. <param name="startcolumn" type="int"/>
  34199. </method>
  34200. <method name="GetImage" return="java.lang.String"
  34201. abstract="false" native="false" synchronized="false"
  34202. static="false" final="false" visibility="public"
  34203. deprecated="not deprecated">
  34204. </method>
  34205. <method name="GetSuffix" return="char[]"
  34206. abstract="false" native="false" synchronized="false"
  34207. static="false" final="false" visibility="public"
  34208. deprecated="not deprecated">
  34209. <param name="len" type="int"/>
  34210. </method>
  34211. <method name="Done"
  34212. abstract="false" native="false" synchronized="false"
  34213. static="false" final="false" visibility="public"
  34214. deprecated="not deprecated">
  34215. </method>
  34216. <method name="adjustBeginLineColumn"
  34217. abstract="false" native="false" synchronized="false"
  34218. static="false" final="false" visibility="public"
  34219. deprecated="not deprecated">
  34220. <param name="newLine" type="int"/>
  34221. <param name="newCol" type="int"/>
  34222. <doc>
  34223. <![CDATA[Method to adjust line and column numbers for the start of a token.]]>
  34224. </doc>
  34225. </method>
  34226. <field name="staticFlag" type="boolean"
  34227. transient="false" volatile="false"
  34228. static="true" final="true" visibility="public"
  34229. deprecated="not deprecated">
  34230. </field>
  34231. <field name="bufpos" type="int"
  34232. transient="false" volatile="false"
  34233. static="false" final="false" visibility="public"
  34234. deprecated="not deprecated">
  34235. </field>
  34236. <field name="bufline" type="int[]"
  34237. transient="false" volatile="false"
  34238. static="false" final="false" visibility="protected"
  34239. deprecated="not deprecated">
  34240. </field>
  34241. <field name="bufcolumn" type="int[]"
  34242. transient="false" volatile="false"
  34243. static="false" final="false" visibility="protected"
  34244. deprecated="not deprecated">
  34245. </field>
  34246. <field name="column" type="int"
  34247. transient="false" volatile="false"
  34248. static="false" final="false" visibility="protected"
  34249. deprecated="not deprecated">
  34250. </field>
  34251. <field name="line" type="int"
  34252. transient="false" volatile="false"
  34253. static="false" final="false" visibility="protected"
  34254. deprecated="not deprecated">
  34255. </field>
  34256. <field name="prevCharIsCR" type="boolean"
  34257. transient="false" volatile="false"
  34258. static="false" final="false" visibility="protected"
  34259. deprecated="not deprecated">
  34260. </field>
  34261. <field name="prevCharIsLF" type="boolean"
  34262. transient="false" volatile="false"
  34263. static="false" final="false" visibility="protected"
  34264. deprecated="not deprecated">
  34265. </field>
  34266. <field name="inputStream" type="java.io.Reader"
  34267. transient="false" volatile="false"
  34268. static="false" final="false" visibility="protected"
  34269. deprecated="not deprecated">
  34270. </field>
  34271. <field name="buffer" type="char[]"
  34272. transient="false" volatile="false"
  34273. static="false" final="false" visibility="protected"
  34274. deprecated="not deprecated">
  34275. </field>
  34276. <field name="maxNextCharInd" type="int"
  34277. transient="false" volatile="false"
  34278. static="false" final="false" visibility="protected"
  34279. deprecated="not deprecated">
  34280. </field>
  34281. <field name="inBuf" type="int"
  34282. transient="false" volatile="false"
  34283. static="false" final="false" visibility="protected"
  34284. deprecated="not deprecated">
  34285. </field>
  34286. <field name="tabSize" type="int"
  34287. transient="false" volatile="false"
  34288. static="false" final="false" visibility="protected"
  34289. deprecated="not deprecated">
  34290. </field>
  34291. <doc>
  34292. <![CDATA[An implementation of interface CharStream, where the stream is assumed to
  34293. contain only ASCII characters (without unicode processing).]]>
  34294. </doc>
  34295. </class>
  34296. <!-- end class org.apache.hadoop.record.compiler.generated.SimpleCharStream -->
  34297. <!-- start class org.apache.hadoop.record.compiler.generated.Token -->
  34298. <class name="Token" extends="java.lang.Object"
  34299. abstract="false"
  34300. static="false" final="false" visibility="public"
  34301. deprecated="not deprecated">
  34302. <constructor name="Token"
  34303. static="false" final="false" visibility="public"
  34304. deprecated="not deprecated">
  34305. </constructor>
  34306. <method name="toString" return="java.lang.String"
  34307. abstract="false" native="false" synchronized="false"
  34308. static="false" final="false" visibility="public"
  34309. deprecated="not deprecated">
  34310. <doc>
  34311. <![CDATA[Returns the image.]]>
  34312. </doc>
  34313. </method>
  34314. <method name="newToken" return="org.apache.hadoop.record.compiler.generated.Token"
  34315. abstract="false" native="false" synchronized="false"
  34316. static="true" final="true" visibility="public"
  34317. deprecated="not deprecated">
  34318. <param name="ofKind" type="int"/>
  34319. <doc>
  34320. <![CDATA[Returns a new Token object, by default. However, if you want, you
  34321. can create and return subclass objects based on the value of ofKind.
  34322. Simply add the cases to the switch for all those special cases.
  34323. For example, if you have a subclass of Token called IDToken that
  34324. you want to create if ofKind is ID, simlpy add something like :
  34325. case MyParserConstants.ID : return new IDToken();
  34326. to the following switch statement. Then you can cast matchedToken
  34327. variable to the appropriate type and use it in your lexical actions.]]>
  34328. </doc>
  34329. </method>
  34330. <field name="kind" type="int"
  34331. transient="false" volatile="false"
  34332. static="false" final="false" visibility="public"
  34333. deprecated="not deprecated">
  34334. <doc>
  34335. <![CDATA[An integer that describes the kind of this token. This numbering
  34336. system is determined by JavaCCParser, and a table of these numbers is
  34337. stored in the file ...Constants.java.]]>
  34338. </doc>
  34339. </field>
  34340. <field name="beginLine" type="int"
  34341. transient="false" volatile="false"
  34342. static="false" final="false" visibility="public"
  34343. deprecated="not deprecated">
  34344. <doc>
  34345. <![CDATA[beginLine and beginColumn describe the position of the first character
  34346. of this token; endLine and endColumn describe the position of the
  34347. last character of this token.]]>
  34348. </doc>
  34349. </field>
  34350. <field name="beginColumn" type="int"
  34351. transient="false" volatile="false"
  34352. static="false" final="false" visibility="public"
  34353. deprecated="not deprecated">
  34354. <doc>
  34355. <![CDATA[beginLine and beginColumn describe the position of the first character
  34356. of this token; endLine and endColumn describe the position of the
  34357. last character of this token.]]>
  34358. </doc>
  34359. </field>
  34360. <field name="endLine" type="int"
  34361. transient="false" volatile="false"
  34362. static="false" final="false" visibility="public"
  34363. deprecated="not deprecated">
  34364. <doc>
  34365. <![CDATA[beginLine and beginColumn describe the position of the first character
  34366. of this token; endLine and endColumn describe the position of the
  34367. last character of this token.]]>
  34368. </doc>
  34369. </field>
  34370. <field name="endColumn" type="int"
  34371. transient="false" volatile="false"
  34372. static="false" final="false" visibility="public"
  34373. deprecated="not deprecated">
  34374. <doc>
  34375. <![CDATA[beginLine and beginColumn describe the position of the first character
  34376. of this token; endLine and endColumn describe the position of the
  34377. last character of this token.]]>
  34378. </doc>
  34379. </field>
  34380. <field name="image" type="java.lang.String"
  34381. transient="false" volatile="false"
  34382. static="false" final="false" visibility="public"
  34383. deprecated="not deprecated">
  34384. <doc>
  34385. <![CDATA[The string image of the token.]]>
  34386. </doc>
  34387. </field>
  34388. <field name="next" type="org.apache.hadoop.record.compiler.generated.Token"
  34389. transient="false" volatile="false"
  34390. static="false" final="false" visibility="public"
  34391. deprecated="not deprecated">
  34392. <doc>
  34393. <![CDATA[A reference to the next regular (non-special) token from the input
  34394. stream. If this is the last token from the input stream, or if the
  34395. token manager has not read tokens beyond this one, this field is
  34396. set to null. This is true only if this token is also a regular
  34397. token. Otherwise, see below for a description of the contents of
  34398. this field.]]>
  34399. </doc>
  34400. </field>
  34401. <field name="specialToken" type="org.apache.hadoop.record.compiler.generated.Token"
  34402. transient="false" volatile="false"
  34403. static="false" final="false" visibility="public"
  34404. deprecated="not deprecated">
  34405. <doc>
  34406. <![CDATA[This field is used to access special tokens that occur prior to this
  34407. token, but after the immediately preceding regular (non-special) token.
  34408. If there are no such special tokens, this field is set to null.
  34409. When there are more than one such special token, this field refers
  34410. to the last of these special tokens, which in turn refers to the next
  34411. previous special token through its specialToken field, and so on
  34412. until the first special token (whose specialToken field is null).
  34413. The next fields of special tokens refer to other special tokens that
  34414. immediately follow it (without an intervening regular token). If there
  34415. is no such token, this field is null.]]>
  34416. </doc>
  34417. </field>
  34418. <doc>
  34419. <![CDATA[Describes the input token stream.]]>
  34420. </doc>
  34421. </class>
  34422. <!-- end class org.apache.hadoop.record.compiler.generated.Token -->
  34423. <!-- start class org.apache.hadoop.record.compiler.generated.TokenMgrError -->
  34424. <class name="TokenMgrError" extends="java.lang.Error"
  34425. abstract="false"
  34426. static="false" final="false" visibility="public"
  34427. deprecated="not deprecated">
  34428. <constructor name="TokenMgrError"
  34429. static="false" final="false" visibility="public"
  34430. deprecated="not deprecated">
  34431. </constructor>
  34432. <constructor name="TokenMgrError" type="java.lang.String, int"
  34433. static="false" final="false" visibility="public"
  34434. deprecated="not deprecated">
  34435. </constructor>
  34436. <constructor name="TokenMgrError" type="boolean, int, int, int, java.lang.String, char, int"
  34437. static="false" final="false" visibility="public"
  34438. deprecated="not deprecated">
  34439. </constructor>
  34440. <method name="addEscapes" return="java.lang.String"
  34441. abstract="false" native="false" synchronized="false"
  34442. static="true" final="true" visibility="protected"
  34443. deprecated="not deprecated">
  34444. <param name="str" type="java.lang.String"/>
  34445. <doc>
  34446. <![CDATA[Replaces unprintable characters by their espaced (or unicode escaped)
  34447. equivalents in the given string]]>
  34448. </doc>
  34449. </method>
  34450. <method name="LexicalError" return="java.lang.String"
  34451. abstract="false" native="false" synchronized="false"
  34452. static="true" final="false" visibility="protected"
  34453. deprecated="not deprecated">
  34454. <param name="EOFSeen" type="boolean"/>
  34455. <param name="lexState" type="int"/>
  34456. <param name="errorLine" type="int"/>
  34457. <param name="errorColumn" type="int"/>
  34458. <param name="errorAfter" type="java.lang.String"/>
  34459. <param name="curChar" type="char"/>
  34460. <doc>
  34461. <![CDATA[Returns a detailed message for the Error when it is thrown by the
  34462. token manager to indicate a lexical error.
  34463. Parameters :
  34464. EOFSeen : indicates if EOF caused the lexicl error
  34465. curLexState : lexical state in which this error occured
  34466. errorLine : line number when the error occured
  34467. errorColumn : column number when the error occured
  34468. errorAfter : prefix that was seen before this error occured
  34469. curchar : the offending character
  34470. Note: You can customize the lexical error message by modifying this method.]]>
  34471. </doc>
  34472. </method>
  34473. <method name="getMessage" return="java.lang.String"
  34474. abstract="false" native="false" synchronized="false"
  34475. static="false" final="false" visibility="public"
  34476. deprecated="not deprecated">
  34477. <doc>
  34478. <![CDATA[You can also modify the body of this method to customize your error messages.
  34479. For example, cases like LOOP_DETECTED and INVALID_LEXICAL_STATE are not
  34480. of end-users concern, so you can return something like :
  34481. "Internal Error : Please file a bug report .... "
  34482. from this method for such cases in the release version of your parser.]]>
  34483. </doc>
  34484. </method>
  34485. </class>
  34486. <!-- end class org.apache.hadoop.record.compiler.generated.TokenMgrError -->
  34487. </package>
  34488. <package name="org.apache.hadoop.record.meta">
  34489. <!-- start class org.apache.hadoop.record.meta.FieldTypeInfo -->
  34490. <class name="FieldTypeInfo" extends="java.lang.Object"
  34491. abstract="false"
  34492. static="false" final="false" visibility="public"
  34493. deprecated="not deprecated">
  34494. <method name="getTypeID" return="org.apache.hadoop.record.meta.TypeID"
  34495. abstract="false" native="false" synchronized="false"
  34496. static="false" final="false" visibility="public"
  34497. deprecated="not deprecated">
  34498. <doc>
  34499. <![CDATA[get the field's TypeID object]]>
  34500. </doc>
  34501. </method>
  34502. <method name="getFieldID" return="java.lang.String"
  34503. abstract="false" native="false" synchronized="false"
  34504. static="false" final="false" visibility="public"
  34505. deprecated="not deprecated">
  34506. <doc>
  34507. <![CDATA[get the field's id (name)]]>
  34508. </doc>
  34509. </method>
  34510. <method name="equals" return="boolean"
  34511. abstract="false" native="false" synchronized="false"
  34512. static="false" final="false" visibility="public"
  34513. deprecated="not deprecated">
  34514. <param name="o" type="java.lang.Object"/>
  34515. <doc>
  34516. <![CDATA[Two FieldTypeInfos are equal if ach of their fields matches]]>
  34517. </doc>
  34518. </method>
  34519. <method name="hashCode" return="int"
  34520. abstract="false" native="false" synchronized="false"
  34521. static="false" final="false" visibility="public"
  34522. deprecated="not deprecated">
  34523. <doc>
  34524. <![CDATA[We use a basic hashcode implementation, since this class will likely not
  34525. be used as a hashmap key]]>
  34526. </doc>
  34527. </method>
  34528. <method name="equals" return="boolean"
  34529. abstract="false" native="false" synchronized="false"
  34530. static="false" final="false" visibility="public"
  34531. deprecated="not deprecated">
  34532. <param name="ti" type="org.apache.hadoop.record.meta.FieldTypeInfo"/>
  34533. </method>
  34534. <doc>
  34535. <![CDATA[Represents a type information for a field, which is made up of its
  34536. ID (name) and its type (a TypeID object).]]>
  34537. </doc>
  34538. </class>
  34539. <!-- end class org.apache.hadoop.record.meta.FieldTypeInfo -->
  34540. <!-- start class org.apache.hadoop.record.meta.MapTypeID -->
  34541. <class name="MapTypeID" extends="org.apache.hadoop.record.meta.TypeID"
  34542. abstract="false"
  34543. static="false" final="false" visibility="public"
  34544. deprecated="not deprecated">
  34545. <constructor name="MapTypeID" type="org.apache.hadoop.record.meta.TypeID, org.apache.hadoop.record.meta.TypeID"
  34546. static="false" final="false" visibility="public"
  34547. deprecated="not deprecated">
  34548. </constructor>
  34549. <method name="getKeyTypeID" return="org.apache.hadoop.record.meta.TypeID"
  34550. abstract="false" native="false" synchronized="false"
  34551. static="false" final="false" visibility="public"
  34552. deprecated="not deprecated">
  34553. <doc>
  34554. <![CDATA[get the TypeID of the map's key element]]>
  34555. </doc>
  34556. </method>
  34557. <method name="getValueTypeID" return="org.apache.hadoop.record.meta.TypeID"
  34558. abstract="false" native="false" synchronized="false"
  34559. static="false" final="false" visibility="public"
  34560. deprecated="not deprecated">
  34561. <doc>
  34562. <![CDATA[get the TypeID of the map's value element]]>
  34563. </doc>
  34564. </method>
  34565. <method name="equals" return="boolean"
  34566. abstract="false" native="false" synchronized="false"
  34567. static="false" final="false" visibility="public"
  34568. deprecated="not deprecated">
  34569. <param name="o" type="java.lang.Object"/>
  34570. <doc>
  34571. <![CDATA[Two map typeIDs are equal if their constituent elements have the
  34572. same type]]>
  34573. </doc>
  34574. </method>
  34575. <method name="hashCode" return="int"
  34576. abstract="false" native="false" synchronized="false"
  34577. static="false" final="false" visibility="public"
  34578. deprecated="not deprecated">
  34579. <doc>
  34580. <![CDATA[We use a basic hashcode implementation, since this class will likely not
  34581. be used as a hashmap key]]>
  34582. </doc>
  34583. </method>
  34584. <doc>
  34585. <![CDATA[Represents typeID for a Map]]>
  34586. </doc>
  34587. </class>
  34588. <!-- end class org.apache.hadoop.record.meta.MapTypeID -->
  34589. <!-- start class org.apache.hadoop.record.meta.RecordTypeInfo -->
  34590. <class name="RecordTypeInfo" extends="org.apache.hadoop.record.Record"
  34591. abstract="false"
  34592. static="false" final="false" visibility="public"
  34593. deprecated="not deprecated">
  34594. <constructor name="RecordTypeInfo"
  34595. static="false" final="false" visibility="public"
  34596. deprecated="not deprecated">
  34597. <doc>
  34598. <![CDATA[Create an empty RecordTypeInfo object.]]>
  34599. </doc>
  34600. </constructor>
  34601. <constructor name="RecordTypeInfo" type="java.lang.String"
  34602. static="false" final="false" visibility="public"
  34603. deprecated="not deprecated">
  34604. <doc>
  34605. <![CDATA[Create a RecordTypeInfo object representing a record with the given name
  34606. @param name Name of the record]]>
  34607. </doc>
  34608. </constructor>
  34609. <method name="getName" return="java.lang.String"
  34610. abstract="false" native="false" synchronized="false"
  34611. static="false" final="false" visibility="public"
  34612. deprecated="not deprecated">
  34613. <doc>
  34614. <![CDATA[return the name of the record]]>
  34615. </doc>
  34616. </method>
  34617. <method name="setName"
  34618. abstract="false" native="false" synchronized="false"
  34619. static="false" final="false" visibility="public"
  34620. deprecated="not deprecated">
  34621. <param name="name" type="java.lang.String"/>
  34622. <doc>
  34623. <![CDATA[set the name of the record]]>
  34624. </doc>
  34625. </method>
  34626. <method name="addField"
  34627. abstract="false" native="false" synchronized="false"
  34628. static="false" final="false" visibility="public"
  34629. deprecated="not deprecated">
  34630. <param name="fieldName" type="java.lang.String"/>
  34631. <param name="tid" type="org.apache.hadoop.record.meta.TypeID"/>
  34632. <doc>
  34633. <![CDATA[Add a field.
  34634. @param fieldName Name of the field
  34635. @param tid Type ID of the field]]>
  34636. </doc>
  34637. </method>
  34638. <method name="getFieldTypeInfos" return="java.util.Collection"
  34639. abstract="false" native="false" synchronized="false"
  34640. static="false" final="false" visibility="public"
  34641. deprecated="not deprecated">
  34642. <doc>
  34643. <![CDATA[Return a collection of field type infos]]>
  34644. </doc>
  34645. </method>
  34646. <method name="getNestedStructTypeInfo" return="org.apache.hadoop.record.meta.RecordTypeInfo"
  34647. abstract="false" native="false" synchronized="false"
  34648. static="false" final="false" visibility="public"
  34649. deprecated="not deprecated">
  34650. <param name="name" type="java.lang.String"/>
  34651. <doc>
  34652. <![CDATA[Return the type info of a nested record. We only consider nesting
  34653. to one level.
  34654. @param name Name of the nested record]]>
  34655. </doc>
  34656. </method>
  34657. <method name="serialize"
  34658. abstract="false" native="false" synchronized="false"
  34659. static="false" final="false" visibility="public"
  34660. deprecated="not deprecated">
  34661. <param name="rout" type="org.apache.hadoop.record.RecordOutput"/>
  34662. <param name="tag" type="java.lang.String"/>
  34663. <exception name="IOException" type="java.io.IOException"/>
  34664. <doc>
  34665. <![CDATA[Serialize the type information for a record]]>
  34666. </doc>
  34667. </method>
  34668. <method name="deserialize"
  34669. abstract="false" native="false" synchronized="false"
  34670. static="false" final="false" visibility="public"
  34671. deprecated="not deprecated">
  34672. <param name="rin" type="org.apache.hadoop.record.RecordInput"/>
  34673. <param name="tag" type="java.lang.String"/>
  34674. <exception name="IOException" type="java.io.IOException"/>
  34675. <doc>
  34676. <![CDATA[Deserialize the type information for a record]]>
  34677. </doc>
  34678. </method>
  34679. <method name="compareTo" return="int"
  34680. abstract="false" native="false" synchronized="false"
  34681. static="false" final="false" visibility="public"
  34682. deprecated="not deprecated">
  34683. <param name="peer_" type="java.lang.Object"/>
  34684. <exception name="ClassCastException" type="java.lang.ClassCastException"/>
  34685. <doc>
  34686. <![CDATA[This class doesn't implement Comparable as it's not meant to be used
  34687. for anything besides de/serializing.
  34688. So we always throw an exception.
  34689. Not implemented. Always returns 0 if another RecordTypeInfo is passed in.]]>
  34690. </doc>
  34691. </method>
  34692. <doc>
  34693. <![CDATA[A record's Type Information object which can read/write itself.
  34694. Type information for a record comprises metadata about the record,
  34695. as well as a collection of type information for each field in the record.]]>
  34696. </doc>
  34697. </class>
  34698. <!-- end class org.apache.hadoop.record.meta.RecordTypeInfo -->
  34699. <!-- start class org.apache.hadoop.record.meta.StructTypeID -->
  34700. <class name="StructTypeID" extends="org.apache.hadoop.record.meta.TypeID"
  34701. abstract="false"
  34702. static="false" final="false" visibility="public"
  34703. deprecated="not deprecated">
  34704. <constructor name="StructTypeID" type="org.apache.hadoop.record.meta.RecordTypeInfo"
  34705. static="false" final="false" visibility="public"
  34706. deprecated="not deprecated">
  34707. <doc>
  34708. <![CDATA[Create a StructTypeID based on the RecordTypeInfo of some record]]>
  34709. </doc>
  34710. </constructor>
  34711. <method name="getFieldTypeInfos" return="java.util.Collection"
  34712. abstract="false" native="false" synchronized="false"
  34713. static="false" final="false" visibility="public"
  34714. deprecated="not deprecated">
  34715. </method>
  34716. <doc>
  34717. <![CDATA[Represents typeID for a struct]]>
  34718. </doc>
  34719. </class>
  34720. <!-- end class org.apache.hadoop.record.meta.StructTypeID -->
  34721. <!-- start class org.apache.hadoop.record.meta.TypeID -->
  34722. <class name="TypeID" extends="java.lang.Object"
  34723. abstract="false"
  34724. static="false" final="false" visibility="public"
  34725. deprecated="not deprecated">
  34726. <method name="getTypeVal" return="byte"
  34727. abstract="false" native="false" synchronized="false"
  34728. static="false" final="false" visibility="public"
  34729. deprecated="not deprecated">
  34730. <doc>
  34731. <![CDATA[Get the type value. One of the constants in RIOType.]]>
  34732. </doc>
  34733. </method>
  34734. <method name="equals" return="boolean"
  34735. abstract="false" native="false" synchronized="false"
  34736. static="false" final="false" visibility="public"
  34737. deprecated="not deprecated">
  34738. <param name="o" type="java.lang.Object"/>
  34739. <doc>
  34740. <![CDATA[Two base typeIDs are equal if they refer to the same type]]>
  34741. </doc>
  34742. </method>
  34743. <method name="hashCode" return="int"
  34744. abstract="false" native="false" synchronized="false"
  34745. static="false" final="false" visibility="public"
  34746. deprecated="not deprecated">
  34747. <doc>
  34748. <![CDATA[We use a basic hashcode implementation, since this class will likely not
  34749. be used as a hashmap key]]>
  34750. </doc>
  34751. </method>
  34752. <field name="BoolTypeID" type="org.apache.hadoop.record.meta.TypeID"
  34753. transient="false" volatile="false"
  34754. static="true" final="true" visibility="public"
  34755. deprecated="not deprecated">
  34756. <doc>
  34757. <![CDATA[Constant classes for the basic types, so we can share them.]]>
  34758. </doc>
  34759. </field>
  34760. <field name="BufferTypeID" type="org.apache.hadoop.record.meta.TypeID"
  34761. transient="false" volatile="false"
  34762. static="true" final="true" visibility="public"
  34763. deprecated="not deprecated">
  34764. </field>
  34765. <field name="ByteTypeID" type="org.apache.hadoop.record.meta.TypeID"
  34766. transient="false" volatile="false"
  34767. static="true" final="true" visibility="public"
  34768. deprecated="not deprecated">
  34769. </field>
  34770. <field name="DoubleTypeID" type="org.apache.hadoop.record.meta.TypeID"
  34771. transient="false" volatile="false"
  34772. static="true" final="true" visibility="public"
  34773. deprecated="not deprecated">
  34774. </field>
  34775. <field name="FloatTypeID" type="org.apache.hadoop.record.meta.TypeID"
  34776. transient="false" volatile="false"
  34777. static="true" final="true" visibility="public"
  34778. deprecated="not deprecated">
  34779. </field>
  34780. <field name="IntTypeID" type="org.apache.hadoop.record.meta.TypeID"
  34781. transient="false" volatile="false"
  34782. static="true" final="true" visibility="public"
  34783. deprecated="not deprecated">
  34784. </field>
  34785. <field name="LongTypeID" type="org.apache.hadoop.record.meta.TypeID"
  34786. transient="false" volatile="false"
  34787. static="true" final="true" visibility="public"
  34788. deprecated="not deprecated">
  34789. </field>
  34790. <field name="StringTypeID" type="org.apache.hadoop.record.meta.TypeID"
  34791. transient="false" volatile="false"
  34792. static="true" final="true" visibility="public"
  34793. deprecated="not deprecated">
  34794. </field>
  34795. <field name="typeVal" type="byte"
  34796. transient="false" volatile="false"
  34797. static="false" final="false" visibility="protected"
  34798. deprecated="not deprecated">
  34799. </field>
  34800. <doc>
  34801. <![CDATA[Represents typeID for basic types.]]>
  34802. </doc>
  34803. </class>
  34804. <!-- end class org.apache.hadoop.record.meta.TypeID -->
  34805. <!-- start class org.apache.hadoop.record.meta.TypeID.RIOType -->
  34806. <class name="TypeID.RIOType" extends="java.lang.Object"
  34807. abstract="false"
  34808. static="true" final="true" visibility="public"
  34809. deprecated="not deprecated">
  34810. <constructor name="TypeID.RIOType"
  34811. static="false" final="false" visibility="public"
  34812. deprecated="not deprecated">
  34813. </constructor>
  34814. <field name="BOOL" type="byte"
  34815. transient="false" volatile="false"
  34816. static="true" final="true" visibility="public"
  34817. deprecated="not deprecated">
  34818. </field>
  34819. <field name="BUFFER" type="byte"
  34820. transient="false" volatile="false"
  34821. static="true" final="true" visibility="public"
  34822. deprecated="not deprecated">
  34823. </field>
  34824. <field name="BYTE" type="byte"
  34825. transient="false" volatile="false"
  34826. static="true" final="true" visibility="public"
  34827. deprecated="not deprecated">
  34828. </field>
  34829. <field name="DOUBLE" type="byte"
  34830. transient="false" volatile="false"
  34831. static="true" final="true" visibility="public"
  34832. deprecated="not deprecated">
  34833. </field>
  34834. <field name="FLOAT" type="byte"
  34835. transient="false" volatile="false"
  34836. static="true" final="true" visibility="public"
  34837. deprecated="not deprecated">
  34838. </field>
  34839. <field name="INT" type="byte"
  34840. transient="false" volatile="false"
  34841. static="true" final="true" visibility="public"
  34842. deprecated="not deprecated">
  34843. </field>
  34844. <field name="LONG" type="byte"
  34845. transient="false" volatile="false"
  34846. static="true" final="true" visibility="public"
  34847. deprecated="not deprecated">
  34848. </field>
  34849. <field name="MAP" type="byte"
  34850. transient="false" volatile="false"
  34851. static="true" final="true" visibility="public"
  34852. deprecated="not deprecated">
  34853. </field>
  34854. <field name="STRING" type="byte"
  34855. transient="false" volatile="false"
  34856. static="true" final="true" visibility="public"
  34857. deprecated="not deprecated">
  34858. </field>
  34859. <field name="STRUCT" type="byte"
  34860. transient="false" volatile="false"
  34861. static="true" final="true" visibility="public"
  34862. deprecated="not deprecated">
  34863. </field>
  34864. <field name="VECTOR" type="byte"
  34865. transient="false" volatile="false"
  34866. static="true" final="true" visibility="public"
  34867. deprecated="not deprecated">
  34868. </field>
  34869. <doc>
  34870. <![CDATA[constants representing the IDL types we support]]>
  34871. </doc>
  34872. </class>
  34873. <!-- end class org.apache.hadoop.record.meta.TypeID.RIOType -->
  34874. <!-- start class org.apache.hadoop.record.meta.Utils -->
  34875. <class name="Utils" extends="java.lang.Object"
  34876. abstract="false"
  34877. static="false" final="false" visibility="public"
  34878. deprecated="not deprecated">
  34879. <method name="skip"
  34880. abstract="false" native="false" synchronized="false"
  34881. static="true" final="false" visibility="public"
  34882. deprecated="not deprecated">
  34883. <param name="rin" type="org.apache.hadoop.record.RecordInput"/>
  34884. <param name="tag" type="java.lang.String"/>
  34885. <param name="typeID" type="org.apache.hadoop.record.meta.TypeID"/>
  34886. <exception name="IOException" type="java.io.IOException"/>
  34887. <doc>
  34888. <![CDATA[read/skip bytes from stream based on a type]]>
  34889. </doc>
  34890. </method>
  34891. <doc>
  34892. <![CDATA[Various utility functions for Hadooop record I/O platform.]]>
  34893. </doc>
  34894. </class>
  34895. <!-- end class org.apache.hadoop.record.meta.Utils -->
  34896. <!-- start class org.apache.hadoop.record.meta.VectorTypeID -->
  34897. <class name="VectorTypeID" extends="org.apache.hadoop.record.meta.TypeID"
  34898. abstract="false"
  34899. static="false" final="false" visibility="public"
  34900. deprecated="not deprecated">
  34901. <constructor name="VectorTypeID" type="org.apache.hadoop.record.meta.TypeID"
  34902. static="false" final="false" visibility="public"
  34903. deprecated="not deprecated">
  34904. </constructor>
  34905. <method name="getElementTypeID" return="org.apache.hadoop.record.meta.TypeID"
  34906. abstract="false" native="false" synchronized="false"
  34907. static="false" final="false" visibility="public"
  34908. deprecated="not deprecated">
  34909. </method>
  34910. <method name="equals" return="boolean"
  34911. abstract="false" native="false" synchronized="false"
  34912. static="false" final="false" visibility="public"
  34913. deprecated="not deprecated">
  34914. <param name="o" type="java.lang.Object"/>
  34915. <doc>
  34916. <![CDATA[Two vector typeIDs are equal if their constituent elements have the
  34917. same type]]>
  34918. </doc>
  34919. </method>
  34920. <method name="hashCode" return="int"
  34921. abstract="false" native="false" synchronized="false"
  34922. static="false" final="false" visibility="public"
  34923. deprecated="not deprecated">
  34924. <doc>
  34925. <![CDATA[We use a basic hashcode implementation, since this class will likely not
  34926. be used as a hashmap key]]>
  34927. </doc>
  34928. </method>
  34929. <doc>
  34930. <![CDATA[Represents typeID for vector.]]>
  34931. </doc>
  34932. </class>
  34933. <!-- end class org.apache.hadoop.record.meta.VectorTypeID -->
  34934. </package>
  34935. <package name="org.apache.hadoop.security">
  34936. <!-- start class org.apache.hadoop.security.AccessControlException -->
  34937. <class name="AccessControlException" extends="org.apache.hadoop.fs.permission.AccessControlException"
  34938. abstract="false"
  34939. static="false" final="false" visibility="public"
  34940. deprecated="not deprecated">
  34941. <constructor name="AccessControlException"
  34942. static="false" final="false" visibility="public"
  34943. deprecated="not deprecated">
  34944. <doc>
  34945. <![CDATA[Default constructor is needed for unwrapping from
  34946. {@link org.apache.hadoop.ipc.RemoteException}.]]>
  34947. </doc>
  34948. </constructor>
  34949. <constructor name="AccessControlException" type="java.lang.String"
  34950. static="false" final="false" visibility="public"
  34951. deprecated="not deprecated">
  34952. <doc>
  34953. <![CDATA[Constructs an {@link AccessControlException}
  34954. with the specified detail message.
  34955. @param s the detail message.]]>
  34956. </doc>
  34957. </constructor>
  34958. <constructor name="AccessControlException" type="java.lang.Throwable"
  34959. static="false" final="false" visibility="public"
  34960. deprecated="not deprecated">
  34961. <doc>
  34962. <![CDATA[Constructs a new exception with the specified cause and a detail
  34963. message of <tt>(cause==null ? null : cause.toString())</tt> (which
  34964. typically contains the class and detail message of <tt>cause</tt>).
  34965. @param cause the cause (which is saved for later retrieval by the
  34966. {@link #getCause()} method). (A <tt>null</tt> value is
  34967. permitted, and indicates that the cause is nonexistent or
  34968. unknown.)]]>
  34969. </doc>
  34970. </constructor>
  34971. <doc>
  34972. <![CDATA[An exception class for access control related issues.]]>
  34973. </doc>
  34974. </class>
  34975. <!-- end class org.apache.hadoop.security.AccessControlException -->
  34976. <!-- start class org.apache.hadoop.security.AuthenticationFilterInitializer -->
  34977. <class name="AuthenticationFilterInitializer" extends="org.apache.hadoop.http.FilterInitializer"
  34978. abstract="false"
  34979. static="false" final="false" visibility="public"
  34980. deprecated="not deprecated">
  34981. <constructor name="AuthenticationFilterInitializer"
  34982. static="false" final="false" visibility="public"
  34983. deprecated="not deprecated">
  34984. </constructor>
  34985. <method name="initFilter"
  34986. abstract="false" native="false" synchronized="false"
  34987. static="false" final="false" visibility="public"
  34988. deprecated="not deprecated">
  34989. <param name="container" type="org.apache.hadoop.http.FilterContainer"/>
  34990. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  34991. <doc>
  34992. <![CDATA[Initializes Alfredo AuthenticationFilter.
  34993. <p/>
  34994. Propagates to Alfredo AuthenticationFilter configuration all Hadoop
  34995. configuration properties prefixed with "hadoop.http.authentication."
  34996. @param container The filter container
  34997. @param conf Configuration for run-time parameters]]>
  34998. </doc>
  34999. </method>
  35000. <doc>
  35001. <![CDATA[Initializes Alfredo AuthenticationFilter which provides support for
  35002. Kerberos HTTP SPNEGO authentication.
  35003. <p/>
  35004. It enables anonymous access, simple/speudo and Kerberos HTTP SPNEGO
  35005. authentication for Hadoop JobTracker, NameNode, DataNodes and
  35006. TaskTrackers.
  35007. <p/>
  35008. Refer to the <code>core-default.xml</code> file, after the comment
  35009. 'HTTP Authentication' for details on the configuration options.
  35010. All related configuration properties have 'hadoop.http.authentication.'
  35011. as prefix.]]>
  35012. </doc>
  35013. </class>
  35014. <!-- end class org.apache.hadoop.security.AuthenticationFilterInitializer -->
  35015. <!-- start class org.apache.hadoop.security.Credentials -->
  35016. <class name="Credentials" extends="java.lang.Object"
  35017. abstract="false"
  35018. static="false" final="false" visibility="public"
  35019. deprecated="not deprecated">
  35020. <implements name="org.apache.hadoop.io.Writable"/>
  35021. <constructor name="Credentials"
  35022. static="false" final="false" visibility="public"
  35023. deprecated="not deprecated">
  35024. </constructor>
  35025. <method name="getSecretKey" return="byte[]"
  35026. abstract="false" native="false" synchronized="false"
  35027. static="false" final="false" visibility="public"
  35028. deprecated="not deprecated">
  35029. <param name="alias" type="org.apache.hadoop.io.Text"/>
  35030. <doc>
  35031. <![CDATA[Returns the key bytes for the alias
  35032. @param alias the alias for the key
  35033. @return key for this alias]]>
  35034. </doc>
  35035. </method>
  35036. <method name="getToken" return="org.apache.hadoop.security.token.Token"
  35037. abstract="false" native="false" synchronized="false"
  35038. static="false" final="false" visibility="public"
  35039. deprecated="not deprecated">
  35040. <param name="alias" type="org.apache.hadoop.io.Text"/>
  35041. <doc>
  35042. <![CDATA[Returns the Token object for the alias
  35043. @param alias the alias for the Token
  35044. @return token for this alias]]>
  35045. </doc>
  35046. </method>
  35047. <method name="addToken"
  35048. abstract="false" native="false" synchronized="false"
  35049. static="false" final="false" visibility="public"
  35050. deprecated="not deprecated">
  35051. <param name="alias" type="org.apache.hadoop.io.Text"/>
  35052. <param name="t" type="org.apache.hadoop.security.token.Token"/>
  35053. <doc>
  35054. <![CDATA[Add a token in the storage (in memory)
  35055. @param alias the alias for the key
  35056. @param t the token object]]>
  35057. </doc>
  35058. </method>
  35059. <method name="getAllTokens" return="java.util.Collection"
  35060. abstract="false" native="false" synchronized="false"
  35061. static="false" final="false" visibility="public"
  35062. deprecated="not deprecated">
  35063. <doc>
  35064. <![CDATA[Return all the tokens in the in-memory map]]>
  35065. </doc>
  35066. </method>
  35067. <method name="numberOfTokens" return="int"
  35068. abstract="false" native="false" synchronized="false"
  35069. static="false" final="false" visibility="public"
  35070. deprecated="not deprecated">
  35071. <doc>
  35072. <![CDATA[@return number of Tokens in the in-memory map]]>
  35073. </doc>
  35074. </method>
  35075. <method name="numberOfSecretKeys" return="int"
  35076. abstract="false" native="false" synchronized="false"
  35077. static="false" final="false" visibility="public"
  35078. deprecated="not deprecated">
  35079. <doc>
  35080. <![CDATA[@return number of keys in the in-memory map]]>
  35081. </doc>
  35082. </method>
  35083. <method name="addSecretKey"
  35084. abstract="false" native="false" synchronized="false"
  35085. static="false" final="false" visibility="public"
  35086. deprecated="not deprecated">
  35087. <param name="alias" type="org.apache.hadoop.io.Text"/>
  35088. <param name="key" type="byte[]"/>
  35089. <doc>
  35090. <![CDATA[Set the key for an alias
  35091. @param alias the alias for the key
  35092. @param key the key bytes]]>
  35093. </doc>
  35094. </method>
  35095. <method name="readTokenStorageFile" return="org.apache.hadoop.security.Credentials"
  35096. abstract="false" native="false" synchronized="false"
  35097. static="true" final="false" visibility="public"
  35098. deprecated="not deprecated">
  35099. <param name="filename" type="org.apache.hadoop.fs.Path"/>
  35100. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  35101. <exception name="IOException" type="java.io.IOException"/>
  35102. <doc>
  35103. <![CDATA[Convenience method for reading a token storage file, and loading the Tokens
  35104. therein in the passed UGI
  35105. @param filename
  35106. @param conf
  35107. @throws IOException]]>
  35108. </doc>
  35109. </method>
  35110. <method name="readTokenStorageStream"
  35111. abstract="false" native="false" synchronized="false"
  35112. static="false" final="false" visibility="public"
  35113. deprecated="not deprecated">
  35114. <param name="in" type="java.io.DataInputStream"/>
  35115. <exception name="IOException" type="java.io.IOException"/>
  35116. <doc>
  35117. <![CDATA[Convenience method for reading a token storage file directly from a
  35118. datainputstream]]>
  35119. </doc>
  35120. </method>
  35121. <method name="writeTokenStorageToStream"
  35122. abstract="false" native="false" synchronized="false"
  35123. static="false" final="false" visibility="public"
  35124. deprecated="not deprecated">
  35125. <param name="os" type="java.io.DataOutputStream"/>
  35126. <exception name="IOException" type="java.io.IOException"/>
  35127. </method>
  35128. <method name="writeTokenStorageFile"
  35129. abstract="false" native="false" synchronized="false"
  35130. static="false" final="false" visibility="public"
  35131. deprecated="not deprecated">
  35132. <param name="filename" type="org.apache.hadoop.fs.Path"/>
  35133. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  35134. <exception name="IOException" type="java.io.IOException"/>
  35135. </method>
  35136. <method name="write"
  35137. abstract="false" native="false" synchronized="false"
  35138. static="false" final="false" visibility="public"
  35139. deprecated="not deprecated">
  35140. <param name="out" type="java.io.DataOutput"/>
  35141. <exception name="IOException" type="java.io.IOException"/>
  35142. <doc>
  35143. <![CDATA[Stores all the keys to DataOutput
  35144. @param out
  35145. @throws IOException]]>
  35146. </doc>
  35147. </method>
  35148. <method name="readFields"
  35149. abstract="false" native="false" synchronized="false"
  35150. static="false" final="false" visibility="public"
  35151. deprecated="not deprecated">
  35152. <param name="in" type="java.io.DataInput"/>
  35153. <exception name="IOException" type="java.io.IOException"/>
  35154. <doc>
  35155. <![CDATA[Loads all the keys
  35156. @param in
  35157. @throws IOException]]>
  35158. </doc>
  35159. </method>
  35160. <method name="addAll"
  35161. abstract="false" native="false" synchronized="false"
  35162. static="false" final="false" visibility="public"
  35163. deprecated="not deprecated">
  35164. <param name="other" type="org.apache.hadoop.security.Credentials"/>
  35165. <doc>
  35166. <![CDATA[Copy all of the credentials from one credential object into another.
  35167. @param other the credentials to copy]]>
  35168. </doc>
  35169. </method>
  35170. <doc>
  35171. <![CDATA[A class that provides the facilities of reading and writing
  35172. secret keys and Tokens.]]>
  35173. </doc>
  35174. </class>
  35175. <!-- end class org.apache.hadoop.security.Credentials -->
  35176. <!-- start class org.apache.hadoop.security.Groups -->
  35177. <class name="Groups" extends="java.lang.Object"
  35178. abstract="false"
  35179. static="false" final="false" visibility="public"
  35180. deprecated="not deprecated">
  35181. <constructor name="Groups" type="org.apache.hadoop.conf.Configuration"
  35182. static="false" final="false" visibility="public"
  35183. deprecated="not deprecated">
  35184. </constructor>
  35185. <method name="getGroups" return="java.util.List"
  35186. abstract="false" native="false" synchronized="false"
  35187. static="false" final="false" visibility="public"
  35188. deprecated="not deprecated">
  35189. <param name="user" type="java.lang.String"/>
  35190. <exception name="IOException" type="java.io.IOException"/>
  35191. <doc>
  35192. <![CDATA[Get the group memberships of a given user.
  35193. @param user User's name
  35194. @return the group memberships of the user
  35195. @throws IOException]]>
  35196. </doc>
  35197. </method>
  35198. <method name="refresh"
  35199. abstract="false" native="false" synchronized="false"
  35200. static="false" final="false" visibility="public"
  35201. deprecated="not deprecated">
  35202. <doc>
  35203. <![CDATA[Refresh all user-to-groups mappings.]]>
  35204. </doc>
  35205. </method>
  35206. <method name="cacheGroupsAdd"
  35207. abstract="false" native="false" synchronized="false"
  35208. static="false" final="false" visibility="public"
  35209. deprecated="not deprecated">
  35210. <param name="groups" type="java.util.List"/>
  35211. </method>
  35212. <method name="getUserToGroupsMappingService" return="org.apache.hadoop.security.Groups"
  35213. abstract="false" native="false" synchronized="false"
  35214. static="true" final="false" visibility="public"
  35215. deprecated="not deprecated">
  35216. <doc>
  35217. <![CDATA[Get the groups being used to map user-to-groups.
  35218. @return the groups being used to map user-to-groups.]]>
  35219. </doc>
  35220. </method>
  35221. <method name="getUserToGroupsMappingService" return="org.apache.hadoop.security.Groups"
  35222. abstract="false" native="false" synchronized="false"
  35223. static="true" final="false" visibility="public"
  35224. deprecated="not deprecated">
  35225. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  35226. </method>
  35227. <doc>
  35228. <![CDATA[A user-to-groups mapping service.
  35229. {@link Groups} allows for server to get the various group memberships
  35230. of a given user via the {@link #getGroups(String)} call, thus ensuring
  35231. a consistent user-to-groups mapping and protects against vagaries of
  35232. different mappings on servers and clients in a Hadoop cluster.]]>
  35233. </doc>
  35234. </class>
  35235. <!-- end class org.apache.hadoop.security.Groups -->
  35236. <!-- start class org.apache.hadoop.security.JniBasedUnixGroupsMapping -->
  35237. <class name="JniBasedUnixGroupsMapping" extends="java.lang.Object"
  35238. abstract="false"
  35239. static="false" final="false" visibility="public"
  35240. deprecated="not deprecated">
  35241. <implements name="org.apache.hadoop.security.GroupMappingServiceProvider"/>
  35242. <constructor name="JniBasedUnixGroupsMapping"
  35243. static="false" final="false" visibility="public"
  35244. deprecated="not deprecated">
  35245. </constructor>
  35246. <method name="getGroups" return="java.util.List"
  35247. abstract="false" native="false" synchronized="false"
  35248. static="false" final="false" visibility="public"
  35249. deprecated="not deprecated">
  35250. <param name="user" type="java.lang.String"/>
  35251. <exception name="IOException" type="java.io.IOException"/>
  35252. </method>
  35253. <method name="cacheGroupsRefresh"
  35254. abstract="false" native="false" synchronized="false"
  35255. static="false" final="false" visibility="public"
  35256. deprecated="not deprecated">
  35257. <exception name="IOException" type="java.io.IOException"/>
  35258. </method>
  35259. <method name="cacheGroupsAdd"
  35260. abstract="false" native="false" synchronized="false"
  35261. static="false" final="false" visibility="public"
  35262. deprecated="not deprecated">
  35263. <param name="groups" type="java.util.List"/>
  35264. <exception name="IOException" type="java.io.IOException"/>
  35265. </method>
  35266. <doc>
  35267. <![CDATA[A JNI-based implementation of {@link GroupMappingServiceProvider}
  35268. that invokes libC calls to get the group
  35269. memberships of a given user.]]>
  35270. </doc>
  35271. </class>
  35272. <!-- end class org.apache.hadoop.security.JniBasedUnixGroupsMapping -->
  35273. <!-- start class org.apache.hadoop.security.JniBasedUnixGroupsMappingWithFallback -->
  35274. <class name="JniBasedUnixGroupsMappingWithFallback" extends="java.lang.Object"
  35275. abstract="false"
  35276. static="false" final="false" visibility="public"
  35277. deprecated="not deprecated">
  35278. <implements name="org.apache.hadoop.security.GroupMappingServiceProvider"/>
  35279. <constructor name="JniBasedUnixGroupsMappingWithFallback"
  35280. static="false" final="false" visibility="public"
  35281. deprecated="not deprecated">
  35282. </constructor>
  35283. <method name="getGroups" return="java.util.List"
  35284. abstract="false" native="false" synchronized="false"
  35285. static="false" final="false" visibility="public"
  35286. deprecated="not deprecated">
  35287. <param name="user" type="java.lang.String"/>
  35288. <exception name="IOException" type="java.io.IOException"/>
  35289. </method>
  35290. <method name="cacheGroupsRefresh"
  35291. abstract="false" native="false" synchronized="false"
  35292. static="false" final="false" visibility="public"
  35293. deprecated="not deprecated">
  35294. <exception name="IOException" type="java.io.IOException"/>
  35295. </method>
  35296. <method name="cacheGroupsAdd"
  35297. abstract="false" native="false" synchronized="false"
  35298. static="false" final="false" visibility="public"
  35299. deprecated="not deprecated">
  35300. <param name="groups" type="java.util.List"/>
  35301. <exception name="IOException" type="java.io.IOException"/>
  35302. </method>
  35303. </class>
  35304. <!-- end class org.apache.hadoop.security.JniBasedUnixGroupsMappingWithFallback -->
  35305. <!-- start class org.apache.hadoop.security.JniBasedUnixGroupsNetgroupMapping -->
  35306. <class name="JniBasedUnixGroupsNetgroupMapping" extends="org.apache.hadoop.security.JniBasedUnixGroupsMapping"
  35307. abstract="false"
  35308. static="false" final="false" visibility="public"
  35309. deprecated="not deprecated">
  35310. <constructor name="JniBasedUnixGroupsNetgroupMapping"
  35311. static="false" final="false" visibility="public"
  35312. deprecated="not deprecated">
  35313. </constructor>
  35314. <method name="getGroups" return="java.util.List"
  35315. abstract="false" native="false" synchronized="false"
  35316. static="false" final="false" visibility="public"
  35317. deprecated="not deprecated">
  35318. <param name="user" type="java.lang.String"/>
  35319. <exception name="IOException" type="java.io.IOException"/>
  35320. <doc>
  35321. <![CDATA[Gets unix groups and netgroups for the user.
  35322. It gets all unix groups as returned by id -Gn but it
  35323. only returns netgroups that are used in ACLs (there is
  35324. no way to get all netgroups for a given user, see
  35325. documentation for getent netgroup)]]>
  35326. </doc>
  35327. </method>
  35328. <method name="cacheGroupsRefresh"
  35329. abstract="false" native="false" synchronized="false"
  35330. static="false" final="false" visibility="public"
  35331. deprecated="not deprecated">
  35332. <exception name="IOException" type="java.io.IOException"/>
  35333. </method>
  35334. <method name="cacheGroupsAdd"
  35335. abstract="false" native="false" synchronized="false"
  35336. static="false" final="false" visibility="public"
  35337. deprecated="not deprecated">
  35338. <param name="groups" type="java.util.List"/>
  35339. <exception name="IOException" type="java.io.IOException"/>
  35340. </method>
  35341. <method name="getUsersForNetgroup" return="java.util.List"
  35342. abstract="false" native="false" synchronized="true"
  35343. static="false" final="false" visibility="protected"
  35344. deprecated="not deprecated">
  35345. <param name="netgroup" type="java.lang.String"/>
  35346. <doc>
  35347. <![CDATA[Calls JNI function to get users for a netgroup, since C functions
  35348. are not reentrant we need to make this synchronized (see
  35349. documentation for setnetgrent, getnetgrent and endnetgrent)]]>
  35350. </doc>
  35351. </method>
  35352. <doc>
  35353. <![CDATA[A JNI-based implementation of {@link GroupMappingServiceProvider}
  35354. that invokes libC calls to get the group
  35355. memberships of a given user.]]>
  35356. </doc>
  35357. </class>
  35358. <!-- end class org.apache.hadoop.security.JniBasedUnixGroupsNetgroupMapping -->
  35359. <!-- start class org.apache.hadoop.security.JniBasedUnixGroupsNetgroupMappingWithFallback -->
  35360. <class name="JniBasedUnixGroupsNetgroupMappingWithFallback" extends="java.lang.Object"
  35361. abstract="false"
  35362. static="false" final="false" visibility="public"
  35363. deprecated="not deprecated">
  35364. <implements name="org.apache.hadoop.security.GroupMappingServiceProvider"/>
  35365. <constructor name="JniBasedUnixGroupsNetgroupMappingWithFallback"
  35366. static="false" final="false" visibility="public"
  35367. deprecated="not deprecated">
  35368. </constructor>
  35369. <method name="getGroups" return="java.util.List"
  35370. abstract="false" native="false" synchronized="false"
  35371. static="false" final="false" visibility="public"
  35372. deprecated="not deprecated">
  35373. <param name="user" type="java.lang.String"/>
  35374. <exception name="IOException" type="java.io.IOException"/>
  35375. </method>
  35376. <method name="cacheGroupsRefresh"
  35377. abstract="false" native="false" synchronized="false"
  35378. static="false" final="false" visibility="public"
  35379. deprecated="not deprecated">
  35380. <exception name="IOException" type="java.io.IOException"/>
  35381. </method>
  35382. <method name="cacheGroupsAdd"
  35383. abstract="false" native="false" synchronized="false"
  35384. static="false" final="false" visibility="public"
  35385. deprecated="not deprecated">
  35386. <param name="groups" type="java.util.List"/>
  35387. <exception name="IOException" type="java.io.IOException"/>
  35388. </method>
  35389. </class>
  35390. <!-- end class org.apache.hadoop.security.JniBasedUnixGroupsNetgroupMappingWithFallback -->
  35391. <!-- start interface org.apache.hadoop.security.KerberosInfo -->
  35392. <interface name="KerberosInfo" abstract="true"
  35393. static="false" final="false" visibility="public"
  35394. deprecated="not deprecated">
  35395. <implements name="java.lang.annotation.Annotation"/>
  35396. <method name="serverPrincipal" return="java.lang.String"
  35397. abstract="false" native="false" synchronized="false"
  35398. static="false" final="false" visibility="public"
  35399. deprecated="not deprecated">
  35400. <doc>
  35401. <![CDATA[Key for getting server's Kerberos principal name from Configuration]]>
  35402. </doc>
  35403. </method>
  35404. <method name="clientPrincipal" return="java.lang.String"
  35405. abstract="false" native="false" synchronized="false"
  35406. static="false" final="false" visibility="public"
  35407. deprecated="not deprecated">
  35408. </method>
  35409. <doc>
  35410. <![CDATA[Indicates Kerberos related information to be used]]>
  35411. </doc>
  35412. </interface>
  35413. <!-- end interface org.apache.hadoop.security.KerberosInfo -->
  35414. <!-- start class org.apache.hadoop.security.KerberosName -->
  35415. <class name="KerberosName" extends="java.lang.Object"
  35416. abstract="false"
  35417. static="false" final="false" visibility="public"
  35418. deprecated="not deprecated">
  35419. <constructor name="KerberosName" type="java.lang.String"
  35420. static="false" final="false" visibility="public"
  35421. deprecated="not deprecated">
  35422. <doc>
  35423. <![CDATA[Create a name from the full Kerberos principal name.
  35424. @param name]]>
  35425. </doc>
  35426. </constructor>
  35427. <method name="getDefaultRealm" return="java.lang.String"
  35428. abstract="false" native="false" synchronized="false"
  35429. static="false" final="false" visibility="public"
  35430. deprecated="not deprecated">
  35431. <doc>
  35432. <![CDATA[Get the configured default realm.
  35433. @return the default realm from the krb5.conf]]>
  35434. </doc>
  35435. </method>
  35436. <method name="toString" return="java.lang.String"
  35437. abstract="false" native="false" synchronized="false"
  35438. static="false" final="false" visibility="public"
  35439. deprecated="not deprecated">
  35440. <doc>
  35441. <![CDATA[Put the name back together from the parts.]]>
  35442. </doc>
  35443. </method>
  35444. <method name="getServiceName" return="java.lang.String"
  35445. abstract="false" native="false" synchronized="false"
  35446. static="false" final="false" visibility="public"
  35447. deprecated="not deprecated">
  35448. <doc>
  35449. <![CDATA[Get the first component of the name.
  35450. @return the first section of the Kerberos principal name]]>
  35451. </doc>
  35452. </method>
  35453. <method name="getHostName" return="java.lang.String"
  35454. abstract="false" native="false" synchronized="false"
  35455. static="false" final="false" visibility="public"
  35456. deprecated="not deprecated">
  35457. <doc>
  35458. <![CDATA[Get the second component of the name.
  35459. @return the second section of the Kerberos principal name, and may be null]]>
  35460. </doc>
  35461. </method>
  35462. <method name="getRealm" return="java.lang.String"
  35463. abstract="false" native="false" synchronized="false"
  35464. static="false" final="false" visibility="public"
  35465. deprecated="not deprecated">
  35466. <doc>
  35467. <![CDATA[Get the realm of the name.
  35468. @return the realm of the name, may be null]]>
  35469. </doc>
  35470. </method>
  35471. <method name="setConfiguration"
  35472. abstract="false" native="false" synchronized="false"
  35473. static="true" final="false" visibility="public"
  35474. deprecated="not deprecated">
  35475. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  35476. <exception name="IOException" type="java.io.IOException"/>
  35477. <doc>
  35478. <![CDATA[Set the static configuration to get the rules.
  35479. @param conf the new configuration
  35480. @throws IOException]]>
  35481. </doc>
  35482. </method>
  35483. <method name="setRules"
  35484. abstract="false" native="false" synchronized="false"
  35485. static="true" final="false" visibility="public"
  35486. deprecated="not deprecated">
  35487. <param name="ruleString" type="java.lang.String"/>
  35488. <doc>
  35489. <![CDATA[Set the rules.
  35490. @param ruleString the rules string.]]>
  35491. </doc>
  35492. </method>
  35493. <method name="getShortName" return="java.lang.String"
  35494. abstract="false" native="false" synchronized="false"
  35495. static="false" final="false" visibility="public"
  35496. deprecated="not deprecated">
  35497. <exception name="IOException" type="java.io.IOException"/>
  35498. <doc>
  35499. <![CDATA[Get the translation of the principal name into an operating system
  35500. user name.
  35501. @return the short name
  35502. @throws IOException]]>
  35503. </doc>
  35504. </method>
  35505. <method name="printRules"
  35506. abstract="false" native="false" synchronized="false"
  35507. static="true" final="false" visibility="public"
  35508. deprecated="not deprecated">
  35509. <exception name="IOException" type="java.io.IOException"/>
  35510. </method>
  35511. <method name="main"
  35512. abstract="false" native="false" synchronized="false"
  35513. static="true" final="false" visibility="public"
  35514. deprecated="not deprecated">
  35515. <param name="args" type="java.lang.String[]"/>
  35516. <exception name="Exception" type="java.lang.Exception"/>
  35517. </method>
  35518. <doc>
  35519. <![CDATA[This class implements parsing and handling of Kerberos principal names. In
  35520. particular, it splits them apart and translates them down into local
  35521. operating system names.]]>
  35522. </doc>
  35523. </class>
  35524. <!-- end class org.apache.hadoop.security.KerberosName -->
  35525. <!-- start class org.apache.hadoop.security.KerberosName.BadFormatString -->
  35526. <class name="KerberosName.BadFormatString" extends="java.io.IOException"
  35527. abstract="false"
  35528. static="true" final="false" visibility="public"
  35529. deprecated="not deprecated">
  35530. </class>
  35531. <!-- end class org.apache.hadoop.security.KerberosName.BadFormatString -->
  35532. <!-- start class org.apache.hadoop.security.KerberosName.NoMatchingRule -->
  35533. <class name="KerberosName.NoMatchingRule" extends="java.io.IOException"
  35534. abstract="false"
  35535. static="true" final="false" visibility="public"
  35536. deprecated="not deprecated">
  35537. </class>
  35538. <!-- end class org.apache.hadoop.security.KerberosName.NoMatchingRule -->
  35539. <!-- start class org.apache.hadoop.security.Krb5AndCertsSslSocketConnector -->
  35540. <class name="Krb5AndCertsSslSocketConnector" extends="org.mortbay.jetty.security.SslSocketConnector"
  35541. abstract="false"
  35542. static="false" final="false" visibility="public"
  35543. deprecated="not deprecated">
  35544. <constructor name="Krb5AndCertsSslSocketConnector"
  35545. static="false" final="false" visibility="public"
  35546. deprecated="not deprecated">
  35547. </constructor>
  35548. <constructor name="Krb5AndCertsSslSocketConnector" type="org.apache.hadoop.security.Krb5AndCertsSslSocketConnector.MODE"
  35549. static="false" final="false" visibility="public"
  35550. deprecated="not deprecated">
  35551. </constructor>
  35552. <method name="createFactory" return="javax.net.ssl.SSLServerSocketFactory"
  35553. abstract="false" native="false" synchronized="false"
  35554. static="false" final="false" visibility="protected"
  35555. deprecated="not deprecated">
  35556. <exception name="Exception" type="java.lang.Exception"/>
  35557. </method>
  35558. <method name="newServerSocket" return="java.net.ServerSocket"
  35559. abstract="false" native="false" synchronized="false"
  35560. static="false" final="false" visibility="protected"
  35561. deprecated="not deprecated">
  35562. <param name="host" type="java.lang.String"/>
  35563. <param name="port" type="int"/>
  35564. <param name="backlog" type="int"/>
  35565. <exception name="IOException" type="java.io.IOException"/>
  35566. </method>
  35567. <method name="customize"
  35568. abstract="false" native="false" synchronized="false"
  35569. static="false" final="false" visibility="public"
  35570. deprecated="not deprecated">
  35571. <param name="endpoint" type="org.mortbay.io.EndPoint"/>
  35572. <param name="request" type="org.mortbay.jetty.Request"/>
  35573. <exception name="IOException" type="java.io.IOException"/>
  35574. </method>
  35575. <field name="KRB5_CIPHER_SUITES" type="java.util.List"
  35576. transient="false" volatile="false"
  35577. static="true" final="true" visibility="public"
  35578. deprecated="not deprecated">
  35579. </field>
  35580. <doc>
  35581. <![CDATA[Extend Jetty's {@link SslSocketConnector} to optionally also provide
  35582. Kerberos5ized SSL sockets. The only change in behavior from superclass
  35583. is that we no longer honor requests to turn off NeedAuthentication when
  35584. running with Kerberos support.]]>
  35585. </doc>
  35586. </class>
  35587. <!-- end class org.apache.hadoop.security.Krb5AndCertsSslSocketConnector -->
  35588. <!-- start class org.apache.hadoop.security.Krb5AndCertsSslSocketConnector.Krb5SslFilter -->
  35589. <class name="Krb5AndCertsSslSocketConnector.Krb5SslFilter" extends="java.lang.Object"
  35590. abstract="false"
  35591. static="true" final="false" visibility="public"
  35592. deprecated="not deprecated">
  35593. <implements name="javax.servlet.Filter"/>
  35594. <constructor name="Krb5AndCertsSslSocketConnector.Krb5SslFilter"
  35595. static="false" final="false" visibility="public"
  35596. deprecated="not deprecated">
  35597. </constructor>
  35598. <method name="doFilter"
  35599. abstract="false" native="false" synchronized="false"
  35600. static="false" final="false" visibility="public"
  35601. deprecated="not deprecated">
  35602. <param name="req" type="javax.servlet.ServletRequest"/>
  35603. <param name="resp" type="javax.servlet.ServletResponse"/>
  35604. <param name="chain" type="javax.servlet.FilterChain"/>
  35605. <exception name="IOException" type="java.io.IOException"/>
  35606. <exception name="ServletException" type="javax.servlet.ServletException"/>
  35607. </method>
  35608. <method name="init"
  35609. abstract="false" native="false" synchronized="false"
  35610. static="false" final="false" visibility="public"
  35611. deprecated="not deprecated">
  35612. <param name="arg0" type="javax.servlet.FilterConfig"/>
  35613. <exception name="ServletException" type="javax.servlet.ServletException"/>
  35614. </method>
  35615. <method name="destroy"
  35616. abstract="false" native="false" synchronized="false"
  35617. static="false" final="false" visibility="public"
  35618. deprecated="not deprecated">
  35619. </method>
  35620. <doc>
  35621. <![CDATA[Filter that takes the Kerberos principal identified in the
  35622. {@link Krb5AndCertsSslSocketConnector} and provides it the to the servlet
  35623. at runtime, setting the principal and short name.]]>
  35624. </doc>
  35625. </class>
  35626. <!-- end class org.apache.hadoop.security.Krb5AndCertsSslSocketConnector.Krb5SslFilter -->
  35627. <!-- start class org.apache.hadoop.security.Krb5AndCertsSslSocketConnector.MODE -->
  35628. <class name="Krb5AndCertsSslSocketConnector.MODE" extends="java.lang.Enum"
  35629. abstract="false"
  35630. static="true" final="true" visibility="public"
  35631. deprecated="not deprecated">
  35632. <method name="values" return="org.apache.hadoop.security.Krb5AndCertsSslSocketConnector.MODE[]"
  35633. abstract="false" native="false" synchronized="false"
  35634. static="true" final="false" visibility="public"
  35635. deprecated="not deprecated">
  35636. </method>
  35637. <method name="valueOf" return="org.apache.hadoop.security.Krb5AndCertsSslSocketConnector.MODE"
  35638. abstract="false" native="false" synchronized="false"
  35639. static="true" final="false" visibility="public"
  35640. deprecated="not deprecated">
  35641. <param name="name" type="java.lang.String"/>
  35642. </method>
  35643. <field name="KRB" type="org.apache.hadoop.security.Krb5AndCertsSslSocketConnector.MODE"
  35644. transient="false" volatile="false"
  35645. static="true" final="true" visibility="public"
  35646. deprecated="not deprecated">
  35647. </field>
  35648. <field name="CERTS" type="org.apache.hadoop.security.Krb5AndCertsSslSocketConnector.MODE"
  35649. transient="false" volatile="false"
  35650. static="true" final="true" visibility="public"
  35651. deprecated="not deprecated">
  35652. </field>
  35653. <field name="BOTH" type="org.apache.hadoop.security.Krb5AndCertsSslSocketConnector.MODE"
  35654. transient="false" volatile="false"
  35655. static="true" final="true" visibility="public"
  35656. deprecated="not deprecated">
  35657. </field>
  35658. </class>
  35659. <!-- end class org.apache.hadoop.security.Krb5AndCertsSslSocketConnector.MODE -->
  35660. <!-- start class org.apache.hadoop.security.NetgroupCache -->
  35661. <class name="NetgroupCache" extends="java.lang.Object"
  35662. abstract="false"
  35663. static="false" final="false" visibility="public"
  35664. deprecated="not deprecated">
  35665. <constructor name="NetgroupCache"
  35666. static="false" final="false" visibility="public"
  35667. deprecated="not deprecated">
  35668. </constructor>
  35669. <method name="getNetgroups"
  35670. abstract="false" native="false" synchronized="false"
  35671. static="false" final="false" visibility="public"
  35672. deprecated="not deprecated">
  35673. <param name="user" type="java.lang.String"/>
  35674. <param name="groups" type="java.util.List"/>
  35675. </method>
  35676. <method name="getNetgroupNames" return="java.util.List"
  35677. abstract="false" native="false" synchronized="false"
  35678. static="false" final="false" visibility="public"
  35679. deprecated="not deprecated">
  35680. </method>
  35681. <method name="isCached" return="boolean"
  35682. abstract="false" native="false" synchronized="false"
  35683. static="false" final="false" visibility="public"
  35684. deprecated="not deprecated">
  35685. <param name="group" type="java.lang.String"/>
  35686. </method>
  35687. <method name="clear"
  35688. abstract="false" native="false" synchronized="false"
  35689. static="false" final="false" visibility="public"
  35690. deprecated="not deprecated">
  35691. </method>
  35692. <method name="add"
  35693. abstract="false" native="false" synchronized="false"
  35694. static="false" final="false" visibility="public"
  35695. deprecated="not deprecated">
  35696. <param name="group" type="java.lang.String"/>
  35697. <param name="users" type="java.util.List"/>
  35698. </method>
  35699. <doc>
  35700. <![CDATA[Class that caches the netgroups and inverts group-to-user map
  35701. to user-to-group map]]>
  35702. </doc>
  35703. </class>
  35704. <!-- end class org.apache.hadoop.security.NetgroupCache -->
  35705. <!-- start interface org.apache.hadoop.security.RefreshUserMappingsProtocol -->
  35706. <interface name="RefreshUserMappingsProtocol" abstract="true"
  35707. static="false" final="false" visibility="public"
  35708. deprecated="not deprecated">
  35709. <implements name="org.apache.hadoop.ipc.VersionedProtocol"/>
  35710. <method name="refreshUserToGroupsMappings"
  35711. abstract="false" native="false" synchronized="false"
  35712. static="false" final="false" visibility="public"
  35713. deprecated="not deprecated">
  35714. <exception name="IOException" type="java.io.IOException"/>
  35715. <doc>
  35716. <![CDATA[Refresh user to group mappings.
  35717. @throws IOException]]>
  35718. </doc>
  35719. </method>
  35720. <method name="refreshSuperUserGroupsConfiguration"
  35721. abstract="false" native="false" synchronized="false"
  35722. static="false" final="false" visibility="public"
  35723. deprecated="not deprecated">
  35724. <exception name="IOException" type="java.io.IOException"/>
  35725. <doc>
  35726. <![CDATA[Refresh superuser proxy group list
  35727. @throws IOException]]>
  35728. </doc>
  35729. </method>
  35730. <field name="versionID" type="long"
  35731. transient="false" volatile="false"
  35732. static="true" final="true" visibility="public"
  35733. deprecated="not deprecated">
  35734. <doc>
  35735. <![CDATA[Version 1: Initial version.]]>
  35736. </doc>
  35737. </field>
  35738. <doc>
  35739. <![CDATA[Protocol use]]>
  35740. </doc>
  35741. </interface>
  35742. <!-- end interface org.apache.hadoop.security.RefreshUserMappingsProtocol -->
  35743. <!-- start class org.apache.hadoop.security.SaslInputStream -->
  35744. <class name="SaslInputStream" extends="java.io.InputStream"
  35745. abstract="false"
  35746. static="false" final="false" visibility="public"
  35747. deprecated="not deprecated">
  35748. <constructor name="SaslInputStream" type="java.io.InputStream, javax.security.sasl.SaslServer"
  35749. static="false" final="false" visibility="public"
  35750. deprecated="not deprecated">
  35751. <doc>
  35752. <![CDATA[Constructs a SASLInputStream from an InputStream and a SaslServer <br>
  35753. Note: if the specified InputStream or SaslServer is null, a
  35754. NullPointerException may be thrown later when they are used.
  35755. @param inStream
  35756. the InputStream to be processed
  35757. @param saslServer
  35758. an initialized SaslServer object]]>
  35759. </doc>
  35760. </constructor>
  35761. <constructor name="SaslInputStream" type="java.io.InputStream, javax.security.sasl.SaslClient"
  35762. static="false" final="false" visibility="public"
  35763. deprecated="not deprecated">
  35764. <doc>
  35765. <![CDATA[Constructs a SASLInputStream from an InputStream and a SaslClient <br>
  35766. Note: if the specified InputStream or SaslClient is null, a
  35767. NullPointerException may be thrown later when they are used.
  35768. @param inStream
  35769. the InputStream to be processed
  35770. @param saslClient
  35771. an initialized SaslClient object]]>
  35772. </doc>
  35773. </constructor>
  35774. <method name="read" return="int"
  35775. abstract="false" native="false" synchronized="false"
  35776. static="false" final="false" visibility="public"
  35777. deprecated="not deprecated">
  35778. <exception name="IOException" type="java.io.IOException"/>
  35779. <doc>
  35780. <![CDATA[Reads the next byte of data from this input stream. The value byte is
  35781. returned as an <code>int</code> in the range <code>0</code> to
  35782. <code>255</code>. If no byte is available because the end of the stream has
  35783. been reached, the value <code>-1</code> is returned. This method blocks
  35784. until input data is available, the end of the stream is detected, or an
  35785. exception is thrown.
  35786. <p>
  35787. @return the next byte of data, or <code>-1</code> if the end of the stream
  35788. is reached.
  35789. @exception IOException
  35790. if an I/O error occurs.]]>
  35791. </doc>
  35792. </method>
  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. <param name="b" type="byte[]"/>
  35798. <exception name="IOException" type="java.io.IOException"/>
  35799. <doc>
  35800. <![CDATA[Reads up to <code>b.length</code> bytes of data from this input stream into
  35801. an array of bytes.
  35802. <p>
  35803. The <code>read</code> method of <code>InputStream</code> calls the
  35804. <code>read</code> method of three arguments with the arguments
  35805. <code>b</code>, <code>0</code>, and <code>b.length</code>.
  35806. @param b
  35807. the buffer into which the data is read.
  35808. @return the total number of bytes read into the buffer, or <code>-1</code>
  35809. is there is no more data because the end of the stream has been
  35810. reached.
  35811. @exception IOException
  35812. if an I/O error occurs.]]>
  35813. </doc>
  35814. </method>
  35815. <method name="read" return="int"
  35816. abstract="false" native="false" synchronized="false"
  35817. static="false" final="false" visibility="public"
  35818. deprecated="not deprecated">
  35819. <param name="b" type="byte[]"/>
  35820. <param name="off" type="int"/>
  35821. <param name="len" type="int"/>
  35822. <exception name="IOException" type="java.io.IOException"/>
  35823. <doc>
  35824. <![CDATA[Reads up to <code>len</code> bytes of data from this input stream into an
  35825. array of bytes. This method blocks until some input is available. If the
  35826. first argument is <code>null,</code> up to <code>len</code> bytes are read
  35827. and discarded.
  35828. @param b
  35829. the buffer into which the data is read.
  35830. @param off
  35831. the start offset of the data.
  35832. @param len
  35833. the maximum number of bytes read.
  35834. @return the total number of bytes read into the buffer, or <code>-1</code>
  35835. if there is no more data because the end of the stream has been
  35836. reached.
  35837. @exception IOException
  35838. if an I/O error occurs.]]>
  35839. </doc>
  35840. </method>
  35841. <method name="skip" return="long"
  35842. abstract="false" native="false" synchronized="false"
  35843. static="false" final="false" visibility="public"
  35844. deprecated="not deprecated">
  35845. <param name="n" type="long"/>
  35846. <exception name="IOException" type="java.io.IOException"/>
  35847. <doc>
  35848. <![CDATA[Skips <code>n</code> bytes of input from the bytes that can be read from
  35849. this input stream without blocking.
  35850. <p>
  35851. Fewer bytes than requested might be skipped. The actual number of bytes
  35852. skipped is equal to <code>n</code> or the result of a call to
  35853. {@link #available() <code>available</code>}, whichever is smaller. If
  35854. <code>n</code> is less than zero, no bytes are skipped.
  35855. <p>
  35856. The actual number of bytes skipped is returned.
  35857. @param n
  35858. the number of bytes to be skipped.
  35859. @return the actual number of bytes skipped.
  35860. @exception IOException
  35861. if an I/O error occurs.]]>
  35862. </doc>
  35863. </method>
  35864. <method name="available" return="int"
  35865. abstract="false" native="false" synchronized="false"
  35866. static="false" final="false" visibility="public"
  35867. deprecated="not deprecated">
  35868. <exception name="IOException" type="java.io.IOException"/>
  35869. <doc>
  35870. <![CDATA[Returns the number of bytes that can be read from this input stream without
  35871. blocking. The <code>available</code> method of <code>InputStream</code>
  35872. returns <code>0</code>. This method <B>should</B> be overridden by
  35873. subclasses.
  35874. @return the number of bytes that can be read from this input stream without
  35875. blocking.
  35876. @exception IOException
  35877. if an I/O error occurs.]]>
  35878. </doc>
  35879. </method>
  35880. <method name="close"
  35881. abstract="false" native="false" synchronized="false"
  35882. static="false" final="false" visibility="public"
  35883. deprecated="not deprecated">
  35884. <exception name="IOException" type="java.io.IOException"/>
  35885. <doc>
  35886. <![CDATA[Closes this input stream and releases any system resources associated with
  35887. the stream.
  35888. <p>
  35889. The <code>close</code> method of <code>SASLInputStream</code> calls the
  35890. <code>close</code> method of its underlying input stream.
  35891. @exception IOException
  35892. if an I/O error occurs.]]>
  35893. </doc>
  35894. </method>
  35895. <method name="markSupported" return="boolean"
  35896. abstract="false" native="false" synchronized="false"
  35897. static="false" final="false" visibility="public"
  35898. deprecated="not deprecated">
  35899. <doc>
  35900. <![CDATA[Tests if this input stream supports the <code>mark</code> and
  35901. <code>reset</code> methods, which it does not.
  35902. @return <code>false</code>, since this class does not support the
  35903. <code>mark</code> and <code>reset</code> methods.]]>
  35904. </doc>
  35905. </method>
  35906. <field name="LOG" type="org.apache.commons.logging.Log"
  35907. transient="false" volatile="false"
  35908. static="true" final="true" visibility="public"
  35909. deprecated="not deprecated">
  35910. </field>
  35911. <doc>
  35912. <![CDATA[A SaslInputStream is composed of an InputStream and a SaslServer (or
  35913. SaslClient) so that read() methods return data that are read in from the
  35914. underlying InputStream but have been additionally processed by the SaslServer
  35915. (or SaslClient) object. The SaslServer (or SaslClient) object must be fully
  35916. initialized before being used by a SaslInputStream.]]>
  35917. </doc>
  35918. </class>
  35919. <!-- end class org.apache.hadoop.security.SaslInputStream -->
  35920. <!-- start class org.apache.hadoop.security.SaslOutputStream -->
  35921. <class name="SaslOutputStream" extends="java.io.OutputStream"
  35922. abstract="false"
  35923. static="false" final="false" visibility="public"
  35924. deprecated="not deprecated">
  35925. <constructor name="SaslOutputStream" type="java.io.OutputStream, javax.security.sasl.SaslServer"
  35926. static="false" final="false" visibility="public"
  35927. deprecated="not deprecated">
  35928. <doc>
  35929. <![CDATA[Constructs a SASLOutputStream from an OutputStream and a SaslServer <br>
  35930. Note: if the specified OutputStream or SaslServer is null, a
  35931. NullPointerException may be thrown later when they are used.
  35932. @param outStream
  35933. the OutputStream to be processed
  35934. @param saslServer
  35935. an initialized SaslServer object]]>
  35936. </doc>
  35937. </constructor>
  35938. <constructor name="SaslOutputStream" type="java.io.OutputStream, javax.security.sasl.SaslClient"
  35939. static="false" final="false" visibility="public"
  35940. deprecated="not deprecated">
  35941. <doc>
  35942. <![CDATA[Constructs a SASLOutputStream from an OutputStream and a SaslClient <br>
  35943. Note: if the specified OutputStream or SaslClient is null, a
  35944. NullPointerException may be thrown later when they are used.
  35945. @param outStream
  35946. the OutputStream to be processed
  35947. @param saslClient
  35948. an initialized SaslClient object]]>
  35949. </doc>
  35950. </constructor>
  35951. <method name="write"
  35952. abstract="false" native="false" synchronized="false"
  35953. static="false" final="false" visibility="public"
  35954. deprecated="not deprecated">
  35955. <param name="b" type="int"/>
  35956. <exception name="IOException" type="java.io.IOException"/>
  35957. <doc>
  35958. <![CDATA[Writes the specified byte to this output stream.
  35959. @param b
  35960. the <code>byte</code>.
  35961. @exception IOException
  35962. if an I/O error occurs.]]>
  35963. </doc>
  35964. </method>
  35965. <method name="write"
  35966. abstract="false" native="false" synchronized="false"
  35967. static="false" final="false" visibility="public"
  35968. deprecated="not deprecated">
  35969. <param name="b" type="byte[]"/>
  35970. <exception name="IOException" type="java.io.IOException"/>
  35971. <doc>
  35972. <![CDATA[Writes <code>b.length</code> bytes from the specified byte array to this
  35973. output stream.
  35974. <p>
  35975. The <code>write</code> method of <code>SASLOutputStream</code> calls the
  35976. <code>write</code> method of three arguments with the three arguments
  35977. <code>b</code>, <code>0</code>, and <code>b.length</code>.
  35978. @param b
  35979. the data.
  35980. @exception NullPointerException
  35981. if <code>b</code> is null.
  35982. @exception IOException
  35983. if an I/O error occurs.]]>
  35984. </doc>
  35985. </method>
  35986. <method name="write"
  35987. abstract="false" native="false" synchronized="false"
  35988. static="false" final="false" visibility="public"
  35989. deprecated="not deprecated">
  35990. <param name="inBuf" type="byte[]"/>
  35991. <param name="off" type="int"/>
  35992. <param name="len" type="int"/>
  35993. <exception name="IOException" type="java.io.IOException"/>
  35994. <doc>
  35995. <![CDATA[Writes <code>len</code> bytes from the specified byte array starting at
  35996. offset <code>off</code> to this output stream.
  35997. @param inBuf
  35998. the data.
  35999. @param off
  36000. the start offset in the data.
  36001. @param len
  36002. the number of bytes to write.
  36003. @exception IOException
  36004. if an I/O error occurs.]]>
  36005. </doc>
  36006. </method>
  36007. <method name="flush"
  36008. abstract="false" native="false" synchronized="false"
  36009. static="false" final="false" visibility="public"
  36010. deprecated="not deprecated">
  36011. <exception name="IOException" type="java.io.IOException"/>
  36012. <doc>
  36013. <![CDATA[Flushes this output stream
  36014. @exception IOException
  36015. if an I/O error occurs.]]>
  36016. </doc>
  36017. </method>
  36018. <method name="close"
  36019. abstract="false" native="false" synchronized="false"
  36020. static="false" final="false" visibility="public"
  36021. deprecated="not deprecated">
  36022. <exception name="IOException" type="java.io.IOException"/>
  36023. <doc>
  36024. <![CDATA[Closes this output stream and releases any system resources associated with
  36025. this stream.
  36026. @exception IOException
  36027. if an I/O error occurs.]]>
  36028. </doc>
  36029. </method>
  36030. <doc>
  36031. <![CDATA[A SaslOutputStream is composed of an OutputStream and a SaslServer (or
  36032. SaslClient) so that write() methods first process the data before writing
  36033. them out to the underlying OutputStream. The SaslServer (or SaslClient)
  36034. object must be fully initialized before being used by a SaslOutputStream.]]>
  36035. </doc>
  36036. </class>
  36037. <!-- end class org.apache.hadoop.security.SaslOutputStream -->
  36038. <!-- start class org.apache.hadoop.security.SaslRpcClient -->
  36039. <class name="SaslRpcClient" extends="java.lang.Object"
  36040. abstract="false"
  36041. static="false" final="false" visibility="public"
  36042. deprecated="not deprecated">
  36043. <constructor name="SaslRpcClient" type="org.apache.hadoop.security.SaslRpcServer.AuthMethod, org.apache.hadoop.security.token.Token, java.lang.String"
  36044. static="false" final="false" visibility="public"
  36045. deprecated="not deprecated">
  36046. <exception name="IOException" type="java.io.IOException"/>
  36047. <doc>
  36048. <![CDATA[Create a SaslRpcClient for an authentication method
  36049. @param method
  36050. the requested authentication method
  36051. @param token
  36052. token to use if needed by the authentication method]]>
  36053. </doc>
  36054. </constructor>
  36055. <method name="saslConnect" return="boolean"
  36056. abstract="false" native="false" synchronized="false"
  36057. static="false" final="false" visibility="public"
  36058. deprecated="not deprecated">
  36059. <param name="inS" type="java.io.InputStream"/>
  36060. <param name="outS" type="java.io.OutputStream"/>
  36061. <exception name="IOException" type="java.io.IOException"/>
  36062. <doc>
  36063. <![CDATA[Do client side SASL authentication with server via the given InputStream
  36064. and OutputStream
  36065. @param inS
  36066. InputStream to use
  36067. @param outS
  36068. OutputStream to use
  36069. @return true if connection is set up, or false if needs to switch
  36070. to simple Auth.
  36071. @throws IOException]]>
  36072. </doc>
  36073. </method>
  36074. <method name="getInputStream" return="java.io.InputStream"
  36075. abstract="false" native="false" synchronized="false"
  36076. static="false" final="false" visibility="public"
  36077. deprecated="not deprecated">
  36078. <param name="in" type="java.io.InputStream"/>
  36079. <exception name="IOException" type="java.io.IOException"/>
  36080. <doc>
  36081. <![CDATA[Get a SASL wrapped InputStream. Can be called only after saslConnect() has
  36082. been called.
  36083. @param in
  36084. the InputStream to wrap
  36085. @return a SASL wrapped InputStream
  36086. @throws IOException]]>
  36087. </doc>
  36088. </method>
  36089. <method name="getOutputStream" return="java.io.OutputStream"
  36090. abstract="false" native="false" synchronized="false"
  36091. static="false" final="false" visibility="public"
  36092. deprecated="not deprecated">
  36093. <param name="out" type="java.io.OutputStream"/>
  36094. <exception name="IOException" type="java.io.IOException"/>
  36095. <doc>
  36096. <![CDATA[Get a SASL wrapped OutputStream. Can be called only after saslConnect() has
  36097. been called.
  36098. @param out
  36099. the OutputStream to wrap
  36100. @return a SASL wrapped OutputStream
  36101. @throws IOException]]>
  36102. </doc>
  36103. </method>
  36104. <method name="dispose"
  36105. abstract="false" native="false" synchronized="false"
  36106. static="false" final="false" visibility="public"
  36107. deprecated="not deprecated">
  36108. <exception name="SaslException" type="javax.security.sasl.SaslException"/>
  36109. <doc>
  36110. <![CDATA[Release resources used by wrapped saslClient]]>
  36111. </doc>
  36112. </method>
  36113. <field name="LOG" type="org.apache.commons.logging.Log"
  36114. transient="false" volatile="false"
  36115. static="true" final="true" visibility="public"
  36116. deprecated="not deprecated">
  36117. </field>
  36118. <doc>
  36119. <![CDATA[A utility class that encapsulates SASL logic for RPC client]]>
  36120. </doc>
  36121. </class>
  36122. <!-- end class org.apache.hadoop.security.SaslRpcClient -->
  36123. <!-- start class org.apache.hadoop.security.SaslRpcServer -->
  36124. <class name="SaslRpcServer" extends="java.lang.Object"
  36125. abstract="false"
  36126. static="false" final="false" visibility="public"
  36127. deprecated="not deprecated">
  36128. <constructor name="SaslRpcServer"
  36129. static="false" final="false" visibility="public"
  36130. deprecated="not deprecated">
  36131. </constructor>
  36132. <method name="init"
  36133. abstract="false" native="false" synchronized="false"
  36134. static="true" final="false" visibility="public"
  36135. deprecated="not deprecated">
  36136. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  36137. </method>
  36138. <method name="getIdentifier" return="org.apache.hadoop.security.token.TokenIdentifier"
  36139. abstract="false" native="false" synchronized="false"
  36140. static="true" final="false" visibility="public"
  36141. deprecated="not deprecated">
  36142. <param name="id" type="java.lang.String"/>
  36143. <param name="secretManager" type="org.apache.hadoop.security.token.SecretManager"/>
  36144. <exception name="SecretManager.InvalidToken" type="org.apache.hadoop.security.token.SecretManager.InvalidToken"/>
  36145. </method>
  36146. <method name="splitKerberosName" return="java.lang.String[]"
  36147. abstract="false" native="false" synchronized="false"
  36148. static="true" final="false" visibility="public"
  36149. deprecated="not deprecated">
  36150. <param name="fullName" type="java.lang.String"/>
  36151. <doc>
  36152. <![CDATA[Splitting fully qualified Kerberos name into parts]]>
  36153. </doc>
  36154. </method>
  36155. <field name="LOG" type="org.apache.commons.logging.Log"
  36156. transient="false" volatile="false"
  36157. static="true" final="true" visibility="public"
  36158. deprecated="not deprecated">
  36159. </field>
  36160. <field name="SASL_DEFAULT_REALM" type="java.lang.String"
  36161. transient="false" volatile="false"
  36162. static="true" final="true" visibility="public"
  36163. deprecated="not deprecated">
  36164. </field>
  36165. <field name="SASL_PROPS" type="java.util.Map"
  36166. transient="false" volatile="false"
  36167. static="true" final="true" visibility="public"
  36168. deprecated="not deprecated">
  36169. </field>
  36170. <field name="SWITCH_TO_SIMPLE_AUTH" type="int"
  36171. transient="false" volatile="false"
  36172. static="true" final="true" visibility="public"
  36173. deprecated="not deprecated">
  36174. </field>
  36175. <doc>
  36176. <![CDATA[A utility class for dealing with SASL on RPC server]]>
  36177. </doc>
  36178. </class>
  36179. <!-- end class org.apache.hadoop.security.SaslRpcServer -->
  36180. <!-- start class org.apache.hadoop.security.SaslRpcServer.AuthMethod -->
  36181. <class name="SaslRpcServer.AuthMethod" extends="java.lang.Enum"
  36182. abstract="false"
  36183. static="true" final="true" visibility="public"
  36184. deprecated="not deprecated">
  36185. <method name="values" return="org.apache.hadoop.security.SaslRpcServer.AuthMethod[]"
  36186. abstract="false" native="false" synchronized="false"
  36187. static="true" final="false" visibility="public"
  36188. deprecated="not deprecated">
  36189. </method>
  36190. <method name="valueOf" return="org.apache.hadoop.security.SaslRpcServer.AuthMethod"
  36191. abstract="false" native="false" synchronized="false"
  36192. static="true" final="false" visibility="public"
  36193. deprecated="not deprecated">
  36194. <param name="name" type="java.lang.String"/>
  36195. </method>
  36196. <method name="getMechanismName" return="java.lang.String"
  36197. abstract="false" native="false" synchronized="false"
  36198. static="false" final="false" visibility="public"
  36199. deprecated="not deprecated">
  36200. <doc>
  36201. <![CDATA[Return the SASL mechanism name]]>
  36202. </doc>
  36203. </method>
  36204. <method name="read" 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. <param name="in" type="java.io.DataInput"/>
  36209. <exception name="IOException" type="java.io.IOException"/>
  36210. <doc>
  36211. <![CDATA[Read from in]]>
  36212. </doc>
  36213. </method>
  36214. <method name="write"
  36215. abstract="false" native="false" synchronized="false"
  36216. static="false" final="false" visibility="public"
  36217. deprecated="not deprecated">
  36218. <param name="out" type="java.io.DataOutput"/>
  36219. <exception name="IOException" type="java.io.IOException"/>
  36220. <doc>
  36221. <![CDATA[Write to out]]>
  36222. </doc>
  36223. </method>
  36224. <field name="SIMPLE" type="org.apache.hadoop.security.SaslRpcServer.AuthMethod"
  36225. transient="false" volatile="false"
  36226. static="true" final="true" visibility="public"
  36227. deprecated="not deprecated">
  36228. </field>
  36229. <field name="KERBEROS" type="org.apache.hadoop.security.SaslRpcServer.AuthMethod"
  36230. transient="false" volatile="false"
  36231. static="true" final="true" visibility="public"
  36232. deprecated="not deprecated">
  36233. </field>
  36234. <field name="DIGEST" type="org.apache.hadoop.security.SaslRpcServer.AuthMethod"
  36235. transient="false" volatile="false"
  36236. static="true" final="true" visibility="public"
  36237. deprecated="not deprecated">
  36238. </field>
  36239. <field name="code" type="byte"
  36240. transient="false" volatile="false"
  36241. static="false" final="true" visibility="public"
  36242. deprecated="not deprecated">
  36243. <doc>
  36244. <![CDATA[The code for this method.]]>
  36245. </doc>
  36246. </field>
  36247. <field name="mechanismName" type="java.lang.String"
  36248. transient="false" volatile="false"
  36249. static="false" final="true" visibility="public"
  36250. deprecated="not deprecated">
  36251. </field>
  36252. <field name="authenticationMethod" type="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod"
  36253. transient="false" volatile="false"
  36254. static="false" final="true" visibility="public"
  36255. deprecated="not deprecated">
  36256. </field>
  36257. <doc>
  36258. <![CDATA[Authentication method]]>
  36259. </doc>
  36260. </class>
  36261. <!-- end class org.apache.hadoop.security.SaslRpcServer.AuthMethod -->
  36262. <!-- start class org.apache.hadoop.security.SaslRpcServer.QualityOfProtection -->
  36263. <class name="SaslRpcServer.QualityOfProtection" extends="java.lang.Enum"
  36264. abstract="false"
  36265. static="true" final="true" visibility="public"
  36266. deprecated="not deprecated">
  36267. <method name="values" return="org.apache.hadoop.security.SaslRpcServer.QualityOfProtection[]"
  36268. abstract="false" native="false" synchronized="false"
  36269. static="true" final="false" visibility="public"
  36270. deprecated="not deprecated">
  36271. </method>
  36272. <method name="valueOf" return="org.apache.hadoop.security.SaslRpcServer.QualityOfProtection"
  36273. abstract="false" native="false" synchronized="false"
  36274. static="true" final="false" visibility="public"
  36275. deprecated="not deprecated">
  36276. <param name="name" type="java.lang.String"/>
  36277. </method>
  36278. <method name="getSaslQop" return="java.lang.String"
  36279. abstract="false" native="false" synchronized="false"
  36280. static="false" final="false" visibility="public"
  36281. deprecated="not deprecated">
  36282. </method>
  36283. <field name="AUTHENTICATION" type="org.apache.hadoop.security.SaslRpcServer.QualityOfProtection"
  36284. transient="false" volatile="false"
  36285. static="true" final="true" visibility="public"
  36286. deprecated="not deprecated">
  36287. </field>
  36288. <field name="INTEGRITY" type="org.apache.hadoop.security.SaslRpcServer.QualityOfProtection"
  36289. transient="false" volatile="false"
  36290. static="true" final="true" visibility="public"
  36291. deprecated="not deprecated">
  36292. </field>
  36293. <field name="PRIVACY" type="org.apache.hadoop.security.SaslRpcServer.QualityOfProtection"
  36294. transient="false" volatile="false"
  36295. static="true" final="true" visibility="public"
  36296. deprecated="not deprecated">
  36297. </field>
  36298. <field name="saslQop" type="java.lang.String"
  36299. transient="false" volatile="false"
  36300. static="false" final="true" visibility="public"
  36301. deprecated="not deprecated">
  36302. </field>
  36303. </class>
  36304. <!-- end class org.apache.hadoop.security.SaslRpcServer.QualityOfProtection -->
  36305. <!-- start class org.apache.hadoop.security.SaslRpcServer.SaslDigestCallbackHandler -->
  36306. <class name="SaslRpcServer.SaslDigestCallbackHandler" extends="java.lang.Object"
  36307. abstract="false"
  36308. static="true" final="false" visibility="public"
  36309. deprecated="not deprecated">
  36310. <implements name="javax.security.auth.callback.CallbackHandler"/>
  36311. <constructor name="SaslRpcServer.SaslDigestCallbackHandler" type="org.apache.hadoop.security.token.SecretManager, org.apache.hadoop.ipc.Server.Connection"
  36312. static="false" final="false" visibility="public"
  36313. deprecated="not deprecated">
  36314. </constructor>
  36315. <method name="handle"
  36316. abstract="false" native="false" synchronized="false"
  36317. static="false" final="false" visibility="public"
  36318. deprecated="not deprecated">
  36319. <param name="callbacks" type="javax.security.auth.callback.Callback[]"/>
  36320. <exception name="SecretManager.InvalidToken" type="org.apache.hadoop.security.token.SecretManager.InvalidToken"/>
  36321. <exception name="UnsupportedCallbackException" type="javax.security.auth.callback.UnsupportedCallbackException"/>
  36322. <doc>
  36323. <![CDATA[{@inheritDoc}]]>
  36324. </doc>
  36325. </method>
  36326. <doc>
  36327. <![CDATA[CallbackHandler for SASL DIGEST-MD5 mechanism]]>
  36328. </doc>
  36329. </class>
  36330. <!-- end class org.apache.hadoop.security.SaslRpcServer.SaslDigestCallbackHandler -->
  36331. <!-- start class org.apache.hadoop.security.SaslRpcServer.SaslGssCallbackHandler -->
  36332. <class name="SaslRpcServer.SaslGssCallbackHandler" extends="java.lang.Object"
  36333. abstract="false"
  36334. static="true" final="false" visibility="public"
  36335. deprecated="not deprecated">
  36336. <implements name="javax.security.auth.callback.CallbackHandler"/>
  36337. <constructor name="SaslRpcServer.SaslGssCallbackHandler"
  36338. static="false" final="false" visibility="public"
  36339. deprecated="not deprecated">
  36340. </constructor>
  36341. <method name="handle"
  36342. abstract="false" native="false" synchronized="false"
  36343. static="false" final="false" visibility="public"
  36344. deprecated="not deprecated">
  36345. <param name="callbacks" type="javax.security.auth.callback.Callback[]"/>
  36346. <exception name="UnsupportedCallbackException" type="javax.security.auth.callback.UnsupportedCallbackException"/>
  36347. <doc>
  36348. <![CDATA[{@inheritDoc}]]>
  36349. </doc>
  36350. </method>
  36351. <doc>
  36352. <![CDATA[CallbackHandler for SASL GSSAPI Kerberos mechanism]]>
  36353. </doc>
  36354. </class>
  36355. <!-- end class org.apache.hadoop.security.SaslRpcServer.SaslGssCallbackHandler -->
  36356. <!-- start class org.apache.hadoop.security.SaslRpcServer.SaslStatus -->
  36357. <class name="SaslRpcServer.SaslStatus" extends="java.lang.Enum"
  36358. abstract="false"
  36359. static="true" final="true" visibility="public"
  36360. deprecated="not deprecated">
  36361. <method name="values" return="org.apache.hadoop.security.SaslRpcServer.SaslStatus[]"
  36362. abstract="false" native="false" synchronized="false"
  36363. static="true" final="false" visibility="public"
  36364. deprecated="not deprecated">
  36365. </method>
  36366. <method name="valueOf" return="org.apache.hadoop.security.SaslRpcServer.SaslStatus"
  36367. abstract="false" native="false" synchronized="false"
  36368. static="true" final="false" visibility="public"
  36369. deprecated="not deprecated">
  36370. <param name="name" type="java.lang.String"/>
  36371. </method>
  36372. <field name="SUCCESS" type="org.apache.hadoop.security.SaslRpcServer.SaslStatus"
  36373. transient="false" volatile="false"
  36374. static="true" final="true" visibility="public"
  36375. deprecated="not deprecated">
  36376. </field>
  36377. <field name="ERROR" type="org.apache.hadoop.security.SaslRpcServer.SaslStatus"
  36378. transient="false" volatile="false"
  36379. static="true" final="true" visibility="public"
  36380. deprecated="not deprecated">
  36381. </field>
  36382. <field name="state" type="int"
  36383. transient="false" volatile="false"
  36384. static="false" final="true" visibility="public"
  36385. deprecated="not deprecated">
  36386. </field>
  36387. </class>
  36388. <!-- end class org.apache.hadoop.security.SaslRpcServer.SaslStatus -->
  36389. <!-- start class org.apache.hadoop.security.SecurityUtil -->
  36390. <class name="SecurityUtil" extends="java.lang.Object"
  36391. abstract="false"
  36392. static="false" final="false" visibility="public"
  36393. deprecated="not deprecated">
  36394. <constructor name="SecurityUtil"
  36395. static="false" final="false" visibility="public"
  36396. deprecated="not deprecated">
  36397. </constructor>
  36398. <method name="isOriginalTGT" return="boolean"
  36399. abstract="false" native="false" synchronized="false"
  36400. static="true" final="false" visibility="protected"
  36401. deprecated="not deprecated">
  36402. <param name="name" type="java.lang.String"/>
  36403. </method>
  36404. <method name="fetchServiceTicket"
  36405. abstract="false" native="false" synchronized="false"
  36406. static="true" final="false" visibility="public"
  36407. deprecated="not deprecated">
  36408. <param name="remoteHost" type="java.net.URL"/>
  36409. <exception name="IOException" type="java.io.IOException"/>
  36410. <doc>
  36411. <![CDATA[Explicitly pull the service ticket for the specified host. This solves a
  36412. problem with Java's Kerberos SSL problem where the client cannot
  36413. authenticate against a cross-realm service. It is necessary for clients
  36414. making kerberized https requests to call this method on the target URL
  36415. to ensure that in a cross-realm environment the remote host will be
  36416. successfully authenticated.
  36417. This method is internal to Hadoop and should not be used by other
  36418. applications. This method should not be considered stable or open:
  36419. it will be removed when the Java behavior is changed.
  36420. @param remoteHost Target URL the krb-https client will access
  36421. @throws IOException if a service ticket is not available]]>
  36422. </doc>
  36423. </method>
  36424. <method name="getServerPrincipal" return="java.lang.String"
  36425. abstract="false" native="false" synchronized="false"
  36426. static="true" final="false" visibility="public"
  36427. deprecated="not deprecated">
  36428. <param name="principalConfig" type="java.lang.String"/>
  36429. <param name="hostname" type="java.lang.String"/>
  36430. <exception name="IOException" type="java.io.IOException"/>
  36431. <doc>
  36432. <![CDATA[Convert Kerberos principal name pattern to valid Kerberos principal
  36433. names. It replaces hostname pattern with hostname, which should be
  36434. fully-qualified domain name. If hostname is null or "0.0.0.0", it uses
  36435. dynamically looked-up fqdn of the current host instead.
  36436. @param principalConfig
  36437. the Kerberos principal name conf value to convert
  36438. @param hostname
  36439. the fully-qualified domain name used for substitution
  36440. @return converted Kerberos principal name
  36441. @throws IOException if the service ticket cannot be retrieved]]>
  36442. </doc>
  36443. </method>
  36444. <method name="getServerPrincipal" return="java.lang.String"
  36445. abstract="false" native="false" synchronized="false"
  36446. static="true" final="false" visibility="public"
  36447. deprecated="not deprecated">
  36448. <param name="principalConfig" type="java.lang.String"/>
  36449. <param name="addr" type="java.net.InetAddress"/>
  36450. <exception name="IOException" type="java.io.IOException"/>
  36451. <doc>
  36452. <![CDATA[Convert Kerberos principal name pattern to valid Kerberos principal names.
  36453. This method is similar to {@link #getServerPrincipal(String, String)},
  36454. except 1) the reverse DNS lookup from addr to hostname is done only when
  36455. necessary, 2) param addr can't be null (no default behavior of using local
  36456. hostname when addr is null).
  36457. @param principalConfig
  36458. Kerberos principal name pattern to convert
  36459. @param addr
  36460. InetAddress of the host used for substitution
  36461. @return converted Kerberos principal name
  36462. @throws IOException if the client address cannot be determined]]>
  36463. </doc>
  36464. </method>
  36465. <method name="getLocalHostName" return="java.lang.String"
  36466. abstract="false" native="false" synchronized="false"
  36467. static="true" final="false" visibility="public"
  36468. deprecated="not deprecated">
  36469. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  36470. <doc>
  36471. <![CDATA[Get the fqdn for the current host.
  36472. @return fqdn of the current host.
  36473. @throws UnknownHostException
  36474. if no IP address for the local host could be found.]]>
  36475. </doc>
  36476. </method>
  36477. <method name="login"
  36478. abstract="false" native="false" synchronized="false"
  36479. static="true" final="false" visibility="public"
  36480. deprecated="not deprecated">
  36481. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  36482. <param name="keytabFileKey" type="java.lang.String"/>
  36483. <param name="userNameKey" type="java.lang.String"/>
  36484. <exception name="IOException" type="java.io.IOException"/>
  36485. <doc>
  36486. <![CDATA[If a keytab has been provided, login as that user. Substitute $host in
  36487. user's Kerberos principal name with a dynamically looked-up fully-qualified
  36488. domain name of the current host.
  36489. @param conf
  36490. conf to use
  36491. @param keytabFileKey
  36492. the key to look for keytab file in conf
  36493. @param userNameKey
  36494. the key to look for user's Kerberos principal name in conf
  36495. @throws IOException if the client address cannot be determined]]>
  36496. </doc>
  36497. </method>
  36498. <method name="login"
  36499. abstract="false" native="false" synchronized="false"
  36500. static="true" final="false" visibility="public"
  36501. deprecated="not deprecated">
  36502. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  36503. <param name="keytabFileKey" type="java.lang.String"/>
  36504. <param name="userNameKey" type="java.lang.String"/>
  36505. <param name="hostname" type="java.lang.String"/>
  36506. <exception name="IOException" type="java.io.IOException"/>
  36507. <doc>
  36508. <![CDATA[If a keytab has been provided, login as that user. Substitute $host in
  36509. user's Kerberos principal name with hostname.
  36510. @param conf
  36511. conf to use
  36512. @param keytabFileKey
  36513. the key to look for keytab file in conf
  36514. @param userNameKey
  36515. the key to look for user's Kerberos principal name in conf
  36516. @param hostname
  36517. hostname to use for substitution
  36518. @throws IOException if login fails]]>
  36519. </doc>
  36520. </method>
  36521. <method name="getTokenServiceAddr" return="java.net.InetSocketAddress"
  36522. abstract="false" native="false" synchronized="false"
  36523. static="true" final="false" visibility="public"
  36524. deprecated="not deprecated">
  36525. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  36526. <doc>
  36527. <![CDATA[Decode the given token's service field into an InetAddress
  36528. @param token from which to obtain the service
  36529. @return InetAddress for the service]]>
  36530. </doc>
  36531. </method>
  36532. <method name="setTokenService"
  36533. abstract="false" native="false" synchronized="false"
  36534. static="true" final="false" visibility="public"
  36535. deprecated="not deprecated">
  36536. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  36537. <param name="addr" type="java.net.InetSocketAddress"/>
  36538. <doc>
  36539. <![CDATA[Set the given token's service to the format expected by the RPC client
  36540. @param token a delegation token
  36541. @param addr the socket for the rpc connection]]>
  36542. </doc>
  36543. </method>
  36544. <method name="buildTokenService" return="org.apache.hadoop.io.Text"
  36545. abstract="false" native="false" synchronized="false"
  36546. static="true" final="false" visibility="public"
  36547. deprecated="not deprecated">
  36548. <param name="addr" type="java.net.InetSocketAddress"/>
  36549. <doc>
  36550. <![CDATA[Construct the service key for a token
  36551. @param addr InetSocketAddress of remote connection with a token
  36552. @return "ip:port" or "host:port" depending on the value of
  36553. hadoop.security.token.service.use_ip]]>
  36554. </doc>
  36555. </method>
  36556. <method name="buildDTServiceName" return="java.lang.String"
  36557. abstract="false" native="false" synchronized="false"
  36558. static="true" final="false" visibility="public"
  36559. deprecated="not deprecated">
  36560. <param name="uri" type="java.net.URI"/>
  36561. <param name="defPort" type="int"/>
  36562. <doc>
  36563. <![CDATA[create the service name for a Delegation token
  36564. @param uri of the service
  36565. @param defPort is used if the uri lacks a port
  36566. @return the token service, or null if no authority
  36567. @see #buildTokenService(InetSocketAddress)]]>
  36568. </doc>
  36569. </method>
  36570. <method name="getAdminAcls" return="org.apache.hadoop.security.authorize.AccessControlList"
  36571. abstract="false" native="false" synchronized="false"
  36572. static="true" final="false" visibility="public"
  36573. deprecated="not deprecated">
  36574. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  36575. <param name="configKey" type="java.lang.String"/>
  36576. <doc>
  36577. <![CDATA[Get the ACL object representing the cluster administrators
  36578. The user who starts the daemon is automatically added as an admin
  36579. @param conf
  36580. @param configKey the key that holds the ACL string in its value
  36581. @return AccessControlList instance]]>
  36582. </doc>
  36583. </method>
  36584. <method name="getHostFromPrincipal" return="java.lang.String"
  36585. abstract="false" native="false" synchronized="false"
  36586. static="true" final="false" visibility="public"
  36587. deprecated="not deprecated">
  36588. <param name="principalName" type="java.lang.String"/>
  36589. <doc>
  36590. <![CDATA[Get the host name from the principal name of format <service>/host@realm.
  36591. @param principalName principal name of format as described above
  36592. @return host name if the the string conforms to the above format, else null]]>
  36593. </doc>
  36594. </method>
  36595. <method name="useKsslAuth" return="boolean"
  36596. abstract="false" native="false" synchronized="false"
  36597. static="true" final="false" visibility="public"
  36598. deprecated="not deprecated">
  36599. <doc>
  36600. <![CDATA[@return true if we should use KSSL to authenticate NN HTTP endpoints,
  36601. false to use SPNEGO or if security is disabled.]]>
  36602. </doc>
  36603. </method>
  36604. <method name="openSecureHttpConnection" return="java.net.URLConnection"
  36605. abstract="false" native="false" synchronized="false"
  36606. static="true" final="false" visibility="public"
  36607. deprecated="not deprecated">
  36608. <param name="url" type="java.net.URL"/>
  36609. <exception name="IOException" type="java.io.IOException"/>
  36610. <doc>
  36611. <![CDATA[Open a (if need be) secure connection to a URL in a secure environment
  36612. that is using SPNEGO or KSSL to authenticate its URLs. All Namenode and
  36613. Secondary Namenode URLs that are protected via SPNEGO or KSSL should be
  36614. accessed via this method.
  36615. @param url to authenticate via SPNEGO.
  36616. @return A connection that has been authenticated via SPNEGO
  36617. @throws IOException If unable to authenticate via SPNEGO]]>
  36618. </doc>
  36619. </method>
  36620. <method name="getByName" return="java.net.InetAddress"
  36621. abstract="false" native="false" synchronized="false"
  36622. static="true" final="false" visibility="public"
  36623. deprecated="not deprecated">
  36624. <param name="hostname" type="java.lang.String"/>
  36625. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  36626. <doc>
  36627. <![CDATA[Resolves a host subject to the security requirements determined by
  36628. hadoop.security.token.service.use_ip.
  36629. @param hostname host or ip to resolve
  36630. @return a resolved host
  36631. @throws UnknownHostException if the host doesn't exist]]>
  36632. </doc>
  36633. </method>
  36634. <field name="LOG" type="org.apache.commons.logging.Log"
  36635. transient="false" volatile="false"
  36636. static="true" final="true" visibility="public"
  36637. deprecated="not deprecated">
  36638. </field>
  36639. <field name="HOSTNAME_PATTERN" type="java.lang.String"
  36640. transient="false" volatile="false"
  36641. static="true" final="true" visibility="public"
  36642. deprecated="not deprecated">
  36643. </field>
  36644. </class>
  36645. <!-- end class org.apache.hadoop.security.SecurityUtil -->
  36646. <!-- start class org.apache.hadoop.security.SecurityUtil.QualifiedHostResolver -->
  36647. <class name="SecurityUtil.QualifiedHostResolver" extends="java.lang.Object"
  36648. abstract="false"
  36649. static="true" final="false" visibility="protected"
  36650. deprecated="not deprecated">
  36651. <implements name="org.apache.hadoop.security.SecurityUtil.HostResolver"/>
  36652. <constructor name="SecurityUtil.QualifiedHostResolver"
  36653. static="false" final="false" visibility="protected"
  36654. deprecated="not deprecated">
  36655. </constructor>
  36656. <method name="getByName" return="java.net.InetAddress"
  36657. abstract="false" native="false" synchronized="false"
  36658. static="false" final="false" visibility="public"
  36659. deprecated="not deprecated">
  36660. <param name="host" type="java.lang.String"/>
  36661. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  36662. <doc>
  36663. <![CDATA[Create an InetAddress with a fully qualified hostname of the given
  36664. hostname. InetAddress does not qualify an incomplete hostname that
  36665. is resolved via the domain search list.
  36666. {@link InetAddress#getCanonicalHostName()} will fully qualify the
  36667. hostname, but it always return the A record whereas the given hostname
  36668. may be a CNAME.
  36669. @param host a hostname or ip address
  36670. @return InetAddress with the fully qualified hostname or ip
  36671. @throws UnknownHostException if host does not exist]]>
  36672. </doc>
  36673. </method>
  36674. <doc>
  36675. <![CDATA[This an alternate resolver with important properties that the standard
  36676. java resolver lacks:
  36677. 1) The hostname is fully qualified. This avoids security issues if not
  36678. all hosts in the cluster do not share the same search domains. It
  36679. also prevents other hosts from performing unnecessary dns searches.
  36680. In contrast, InetAddress simply returns the host as given.
  36681. 2) The InetAddress is instantiated with an exact host and IP to prevent
  36682. further unnecessary lookups. InetAddress may perform an unnecessary
  36683. reverse lookup for an IP.
  36684. 3) A call to getHostName() will always return the qualified hostname, or
  36685. more importantly, the IP if instantiated with an IP. This avoids
  36686. unnecessary dns timeouts if the host is not resolvable.
  36687. 4) Point 3 also ensures that if the host is re-resolved, ex. during a
  36688. connection re-attempt, that a reverse lookup to host and forward
  36689. lookup to IP is not performed since the reverse/forward mappings may
  36690. not always return the same IP. If the client initiated a connection
  36691. with an IP, then that IP is all that should ever be contacted.
  36692. NOTE: this resolver is only used if:
  36693. hadoop.security.token.service.use_ip=false]]>
  36694. </doc>
  36695. </class>
  36696. <!-- end class org.apache.hadoop.security.SecurityUtil.QualifiedHostResolver -->
  36697. <!-- start class org.apache.hadoop.security.ShellBasedUnixGroupsMapping -->
  36698. <class name="ShellBasedUnixGroupsMapping" extends="java.lang.Object"
  36699. abstract="false"
  36700. static="false" final="false" visibility="public"
  36701. deprecated="not deprecated">
  36702. <implements name="org.apache.hadoop.security.GroupMappingServiceProvider"/>
  36703. <constructor name="ShellBasedUnixGroupsMapping"
  36704. static="false" final="false" visibility="public"
  36705. deprecated="not deprecated">
  36706. </constructor>
  36707. <method name="getGroups" return="java.util.List"
  36708. abstract="false" native="false" synchronized="false"
  36709. static="false" final="false" visibility="public"
  36710. deprecated="not deprecated">
  36711. <param name="user" type="java.lang.String"/>
  36712. <exception name="IOException" type="java.io.IOException"/>
  36713. </method>
  36714. <method name="cacheGroupsRefresh"
  36715. abstract="false" native="false" synchronized="false"
  36716. static="false" final="false" visibility="public"
  36717. deprecated="not deprecated">
  36718. <exception name="IOException" type="java.io.IOException"/>
  36719. </method>
  36720. <method name="cacheGroupsAdd"
  36721. abstract="false" native="false" synchronized="false"
  36722. static="false" final="false" visibility="public"
  36723. deprecated="not deprecated">
  36724. <param name="groups" type="java.util.List"/>
  36725. <exception name="IOException" type="java.io.IOException"/>
  36726. </method>
  36727. <doc>
  36728. <![CDATA[A simple shell-based implementation of {@link GroupMappingServiceProvider}
  36729. that exec's the <code>groups</code> shell command to fetch the group
  36730. memberships of a given user.]]>
  36731. </doc>
  36732. </class>
  36733. <!-- end class org.apache.hadoop.security.ShellBasedUnixGroupsMapping -->
  36734. <!-- start class org.apache.hadoop.security.ShellBasedUnixGroupsNetgroupMapping -->
  36735. <class name="ShellBasedUnixGroupsNetgroupMapping" extends="org.apache.hadoop.security.ShellBasedUnixGroupsMapping"
  36736. abstract="false"
  36737. static="false" final="false" visibility="public"
  36738. deprecated="not deprecated">
  36739. <constructor name="ShellBasedUnixGroupsNetgroupMapping"
  36740. static="false" final="false" visibility="public"
  36741. deprecated="not deprecated">
  36742. </constructor>
  36743. <method name="getGroups" return="java.util.List"
  36744. abstract="false" native="false" synchronized="false"
  36745. static="false" final="false" visibility="public"
  36746. deprecated="not deprecated">
  36747. <param name="user" type="java.lang.String"/>
  36748. <exception name="IOException" type="java.io.IOException"/>
  36749. </method>
  36750. <method name="cacheGroupsRefresh"
  36751. abstract="false" native="false" synchronized="false"
  36752. static="false" final="false" visibility="public"
  36753. deprecated="not deprecated">
  36754. <exception name="IOException" type="java.io.IOException"/>
  36755. </method>
  36756. <method name="cacheGroupsAdd"
  36757. abstract="false" native="false" synchronized="false"
  36758. static="false" final="false" visibility="public"
  36759. deprecated="not deprecated">
  36760. <param name="groups" type="java.util.List"/>
  36761. <exception name="IOException" type="java.io.IOException"/>
  36762. </method>
  36763. <method name="cacheNetgroup"
  36764. abstract="false" native="false" synchronized="false"
  36765. static="false" final="false" visibility="protected"
  36766. deprecated="not deprecated">
  36767. <param name="group" type="java.lang.String"/>
  36768. <exception name="IOException" type="java.io.IOException"/>
  36769. </method>
  36770. <method name="getNetgroups"
  36771. abstract="false" native="false" synchronized="false"
  36772. static="false" final="false" visibility="protected"
  36773. deprecated="not deprecated">
  36774. <param name="user" type="java.lang.String"/>
  36775. <param name="groups" type="java.util.List"/>
  36776. <exception name="IOException" type="java.io.IOException"/>
  36777. </method>
  36778. <method name="execShellGetUnixGroups" return="java.lang.String"
  36779. abstract="false" native="false" synchronized="false"
  36780. static="false" final="false" visibility="protected"
  36781. deprecated="not deprecated">
  36782. <param name="user" type="java.lang.String"/>
  36783. <exception name="IOException" type="java.io.IOException"/>
  36784. </method>
  36785. <method name="execShellGetUserForNetgroup" return="java.lang.String"
  36786. abstract="false" native="false" synchronized="false"
  36787. static="false" final="false" visibility="protected"
  36788. deprecated="not deprecated">
  36789. <param name="netgroup" type="java.lang.String"/>
  36790. <exception name="IOException" type="java.io.IOException"/>
  36791. </method>
  36792. <field name="netgroupToUsersMapUpdated" type="boolean"
  36793. transient="false" volatile="false"
  36794. static="true" final="false" visibility="protected"
  36795. deprecated="not deprecated">
  36796. </field>
  36797. <field name="netgroupToUsersMap" type="java.util.Map"
  36798. transient="false" volatile="false"
  36799. static="true" final="false" visibility="protected"
  36800. deprecated="not deprecated">
  36801. </field>
  36802. <field name="userToNetgroupsMap" type="java.util.Map"
  36803. transient="false" volatile="false"
  36804. static="true" final="false" visibility="protected"
  36805. deprecated="not deprecated">
  36806. </field>
  36807. <doc>
  36808. <![CDATA[A simple shell-based implementation of {@link GroupMappingServiceProvider}
  36809. that exec's the <code>groups</code> shell command to fetch the group
  36810. memberships of a given user.]]>
  36811. </doc>
  36812. </class>
  36813. <!-- end class org.apache.hadoop.security.ShellBasedUnixGroupsNetgroupMapping -->
  36814. <!-- start class org.apache.hadoop.security.UserGroupInformation -->
  36815. <class name="UserGroupInformation" extends="java.lang.Object"
  36816. abstract="false"
  36817. static="false" final="false" visibility="public"
  36818. deprecated="not deprecated">
  36819. <method name="setConfiguration"
  36820. abstract="false" native="false" synchronized="false"
  36821. static="true" final="false" visibility="public"
  36822. deprecated="not deprecated">
  36823. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  36824. <doc>
  36825. <![CDATA[Set the static configuration for UGI.
  36826. In particular, set the security authentication mechanism and the
  36827. group look up service.
  36828. @param conf the configuration to use]]>
  36829. </doc>
  36830. </method>
  36831. <method name="isSecurityEnabled" return="boolean"
  36832. abstract="false" native="false" synchronized="false"
  36833. static="true" final="false" visibility="public"
  36834. deprecated="not deprecated">
  36835. <doc>
  36836. <![CDATA[Determine if UserGroupInformation is using Kerberos to determine
  36837. user identities or is relying on simple authentication
  36838. @return true if UGI is working in a secure environment]]>
  36839. </doc>
  36840. </method>
  36841. <method name="hasKerberosCredentials" return="boolean"
  36842. abstract="false" native="false" synchronized="false"
  36843. static="false" final="false" visibility="public"
  36844. deprecated="not deprecated">
  36845. <doc>
  36846. <![CDATA[checks if logged in using kerberos
  36847. @return true if the subject logged via keytab or has a Kerberos TGT]]>
  36848. </doc>
  36849. </method>
  36850. <method name="getCurrentUser" return="org.apache.hadoop.security.UserGroupInformation"
  36851. abstract="false" native="false" synchronized="true"
  36852. static="true" final="false" visibility="public"
  36853. deprecated="not deprecated">
  36854. <exception name="IOException" type="java.io.IOException"/>
  36855. <doc>
  36856. <![CDATA[Return the current user, including any doAs in the current stack.
  36857. @return the current user
  36858. @throws IOException if login fails]]>
  36859. </doc>
  36860. </method>
  36861. <method name="getLoginUser" return="org.apache.hadoop.security.UserGroupInformation"
  36862. abstract="false" native="false" synchronized="true"
  36863. static="true" final="false" visibility="public"
  36864. deprecated="not deprecated">
  36865. <exception name="IOException" type="java.io.IOException"/>
  36866. <doc>
  36867. <![CDATA[Get the currently logged in user.
  36868. @return the logged in user
  36869. @throws IOException if login fails]]>
  36870. </doc>
  36871. </method>
  36872. <method name="isFromKeytab" return="boolean"
  36873. abstract="false" native="false" synchronized="false"
  36874. static="false" final="false" visibility="public"
  36875. deprecated="not deprecated">
  36876. <doc>
  36877. <![CDATA[Is this user logged in from a keytab file?
  36878. @return true if the credentials are from a keytab file.]]>
  36879. </doc>
  36880. </method>
  36881. <method name="loginUserFromKeytab"
  36882. abstract="false" native="false" synchronized="true"
  36883. static="true" final="false" visibility="public"
  36884. deprecated="not deprecated">
  36885. <param name="user" type="java.lang.String"/>
  36886. <param name="path" type="java.lang.String"/>
  36887. <exception name="IOException" type="java.io.IOException"/>
  36888. <doc>
  36889. <![CDATA[Log a user in from a keytab file. Loads a user identity from a keytab
  36890. file and logs them in. They become the currently logged-in user.
  36891. @param user the principal name to load from the keytab
  36892. @param path the path to the keytab file
  36893. @throws IOException if the keytab file can't be read]]>
  36894. </doc>
  36895. </method>
  36896. <method name="reloginFromTicketCache"
  36897. abstract="false" native="false" synchronized="true"
  36898. static="false" final="false" visibility="public"
  36899. deprecated="not deprecated">
  36900. <exception name="IOException" type="java.io.IOException"/>
  36901. <doc>
  36902. <![CDATA[Re-Login a user in from the ticket cache. This
  36903. method assumes that login had happened already.
  36904. The Subject field of this UserGroupInformation object is updated to have
  36905. the new credentials.
  36906. @throws IOException on a failure]]>
  36907. </doc>
  36908. </method>
  36909. <method name="loginUserFromKeytabAndReturnUGI" return="org.apache.hadoop.security.UserGroupInformation"
  36910. abstract="false" native="false" synchronized="true"
  36911. static="true" final="false" visibility="public"
  36912. deprecated="not deprecated">
  36913. <param name="user" type="java.lang.String"/>
  36914. <param name="path" type="java.lang.String"/>
  36915. <exception name="IOException" type="java.io.IOException"/>
  36916. <doc>
  36917. <![CDATA[Log a user in from a keytab file. Loads a user identity from a keytab
  36918. file and login them in. This new user does not affect the currently
  36919. logged-in user.
  36920. @param user the principal name to load from the keytab
  36921. @param path the path to the keytab file
  36922. @throws IOException if the keytab file can't be read]]>
  36923. </doc>
  36924. </method>
  36925. <method name="checkTGTAndReloginFromKeytab"
  36926. abstract="false" native="false" synchronized="true"
  36927. static="false" final="false" visibility="public"
  36928. deprecated="not deprecated">
  36929. <exception name="IOException" type="java.io.IOException"/>
  36930. <doc>
  36931. <![CDATA[Re-login a user from keytab if TGT is expired or is close to expiry.
  36932. @throws IOException]]>
  36933. </doc>
  36934. </method>
  36935. <method name="reloginFromKeytab"
  36936. abstract="false" native="false" synchronized="true"
  36937. static="false" final="false" visibility="public"
  36938. deprecated="not deprecated">
  36939. <exception name="IOException" type="java.io.IOException"/>
  36940. <doc>
  36941. <![CDATA[Re-Login a user in from a keytab file. Loads a user identity from a keytab
  36942. file and logs them in. They become the currently logged-in user. This
  36943. method assumes that {@link #loginUserFromKeytab(String, String)} had
  36944. happened already.
  36945. The Subject field of this UserGroupInformation object is updated to have
  36946. the new credentials.
  36947. @throws IOException on a failure]]>
  36948. </doc>
  36949. </method>
  36950. <method name="isLoginKeytabBased" return="boolean"
  36951. abstract="false" native="false" synchronized="true"
  36952. static="true" final="false" visibility="public"
  36953. deprecated="not deprecated">
  36954. <exception name="IOException" type="java.io.IOException"/>
  36955. <doc>
  36956. <![CDATA[Did the login happen via keytab
  36957. @return true or false]]>
  36958. </doc>
  36959. </method>
  36960. <method name="createRemoteUser" return="org.apache.hadoop.security.UserGroupInformation"
  36961. abstract="false" native="false" synchronized="false"
  36962. static="true" final="false" visibility="public"
  36963. deprecated="not deprecated">
  36964. <param name="user" type="java.lang.String"/>
  36965. <doc>
  36966. <![CDATA[Create a user from a login name. It is intended to be used for remote
  36967. users in RPC, since it won't have any credentials.
  36968. @param user the full user principal name, must not be empty or null
  36969. @return the UserGroupInformation for the remote user.]]>
  36970. </doc>
  36971. </method>
  36972. <method name="createProxyUser" return="org.apache.hadoop.security.UserGroupInformation"
  36973. abstract="false" native="false" synchronized="false"
  36974. static="true" final="false" visibility="public"
  36975. deprecated="not deprecated">
  36976. <param name="user" type="java.lang.String"/>
  36977. <param name="realUser" type="org.apache.hadoop.security.UserGroupInformation"/>
  36978. <doc>
  36979. <![CDATA[Create a proxy user using username of the effective user and the ugi of the
  36980. real user.
  36981. @param user
  36982. @param realUser
  36983. @return proxyUser ugi]]>
  36984. </doc>
  36985. </method>
  36986. <method name="getRealUser" return="org.apache.hadoop.security.UserGroupInformation"
  36987. abstract="false" native="false" synchronized="false"
  36988. static="false" final="false" visibility="public"
  36989. deprecated="not deprecated">
  36990. <doc>
  36991. <![CDATA[get RealUser (vs. EffectiveUser)
  36992. @return realUser running over proxy user]]>
  36993. </doc>
  36994. </method>
  36995. <method name="createUserForTesting" return="org.apache.hadoop.security.UserGroupInformation"
  36996. abstract="false" native="false" synchronized="false"
  36997. static="true" final="false" visibility="public"
  36998. deprecated="not deprecated">
  36999. <param name="user" type="java.lang.String"/>
  37000. <param name="userGroups" type="java.lang.String[]"/>
  37001. <doc>
  37002. <![CDATA[Create a UGI for testing HDFS and MapReduce
  37003. @param user the full user principal name
  37004. @param userGroups the names of the groups that the user belongs to
  37005. @return a fake user for running unit tests]]>
  37006. </doc>
  37007. </method>
  37008. <method name="createProxyUserForTesting" return="org.apache.hadoop.security.UserGroupInformation"
  37009. abstract="false" native="false" synchronized="false"
  37010. static="true" final="false" visibility="public"
  37011. deprecated="not deprecated">
  37012. <param name="user" type="java.lang.String"/>
  37013. <param name="realUser" type="org.apache.hadoop.security.UserGroupInformation"/>
  37014. <param name="userGroups" type="java.lang.String[]"/>
  37015. <doc>
  37016. <![CDATA[Create a proxy user UGI for testing HDFS and MapReduce
  37017. @param user
  37018. the full user principal name for effective user
  37019. @param realUser
  37020. UGI of the real user
  37021. @param userGroups
  37022. the names of the groups that the user belongs to
  37023. @return a fake user for running unit tests]]>
  37024. </doc>
  37025. </method>
  37026. <method name="getShortUserName" return="java.lang.String"
  37027. abstract="false" native="false" synchronized="false"
  37028. static="false" final="false" visibility="public"
  37029. deprecated="not deprecated">
  37030. <doc>
  37031. <![CDATA[Get the user's login name.
  37032. @return the user's name up to the first '/' or '@'.]]>
  37033. </doc>
  37034. </method>
  37035. <method name="getUserName" return="java.lang.String"
  37036. abstract="false" native="false" synchronized="false"
  37037. static="false" final="false" visibility="public"
  37038. deprecated="not deprecated">
  37039. <doc>
  37040. <![CDATA[Get the user's full principal name.
  37041. @return the user's full principal name.]]>
  37042. </doc>
  37043. </method>
  37044. <method name="addTokenIdentifier" return="boolean"
  37045. abstract="false" native="false" synchronized="true"
  37046. static="false" final="false" visibility="public"
  37047. deprecated="not deprecated">
  37048. <param name="tokenId" type="org.apache.hadoop.security.token.TokenIdentifier"/>
  37049. <doc>
  37050. <![CDATA[Add a TokenIdentifier to this UGI. The TokenIdentifier has typically been
  37051. authenticated by the RPC layer as belonging to the user represented by this
  37052. UGI.
  37053. @param tokenId
  37054. tokenIdentifier to be added
  37055. @return true on successful add of new tokenIdentifier]]>
  37056. </doc>
  37057. </method>
  37058. <method name="getTokenIdentifiers" return="java.util.Set"
  37059. abstract="false" native="false" synchronized="true"
  37060. static="false" final="false" visibility="public"
  37061. deprecated="not deprecated">
  37062. <doc>
  37063. <![CDATA[Get the set of TokenIdentifiers belonging to this UGI
  37064. @return the set of TokenIdentifiers belonging to this UGI]]>
  37065. </doc>
  37066. </method>
  37067. <method name="addToken" return="boolean"
  37068. abstract="false" native="false" synchronized="true"
  37069. static="false" final="false" visibility="public"
  37070. deprecated="not deprecated">
  37071. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  37072. <doc>
  37073. <![CDATA[Add a token to this UGI
  37074. @param token Token to be added
  37075. @return true on successful add of new token]]>
  37076. </doc>
  37077. </method>
  37078. <method name="getTokens" return="java.util.Collection"
  37079. abstract="false" native="false" synchronized="true"
  37080. static="false" final="false" visibility="public"
  37081. deprecated="not deprecated">
  37082. <doc>
  37083. <![CDATA[Obtain the collection of tokens associated with this user.
  37084. @return an unmodifiable collection of tokens associated with user]]>
  37085. </doc>
  37086. </method>
  37087. <method name="getGroupNames" return="java.lang.String[]"
  37088. abstract="false" native="false" synchronized="true"
  37089. static="false" final="false" visibility="public"
  37090. deprecated="not deprecated">
  37091. <doc>
  37092. <![CDATA[Get the group names for this user.
  37093. @return the list of users with the primary group first. If the command
  37094. fails, it returns an empty list.]]>
  37095. </doc>
  37096. </method>
  37097. <method name="toString" return="java.lang.String"
  37098. abstract="false" native="false" synchronized="false"
  37099. static="false" final="false" visibility="public"
  37100. deprecated="not deprecated">
  37101. <doc>
  37102. <![CDATA[Return the username.]]>
  37103. </doc>
  37104. </method>
  37105. <method name="setAuthenticationMethod"
  37106. abstract="false" native="false" synchronized="true"
  37107. static="false" final="false" visibility="public"
  37108. deprecated="not deprecated">
  37109. <param name="authMethod" type="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod"/>
  37110. <doc>
  37111. <![CDATA[Sets the authentication method in the subject
  37112. @param authMethod]]>
  37113. </doc>
  37114. </method>
  37115. <method name="getAuthenticationMethod" return="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod"
  37116. abstract="false" native="false" synchronized="true"
  37117. static="false" final="false" visibility="public"
  37118. deprecated="not deprecated">
  37119. <doc>
  37120. <![CDATA[Get the authentication method from the subject
  37121. @return AuthenticationMethod in the subject, null if not present.]]>
  37122. </doc>
  37123. </method>
  37124. <method name="equals" return="boolean"
  37125. abstract="false" native="false" synchronized="false"
  37126. static="false" final="false" visibility="public"
  37127. deprecated="not deprecated">
  37128. <param name="o" type="java.lang.Object"/>
  37129. <doc>
  37130. <![CDATA[Compare the subjects to see if they are equal to each other.]]>
  37131. </doc>
  37132. </method>
  37133. <method name="hashCode" return="int"
  37134. abstract="false" native="false" synchronized="false"
  37135. static="false" final="false" visibility="public"
  37136. deprecated="not deprecated">
  37137. <doc>
  37138. <![CDATA[Return the hash of the subject.]]>
  37139. </doc>
  37140. </method>
  37141. <method name="getSubject" return="javax.security.auth.Subject"
  37142. abstract="false" native="false" synchronized="false"
  37143. static="false" final="false" visibility="protected"
  37144. deprecated="not deprecated">
  37145. <doc>
  37146. <![CDATA[Get the underlying subject from this ugi.
  37147. @return the subject that represents this user.]]>
  37148. </doc>
  37149. </method>
  37150. <method name="doAs" return="java.lang.Object"
  37151. abstract="false" native="false" synchronized="false"
  37152. static="false" final="false" visibility="public"
  37153. deprecated="not deprecated">
  37154. <param name="action" type="java.security.PrivilegedAction"/>
  37155. <doc>
  37156. <![CDATA[Run the given action as the user.
  37157. @param <T> the return type of the run method
  37158. @param action the method to execute
  37159. @return the value from the run method]]>
  37160. </doc>
  37161. </method>
  37162. <method name="doAs" return="java.lang.Object"
  37163. abstract="false" native="false" synchronized="false"
  37164. static="false" final="false" visibility="public"
  37165. deprecated="not deprecated">
  37166. <param name="action" type="java.security.PrivilegedExceptionAction"/>
  37167. <exception name="IOException" type="java.io.IOException"/>
  37168. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  37169. <doc>
  37170. <![CDATA[Run the given action as the user, potentially throwing an exception.
  37171. @param <T> the return type of the run method
  37172. @param action the method to execute
  37173. @return the value from the run method
  37174. @throws IOException if the action throws an IOException
  37175. @throws Error if the action throws an Error
  37176. @throws RuntimeException if the action throws a RuntimeException
  37177. @throws InterruptedException if the action throws an InterruptedException
  37178. @throws UndeclaredThrowableException if the action throws something else]]>
  37179. </doc>
  37180. </method>
  37181. <method name="main"
  37182. abstract="false" native="false" synchronized="false"
  37183. static="true" final="false" visibility="public"
  37184. deprecated="not deprecated">
  37185. <param name="args" type="java.lang.String[]"/>
  37186. <exception name="Exception" type="java.lang.Exception"/>
  37187. <doc>
  37188. <![CDATA[A test method to print out the current user's UGI.
  37189. @param args if there are two arguments, read the user from the keytab
  37190. and print it out.
  37191. @throws Exception]]>
  37192. </doc>
  37193. </method>
  37194. <field name="HADOOP_TOKEN_FILE_LOCATION" type="java.lang.String"
  37195. transient="false" volatile="false"
  37196. static="true" final="true" visibility="public"
  37197. deprecated="not deprecated">
  37198. <doc>
  37199. <![CDATA[Environment variable pointing to the token cache file]]>
  37200. </doc>
  37201. </field>
  37202. <doc>
  37203. <![CDATA[User and group information for Hadoop.
  37204. This class wraps around a JAAS Subject and provides methods to determine the
  37205. user's username and groups. It supports both the Windows, Unix and Kerberos
  37206. login modules.]]>
  37207. </doc>
  37208. </class>
  37209. <!-- end class org.apache.hadoop.security.UserGroupInformation -->
  37210. <!-- start class org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod -->
  37211. <class name="UserGroupInformation.AuthenticationMethod" extends="java.lang.Enum"
  37212. abstract="false"
  37213. static="true" final="true" visibility="public"
  37214. deprecated="not deprecated">
  37215. <method name="values" return="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod[]"
  37216. abstract="false" native="false" synchronized="false"
  37217. static="true" final="false" visibility="public"
  37218. deprecated="not deprecated">
  37219. </method>
  37220. <method name="valueOf" return="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod"
  37221. abstract="false" native="false" synchronized="false"
  37222. static="true" final="false" visibility="public"
  37223. deprecated="not deprecated">
  37224. <param name="name" type="java.lang.String"/>
  37225. </method>
  37226. <field name="SIMPLE" type="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod"
  37227. transient="false" volatile="false"
  37228. static="true" final="true" visibility="public"
  37229. deprecated="not deprecated">
  37230. </field>
  37231. <field name="KERBEROS" type="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod"
  37232. transient="false" volatile="false"
  37233. static="true" final="true" visibility="public"
  37234. deprecated="not deprecated">
  37235. </field>
  37236. <field name="TOKEN" type="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod"
  37237. transient="false" volatile="false"
  37238. static="true" final="true" visibility="public"
  37239. deprecated="not deprecated">
  37240. </field>
  37241. <field name="CERTIFICATE" type="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod"
  37242. transient="false" volatile="false"
  37243. static="true" final="true" visibility="public"
  37244. deprecated="not deprecated">
  37245. </field>
  37246. <field name="KERBEROS_SSL" type="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod"
  37247. transient="false" volatile="false"
  37248. static="true" final="true" visibility="public"
  37249. deprecated="not deprecated">
  37250. </field>
  37251. <field name="PROXY" type="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod"
  37252. transient="false" volatile="false"
  37253. static="true" final="true" visibility="public"
  37254. deprecated="not deprecated">
  37255. </field>
  37256. <doc>
  37257. <![CDATA[existing types of authentications' methods]]>
  37258. </doc>
  37259. </class>
  37260. <!-- end class org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod -->
  37261. <!-- start class org.apache.hadoop.security.UserGroupInformation.HadoopLoginModule -->
  37262. <class name="UserGroupInformation.HadoopLoginModule" extends="java.lang.Object"
  37263. abstract="false"
  37264. static="true" final="false" visibility="public"
  37265. deprecated="not deprecated">
  37266. <implements name="javax.security.auth.spi.LoginModule"/>
  37267. <constructor name="UserGroupInformation.HadoopLoginModule"
  37268. static="false" final="false" visibility="public"
  37269. deprecated="not deprecated">
  37270. </constructor>
  37271. <method name="abort" return="boolean"
  37272. abstract="false" native="false" synchronized="false"
  37273. static="false" final="false" visibility="public"
  37274. deprecated="not deprecated">
  37275. <exception name="LoginException" type="javax.security.auth.login.LoginException"/>
  37276. </method>
  37277. <method name="commit" return="boolean"
  37278. abstract="false" native="false" synchronized="false"
  37279. static="false" final="false" visibility="public"
  37280. deprecated="not deprecated">
  37281. <exception name="LoginException" type="javax.security.auth.login.LoginException"/>
  37282. </method>
  37283. <method name="initialize"
  37284. abstract="false" native="false" synchronized="false"
  37285. static="false" final="false" visibility="public"
  37286. deprecated="not deprecated">
  37287. <param name="subject" type="javax.security.auth.Subject"/>
  37288. <param name="callbackHandler" type="javax.security.auth.callback.CallbackHandler"/>
  37289. <param name="sharedState" type="java.util.Map"/>
  37290. <param name="options" type="java.util.Map"/>
  37291. </method>
  37292. <method name="login" return="boolean"
  37293. abstract="false" native="false" synchronized="false"
  37294. static="false" final="false" visibility="public"
  37295. deprecated="not deprecated">
  37296. <exception name="LoginException" type="javax.security.auth.login.LoginException"/>
  37297. </method>
  37298. <method name="logout" return="boolean"
  37299. abstract="false" native="false" synchronized="false"
  37300. static="false" final="false" visibility="public"
  37301. deprecated="not deprecated">
  37302. <exception name="LoginException" type="javax.security.auth.login.LoginException"/>
  37303. </method>
  37304. <doc>
  37305. <![CDATA[A login module that looks at the Kerberos, Unix, or Windows principal and
  37306. adds the corresponding UserName.]]>
  37307. </doc>
  37308. </class>
  37309. <!-- end class org.apache.hadoop.security.UserGroupInformation.HadoopLoginModule -->
  37310. </package>
  37311. <package name="org.apache.hadoop.security.authentication.client">
  37312. <!-- start class org.apache.hadoop.security.authentication.client.AuthenticatedURL -->
  37313. <class name="AuthenticatedURL" extends="java.lang.Object"
  37314. abstract="false"
  37315. static="false" final="false" visibility="public"
  37316. deprecated="not deprecated">
  37317. <constructor name="AuthenticatedURL"
  37318. static="false" final="false" visibility="public"
  37319. deprecated="not deprecated">
  37320. <doc>
  37321. <![CDATA[Creates an {@link AuthenticatedURL}.]]>
  37322. </doc>
  37323. </constructor>
  37324. <constructor name="AuthenticatedURL" type="org.apache.hadoop.security.authentication.client.Authenticator"
  37325. static="false" final="false" visibility="public"
  37326. deprecated="not deprecated">
  37327. <doc>
  37328. <![CDATA[Creates an <code>AuthenticatedURL</code>.
  37329. @param authenticator the {@link Authenticator} instance to use, if <code>null</code> a {@link
  37330. KerberosAuthenticator} is used.]]>
  37331. </doc>
  37332. </constructor>
  37333. <method name="setDefaultAuthenticator"
  37334. abstract="false" native="false" synchronized="false"
  37335. static="true" final="false" visibility="public"
  37336. deprecated="not deprecated">
  37337. <param name="authenticator" type="java.lang.Class"/>
  37338. <doc>
  37339. <![CDATA[Sets the default {@link Authenticator} class to use when an {@link AuthenticatedURL} instance
  37340. is created without specifying an authenticator.
  37341. @param authenticator the authenticator class to use as default.]]>
  37342. </doc>
  37343. </method>
  37344. <method name="getDefaultAuthenticator" return="java.lang.Class"
  37345. abstract="false" native="false" synchronized="false"
  37346. static="true" final="false" visibility="public"
  37347. deprecated="not deprecated">
  37348. <doc>
  37349. <![CDATA[Returns the default {@link Authenticator} class to use when an {@link AuthenticatedURL} instance
  37350. is created without specifying an authenticator.
  37351. @return the authenticator class to use as default.]]>
  37352. </doc>
  37353. </method>
  37354. <method name="openConnection" return="java.net.HttpURLConnection"
  37355. abstract="false" native="false" synchronized="false"
  37356. static="false" final="false" visibility="public"
  37357. deprecated="not deprecated">
  37358. <param name="url" type="java.net.URL"/>
  37359. <param name="token" type="org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token"/>
  37360. <exception name="IOException" type="java.io.IOException"/>
  37361. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  37362. <doc>
  37363. <![CDATA[Returns an authenticated {@link HttpURLConnection}.
  37364. @param url the URL to connect to. Only HTTP/S URLs are supported.
  37365. @param token the authentication token being used for the user.
  37366. @return an authenticated {@link HttpURLConnection}.
  37367. @throws IOException if an IO error occurred.
  37368. @throws AuthenticationException if an authentication exception occurred.]]>
  37369. </doc>
  37370. </method>
  37371. <method name="injectToken"
  37372. abstract="false" native="false" synchronized="false"
  37373. static="true" final="false" visibility="public"
  37374. deprecated="not deprecated">
  37375. <param name="conn" type="java.net.HttpURLConnection"/>
  37376. <param name="token" type="org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token"/>
  37377. <doc>
  37378. <![CDATA[Helper method that injects an authentication token to send with a connection.
  37379. @param conn connection to inject the authentication token into.
  37380. @param token authentication token to inject.]]>
  37381. </doc>
  37382. </method>
  37383. <method name="extractToken"
  37384. abstract="false" native="false" synchronized="false"
  37385. static="true" final="false" visibility="public"
  37386. deprecated="not deprecated">
  37387. <param name="conn" type="java.net.HttpURLConnection"/>
  37388. <param name="token" type="org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token"/>
  37389. <exception name="IOException" type="java.io.IOException"/>
  37390. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  37391. <doc>
  37392. <![CDATA[Helper method that extracts an authentication token received from a connection.
  37393. <p/>
  37394. This method is used by {@link Authenticator} implementations.
  37395. @param conn connection to extract the authentication token from.
  37396. @param token the authentication token.
  37397. @throws IOException if an IO error occurred.
  37398. @throws AuthenticationException if an authentication exception occurred.]]>
  37399. </doc>
  37400. </method>
  37401. <field name="AUTH_COOKIE" type="java.lang.String"
  37402. transient="false" volatile="false"
  37403. static="true" final="true" visibility="public"
  37404. deprecated="not deprecated">
  37405. <doc>
  37406. <![CDATA[Name of the HTTP cookie used for the authentication token between the client and the server.]]>
  37407. </doc>
  37408. </field>
  37409. <doc>
  37410. <![CDATA[The {@link AuthenticatedURL} class enables the use of the JDK {@link URL} class
  37411. against HTTP endpoints protected with the {@link AuthenticationFilter}.
  37412. <p/>
  37413. The authentication mechanisms supported by default are Hadoop Simple authentication
  37414. (also known as pseudo authentication) and Kerberos SPNEGO authentication.
  37415. <p/>
  37416. Additional authentication mechanisms can be supported via {@link Authenticator} implementations.
  37417. <p/>
  37418. The default {@link Authenticator} is the {@link KerberosAuthenticator} class which supports
  37419. automatic fallback from Kerberos SPNEGO to Hadoop Simple authentication.
  37420. <p/>
  37421. <code>AuthenticatedURL</code> instances are not thread-safe.
  37422. <p/>
  37423. The usage pattern of the {@link AuthenticatedURL} is:
  37424. <p/>
  37425. <pre>
  37426. // establishing an initial connection
  37427. URL url = new URL("http://foo:8080/bar");
  37428. AuthenticatedURL.Token token = new AuthenticatedURL.Token();
  37429. AuthenticatedURL aUrl = new AuthenticatedURL();
  37430. HttpURLConnection conn = new AuthenticatedURL(url, token).openConnection();
  37431. ....
  37432. // use the 'conn' instance
  37433. ....
  37434. // establishing a follow up connection using a token from the previous connection
  37435. HttpURLConnection conn = new AuthenticatedURL(url, token).openConnection();
  37436. ....
  37437. // use the 'conn' instance
  37438. ....
  37439. </pre>]]>
  37440. </doc>
  37441. </class>
  37442. <!-- end class org.apache.hadoop.security.authentication.client.AuthenticatedURL -->
  37443. <!-- start class org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token -->
  37444. <class name="AuthenticatedURL.Token" extends="java.lang.Object"
  37445. abstract="false"
  37446. static="true" final="false" visibility="public"
  37447. deprecated="not deprecated">
  37448. <constructor name="AuthenticatedURL.Token"
  37449. static="false" final="false" visibility="public"
  37450. deprecated="not deprecated">
  37451. <doc>
  37452. <![CDATA[Creates a token.]]>
  37453. </doc>
  37454. </constructor>
  37455. <constructor name="AuthenticatedURL.Token" type="java.lang.String"
  37456. static="false" final="false" visibility="public"
  37457. deprecated="not deprecated">
  37458. <doc>
  37459. <![CDATA[Creates a token using an existing string representation of the token.
  37460. @param tokenStr string representation of the tokenStr.]]>
  37461. </doc>
  37462. </constructor>
  37463. <method name="isSet" return="boolean"
  37464. abstract="false" native="false" synchronized="false"
  37465. static="false" final="false" visibility="public"
  37466. deprecated="not deprecated">
  37467. <doc>
  37468. <![CDATA[Returns if a token from the server has been set.
  37469. @return if a token from the server has been set.]]>
  37470. </doc>
  37471. </method>
  37472. <method name="toString" return="java.lang.String"
  37473. abstract="false" native="false" synchronized="false"
  37474. static="false" final="false" visibility="public"
  37475. deprecated="not deprecated">
  37476. <doc>
  37477. <![CDATA[Returns the string representation of the token.
  37478. @return the string representation of the token.]]>
  37479. </doc>
  37480. </method>
  37481. <method name="hashCode" return="int"
  37482. abstract="false" native="false" synchronized="false"
  37483. static="false" final="false" visibility="public"
  37484. deprecated="not deprecated">
  37485. <doc>
  37486. <![CDATA[Return the hashcode for the token.
  37487. @return the hashcode for the token.]]>
  37488. </doc>
  37489. </method>
  37490. <method name="equals" return="boolean"
  37491. abstract="false" native="false" synchronized="false"
  37492. static="false" final="false" visibility="public"
  37493. deprecated="not deprecated">
  37494. <param name="o" type="java.lang.Object"/>
  37495. <doc>
  37496. <![CDATA[Return if two token instances are equal.
  37497. @param o the other token instance.
  37498. @return if this instance and the other instance are equal.]]>
  37499. </doc>
  37500. </method>
  37501. <doc>
  37502. <![CDATA[Client side authentication token.]]>
  37503. </doc>
  37504. </class>
  37505. <!-- end class org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token -->
  37506. <!-- start class org.apache.hadoop.security.authentication.client.AuthenticationException -->
  37507. <class name="AuthenticationException" extends="java.lang.Exception"
  37508. abstract="false"
  37509. static="false" final="false" visibility="public"
  37510. deprecated="not deprecated">
  37511. <constructor name="AuthenticationException" type="java.lang.Throwable"
  37512. static="false" final="false" visibility="public"
  37513. deprecated="not deprecated">
  37514. <doc>
  37515. <![CDATA[Creates an {@link AuthenticationException}.
  37516. @param cause original exception.]]>
  37517. </doc>
  37518. </constructor>
  37519. <constructor name="AuthenticationException" type="java.lang.String"
  37520. static="false" final="false" visibility="public"
  37521. deprecated="not deprecated">
  37522. <doc>
  37523. <![CDATA[Creates an {@link AuthenticationException}.
  37524. @param msg exception message.]]>
  37525. </doc>
  37526. </constructor>
  37527. <constructor name="AuthenticationException" type="java.lang.String, java.lang.Throwable"
  37528. static="false" final="false" visibility="public"
  37529. deprecated="not deprecated">
  37530. <doc>
  37531. <![CDATA[Creates an {@link AuthenticationException}.
  37532. @param msg exception message.
  37533. @param cause original exception.]]>
  37534. </doc>
  37535. </constructor>
  37536. <doc>
  37537. <![CDATA[Exception thrown when an authentication error occurrs.]]>
  37538. </doc>
  37539. </class>
  37540. <!-- end class org.apache.hadoop.security.authentication.client.AuthenticationException -->
  37541. <!-- start interface org.apache.hadoop.security.authentication.client.Authenticator -->
  37542. <interface name="Authenticator" abstract="true"
  37543. static="false" final="false" visibility="public"
  37544. deprecated="not deprecated">
  37545. <method name="authenticate"
  37546. abstract="false" native="false" synchronized="false"
  37547. static="false" final="false" visibility="public"
  37548. deprecated="not deprecated">
  37549. <param name="url" type="java.net.URL"/>
  37550. <param name="token" type="org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token"/>
  37551. <exception name="IOException" type="java.io.IOException"/>
  37552. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  37553. <doc>
  37554. <![CDATA[Authenticates against a URL and returns a {@link AuthenticatedURL.Token} to be
  37555. used by subsequent requests.
  37556. @param url the URl to authenticate against.
  37557. @param token the authentication token being used for the user.
  37558. @throws IOException if an IO error occurred.
  37559. @throws AuthenticationException if an authentication error occurred.]]>
  37560. </doc>
  37561. </method>
  37562. <doc>
  37563. <![CDATA[Interface for client authentication mechanisms.
  37564. <p/>
  37565. Implementations are use-once instances, they don't need to be thread safe.]]>
  37566. </doc>
  37567. </interface>
  37568. <!-- end interface org.apache.hadoop.security.authentication.client.Authenticator -->
  37569. <!-- start class org.apache.hadoop.security.authentication.client.KerberosAuthenticator -->
  37570. <class name="KerberosAuthenticator" extends="java.lang.Object"
  37571. abstract="false"
  37572. static="false" final="false" visibility="public"
  37573. deprecated="not deprecated">
  37574. <implements name="org.apache.hadoop.security.authentication.client.Authenticator"/>
  37575. <constructor name="KerberosAuthenticator"
  37576. static="false" final="false" visibility="public"
  37577. deprecated="not deprecated">
  37578. </constructor>
  37579. <method name="authenticate"
  37580. abstract="false" native="false" synchronized="false"
  37581. static="false" final="false" visibility="public"
  37582. deprecated="not deprecated">
  37583. <param name="url" type="java.net.URL"/>
  37584. <param name="token" type="org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token"/>
  37585. <exception name="IOException" type="java.io.IOException"/>
  37586. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  37587. <doc>
  37588. <![CDATA[Performs SPNEGO authentication against the specified URL.
  37589. <p/>
  37590. If a token is given it does a NOP and returns the given token.
  37591. <p/>
  37592. If no token is given, it will perform the SPNEGO authentication sequence using an
  37593. HTTP <code>OPTIONS</code> request.
  37594. @param url the URl to authenticate against.
  37595. @param token the authentication token being used for the user.
  37596. @throws IOException if an IO error occurred.
  37597. @throws AuthenticationException if an authentication error occurred.]]>
  37598. </doc>
  37599. </method>
  37600. <method name="getFallBackAuthenticator" return="org.apache.hadoop.security.authentication.client.Authenticator"
  37601. abstract="false" native="false" synchronized="false"
  37602. static="false" final="false" visibility="protected"
  37603. deprecated="not deprecated">
  37604. <doc>
  37605. <![CDATA[If the specified URL does not support SPNEGO authentication, a fallback {@link Authenticator} will be used.
  37606. <p/>
  37607. This implementation returns a {@link PseudoAuthenticator}.
  37608. @return the fallback {@link Authenticator}.]]>
  37609. </doc>
  37610. </method>
  37611. <field name="WWW_AUTHENTICATE" type="java.lang.String"
  37612. transient="false" volatile="false"
  37613. static="true" final="true" visibility="public"
  37614. deprecated="not deprecated">
  37615. <doc>
  37616. <![CDATA[HTTP header used by the SPNEGO server endpoint during an authentication sequence.]]>
  37617. </doc>
  37618. </field>
  37619. <field name="AUTHORIZATION" type="java.lang.String"
  37620. transient="false" volatile="false"
  37621. static="true" final="true" visibility="public"
  37622. deprecated="not deprecated">
  37623. <doc>
  37624. <![CDATA[HTTP header used by the SPNEGO client endpoint during an authentication sequence.]]>
  37625. </doc>
  37626. </field>
  37627. <field name="NEGOTIATE" type="java.lang.String"
  37628. transient="false" volatile="false"
  37629. static="true" final="true" visibility="public"
  37630. deprecated="not deprecated">
  37631. <doc>
  37632. <![CDATA[HTTP header prefix used by the SPNEGO client/server endpoints during an authentication sequence.]]>
  37633. </doc>
  37634. </field>
  37635. <doc>
  37636. <![CDATA[The {@link KerberosAuthenticator} implements the Kerberos SPNEGO authentication sequence.
  37637. <p/>
  37638. It uses the default principal for the Kerberos cache (normally set via kinit).
  37639. <p/>
  37640. It falls back to the {@link PseudoAuthenticator} if the HTTP endpoint does not trigger an SPNEGO authentication
  37641. sequence.]]>
  37642. </doc>
  37643. </class>
  37644. <!-- end class org.apache.hadoop.security.authentication.client.KerberosAuthenticator -->
  37645. <!-- start class org.apache.hadoop.security.authentication.client.PseudoAuthenticator -->
  37646. <class name="PseudoAuthenticator" extends="java.lang.Object"
  37647. abstract="false"
  37648. static="false" final="false" visibility="public"
  37649. deprecated="not deprecated">
  37650. <implements name="org.apache.hadoop.security.authentication.client.Authenticator"/>
  37651. <constructor name="PseudoAuthenticator"
  37652. static="false" final="false" visibility="public"
  37653. deprecated="not deprecated">
  37654. </constructor>
  37655. <method name="authenticate"
  37656. abstract="false" native="false" synchronized="false"
  37657. static="false" final="false" visibility="public"
  37658. deprecated="not deprecated">
  37659. <param name="url" type="java.net.URL"/>
  37660. <param name="token" type="org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token"/>
  37661. <exception name="IOException" type="java.io.IOException"/>
  37662. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  37663. <doc>
  37664. <![CDATA[Performs simple authentication against the specified URL.
  37665. <p/>
  37666. If a token is given it does a NOP and returns the given token.
  37667. <p/>
  37668. If no token is given, it will perform an HTTP <code>OPTIONS</code> request injecting an additional
  37669. parameter {@link #USER_NAME} in the query string with the value returned by the {@link #getUserName()}
  37670. method.
  37671. <p/>
  37672. If the response is successful it will update the authentication token.
  37673. @param url the URl to authenticate against.
  37674. @param token the authencation token being used for the user.
  37675. @throws IOException if an IO error occurred.
  37676. @throws AuthenticationException if an authentication error occurred.]]>
  37677. </doc>
  37678. </method>
  37679. <method name="getUserName" return="java.lang.String"
  37680. abstract="false" native="false" synchronized="false"
  37681. static="false" final="false" visibility="protected"
  37682. deprecated="not deprecated">
  37683. <doc>
  37684. <![CDATA[Returns the current user name.
  37685. <p/>
  37686. This implementation returns the value of the Java system property 'user.name'
  37687. @return the current user name.]]>
  37688. </doc>
  37689. </method>
  37690. <field name="USER_NAME" type="java.lang.String"
  37691. transient="false" volatile="false"
  37692. static="true" final="true" visibility="public"
  37693. deprecated="not deprecated">
  37694. <doc>
  37695. <![CDATA[Name of the additional parameter that carries the 'user.name' value.]]>
  37696. </doc>
  37697. </field>
  37698. <doc>
  37699. <![CDATA[The {@link PseudoAuthenticator} implementation provides an authentication equivalent to Hadoop's
  37700. Simple authentication, it trusts the value of the 'user.name' Java System property.
  37701. <p/>
  37702. The 'user.name' value is propagated using an additional query string parameter {@link #USER_NAME} ('user.name').]]>
  37703. </doc>
  37704. </class>
  37705. <!-- end class org.apache.hadoop.security.authentication.client.PseudoAuthenticator -->
  37706. </package>
  37707. <package name="org.apache.hadoop.security.authentication.server">
  37708. <!-- start class org.apache.hadoop.security.authentication.server.AuthenticationFilter -->
  37709. <class name="AuthenticationFilter" extends="java.lang.Object"
  37710. abstract="false"
  37711. static="false" final="false" visibility="public"
  37712. deprecated="not deprecated">
  37713. <implements name="javax.servlet.Filter"/>
  37714. <constructor name="AuthenticationFilter"
  37715. static="false" final="false" visibility="public"
  37716. deprecated="not deprecated">
  37717. </constructor>
  37718. <method name="init"
  37719. abstract="false" native="false" synchronized="false"
  37720. static="false" final="false" visibility="public"
  37721. deprecated="not deprecated">
  37722. <param name="filterConfig" type="javax.servlet.FilterConfig"/>
  37723. <exception name="ServletException" type="javax.servlet.ServletException"/>
  37724. <doc>
  37725. <![CDATA[Initializes the authentication filter.
  37726. <p/>
  37727. It instantiates and initializes the specified {@link AuthenticationHandler}.
  37728. <p/>
  37729. @param filterConfig filter configuration.
  37730. @throws ServletException thrown if the filter or the authentication handler could not be initialized properly.]]>
  37731. </doc>
  37732. </method>
  37733. <method name="getAuthenticationHandler" return="org.apache.hadoop.security.authentication.server.AuthenticationHandler"
  37734. abstract="false" native="false" synchronized="false"
  37735. static="false" final="false" visibility="protected"
  37736. deprecated="not deprecated">
  37737. <doc>
  37738. <![CDATA[Returns the authentication handler being used.
  37739. @return the authentication handler being used.]]>
  37740. </doc>
  37741. </method>
  37742. <method name="isRandomSecret" return="boolean"
  37743. abstract="false" native="false" synchronized="false"
  37744. static="false" final="false" visibility="protected"
  37745. deprecated="not deprecated">
  37746. <doc>
  37747. <![CDATA[Returns if a random secret is being used.
  37748. @return if a random secret is being used.]]>
  37749. </doc>
  37750. </method>
  37751. <method name="getValidity" return="long"
  37752. abstract="false" native="false" synchronized="false"
  37753. static="false" final="false" visibility="protected"
  37754. deprecated="not deprecated">
  37755. <doc>
  37756. <![CDATA[Returns the validity time of the generated tokens.
  37757. @return the validity time of the generated tokens, in seconds.]]>
  37758. </doc>
  37759. </method>
  37760. <method name="getCookieDomain" return="java.lang.String"
  37761. abstract="false" native="false" synchronized="false"
  37762. static="false" final="false" visibility="protected"
  37763. deprecated="not deprecated">
  37764. <doc>
  37765. <![CDATA[Returns the cookie domain to use for the HTTP cookie.
  37766. @return the cookie domain to use for the HTTP cookie.]]>
  37767. </doc>
  37768. </method>
  37769. <method name="getCookiePath" return="java.lang.String"
  37770. abstract="false" native="false" synchronized="false"
  37771. static="false" final="false" visibility="protected"
  37772. deprecated="not deprecated">
  37773. <doc>
  37774. <![CDATA[Returns the cookie path to use for the HTTP cookie.
  37775. @return the cookie path to use for the HTTP cookie.]]>
  37776. </doc>
  37777. </method>
  37778. <method name="destroy"
  37779. abstract="false" native="false" synchronized="false"
  37780. static="false" final="false" visibility="public"
  37781. deprecated="not deprecated">
  37782. <doc>
  37783. <![CDATA[Destroys the filter.
  37784. <p/>
  37785. It invokes the {@link AuthenticationHandler#destroy()} method to release any resources it may hold.]]>
  37786. </doc>
  37787. </method>
  37788. <method name="getConfiguration" return="java.util.Properties"
  37789. abstract="false" native="false" synchronized="false"
  37790. static="false" final="false" visibility="protected"
  37791. deprecated="not deprecated">
  37792. <param name="configPrefix" type="java.lang.String"/>
  37793. <param name="filterConfig" type="javax.servlet.FilterConfig"/>
  37794. <exception name="ServletException" type="javax.servlet.ServletException"/>
  37795. <doc>
  37796. <![CDATA[Returns the filtered configuration (only properties starting with the specified prefix). The property keys
  37797. are also trimmed from the prefix. The returned {@link Properties} object is used to initialized the
  37798. {@link AuthenticationHandler}.
  37799. <p/>
  37800. This method can be overriden by subclasses to obtain the configuration from other configuration source than
  37801. the web.xml file.
  37802. @param configPrefix configuration prefix to use for extracting configuration properties.
  37803. @param filterConfig filter configuration object
  37804. @return the configuration to be used with the {@link AuthenticationHandler} instance.
  37805. @throws ServletException thrown if the configuration could not be created.]]>
  37806. </doc>
  37807. </method>
  37808. <method name="getRequestURL" return="java.lang.String"
  37809. abstract="false" native="false" synchronized="false"
  37810. static="false" final="false" visibility="protected"
  37811. deprecated="not deprecated">
  37812. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  37813. <doc>
  37814. <![CDATA[Returns the full URL of the request including the query string.
  37815. <p/>
  37816. Used as a convenience method for logging purposes.
  37817. @param request the request object.
  37818. @return the full URL of the request including the query string.]]>
  37819. </doc>
  37820. </method>
  37821. <method name="getToken" return="org.apache.hadoop.security.authentication.server.AuthenticationToken"
  37822. abstract="false" native="false" synchronized="false"
  37823. static="false" final="false" visibility="protected"
  37824. deprecated="not deprecated">
  37825. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  37826. <exception name="IOException" type="java.io.IOException"/>
  37827. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  37828. <doc>
  37829. <![CDATA[Returns the {@link AuthenticationToken} for the request.
  37830. <p/>
  37831. It looks at the received HTTP cookies and extracts the value of the {@link AuthenticatedURL#AUTH_COOKIE}
  37832. if present. It verifies the signature and if correct it creates the {@link AuthenticationToken} and returns
  37833. it.
  37834. <p/>
  37835. If this method returns <code>null</code> the filter will invoke the configured {@link AuthenticationHandler}
  37836. to perform user authentication.
  37837. @param request request object.
  37838. @return the Authentication token if the request is authenticated, <code>null</code> otherwise.
  37839. @throws IOException thrown if an IO error occurred.
  37840. @throws AuthenticationException thrown if the token is invalid or if it has expired.]]>
  37841. </doc>
  37842. </method>
  37843. <method name="doFilter"
  37844. abstract="false" native="false" synchronized="false"
  37845. static="false" final="false" visibility="public"
  37846. deprecated="not deprecated">
  37847. <param name="request" type="javax.servlet.ServletRequest"/>
  37848. <param name="response" type="javax.servlet.ServletResponse"/>
  37849. <param name="filterChain" type="javax.servlet.FilterChain"/>
  37850. <exception name="IOException" type="java.io.IOException"/>
  37851. <exception name="ServletException" type="javax.servlet.ServletException"/>
  37852. <doc>
  37853. <![CDATA[If the request has a valid authentication token it allows the request to continue to the target resource,
  37854. otherwise it triggers an authentication sequence using the configured {@link AuthenticationHandler}.
  37855. @param request the request object.
  37856. @param response the response object.
  37857. @param filterChain the filter chain object.
  37858. @throws IOException thrown if an IO error occurred.
  37859. @throws ServletException thrown if a processing error occurred.]]>
  37860. </doc>
  37861. </method>
  37862. <method name="createCookie" return="javax.servlet.http.Cookie"
  37863. abstract="false" native="false" synchronized="false"
  37864. static="false" final="false" visibility="protected"
  37865. deprecated="not deprecated">
  37866. <param name="token" type="java.lang.String"/>
  37867. <doc>
  37868. <![CDATA[Creates the Hadoop authentiation HTTP cookie.
  37869. <p/>
  37870. It sets the domain and path specified in the configuration.
  37871. @param token authentication token for the cookie.
  37872. @return the HTTP cookie.]]>
  37873. </doc>
  37874. </method>
  37875. <field name="CONFIG_PREFIX" type="java.lang.String"
  37876. transient="false" volatile="false"
  37877. static="true" final="true" visibility="public"
  37878. deprecated="not deprecated">
  37879. <doc>
  37880. <![CDATA[Constant for the property that specifies the configuration prefix.]]>
  37881. </doc>
  37882. </field>
  37883. <field name="AUTH_TYPE" type="java.lang.String"
  37884. transient="false" volatile="false"
  37885. static="true" final="true" visibility="public"
  37886. deprecated="not deprecated">
  37887. <doc>
  37888. <![CDATA[Constant for the property that specifies the authentication handler to use.]]>
  37889. </doc>
  37890. </field>
  37891. <field name="SIGNATURE_SECRET" type="java.lang.String"
  37892. transient="false" volatile="false"
  37893. static="true" final="true" visibility="public"
  37894. deprecated="not deprecated">
  37895. <doc>
  37896. <![CDATA[Constant for the property that specifies the secret to use for signing the HTTP Cookies.]]>
  37897. </doc>
  37898. </field>
  37899. <field name="AUTH_TOKEN_VALIDITY" type="java.lang.String"
  37900. transient="false" volatile="false"
  37901. static="true" final="true" visibility="public"
  37902. deprecated="not deprecated">
  37903. <doc>
  37904. <![CDATA[Constant for the configuration property that indicates the validity of the generated token.]]>
  37905. </doc>
  37906. </field>
  37907. <field name="COOKIE_DOMAIN" type="java.lang.String"
  37908. transient="false" volatile="false"
  37909. static="true" final="true" visibility="public"
  37910. deprecated="not deprecated">
  37911. <doc>
  37912. <![CDATA[Constant for the configuration property that indicates the domain to use in the HTTP cookie.]]>
  37913. </doc>
  37914. </field>
  37915. <field name="COOKIE_PATH" type="java.lang.String"
  37916. transient="false" volatile="false"
  37917. static="true" final="true" visibility="public"
  37918. deprecated="not deprecated">
  37919. <doc>
  37920. <![CDATA[Constant for the configuration property that indicates the path to use in the HTTP cookie.]]>
  37921. </doc>
  37922. </field>
  37923. <doc>
  37924. <![CDATA[The {@link AuthenticationFilter} enables protecting web application resources with different (pluggable)
  37925. authentication mechanisms.
  37926. <p/>
  37927. Out of the box it provides 2 authentication mechanisms: Pseudo and Kerberos SPNEGO.
  37928. <p/>
  37929. Additional authentication mechanisms are supported via the {@link AuthenticationHandler} interface.
  37930. <p/>
  37931. This filter delegates to the configured authentication handler for authentication and once it obtains an
  37932. {@link AuthenticationToken} from it, sets a signed HTTP cookie with the token. For client requests
  37933. that provide the signed HTTP cookie, it verifies the validity of the cookie, extracts the user information
  37934. and lets the request proceed to the target resource.
  37935. <p/>
  37936. The supported configuration properties are:
  37937. <ul>
  37938. <li>config.prefix: indicates the prefix to be used by all other configuration properties, the default value
  37939. is no prefix. See below for details on how/why this prefix is used.</li>
  37940. <li>[#PREFIX#.]type: simple|kerberos|#CLASS#, 'simple' is short for the
  37941. {@link PseudoAuthenticationHandler}, 'kerberos' is short for {@link KerberosAuthenticationHandler}, otherwise
  37942. the full class name of the {@link AuthenticationHandler} must be specified.</li>
  37943. <li>[#PREFIX#.]signature.secret: the secret used to sign the HTTP cookie value. The default value is a random
  37944. value. Unless multiple webapp instances need to share the secret the random value is adequate.</li>
  37945. <li>[#PREFIX#.]token.validity: time -in seconds- that the generated token is valid before a
  37946. new authentication is triggered, default value is <code>3600</code> seconds.</li>
  37947. <li>[#PREFIX#.]cookie.domain: domain to use for the HTTP cookie that stores the authentication token.</li>
  37948. <li>[#PREFIX#.]cookie.path: path to use for the HTTP cookie that stores the authentication token.</li>
  37949. </ul>
  37950. <p/>
  37951. The rest of the configuration properties are specific to the {@link AuthenticationHandler} implementation and the
  37952. {@link AuthenticationFilter} will take all the properties that start with the prefix #PREFIX#, it will remove
  37953. the prefix from it and it will pass them to the the authentication handler for initialization. Properties that do
  37954. not start with the prefix will not be passed to the authentication handler initialization.]]>
  37955. </doc>
  37956. </class>
  37957. <!-- end class org.apache.hadoop.security.authentication.server.AuthenticationFilter -->
  37958. <!-- start interface org.apache.hadoop.security.authentication.server.AuthenticationHandler -->
  37959. <interface name="AuthenticationHandler" abstract="true"
  37960. static="false" final="false" visibility="public"
  37961. deprecated="not deprecated">
  37962. <method name="getType" return="java.lang.String"
  37963. abstract="false" native="false" synchronized="false"
  37964. static="false" final="false" visibility="public"
  37965. deprecated="not deprecated">
  37966. <doc>
  37967. <![CDATA[Returns the authentication type of the authentication handler.
  37968. <p/>
  37969. This should be a name that uniquely identifies the authentication type.
  37970. For example 'simple' or 'kerberos'.
  37971. @return the authentication type of the authentication handler.]]>
  37972. </doc>
  37973. </method>
  37974. <method name="init"
  37975. abstract="false" native="false" synchronized="false"
  37976. static="false" final="false" visibility="public"
  37977. deprecated="not deprecated">
  37978. <param name="config" type="java.util.Properties"/>
  37979. <exception name="ServletException" type="javax.servlet.ServletException"/>
  37980. <doc>
  37981. <![CDATA[Initializes the authentication handler instance.
  37982. <p/>
  37983. This method is invoked by the {@link AuthenticationFilter#init} method.
  37984. @param config configuration properties to initialize the handler.
  37985. @throws ServletException thrown if the handler could not be initialized.]]>
  37986. </doc>
  37987. </method>
  37988. <method name="destroy"
  37989. abstract="false" native="false" synchronized="false"
  37990. static="false" final="false" visibility="public"
  37991. deprecated="not deprecated">
  37992. <doc>
  37993. <![CDATA[Destroys the authentication handler instance.
  37994. <p/>
  37995. This method is invoked by the {@link AuthenticationFilter#destroy} method.]]>
  37996. </doc>
  37997. </method>
  37998. <method name="authenticate" return="org.apache.hadoop.security.authentication.server.AuthenticationToken"
  37999. abstract="false" native="false" synchronized="false"
  38000. static="false" final="false" visibility="public"
  38001. deprecated="not deprecated">
  38002. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  38003. <param name="response" type="javax.servlet.http.HttpServletResponse"/>
  38004. <exception name="IOException" type="java.io.IOException"/>
  38005. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  38006. <doc>
  38007. <![CDATA[Performs an authentication step for the given HTTP client request.
  38008. <p/>
  38009. This method is invoked by the {@link AuthenticationFilter} only if the HTTP client request is
  38010. not yet authenticated.
  38011. <p/>
  38012. Depending upon the authentication mechanism being implemented, a particular HTTP client may
  38013. end up making a sequence of invocations before authentication is successfully established (this is
  38014. the case of Kerberos SPNEGO).
  38015. <p/>
  38016. This method must return an {@link AuthenticationToken} only if the the HTTP client request has
  38017. been successfully and fully authenticated.
  38018. <p/>
  38019. If the HTTP client request has not been completely authenticated, this method must take over
  38020. the corresponding HTTP response and it must return <code>null</code>.
  38021. @param request the HTTP client request.
  38022. @param response the HTTP client response.
  38023. @return an {@link AuthenticationToken} if the HTTP client request has been authenticated,
  38024. <code>null</code> otherwise (in this case it must take care of the response).
  38025. @throws IOException thrown if an IO error occurred.
  38026. @throws AuthenticationException thrown if an Authentication error occurred.]]>
  38027. </doc>
  38028. </method>
  38029. <doc>
  38030. <![CDATA[Interface for server authentication mechanisms.
  38031. <p/>
  38032. The {@link AuthenticationFilter} manages the lifecycle of the authentication handler.
  38033. <p/>
  38034. Implementations must be thread-safe as one instance is initialized and used for all requests.]]>
  38035. </doc>
  38036. </interface>
  38037. <!-- end interface org.apache.hadoop.security.authentication.server.AuthenticationHandler -->
  38038. <!-- start class org.apache.hadoop.security.authentication.server.AuthenticationToken -->
  38039. <class name="AuthenticationToken" extends="java.lang.Object"
  38040. abstract="false"
  38041. static="false" final="false" visibility="public"
  38042. deprecated="not deprecated">
  38043. <implements name="java.security.Principal"/>
  38044. <constructor name="AuthenticationToken" type="java.lang.String, java.lang.String, java.lang.String"
  38045. static="false" final="false" visibility="public"
  38046. deprecated="not deprecated">
  38047. <doc>
  38048. <![CDATA[Creates an authentication token.
  38049. @param userName user name.
  38050. @param principal principal (commonly matches the user name, with Kerberos is the full/long principal
  38051. name while the userName is the short name).
  38052. @param type the authentication mechanism name.
  38053. (<code>System.currentTimeMillis() + validityPeriod</code>).]]>
  38054. </doc>
  38055. </constructor>
  38056. <method name="setExpires"
  38057. abstract="false" native="false" synchronized="false"
  38058. static="false" final="false" visibility="public"
  38059. deprecated="not deprecated">
  38060. <param name="expires" type="long"/>
  38061. <doc>
  38062. <![CDATA[Sets the expiration of the token.
  38063. @param expires expiration time of the token in milliseconds since the epoch.]]>
  38064. </doc>
  38065. </method>
  38066. <method name="getUserName" return="java.lang.String"
  38067. abstract="false" native="false" synchronized="false"
  38068. static="false" final="false" visibility="public"
  38069. deprecated="not deprecated">
  38070. <doc>
  38071. <![CDATA[Returns the user name.
  38072. @return the user name.]]>
  38073. </doc>
  38074. </method>
  38075. <method name="getName" return="java.lang.String"
  38076. abstract="false" native="false" synchronized="false"
  38077. static="false" final="false" visibility="public"
  38078. deprecated="not deprecated">
  38079. <doc>
  38080. <![CDATA[Returns the principal name (this method name comes from the JDK {@link Principal} interface).
  38081. @return the principal name.]]>
  38082. </doc>
  38083. </method>
  38084. <method name="getType" return="java.lang.String"
  38085. abstract="false" native="false" synchronized="false"
  38086. static="false" final="false" visibility="public"
  38087. deprecated="not deprecated">
  38088. <doc>
  38089. <![CDATA[Returns the authentication mechanism of the token.
  38090. @return the authentication mechanism of the token.]]>
  38091. </doc>
  38092. </method>
  38093. <method name="getExpires" return="long"
  38094. abstract="false" native="false" synchronized="false"
  38095. static="false" final="false" visibility="public"
  38096. deprecated="not deprecated">
  38097. <doc>
  38098. <![CDATA[Returns the expiration time of the token.
  38099. @return the expiration time of the token, in milliseconds since Epoc.]]>
  38100. </doc>
  38101. </method>
  38102. <method name="isExpired" return="boolean"
  38103. abstract="false" native="false" synchronized="false"
  38104. static="false" final="false" visibility="public"
  38105. deprecated="not deprecated">
  38106. <doc>
  38107. <![CDATA[Returns if the token has expired.
  38108. @return if the token has expired.]]>
  38109. </doc>
  38110. </method>
  38111. <method name="toString" return="java.lang.String"
  38112. abstract="false" native="false" synchronized="false"
  38113. static="false" final="false" visibility="public"
  38114. deprecated="not deprecated">
  38115. <doc>
  38116. <![CDATA[Returns the string representation of the token.
  38117. <p/>
  38118. This string representation is parseable by the {@link #parse} method.
  38119. @return the string representation of the token.]]>
  38120. </doc>
  38121. </method>
  38122. <method name="parse" return="org.apache.hadoop.security.authentication.server.AuthenticationToken"
  38123. abstract="false" native="false" synchronized="false"
  38124. static="true" final="false" visibility="public"
  38125. deprecated="not deprecated">
  38126. <param name="tokenStr" type="java.lang.String"/>
  38127. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  38128. <doc>
  38129. <![CDATA[Parses a string into an authentication token.
  38130. @param tokenStr string representation of a token.
  38131. @return the parsed authentication token.
  38132. @throws AuthenticationException thrown if the string representation could not be parsed into
  38133. an authentication token.]]>
  38134. </doc>
  38135. </method>
  38136. <field name="ANONYMOUS" type="org.apache.hadoop.security.authentication.server.AuthenticationToken"
  38137. transient="false" volatile="false"
  38138. static="true" final="true" visibility="public"
  38139. deprecated="not deprecated">
  38140. <doc>
  38141. <![CDATA[Constant that identifies an anonymous request.]]>
  38142. </doc>
  38143. </field>
  38144. <doc>
  38145. <![CDATA[The {@link AuthenticationToken} contains information about an authenticated
  38146. HTTP client and doubles as the {@link Principal} to be returned by
  38147. authenticated {@link HttpServletRequest}s
  38148. <p/>
  38149. The token can be serialized/deserialized to and from a string as it is sent
  38150. and received in HTTP client responses and requests as a HTTP cookie (this is
  38151. done by the {@link AuthenticationFilter}).]]>
  38152. </doc>
  38153. </class>
  38154. <!-- end class org.apache.hadoop.security.authentication.server.AuthenticationToken -->
  38155. <!-- start class org.apache.hadoop.security.authentication.server.KerberosAuthenticationHandler -->
  38156. <class name="KerberosAuthenticationHandler" extends="java.lang.Object"
  38157. abstract="false"
  38158. static="false" final="false" visibility="public"
  38159. deprecated="not deprecated">
  38160. <implements name="org.apache.hadoop.security.authentication.server.AuthenticationHandler"/>
  38161. <constructor name="KerberosAuthenticationHandler"
  38162. static="false" final="false" visibility="public"
  38163. deprecated="not deprecated">
  38164. </constructor>
  38165. <method name="init"
  38166. abstract="false" native="false" synchronized="false"
  38167. static="false" final="false" visibility="public"
  38168. deprecated="not deprecated">
  38169. <param name="config" type="java.util.Properties"/>
  38170. <exception name="ServletException" type="javax.servlet.ServletException"/>
  38171. <doc>
  38172. <![CDATA[Initializes the authentication handler instance.
  38173. <p/>
  38174. It creates a Kerberos context using the principal and keytab specified in the configuration.
  38175. <p/>
  38176. This method is invoked by the {@link AuthenticationFilter#init} method.
  38177. @param config configuration properties to initialize the handler.
  38178. @throws ServletException thrown if the handler could not be initialized.]]>
  38179. </doc>
  38180. </method>
  38181. <method name="destroy"
  38182. abstract="false" native="false" synchronized="false"
  38183. static="false" final="false" visibility="public"
  38184. deprecated="not deprecated">
  38185. <doc>
  38186. <![CDATA[Releases any resources initialized by the authentication handler.
  38187. <p/>
  38188. It destroys the Kerberos context.]]>
  38189. </doc>
  38190. </method>
  38191. <method name="getType" return="java.lang.String"
  38192. abstract="false" native="false" synchronized="false"
  38193. static="false" final="false" visibility="public"
  38194. deprecated="not deprecated">
  38195. <doc>
  38196. <![CDATA[Returns the authentication type of the authentication handler, 'kerberos'.
  38197. <p/>
  38198. @return the authentication type of the authentication handler, 'kerberos'.]]>
  38199. </doc>
  38200. </method>
  38201. <method name="getPrincipal" return="java.lang.String"
  38202. abstract="false" native="false" synchronized="false"
  38203. static="false" final="false" visibility="protected"
  38204. deprecated="not deprecated">
  38205. <doc>
  38206. <![CDATA[Returns the Kerberos principal used by the authentication handler.
  38207. @return the Kerberos principal used by the authentication handler.]]>
  38208. </doc>
  38209. </method>
  38210. <method name="getKeytab" return="java.lang.String"
  38211. abstract="false" native="false" synchronized="false"
  38212. static="false" final="false" visibility="protected"
  38213. deprecated="not deprecated">
  38214. <doc>
  38215. <![CDATA[Returns the keytab used by the authentication handler.
  38216. @return the keytab used by the authentication handler.]]>
  38217. </doc>
  38218. </method>
  38219. <method name="authenticate" return="org.apache.hadoop.security.authentication.server.AuthenticationToken"
  38220. abstract="false" native="false" synchronized="false"
  38221. static="false" final="false" visibility="public"
  38222. deprecated="not deprecated">
  38223. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  38224. <param name="response" type="javax.servlet.http.HttpServletResponse"/>
  38225. <exception name="IOException" type="java.io.IOException"/>
  38226. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  38227. <doc>
  38228. <![CDATA[It enforces the the Kerberos SPNEGO authentication sequence returning an {@link AuthenticationToken} only
  38229. after the Kerberos SPNEGO sequence has completed successfully.
  38230. <p/>
  38231. @param request the HTTP client request.
  38232. @param response the HTTP client response.
  38233. @return an authentication token if the Kerberos SPNEGO sequence is complete and valid,
  38234. <code>null</code> if it is in progress (in this case the handler handles the response to the client).
  38235. @throws IOException thrown if an IO error occurred.
  38236. @throws AuthenticationException thrown if Kerberos SPNEGO sequence failed.]]>
  38237. </doc>
  38238. </method>
  38239. <field name="TYPE" type="java.lang.String"
  38240. transient="false" volatile="false"
  38241. static="true" final="true" visibility="public"
  38242. deprecated="not deprecated">
  38243. <doc>
  38244. <![CDATA[Constant that identifies the authentication mechanism.]]>
  38245. </doc>
  38246. </field>
  38247. <field name="PRINCIPAL" type="java.lang.String"
  38248. transient="false" volatile="false"
  38249. static="true" final="true" visibility="public"
  38250. deprecated="not deprecated">
  38251. <doc>
  38252. <![CDATA[Constant for the configuration property that indicates the kerberos principal.]]>
  38253. </doc>
  38254. </field>
  38255. <field name="KEYTAB" type="java.lang.String"
  38256. transient="false" volatile="false"
  38257. static="true" final="true" visibility="public"
  38258. deprecated="not deprecated">
  38259. <doc>
  38260. <![CDATA[Constant for the configuration property that indicates the keytab file path.]]>
  38261. </doc>
  38262. </field>
  38263. <field name="NAME_RULES" type="java.lang.String"
  38264. transient="false" volatile="false"
  38265. static="true" final="true" visibility="public"
  38266. deprecated="not deprecated">
  38267. <doc>
  38268. <![CDATA[Constant for the configuration property that indicates the Kerberos name
  38269. rules for the Kerberos principals.]]>
  38270. </doc>
  38271. </field>
  38272. <doc>
  38273. <![CDATA[The {@link KerberosAuthenticationHandler} implements the Kerberos SPNEGO authentication mechanism for HTTP.
  38274. <p/>
  38275. The supported configuration properties are:
  38276. <ul>
  38277. <li>kerberos.principal: the Kerberos principal to used by the server. As stated by the Kerberos SPNEGO
  38278. specification, it should be <code>HTTP/${HOSTNAME}@{REALM}</code>. The realm can be omitted from the
  38279. principal as the JDK GSS libraries will use the realm name of the configured default realm.
  38280. It does not have a default value.</li>
  38281. <li>kerberos.keytab: the keytab file containing the credentials for the Kerberos principal.
  38282. It does not have a default value.</li>
  38283. </ul>]]>
  38284. </doc>
  38285. </class>
  38286. <!-- end class org.apache.hadoop.security.authentication.server.KerberosAuthenticationHandler -->
  38287. <!-- start class org.apache.hadoop.security.authentication.server.PseudoAuthenticationHandler -->
  38288. <class name="PseudoAuthenticationHandler" extends="java.lang.Object"
  38289. abstract="false"
  38290. static="false" final="false" visibility="public"
  38291. deprecated="not deprecated">
  38292. <implements name="org.apache.hadoop.security.authentication.server.AuthenticationHandler"/>
  38293. <constructor name="PseudoAuthenticationHandler"
  38294. static="false" final="false" visibility="public"
  38295. deprecated="not deprecated">
  38296. </constructor>
  38297. <method name="init"
  38298. abstract="false" native="false" synchronized="false"
  38299. static="false" final="false" visibility="public"
  38300. deprecated="not deprecated">
  38301. <param name="config" type="java.util.Properties"/>
  38302. <exception name="ServletException" type="javax.servlet.ServletException"/>
  38303. <doc>
  38304. <![CDATA[Initializes the authentication handler instance.
  38305. <p/>
  38306. This method is invoked by the {@link AuthenticationFilter#init} method.
  38307. @param config configuration properties to initialize the handler.
  38308. @throws ServletException thrown if the handler could not be initialized.]]>
  38309. </doc>
  38310. </method>
  38311. <method name="getAcceptAnonymous" return="boolean"
  38312. abstract="false" native="false" synchronized="false"
  38313. static="false" final="false" visibility="protected"
  38314. deprecated="not deprecated">
  38315. <doc>
  38316. <![CDATA[Returns if the handler is configured to support anonymous users.
  38317. @return if the handler is configured to support anonymous users.]]>
  38318. </doc>
  38319. </method>
  38320. <method name="destroy"
  38321. abstract="false" native="false" synchronized="false"
  38322. static="false" final="false" visibility="public"
  38323. deprecated="not deprecated">
  38324. <doc>
  38325. <![CDATA[Releases any resources initialized by the authentication handler.
  38326. <p/>
  38327. This implementation does a NOP.]]>
  38328. </doc>
  38329. </method>
  38330. <method name="getType" return="java.lang.String"
  38331. abstract="false" native="false" synchronized="false"
  38332. static="false" final="false" visibility="public"
  38333. deprecated="not deprecated">
  38334. <doc>
  38335. <![CDATA[Returns the authentication type of the authentication handler, 'simple'.
  38336. <p/>
  38337. @return the authentication type of the authentication handler, 'simple'.]]>
  38338. </doc>
  38339. </method>
  38340. <method name="authenticate" return="org.apache.hadoop.security.authentication.server.AuthenticationToken"
  38341. abstract="false" native="false" synchronized="false"
  38342. static="false" final="false" visibility="public"
  38343. deprecated="not deprecated">
  38344. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  38345. <param name="response" type="javax.servlet.http.HttpServletResponse"/>
  38346. <exception name="IOException" type="java.io.IOException"/>
  38347. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  38348. <doc>
  38349. <![CDATA[Authenticates an HTTP client request.
  38350. <p/>
  38351. It extracts the {@link PseudoAuthenticator#USER_NAME} parameter from the query string and creates
  38352. an {@link AuthenticationToken} with it.
  38353. <p/>
  38354. If the HTTP client request does not contain the {@link PseudoAuthenticator#USER_NAME} parameter and
  38355. the handler is configured to allow anonymous users it returns the {@link AuthenticationToken#ANONYMOUS}
  38356. token.
  38357. <p/>
  38358. If the HTTP client request does not contain the {@link PseudoAuthenticator#USER_NAME} parameter and
  38359. the handler is configured to disallow anonymous users it throws an {@link AuthenticationException}.
  38360. @param request the HTTP client request.
  38361. @param response the HTTP client response.
  38362. @return an authentication token if the HTTP client request is accepted and credentials are valid.
  38363. @throws IOException thrown if an IO error occurred.
  38364. @throws AuthenticationException thrown if HTTP client request was not accepted as an authentication request.]]>
  38365. </doc>
  38366. </method>
  38367. <field name="TYPE" type="java.lang.String"
  38368. transient="false" volatile="false"
  38369. static="true" final="true" visibility="public"
  38370. deprecated="not deprecated">
  38371. <doc>
  38372. <![CDATA[Constant that identifies the authentication mechanism.]]>
  38373. </doc>
  38374. </field>
  38375. <field name="ANONYMOUS_ALLOWED" type="java.lang.String"
  38376. transient="false" volatile="false"
  38377. static="true" final="true" visibility="public"
  38378. deprecated="not deprecated">
  38379. <doc>
  38380. <![CDATA[Constant for the configuration property that indicates if anonymous users are allowed.]]>
  38381. </doc>
  38382. </field>
  38383. <doc>
  38384. <![CDATA[The <code>PseudoAuthenticationHandler</code> provides a pseudo authentication mechanism that accepts
  38385. the user name specified as a query string parameter.
  38386. <p/>
  38387. This mimics the model of Hadoop Simple authentication which trust the 'user.name' property provided in
  38388. the configuration object.
  38389. <p/>
  38390. This handler can be configured to support anonymous users.
  38391. <p/>
  38392. The only supported configuration property is:
  38393. <ul>
  38394. <li>simple.anonymous.allowed: <code>true|false</code>, default value is <code>false</code></li>
  38395. </ul>]]>
  38396. </doc>
  38397. </class>
  38398. <!-- end class org.apache.hadoop.security.authentication.server.PseudoAuthenticationHandler -->
  38399. </package>
  38400. <package name="org.apache.hadoop.security.authentication.util">
  38401. <!-- start class org.apache.hadoop.security.authentication.util.KerberosUtil -->
  38402. <class name="KerberosUtil" extends="java.lang.Object"
  38403. abstract="false"
  38404. static="false" final="false" visibility="public"
  38405. deprecated="not deprecated">
  38406. <constructor name="KerberosUtil"
  38407. static="false" final="false" visibility="public"
  38408. deprecated="not deprecated">
  38409. </constructor>
  38410. <method name="getKrb5LoginModuleName" return="java.lang.String"
  38411. abstract="false" native="false" synchronized="false"
  38412. static="true" final="false" visibility="public"
  38413. deprecated="not deprecated">
  38414. </method>
  38415. <method name="getOidInstance" return="org.ietf.jgss.Oid"
  38416. abstract="false" native="false" synchronized="false"
  38417. static="true" final="false" visibility="public"
  38418. deprecated="not deprecated">
  38419. <param name="oidName" type="java.lang.String"/>
  38420. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  38421. <exception name="GSSException" type="org.ietf.jgss.GSSException"/>
  38422. <exception name="NoSuchFieldException" type="java.lang.NoSuchFieldException"/>
  38423. <exception name="IllegalAccessException" type="java.lang.IllegalAccessException"/>
  38424. </method>
  38425. <method name="getDefaultRealm" return="java.lang.String"
  38426. abstract="false" native="false" synchronized="false"
  38427. static="true" final="false" visibility="public"
  38428. deprecated="not deprecated">
  38429. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  38430. <exception name="NoSuchMethodException" type="java.lang.NoSuchMethodException"/>
  38431. <exception name="IllegalArgumentException" type="java.lang.IllegalArgumentException"/>
  38432. <exception name="IllegalAccessException" type="java.lang.IllegalAccessException"/>
  38433. <exception name="InvocationTargetException" type="java.lang.reflect.InvocationTargetException"/>
  38434. </method>
  38435. <method name="getServicePrincipal" return="java.lang.String"
  38436. abstract="false" native="false" synchronized="false"
  38437. static="true" final="true" visibility="public"
  38438. deprecated="not deprecated">
  38439. <param name="service" type="java.lang.String"/>
  38440. <param name="hostname" type="java.lang.String"/>
  38441. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  38442. <doc>
  38443. <![CDATA[Create Kerberos principal for a given service and hostname. It converts
  38444. hostname to lower case. If hostname is null or "0.0.0.0", it uses
  38445. dynamically looked-up fqdn of the current host instead.
  38446. @param service
  38447. Service for which you want to generate the principal.
  38448. @param hostname
  38449. Fully-qualified domain name.
  38450. @return Converted Kerberos principal name.
  38451. @throws UnknownHostException
  38452. If no IP address for the local host could be found.]]>
  38453. </doc>
  38454. </method>
  38455. </class>
  38456. <!-- end class org.apache.hadoop.security.authentication.util.KerberosUtil -->
  38457. <!-- start class org.apache.hadoop.security.authentication.util.Signer -->
  38458. <class name="Signer" extends="java.lang.Object"
  38459. abstract="false"
  38460. static="false" final="false" visibility="public"
  38461. deprecated="not deprecated">
  38462. <constructor name="Signer" type="byte[]"
  38463. static="false" final="false" visibility="public"
  38464. deprecated="not deprecated">
  38465. <doc>
  38466. <![CDATA[Creates a Signer instance using the specified secret.
  38467. @param secret secret to use for creating the digest.]]>
  38468. </doc>
  38469. </constructor>
  38470. <method name="sign" return="java.lang.String"
  38471. abstract="false" native="false" synchronized="false"
  38472. static="false" final="false" visibility="public"
  38473. deprecated="not deprecated">
  38474. <param name="str" type="java.lang.String"/>
  38475. <doc>
  38476. <![CDATA[Returns a signed string.
  38477. <p/>
  38478. The signature '&s=SIGNATURE' is appended at the end of the string.
  38479. @param str string to sign.
  38480. @return the signed string.]]>
  38481. </doc>
  38482. </method>
  38483. <method name="verifyAndExtract" return="java.lang.String"
  38484. abstract="false" native="false" synchronized="false"
  38485. static="false" final="false" visibility="public"
  38486. deprecated="not deprecated">
  38487. <param name="signedStr" type="java.lang.String"/>
  38488. <exception name="SignerException" type="org.apache.hadoop.security.authentication.util.SignerException"/>
  38489. <doc>
  38490. <![CDATA[Verifies a signed string and extracts the original string.
  38491. @param signedStr the signed string to verify and extract.
  38492. @return the extracted original string.
  38493. @throws SignerException thrown if the given string is not a signed string or if the signature is invalid.]]>
  38494. </doc>
  38495. </method>
  38496. <method name="computeSignature" return="java.lang.String"
  38497. abstract="false" native="false" synchronized="false"
  38498. static="false" final="false" visibility="protected"
  38499. deprecated="not deprecated">
  38500. <param name="str" type="java.lang.String"/>
  38501. <doc>
  38502. <![CDATA[Returns then signature of a string.
  38503. @param str string to sign.
  38504. @return the signature for the string.]]>
  38505. </doc>
  38506. </method>
  38507. <doc>
  38508. <![CDATA[Signs strings and verifies signed strings using a SHA digest.]]>
  38509. </doc>
  38510. </class>
  38511. <!-- end class org.apache.hadoop.security.authentication.util.Signer -->
  38512. <!-- start class org.apache.hadoop.security.authentication.util.SignerException -->
  38513. <class name="SignerException" extends="java.lang.Exception"
  38514. abstract="false"
  38515. static="false" final="false" visibility="public"
  38516. deprecated="not deprecated">
  38517. <constructor name="SignerException" type="java.lang.String"
  38518. static="false" final="false" visibility="public"
  38519. deprecated="not deprecated">
  38520. <doc>
  38521. <![CDATA[Creates an exception instance.
  38522. @param msg message for the exception.]]>
  38523. </doc>
  38524. </constructor>
  38525. <doc>
  38526. <![CDATA[Exception thrown by {@link Signer} when a string signature is invalid.]]>
  38527. </doc>
  38528. </class>
  38529. <!-- end class org.apache.hadoop.security.authentication.util.SignerException -->
  38530. </package>
  38531. <package name="org.apache.hadoop.security.authorize">
  38532. <!-- start class org.apache.hadoop.security.authorize.AccessControlList -->
  38533. <class name="AccessControlList" extends="java.lang.Object"
  38534. abstract="false"
  38535. static="false" final="false" visibility="public"
  38536. deprecated="not deprecated">
  38537. <implements name="org.apache.hadoop.io.Writable"/>
  38538. <constructor name="AccessControlList"
  38539. static="false" final="false" visibility="public"
  38540. deprecated="not deprecated">
  38541. <doc>
  38542. <![CDATA[This constructor exists primarily for AccessControlList to be Writable.]]>
  38543. </doc>
  38544. </constructor>
  38545. <constructor name="AccessControlList" type="java.lang.String"
  38546. static="false" final="false" visibility="public"
  38547. deprecated="not deprecated">
  38548. <doc>
  38549. <![CDATA[Construct a new ACL from a String representation of the same.
  38550. The String is a a comma separated list of users and groups.
  38551. The user list comes first and is separated by a space followed
  38552. by the group list. For e.g. "user1,user2 group1,group2"
  38553. @param aclString String representation of the ACL]]>
  38554. </doc>
  38555. </constructor>
  38556. <method name="isAllAllowed" return="boolean"
  38557. abstract="false" native="false" synchronized="false"
  38558. static="false" final="false" visibility="public"
  38559. deprecated="not deprecated">
  38560. </method>
  38561. <method name="addUser"
  38562. abstract="false" native="false" synchronized="false"
  38563. static="false" final="false" visibility="public"
  38564. deprecated="not deprecated">
  38565. <param name="user" type="java.lang.String"/>
  38566. </method>
  38567. <method name="isUserAllowed" return="boolean"
  38568. abstract="false" native="false" synchronized="false"
  38569. static="false" final="false" visibility="public"
  38570. deprecated="not deprecated">
  38571. <param name="ugi" type="org.apache.hadoop.security.UserGroupInformation"/>
  38572. </method>
  38573. <method name="toString" return="java.lang.String"
  38574. abstract="false" native="false" synchronized="false"
  38575. static="false" final="false" visibility="public"
  38576. deprecated="not deprecated">
  38577. </method>
  38578. <method name="write"
  38579. abstract="false" native="false" synchronized="false"
  38580. static="false" final="false" visibility="public"
  38581. deprecated="not deprecated">
  38582. <param name="out" type="java.io.DataOutput"/>
  38583. <exception name="IOException" type="java.io.IOException"/>
  38584. </method>
  38585. <method name="readFields"
  38586. abstract="false" native="false" synchronized="false"
  38587. static="false" final="false" visibility="public"
  38588. deprecated="not deprecated">
  38589. <param name="in" type="java.io.DataInput"/>
  38590. <exception name="IOException" type="java.io.IOException"/>
  38591. </method>
  38592. <method name="getACLString" return="java.lang.String"
  38593. abstract="false" native="false" synchronized="false"
  38594. static="false" final="false" visibility="public"
  38595. deprecated="not deprecated">
  38596. <doc>
  38597. <![CDATA[Returns the String representation of this ACL. Unlike toString() method's
  38598. return value, this String can be directly given to the constructor of
  38599. AccessControlList to build AccessControlList object.
  38600. This is the method used by the serialization method write().]]>
  38601. </doc>
  38602. </method>
  38603. <field name="WILDCARD_ACL_VALUE" type="java.lang.String"
  38604. transient="false" volatile="false"
  38605. static="true" final="true" visibility="public"
  38606. deprecated="not deprecated">
  38607. </field>
  38608. <doc>
  38609. <![CDATA[Class representing a configured access control list.]]>
  38610. </doc>
  38611. </class>
  38612. <!-- end class org.apache.hadoop.security.authorize.AccessControlList -->
  38613. <!-- start class org.apache.hadoop.security.authorize.AuthorizationException -->
  38614. <class name="AuthorizationException" extends="org.apache.hadoop.security.AccessControlException"
  38615. abstract="false"
  38616. static="false" final="false" visibility="public"
  38617. deprecated="not deprecated">
  38618. <constructor name="AuthorizationException"
  38619. static="false" final="false" visibility="public"
  38620. deprecated="not deprecated">
  38621. </constructor>
  38622. <constructor name="AuthorizationException" type="java.lang.String"
  38623. static="false" final="false" visibility="public"
  38624. deprecated="not deprecated">
  38625. </constructor>
  38626. <constructor name="AuthorizationException" type="java.lang.Throwable"
  38627. static="false" final="false" visibility="public"
  38628. deprecated="not deprecated">
  38629. <doc>
  38630. <![CDATA[Constructs a new exception with the specified cause and a detail
  38631. message of <tt>(cause==null ? null : cause.toString())</tt> (which
  38632. typically contains the class and detail message of <tt>cause</tt>).
  38633. @param cause the cause (which is saved for later retrieval by the
  38634. {@link #getCause()} method). (A <tt>null</tt> value is
  38635. permitted, and indicates that the cause is nonexistent or
  38636. unknown.)]]>
  38637. </doc>
  38638. </constructor>
  38639. <method name="getStackTrace" return="java.lang.StackTraceElement[]"
  38640. abstract="false" native="false" synchronized="false"
  38641. static="false" final="false" visibility="public"
  38642. deprecated="not deprecated">
  38643. </method>
  38644. <method name="printStackTrace"
  38645. abstract="false" native="false" synchronized="false"
  38646. static="false" final="false" visibility="public"
  38647. deprecated="not deprecated">
  38648. </method>
  38649. <method name="printStackTrace"
  38650. abstract="false" native="false" synchronized="false"
  38651. static="false" final="false" visibility="public"
  38652. deprecated="not deprecated">
  38653. <param name="s" type="java.io.PrintStream"/>
  38654. </method>
  38655. <method name="printStackTrace"
  38656. abstract="false" native="false" synchronized="false"
  38657. static="false" final="false" visibility="public"
  38658. deprecated="not deprecated">
  38659. <param name="s" type="java.io.PrintWriter"/>
  38660. </method>
  38661. <doc>
  38662. <![CDATA[An exception class for authorization-related issues.
  38663. This class <em>does not</em> provide the stack trace for security purposes.]]>
  38664. </doc>
  38665. </class>
  38666. <!-- end class org.apache.hadoop.security.authorize.AuthorizationException -->
  38667. <!-- start class org.apache.hadoop.security.authorize.PolicyProvider -->
  38668. <class name="PolicyProvider" extends="java.lang.Object"
  38669. abstract="true"
  38670. static="false" final="false" visibility="public"
  38671. deprecated="not deprecated">
  38672. <constructor name="PolicyProvider"
  38673. static="false" final="false" visibility="public"
  38674. deprecated="not deprecated">
  38675. </constructor>
  38676. <method name="getServices" return="org.apache.hadoop.security.authorize.Service[]"
  38677. abstract="true" native="false" synchronized="false"
  38678. static="false" final="false" visibility="public"
  38679. deprecated="not deprecated">
  38680. <doc>
  38681. <![CDATA[Get the {@link Service} definitions from the {@link PolicyProvider}.
  38682. @return the {@link Service} definitions]]>
  38683. </doc>
  38684. </method>
  38685. <field name="POLICY_PROVIDER_CONFIG" type="java.lang.String"
  38686. transient="false" volatile="false"
  38687. static="true" final="true" visibility="public"
  38688. deprecated="not deprecated">
  38689. <doc>
  38690. <![CDATA[Configuration key for the {@link PolicyProvider} implementation.]]>
  38691. </doc>
  38692. </field>
  38693. <field name="DEFAULT_POLICY_PROVIDER" type="org.apache.hadoop.security.authorize.PolicyProvider"
  38694. transient="false" volatile="false"
  38695. static="true" final="true" visibility="public"
  38696. deprecated="not deprecated">
  38697. <doc>
  38698. <![CDATA[A default {@link PolicyProvider} without any defined services.]]>
  38699. </doc>
  38700. </field>
  38701. <doc>
  38702. <![CDATA[{@link PolicyProvider} provides the {@link Service} definitions to the
  38703. security {@link Policy} in effect for Hadoop.]]>
  38704. </doc>
  38705. </class>
  38706. <!-- end class org.apache.hadoop.security.authorize.PolicyProvider -->
  38707. <!-- start class org.apache.hadoop.security.authorize.ProxyUsers -->
  38708. <class name="ProxyUsers" extends="java.lang.Object"
  38709. abstract="false"
  38710. static="false" final="false" visibility="public"
  38711. deprecated="not deprecated">
  38712. <constructor name="ProxyUsers"
  38713. static="false" final="false" visibility="public"
  38714. deprecated="not deprecated">
  38715. </constructor>
  38716. <method name="refreshSuperUserGroupsConfiguration"
  38717. abstract="false" native="false" synchronized="false"
  38718. static="true" final="false" visibility="public"
  38719. deprecated="not deprecated">
  38720. <doc>
  38721. <![CDATA[reread the conf and get new values for "hadoop.proxyuser.*.groups/hosts"]]>
  38722. </doc>
  38723. </method>
  38724. <method name="refreshSuperUserGroupsConfiguration"
  38725. abstract="false" native="false" synchronized="true"
  38726. static="true" final="false" visibility="public"
  38727. deprecated="not deprecated">
  38728. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  38729. <doc>
  38730. <![CDATA[refresh configuration
  38731. @param conf]]>
  38732. </doc>
  38733. </method>
  38734. <method name="getProxySuperuserGroupConfKey" return="java.lang.String"
  38735. abstract="false" native="false" synchronized="false"
  38736. static="true" final="false" visibility="public"
  38737. deprecated="not deprecated">
  38738. <param name="userName" type="java.lang.String"/>
  38739. <doc>
  38740. <![CDATA[Returns configuration key for effective user groups allowed for a superuser
  38741. @param userName name of the superuser
  38742. @return configuration key for superuser groups]]>
  38743. </doc>
  38744. </method>
  38745. <method name="getProxySuperuserIpConfKey" return="java.lang.String"
  38746. abstract="false" native="false" synchronized="false"
  38747. static="true" final="false" visibility="public"
  38748. deprecated="not deprecated">
  38749. <param name="userName" type="java.lang.String"/>
  38750. <doc>
  38751. <![CDATA[Return configuration key for superuser ip addresses
  38752. @param userName name of the superuser
  38753. @return configuration key for superuser ip-addresses]]>
  38754. </doc>
  38755. </method>
  38756. <method name="authorize"
  38757. abstract="false" native="false" synchronized="true"
  38758. static="true" final="false" visibility="public"
  38759. deprecated="not deprecated">
  38760. <param name="user" type="org.apache.hadoop.security.UserGroupInformation"/>
  38761. <param name="remoteAddress" type="java.lang.String"/>
  38762. <param name="newConf" type="org.apache.hadoop.conf.Configuration"/>
  38763. <exception name="AuthorizationException" type="org.apache.hadoop.security.authorize.AuthorizationException"/>
  38764. <doc>
  38765. <![CDATA[Authorize the superuser which is doing doAs
  38766. @param user ugi of the effective or proxy user which contains a real user
  38767. @param remoteAddress the ip address of client
  38768. @param newConf configuration
  38769. @throws AuthorizationException]]>
  38770. </doc>
  38771. </method>
  38772. <field name="CONF_GROUPS" type="java.lang.String"
  38773. transient="false" volatile="false"
  38774. static="true" final="true" visibility="public"
  38775. deprecated="not deprecated">
  38776. </field>
  38777. <field name="CONF_HADOOP_PROXYUSER" type="java.lang.String"
  38778. transient="false" volatile="false"
  38779. static="true" final="true" visibility="public"
  38780. deprecated="not deprecated">
  38781. </field>
  38782. <field name="CONF_HADOOP_PROXYUSER_RE" type="java.lang.String"
  38783. transient="false" volatile="false"
  38784. static="true" final="true" visibility="public"
  38785. deprecated="not deprecated">
  38786. </field>
  38787. </class>
  38788. <!-- end class org.apache.hadoop.security.authorize.ProxyUsers -->
  38789. <!-- start interface org.apache.hadoop.security.authorize.RefreshAuthorizationPolicyProtocol -->
  38790. <interface name="RefreshAuthorizationPolicyProtocol" abstract="true"
  38791. static="false" final="false" visibility="public"
  38792. deprecated="not deprecated">
  38793. <implements name="org.apache.hadoop.ipc.VersionedProtocol"/>
  38794. <method name="refreshServiceAcl"
  38795. abstract="false" native="false" synchronized="false"
  38796. static="false" final="false" visibility="public"
  38797. deprecated="not deprecated">
  38798. <exception name="IOException" type="java.io.IOException"/>
  38799. <doc>
  38800. <![CDATA[Refresh the service-level authorization policy in-effect.
  38801. @throws IOException]]>
  38802. </doc>
  38803. </method>
  38804. <field name="versionID" type="long"
  38805. transient="false" volatile="false"
  38806. static="true" final="true" visibility="public"
  38807. deprecated="not deprecated">
  38808. <doc>
  38809. <![CDATA[Version 1: Initial version]]>
  38810. </doc>
  38811. </field>
  38812. <doc>
  38813. <![CDATA[Protocol which is used to refresh the authorization policy in use currently.]]>
  38814. </doc>
  38815. </interface>
  38816. <!-- end interface org.apache.hadoop.security.authorize.RefreshAuthorizationPolicyProtocol -->
  38817. <!-- start class org.apache.hadoop.security.authorize.Service -->
  38818. <class name="Service" extends="java.lang.Object"
  38819. abstract="false"
  38820. static="false" final="false" visibility="public"
  38821. deprecated="not deprecated">
  38822. <constructor name="Service" type="java.lang.String, java.lang.Class"
  38823. static="false" final="false" visibility="public"
  38824. deprecated="not deprecated">
  38825. </constructor>
  38826. <method name="getServiceKey" return="java.lang.String"
  38827. abstract="false" native="false" synchronized="false"
  38828. static="false" final="false" visibility="public"
  38829. deprecated="not deprecated">
  38830. <doc>
  38831. <![CDATA[Get the configuration key for the service.
  38832. @return the configuration key for the service]]>
  38833. </doc>
  38834. </method>
  38835. <method name="getProtocol" return="java.lang.Class"
  38836. abstract="false" native="false" synchronized="false"
  38837. static="false" final="false" visibility="public"
  38838. deprecated="not deprecated">
  38839. <doc>
  38840. <![CDATA[Get the protocol for the service
  38841. @return the {@link Class} for the protocol]]>
  38842. </doc>
  38843. </method>
  38844. <doc>
  38845. <![CDATA[An abstract definition of <em>service</em> as related to
  38846. Service Level Authorization for Hadoop.
  38847. Each service defines it's configuration key and also the necessary
  38848. {@link Permission} required to access the service.]]>
  38849. </doc>
  38850. </class>
  38851. <!-- end class org.apache.hadoop.security.authorize.Service -->
  38852. <!-- start class org.apache.hadoop.security.authorize.ServiceAuthorizationManager -->
  38853. <class name="ServiceAuthorizationManager" extends="java.lang.Object"
  38854. abstract="false"
  38855. static="false" final="false" visibility="public"
  38856. deprecated="not deprecated">
  38857. <constructor name="ServiceAuthorizationManager"
  38858. static="false" final="false" visibility="public"
  38859. deprecated="not deprecated">
  38860. </constructor>
  38861. <method name="authorize"
  38862. abstract="false" native="false" synchronized="false"
  38863. static="true" final="false" visibility="public"
  38864. deprecated="not deprecated">
  38865. <param name="user" type="org.apache.hadoop.security.UserGroupInformation"/>
  38866. <param name="protocol" type="java.lang.Class"/>
  38867. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  38868. <param name="addr" type="java.net.InetAddress"/>
  38869. <exception name="AuthorizationException" type="org.apache.hadoop.security.authorize.AuthorizationException"/>
  38870. <doc>
  38871. <![CDATA[Authorize the user to access the protocol being used.
  38872. @param user user accessing the service
  38873. @param protocol service being accessed
  38874. @param conf configuration to use
  38875. @param addr InetAddress of the client
  38876. @throws AuthorizationException on authorization failure]]>
  38877. </doc>
  38878. </method>
  38879. <method name="refresh"
  38880. abstract="false" native="false" synchronized="true"
  38881. static="true" final="false" visibility="public"
  38882. deprecated="not deprecated">
  38883. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  38884. <param name="provider" type="org.apache.hadoop.security.authorize.PolicyProvider"/>
  38885. </method>
  38886. <field name="SERVICE_AUTHORIZATION_CONFIG" type="java.lang.String"
  38887. transient="false" volatile="false"
  38888. static="true" final="true" visibility="public"
  38889. deprecated="Use
  38890. {@link CommonConfigurationKeys#HADOOP_SECURITY_AUTHORIZATION}
  38891. instead.">
  38892. <doc>
  38893. <![CDATA[Configuration key for controlling service-level authorization for Hadoop.
  38894. @deprecated Use
  38895. {@link CommonConfigurationKeys#HADOOP_SECURITY_AUTHORIZATION}
  38896. instead.]]>
  38897. </doc>
  38898. </field>
  38899. <doc>
  38900. <![CDATA[An authorization manager which handles service-level authorization
  38901. for incoming service requests.]]>
  38902. </doc>
  38903. </class>
  38904. <!-- end class org.apache.hadoop.security.authorize.ServiceAuthorizationManager -->
  38905. </package>
  38906. <package name="org.apache.hadoop.security.token">
  38907. <!-- start class org.apache.hadoop.security.token.SecretManager -->
  38908. <class name="SecretManager" extends="java.lang.Object"
  38909. abstract="true"
  38910. static="false" final="false" visibility="public"
  38911. deprecated="not deprecated">
  38912. <constructor name="SecretManager"
  38913. static="false" final="false" visibility="public"
  38914. deprecated="not deprecated">
  38915. </constructor>
  38916. <method name="createPassword" return="byte[]"
  38917. abstract="true" native="false" synchronized="false"
  38918. static="false" final="false" visibility="protected"
  38919. deprecated="not deprecated">
  38920. <param name="identifier" type="org.apache.hadoop.security.token.TokenIdentifier"/>
  38921. <doc>
  38922. <![CDATA[Create the password for the given identifier.
  38923. identifier may be modified inside this method.
  38924. @param identifier the identifier to use
  38925. @return the new password]]>
  38926. </doc>
  38927. </method>
  38928. <method name="retrievePassword" return="byte[]"
  38929. abstract="true" native="false" synchronized="false"
  38930. static="false" final="false" visibility="public"
  38931. deprecated="not deprecated">
  38932. <param name="identifier" type="org.apache.hadoop.security.token.TokenIdentifier"/>
  38933. <exception name="SecretManager.InvalidToken" type="org.apache.hadoop.security.token.SecretManager.InvalidToken"/>
  38934. <doc>
  38935. <![CDATA[Retrieve the password for the given token identifier. Should check the date
  38936. or registry to make sure the token hasn't expired or been revoked. Returns
  38937. the relevant password.
  38938. @param identifier the identifier to validate
  38939. @return the password to use
  38940. @throws InvalidToken the token was invalid]]>
  38941. </doc>
  38942. </method>
  38943. <method name="createIdentifier" return="org.apache.hadoop.security.token.TokenIdentifier"
  38944. abstract="true" native="false" synchronized="false"
  38945. static="false" final="false" visibility="public"
  38946. deprecated="not deprecated">
  38947. <doc>
  38948. <![CDATA[Create an empty token identifier.
  38949. @return the newly created empty token identifier]]>
  38950. </doc>
  38951. </method>
  38952. <method name="generateSecret" return="javax.crypto.SecretKey"
  38953. abstract="false" native="false" synchronized="false"
  38954. static="false" final="false" visibility="protected"
  38955. deprecated="not deprecated">
  38956. <doc>
  38957. <![CDATA[Generate a new random secret key.
  38958. @return the new key]]>
  38959. </doc>
  38960. </method>
  38961. <method name="createPassword" return="byte[]"
  38962. abstract="false" native="false" synchronized="false"
  38963. static="true" final="false" visibility="protected"
  38964. deprecated="not deprecated">
  38965. <param name="identifier" type="byte[]"/>
  38966. <param name="key" type="javax.crypto.SecretKey"/>
  38967. <doc>
  38968. <![CDATA[Compute HMAC of the identifier using the secret key and return the
  38969. output as password
  38970. @param identifier the bytes of the identifier
  38971. @param key the secret key
  38972. @return the bytes of the generated password]]>
  38973. </doc>
  38974. </method>
  38975. <method name="createSecretKey" return="javax.crypto.SecretKey"
  38976. abstract="false" native="false" synchronized="false"
  38977. static="true" final="false" visibility="protected"
  38978. deprecated="not deprecated">
  38979. <param name="key" type="byte[]"/>
  38980. <doc>
  38981. <![CDATA[Convert the byte[] to a secret key
  38982. @param key the byte[] to create a secret key from
  38983. @return the secret key]]>
  38984. </doc>
  38985. </method>
  38986. <doc>
  38987. <![CDATA[The server-side secret manager for each token type.
  38988. @param <T> The type of the token identifier]]>
  38989. </doc>
  38990. </class>
  38991. <!-- end class org.apache.hadoop.security.token.SecretManager -->
  38992. <!-- start class org.apache.hadoop.security.token.SecretManager.InvalidToken -->
  38993. <class name="SecretManager.InvalidToken" extends="java.io.IOException"
  38994. abstract="false"
  38995. static="true" final="false" visibility="public"
  38996. deprecated="not deprecated">
  38997. <constructor name="SecretManager.InvalidToken" type="java.lang.String"
  38998. static="false" final="false" visibility="public"
  38999. deprecated="not deprecated">
  39000. </constructor>
  39001. <doc>
  39002. <![CDATA[The token was invalid and the message explains why.]]>
  39003. </doc>
  39004. </class>
  39005. <!-- end class org.apache.hadoop.security.token.SecretManager.InvalidToken -->
  39006. <!-- start class org.apache.hadoop.security.token.Token -->
  39007. <class name="Token" extends="java.lang.Object"
  39008. abstract="false"
  39009. static="false" final="false" visibility="public"
  39010. deprecated="not deprecated">
  39011. <implements name="org.apache.hadoop.io.Writable"/>
  39012. <constructor name="Token" type="org.apache.hadoop.security.token.TokenIdentifier, org.apache.hadoop.security.token.SecretManager"
  39013. static="false" final="false" visibility="public"
  39014. deprecated="not deprecated">
  39015. <doc>
  39016. <![CDATA[Construct a token given a token identifier and a secret manager for the
  39017. type of the token identifier.
  39018. @param id the token identifier
  39019. @param mgr the secret manager]]>
  39020. </doc>
  39021. </constructor>
  39022. <constructor name="Token" type="byte[], byte[], org.apache.hadoop.io.Text, org.apache.hadoop.io.Text"
  39023. static="false" final="false" visibility="public"
  39024. deprecated="not deprecated">
  39025. <doc>
  39026. <![CDATA[Construct a token from the components.
  39027. @param identifier the token identifier
  39028. @param password the token's password
  39029. @param kind the kind of token
  39030. @param service the service for this token]]>
  39031. </doc>
  39032. </constructor>
  39033. <constructor name="Token"
  39034. static="false" final="false" visibility="public"
  39035. deprecated="not deprecated">
  39036. <doc>
  39037. <![CDATA[Default constructor]]>
  39038. </doc>
  39039. </constructor>
  39040. <constructor name="Token" type="org.apache.hadoop.security.token.Token"
  39041. static="false" final="false" visibility="public"
  39042. deprecated="not deprecated">
  39043. <doc>
  39044. <![CDATA[Clone a token.
  39045. @param other the token to clone]]>
  39046. </doc>
  39047. </constructor>
  39048. <method name="getIdentifier" return="byte[]"
  39049. abstract="false" native="false" synchronized="false"
  39050. static="false" final="false" visibility="public"
  39051. deprecated="not deprecated">
  39052. <doc>
  39053. <![CDATA[Get the token identifier
  39054. @return the token identifier]]>
  39055. </doc>
  39056. </method>
  39057. <method name="getPassword" return="byte[]"
  39058. abstract="false" native="false" synchronized="false"
  39059. static="false" final="false" visibility="public"
  39060. deprecated="not deprecated">
  39061. <doc>
  39062. <![CDATA[Get the token password/secret
  39063. @return the token password/secret]]>
  39064. </doc>
  39065. </method>
  39066. <method name="getKind" return="org.apache.hadoop.io.Text"
  39067. abstract="false" native="false" synchronized="false"
  39068. static="false" final="false" visibility="public"
  39069. deprecated="not deprecated">
  39070. <doc>
  39071. <![CDATA[Get the token kind
  39072. @return the kind of the token]]>
  39073. </doc>
  39074. </method>
  39075. <method name="setKind"
  39076. abstract="false" native="false" synchronized="true"
  39077. static="false" final="false" visibility="public"
  39078. deprecated="not deprecated">
  39079. <param name="newKind" type="org.apache.hadoop.io.Text"/>
  39080. <doc>
  39081. <![CDATA[Set the token kind. This is only intended to be used by services that
  39082. wrap another service's token, such as HFTP wrapping HDFS.
  39083. @param newKind]]>
  39084. </doc>
  39085. </method>
  39086. <method name="getService" return="org.apache.hadoop.io.Text"
  39087. abstract="false" native="false" synchronized="false"
  39088. static="false" final="false" visibility="public"
  39089. deprecated="not deprecated">
  39090. <doc>
  39091. <![CDATA[Get the service on which the token is supposed to be used
  39092. @return the service name]]>
  39093. </doc>
  39094. </method>
  39095. <method name="setService"
  39096. abstract="false" native="false" synchronized="false"
  39097. static="false" final="false" visibility="public"
  39098. deprecated="not deprecated">
  39099. <param name="newService" type="org.apache.hadoop.io.Text"/>
  39100. <doc>
  39101. <![CDATA[Set the service on which the token is supposed to be used
  39102. @param newService the service name]]>
  39103. </doc>
  39104. </method>
  39105. <method name="readFields"
  39106. abstract="false" native="false" synchronized="false"
  39107. static="false" final="false" visibility="public"
  39108. deprecated="not deprecated">
  39109. <param name="in" type="java.io.DataInput"/>
  39110. <exception name="IOException" type="java.io.IOException"/>
  39111. <doc>
  39112. <![CDATA[{@inheritDoc}]]>
  39113. </doc>
  39114. </method>
  39115. <method name="write"
  39116. abstract="false" native="false" synchronized="false"
  39117. static="false" final="false" visibility="public"
  39118. deprecated="not deprecated">
  39119. <param name="out" type="java.io.DataOutput"/>
  39120. <exception name="IOException" type="java.io.IOException"/>
  39121. <doc>
  39122. <![CDATA[{@inheritDoc}]]>
  39123. </doc>
  39124. </method>
  39125. <method name="encodeToUrlString" return="java.lang.String"
  39126. abstract="false" native="false" synchronized="false"
  39127. static="false" final="false" visibility="public"
  39128. deprecated="not deprecated">
  39129. <exception name="IOException" type="java.io.IOException"/>
  39130. <doc>
  39131. <![CDATA[Encode this token as a url safe string
  39132. @return the encoded string
  39133. @throws IOException]]>
  39134. </doc>
  39135. </method>
  39136. <method name="decodeFromUrlString"
  39137. abstract="false" native="false" synchronized="false"
  39138. static="false" final="false" visibility="public"
  39139. deprecated="not deprecated">
  39140. <param name="newValue" type="java.lang.String"/>
  39141. <exception name="IOException" type="java.io.IOException"/>
  39142. <doc>
  39143. <![CDATA[Decode the given url safe string into this token.
  39144. @param newValue the encoded string
  39145. @throws IOException]]>
  39146. </doc>
  39147. </method>
  39148. <method name="equals" return="boolean"
  39149. abstract="false" native="false" synchronized="false"
  39150. static="false" final="false" visibility="public"
  39151. deprecated="not deprecated">
  39152. <param name="right" type="java.lang.Object"/>
  39153. </method>
  39154. <method name="hashCode" return="int"
  39155. abstract="false" native="false" synchronized="false"
  39156. static="false" final="false" visibility="public"
  39157. deprecated="not deprecated">
  39158. </method>
  39159. <method name="toString" return="java.lang.String"
  39160. abstract="false" native="false" synchronized="false"
  39161. static="false" final="false" visibility="public"
  39162. deprecated="not deprecated">
  39163. </method>
  39164. <method name="isManaged" return="boolean"
  39165. abstract="false" native="false" synchronized="false"
  39166. static="false" final="false" visibility="public"
  39167. deprecated="not deprecated">
  39168. <exception name="IOException" type="java.io.IOException"/>
  39169. <doc>
  39170. <![CDATA[Is this token managed so that it can be renewed or cancelled?
  39171. @return true, if it can be renewed and cancelled.]]>
  39172. </doc>
  39173. </method>
  39174. <method name="renew" return="long"
  39175. abstract="false" native="false" synchronized="false"
  39176. static="false" final="false" visibility="public"
  39177. deprecated="not deprecated">
  39178. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  39179. <exception name="IOException" type="java.io.IOException"/>
  39180. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  39181. <doc>
  39182. <![CDATA[Renew this delegation token
  39183. @return the new expiration time
  39184. @throws IOException
  39185. @throws InterruptedException]]>
  39186. </doc>
  39187. </method>
  39188. <method name="cancel"
  39189. abstract="false" native="false" synchronized="false"
  39190. static="false" final="false" visibility="public"
  39191. deprecated="not deprecated">
  39192. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  39193. <exception name="IOException" type="java.io.IOException"/>
  39194. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  39195. <doc>
  39196. <![CDATA[Cancel this delegation token
  39197. @throws IOException
  39198. @throws InterruptedException]]>
  39199. </doc>
  39200. </method>
  39201. <field name="LOG" type="org.apache.commons.logging.Log"
  39202. transient="false" volatile="false"
  39203. static="true" final="true" visibility="public"
  39204. deprecated="not deprecated">
  39205. </field>
  39206. <doc>
  39207. <![CDATA[The client-side form of the token.]]>
  39208. </doc>
  39209. </class>
  39210. <!-- end class org.apache.hadoop.security.token.Token -->
  39211. <!-- start class org.apache.hadoop.security.token.Token.TrivialRenewer -->
  39212. <class name="Token.TrivialRenewer" extends="org.apache.hadoop.security.token.TokenRenewer"
  39213. abstract="false"
  39214. static="true" final="false" visibility="public"
  39215. deprecated="not deprecated">
  39216. <constructor name="Token.TrivialRenewer"
  39217. static="false" final="false" visibility="public"
  39218. deprecated="not deprecated">
  39219. </constructor>
  39220. <method name="getKind" return="org.apache.hadoop.io.Text"
  39221. abstract="false" native="false" synchronized="false"
  39222. static="false" final="false" visibility="protected"
  39223. deprecated="not deprecated">
  39224. </method>
  39225. <method name="handleKind" return="boolean"
  39226. abstract="false" native="false" synchronized="false"
  39227. static="false" final="false" visibility="public"
  39228. deprecated="not deprecated">
  39229. <param name="kind" type="org.apache.hadoop.io.Text"/>
  39230. </method>
  39231. <method name="isManaged" return="boolean"
  39232. abstract="false" native="false" synchronized="false"
  39233. static="false" final="false" visibility="public"
  39234. deprecated="not deprecated">
  39235. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  39236. </method>
  39237. <method name="renew" return="long"
  39238. abstract="false" native="false" synchronized="false"
  39239. static="false" final="false" visibility="public"
  39240. deprecated="not deprecated">
  39241. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  39242. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  39243. </method>
  39244. <method name="cancel"
  39245. abstract="false" native="false" synchronized="false"
  39246. static="false" final="false" visibility="public"
  39247. deprecated="not deprecated">
  39248. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  39249. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  39250. <exception name="IOException" type="java.io.IOException"/>
  39251. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  39252. </method>
  39253. <doc>
  39254. <![CDATA[A trivial renewer for token kinds that aren't managed. Sub-classes need
  39255. to implement getKind for their token kind.]]>
  39256. </doc>
  39257. </class>
  39258. <!-- end class org.apache.hadoop.security.token.Token.TrivialRenewer -->
  39259. <!-- start class org.apache.hadoop.security.token.TokenIdentifier -->
  39260. <class name="TokenIdentifier" extends="java.lang.Object"
  39261. abstract="true"
  39262. static="false" final="false" visibility="public"
  39263. deprecated="not deprecated">
  39264. <implements name="org.apache.hadoop.io.Writable"/>
  39265. <constructor name="TokenIdentifier"
  39266. static="false" final="false" visibility="public"
  39267. deprecated="not deprecated">
  39268. </constructor>
  39269. <method name="getKind" return="org.apache.hadoop.io.Text"
  39270. abstract="true" native="false" synchronized="false"
  39271. static="false" final="false" visibility="public"
  39272. deprecated="not deprecated">
  39273. <doc>
  39274. <![CDATA[Get the token kind
  39275. @return the kind of the token]]>
  39276. </doc>
  39277. </method>
  39278. <method name="getUser" return="org.apache.hadoop.security.UserGroupInformation"
  39279. abstract="true" native="false" synchronized="false"
  39280. static="false" final="false" visibility="public"
  39281. deprecated="not deprecated">
  39282. <doc>
  39283. <![CDATA[Get the Ugi with the username encoded in the token identifier
  39284. @return the username. null is returned if username in the identifier is
  39285. empty or null.]]>
  39286. </doc>
  39287. </method>
  39288. <method name="getBytes" return="byte[]"
  39289. abstract="false" native="false" synchronized="false"
  39290. static="false" final="false" visibility="public"
  39291. deprecated="not deprecated">
  39292. <doc>
  39293. <![CDATA[Get the bytes for the token identifier
  39294. @return the bytes of the identifier]]>
  39295. </doc>
  39296. </method>
  39297. <doc>
  39298. <![CDATA[An identifier that identifies a token, may contain public information
  39299. about a token, including its kind (or type).]]>
  39300. </doc>
  39301. </class>
  39302. <!-- end class org.apache.hadoop.security.token.TokenIdentifier -->
  39303. <!-- start interface org.apache.hadoop.security.token.TokenInfo -->
  39304. <interface name="TokenInfo" abstract="true"
  39305. static="false" final="false" visibility="public"
  39306. deprecated="not deprecated">
  39307. <implements name="java.lang.annotation.Annotation"/>
  39308. <method name="value" return="java.lang.Class"
  39309. abstract="false" native="false" synchronized="false"
  39310. static="false" final="false" visibility="public"
  39311. deprecated="not deprecated">
  39312. <doc>
  39313. <![CDATA[The type of TokenSelector to be used]]>
  39314. </doc>
  39315. </method>
  39316. <doc>
  39317. <![CDATA[Indicates Token related information to be used]]>
  39318. </doc>
  39319. </interface>
  39320. <!-- end interface org.apache.hadoop.security.token.TokenInfo -->
  39321. <!-- start class org.apache.hadoop.security.token.TokenRenewer -->
  39322. <class name="TokenRenewer" extends="java.lang.Object"
  39323. abstract="true"
  39324. static="false" final="false" visibility="public"
  39325. deprecated="not deprecated">
  39326. <constructor name="TokenRenewer"
  39327. static="false" final="false" visibility="public"
  39328. deprecated="not deprecated">
  39329. </constructor>
  39330. <method name="handleKind" return="boolean"
  39331. abstract="true" native="false" synchronized="false"
  39332. static="false" final="false" visibility="public"
  39333. deprecated="not deprecated">
  39334. <param name="kind" type="org.apache.hadoop.io.Text"/>
  39335. <doc>
  39336. <![CDATA[Does this renewer handle this kind of token?
  39337. @param kind the kind of the token
  39338. @return true if this renewer can renew it]]>
  39339. </doc>
  39340. </method>
  39341. <method name="isManaged" return="boolean"
  39342. abstract="true" native="false" synchronized="false"
  39343. static="false" final="false" visibility="public"
  39344. deprecated="not deprecated">
  39345. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  39346. <exception name="IOException" type="java.io.IOException"/>
  39347. <doc>
  39348. <![CDATA[Is the given token managed? Only managed tokens may be renewed or
  39349. cancelled.
  39350. @param token the token being checked
  39351. @return true if the token may be renewed or cancelled
  39352. @throws IOException]]>
  39353. </doc>
  39354. </method>
  39355. <method name="renew" return="long"
  39356. abstract="true" native="false" synchronized="false"
  39357. static="false" final="false" visibility="public"
  39358. deprecated="not deprecated">
  39359. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  39360. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  39361. <exception name="IOException" type="java.io.IOException"/>
  39362. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  39363. <doc>
  39364. <![CDATA[Renew the given token.
  39365. @return the new expiration time
  39366. @throws IOException
  39367. @throws InterruptedException]]>
  39368. </doc>
  39369. </method>
  39370. <method name="cancel"
  39371. abstract="true" native="false" synchronized="false"
  39372. static="false" final="false" visibility="public"
  39373. deprecated="not deprecated">
  39374. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  39375. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  39376. <exception name="IOException" type="java.io.IOException"/>
  39377. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  39378. <doc>
  39379. <![CDATA[Cancel the given token
  39380. @throws IOException
  39381. @throws InterruptedException]]>
  39382. </doc>
  39383. </method>
  39384. <doc>
  39385. <![CDATA[This is the interface for plugins that handle tokens.]]>
  39386. </doc>
  39387. </class>
  39388. <!-- end class org.apache.hadoop.security.token.TokenRenewer -->
  39389. <!-- start interface org.apache.hadoop.security.token.TokenSelector -->
  39390. <interface name="TokenSelector" abstract="true"
  39391. static="false" final="false" visibility="public"
  39392. deprecated="not deprecated">
  39393. <method name="selectToken" return="org.apache.hadoop.security.token.Token"
  39394. abstract="false" native="false" synchronized="false"
  39395. static="false" final="false" visibility="public"
  39396. deprecated="not deprecated">
  39397. <param name="service" type="org.apache.hadoop.io.Text"/>
  39398. <param name="tokens" type="java.util.Collection"/>
  39399. </method>
  39400. <doc>
  39401. <![CDATA[Select token of type T from tokens for use with named service
  39402. @param <T>
  39403. T extends TokenIdentifier]]>
  39404. </doc>
  39405. </interface>
  39406. <!-- end interface org.apache.hadoop.security.token.TokenSelector -->
  39407. </package>
  39408. <package name="org.apache.hadoop.security.token.delegation">
  39409. <!-- start class org.apache.hadoop.security.token.delegation.AbstractDelegationTokenIdentifier -->
  39410. <class name="AbstractDelegationTokenIdentifier" extends="org.apache.hadoop.security.token.TokenIdentifier"
  39411. abstract="true"
  39412. static="false" final="false" visibility="public"
  39413. deprecated="not deprecated">
  39414. <constructor name="AbstractDelegationTokenIdentifier"
  39415. static="false" final="false" visibility="public"
  39416. deprecated="not deprecated">
  39417. </constructor>
  39418. <constructor name="AbstractDelegationTokenIdentifier" type="org.apache.hadoop.io.Text, org.apache.hadoop.io.Text, org.apache.hadoop.io.Text"
  39419. static="false" final="false" visibility="public"
  39420. deprecated="not deprecated">
  39421. </constructor>
  39422. <method name="getKind" return="org.apache.hadoop.io.Text"
  39423. abstract="true" native="false" synchronized="false"
  39424. static="false" final="false" visibility="public"
  39425. deprecated="not deprecated">
  39426. </method>
  39427. <method name="getUser" return="org.apache.hadoop.security.UserGroupInformation"
  39428. abstract="false" native="false" synchronized="false"
  39429. static="false" final="false" visibility="public"
  39430. deprecated="not deprecated">
  39431. <doc>
  39432. <![CDATA[Get the username encoded in the token identifier
  39433. @return the username or owner]]>
  39434. </doc>
  39435. </method>
  39436. <method name="getRenewer" return="org.apache.hadoop.io.Text"
  39437. abstract="false" native="false" synchronized="false"
  39438. static="false" final="false" visibility="public"
  39439. deprecated="not deprecated">
  39440. </method>
  39441. <method name="setIssueDate"
  39442. abstract="false" native="false" synchronized="false"
  39443. static="false" final="false" visibility="public"
  39444. deprecated="not deprecated">
  39445. <param name="issueDate" type="long"/>
  39446. </method>
  39447. <method name="getIssueDate" return="long"
  39448. abstract="false" native="false" synchronized="false"
  39449. static="false" final="false" visibility="public"
  39450. deprecated="not deprecated">
  39451. </method>
  39452. <method name="setMaxDate"
  39453. abstract="false" native="false" synchronized="false"
  39454. static="false" final="false" visibility="public"
  39455. deprecated="not deprecated">
  39456. <param name="maxDate" type="long"/>
  39457. </method>
  39458. <method name="getMaxDate" return="long"
  39459. abstract="false" native="false" synchronized="false"
  39460. static="false" final="false" visibility="public"
  39461. deprecated="not deprecated">
  39462. </method>
  39463. <method name="setSequenceNumber"
  39464. abstract="false" native="false" synchronized="false"
  39465. static="false" final="false" visibility="public"
  39466. deprecated="not deprecated">
  39467. <param name="seqNum" type="int"/>
  39468. </method>
  39469. <method name="getSequenceNumber" return="int"
  39470. abstract="false" native="false" synchronized="false"
  39471. static="false" final="false" visibility="public"
  39472. deprecated="not deprecated">
  39473. </method>
  39474. <method name="setMasterKeyId"
  39475. abstract="false" native="false" synchronized="false"
  39476. static="false" final="false" visibility="public"
  39477. deprecated="not deprecated">
  39478. <param name="newId" type="int"/>
  39479. </method>
  39480. <method name="getMasterKeyId" return="int"
  39481. abstract="false" native="false" synchronized="false"
  39482. static="false" final="false" visibility="public"
  39483. deprecated="not deprecated">
  39484. </method>
  39485. <method name="equals" return="boolean"
  39486. abstract="false" native="false" synchronized="false"
  39487. static="false" final="false" visibility="public"
  39488. deprecated="not deprecated">
  39489. <param name="obj" type="java.lang.Object"/>
  39490. <doc>
  39491. <![CDATA[{@inheritDoc}]]>
  39492. </doc>
  39493. </method>
  39494. <method name="hashCode" return="int"
  39495. abstract="false" native="false" synchronized="false"
  39496. static="false" final="false" visibility="public"
  39497. deprecated="not deprecated">
  39498. <doc>
  39499. <![CDATA[{@inheritDoc}]]>
  39500. </doc>
  39501. </method>
  39502. <method name="readFields"
  39503. abstract="false" native="false" synchronized="false"
  39504. static="false" final="false" visibility="public"
  39505. deprecated="not deprecated">
  39506. <param name="in" type="java.io.DataInput"/>
  39507. <exception name="IOException" type="java.io.IOException"/>
  39508. </method>
  39509. <method name="write"
  39510. abstract="false" native="false" synchronized="false"
  39511. static="false" final="false" visibility="public"
  39512. deprecated="not deprecated">
  39513. <param name="out" type="java.io.DataOutput"/>
  39514. <exception name="IOException" type="java.io.IOException"/>
  39515. </method>
  39516. <method name="toString" return="java.lang.String"
  39517. abstract="false" native="false" synchronized="false"
  39518. static="false" final="false" visibility="public"
  39519. deprecated="not deprecated">
  39520. </method>
  39521. </class>
  39522. <!-- end class org.apache.hadoop.security.token.delegation.AbstractDelegationTokenIdentifier -->
  39523. <!-- start class org.apache.hadoop.security.token.delegation.AbstractDelegationTokenSecretManager -->
  39524. <class name="AbstractDelegationTokenSecretManager" extends="org.apache.hadoop.security.token.SecretManager"
  39525. abstract="true"
  39526. static="false" final="false" visibility="public"
  39527. deprecated="not deprecated">
  39528. <constructor name="AbstractDelegationTokenSecretManager" type="long, long, long, long"
  39529. static="false" final="false" visibility="public"
  39530. deprecated="not deprecated">
  39531. </constructor>
  39532. <method name="startThreads"
  39533. abstract="false" native="false" synchronized="true"
  39534. static="false" final="false" visibility="public"
  39535. deprecated="not deprecated">
  39536. <exception name="IOException" type="java.io.IOException"/>
  39537. <doc>
  39538. <![CDATA[should be called before this object is used]]>
  39539. </doc>
  39540. </method>
  39541. <method name="isRunning" return="boolean"
  39542. abstract="false" native="false" synchronized="true"
  39543. static="false" final="false" visibility="public"
  39544. deprecated="not deprecated">
  39545. <doc>
  39546. <![CDATA[is secretMgr running
  39547. @return true if secret mgr is running]]>
  39548. </doc>
  39549. </method>
  39550. <method name="addKey"
  39551. abstract="false" native="false" synchronized="true"
  39552. static="false" final="false" visibility="public"
  39553. deprecated="not deprecated">
  39554. <param name="key" type="org.apache.hadoop.security.token.delegation.DelegationKey"/>
  39555. <exception name="IOException" type="java.io.IOException"/>
  39556. <doc>
  39557. <![CDATA[Add a previously used master key to cache (when NN restarts),
  39558. should be called before activate().]]>
  39559. </doc>
  39560. </method>
  39561. <method name="getAllKeys" return="org.apache.hadoop.security.token.delegation.DelegationKey[]"
  39562. abstract="false" native="false" synchronized="true"
  39563. static="false" final="false" visibility="public"
  39564. deprecated="not deprecated">
  39565. </method>
  39566. <method name="logUpdateMasterKey"
  39567. abstract="false" native="false" synchronized="false"
  39568. static="false" final="false" visibility="protected"
  39569. deprecated="not deprecated">
  39570. <param name="key" type="org.apache.hadoop.security.token.delegation.DelegationKey"/>
  39571. <exception name="IOException" type="java.io.IOException"/>
  39572. </method>
  39573. <method name="createPassword" return="byte[]"
  39574. abstract="false" native="false" synchronized="true"
  39575. static="false" final="false" visibility="protected"
  39576. deprecated="not deprecated">
  39577. <param name="identifier" type="org.apache.hadoop.security.token.delegation.AbstractDelegationTokenIdentifier"/>
  39578. </method>
  39579. <method name="retrievePassword" return="byte[]"
  39580. abstract="false" native="false" synchronized="true"
  39581. static="false" final="false" visibility="public"
  39582. deprecated="not deprecated">
  39583. <param name="identifier" type="org.apache.hadoop.security.token.delegation.AbstractDelegationTokenIdentifier"/>
  39584. <exception name="SecretManager.InvalidToken" type="org.apache.hadoop.security.token.SecretManager.InvalidToken"/>
  39585. </method>
  39586. <method name="verifyToken"
  39587. abstract="false" native="false" synchronized="true"
  39588. static="false" final="false" visibility="public"
  39589. deprecated="not deprecated">
  39590. <param name="identifier" type="org.apache.hadoop.security.token.delegation.AbstractDelegationTokenIdentifier"/>
  39591. <param name="password" type="byte[]"/>
  39592. <exception name="SecretManager.InvalidToken" type="org.apache.hadoop.security.token.SecretManager.InvalidToken"/>
  39593. <doc>
  39594. <![CDATA[Verifies that the given identifier and password are valid and match.
  39595. @param identifier Token identifier.
  39596. @param password Password in the token.
  39597. @throws InvalidToken]]>
  39598. </doc>
  39599. </method>
  39600. <method name="renewToken" return="long"
  39601. abstract="false" native="false" synchronized="true"
  39602. static="false" final="false" visibility="public"
  39603. deprecated="not deprecated">
  39604. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  39605. <param name="renewer" type="java.lang.String"/>
  39606. <exception name="SecretManager.InvalidToken" type="org.apache.hadoop.security.token.SecretManager.InvalidToken"/>
  39607. <exception name="IOException" type="java.io.IOException"/>
  39608. <doc>
  39609. <![CDATA[Renew a delegation token.
  39610. @param token the token to renew
  39611. @param renewer the full principal name of the user doing the renewal
  39612. @return the new expiration time
  39613. @throws InvalidToken if the token is invalid
  39614. @throws AccessControlException if the user can't renew token]]>
  39615. </doc>
  39616. </method>
  39617. <method name="cancelToken" return="org.apache.hadoop.security.token.delegation.AbstractDelegationTokenIdentifier"
  39618. abstract="false" native="false" synchronized="true"
  39619. static="false" final="false" visibility="public"
  39620. deprecated="not deprecated">
  39621. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  39622. <param name="canceller" type="java.lang.String"/>
  39623. <exception name="IOException" type="java.io.IOException"/>
  39624. <doc>
  39625. <![CDATA[Cancel a token by removing it from cache.
  39626. @return Identifier of the canceled token
  39627. @throws InvalidToken for invalid token
  39628. @throws AccessControlException if the user isn't allowed to cancel]]>
  39629. </doc>
  39630. </method>
  39631. <method name="createSecretKey" return="javax.crypto.SecretKey"
  39632. abstract="false" native="false" synchronized="false"
  39633. static="true" final="false" visibility="public"
  39634. deprecated="not deprecated">
  39635. <param name="key" type="byte[]"/>
  39636. <doc>
  39637. <![CDATA[Convert the byte[] to a secret key
  39638. @param key the byte[] to create the secret key from
  39639. @return the secret key]]>
  39640. </doc>
  39641. </method>
  39642. <method name="stopThreads"
  39643. abstract="false" native="false" synchronized="false"
  39644. static="false" final="false" visibility="public"
  39645. deprecated="not deprecated">
  39646. </method>
  39647. <field name="currentTokens" type="java.util.Map"
  39648. transient="false" volatile="false"
  39649. static="false" final="true" visibility="protected"
  39650. deprecated="not deprecated">
  39651. <doc>
  39652. <![CDATA[Cache of currently valid tokens, mapping from DelegationTokenIdentifier
  39653. to DelegationTokenInformation. Protected by this object lock.]]>
  39654. </doc>
  39655. </field>
  39656. <field name="delegationTokenSequenceNumber" type="int"
  39657. transient="false" volatile="false"
  39658. static="false" final="false" visibility="protected"
  39659. deprecated="not deprecated">
  39660. <doc>
  39661. <![CDATA[Sequence number to create DelegationTokenIdentifier.
  39662. Protected by this object lock.]]>
  39663. </doc>
  39664. </field>
  39665. <field name="allKeys" type="java.util.Map"
  39666. transient="false" volatile="false"
  39667. static="false" final="true" visibility="protected"
  39668. deprecated="not deprecated">
  39669. <doc>
  39670. <![CDATA[Access to allKeys is protected by this object lock]]>
  39671. </doc>
  39672. </field>
  39673. <field name="currentId" type="int"
  39674. transient="false" volatile="false"
  39675. static="false" final="false" visibility="protected"
  39676. deprecated="not deprecated">
  39677. <doc>
  39678. <![CDATA[Access to currentId is protected by this object lock.]]>
  39679. </doc>
  39680. </field>
  39681. <field name="running" type="boolean"
  39682. transient="false" volatile="true"
  39683. static="false" final="false" visibility="protected"
  39684. deprecated="not deprecated">
  39685. </field>
  39686. <field name="noInterruptsLock" type="java.lang.Object"
  39687. transient="false" volatile="false"
  39688. static="false" final="false" visibility="protected"
  39689. deprecated="not deprecated">
  39690. <doc>
  39691. <![CDATA[If the delegation token update thread holds this lock, it will
  39692. not get interrupted.]]>
  39693. </doc>
  39694. </field>
  39695. </class>
  39696. <!-- end class org.apache.hadoop.security.token.delegation.AbstractDelegationTokenSecretManager -->
  39697. <!-- start class org.apache.hadoop.security.token.delegation.AbstractDelegationTokenSecretManager.DelegationTokenInformation -->
  39698. <class name="AbstractDelegationTokenSecretManager.DelegationTokenInformation" extends="java.lang.Object"
  39699. abstract="false"
  39700. static="true" final="false" visibility="public"
  39701. deprecated="not deprecated">
  39702. <constructor name="AbstractDelegationTokenSecretManager.DelegationTokenInformation" type="long, byte[]"
  39703. static="false" final="false" visibility="public"
  39704. deprecated="not deprecated">
  39705. </constructor>
  39706. <method name="getRenewDate" return="long"
  39707. abstract="false" native="false" synchronized="false"
  39708. static="false" final="false" visibility="public"
  39709. deprecated="not deprecated">
  39710. <doc>
  39711. <![CDATA[returns renew date]]>
  39712. </doc>
  39713. </method>
  39714. <doc>
  39715. <![CDATA[Class to encapsulate a token's renew date and password.]]>
  39716. </doc>
  39717. </class>
  39718. <!-- end class org.apache.hadoop.security.token.delegation.AbstractDelegationTokenSecretManager.DelegationTokenInformation -->
  39719. <!-- start class org.apache.hadoop.security.token.delegation.AbstractDelegationTokenSelector -->
  39720. <class name="AbstractDelegationTokenSelector" extends="java.lang.Object"
  39721. abstract="false"
  39722. static="false" final="false" visibility="public"
  39723. deprecated="not deprecated">
  39724. <implements name="org.apache.hadoop.security.token.TokenSelector"/>
  39725. <constructor name="AbstractDelegationTokenSelector" type="org.apache.hadoop.io.Text"
  39726. static="false" final="false" visibility="protected"
  39727. deprecated="not deprecated">
  39728. </constructor>
  39729. <method name="selectToken" return="org.apache.hadoop.security.token.Token"
  39730. abstract="false" native="false" synchronized="false"
  39731. static="false" final="false" visibility="public"
  39732. deprecated="not deprecated">
  39733. <param name="service" type="org.apache.hadoop.io.Text"/>
  39734. <param name="tokens" type="java.util.Collection"/>
  39735. </method>
  39736. <doc>
  39737. <![CDATA[Look through tokens to find the first delegation token that matches the
  39738. service and return it.]]>
  39739. </doc>
  39740. </class>
  39741. <!-- end class org.apache.hadoop.security.token.delegation.AbstractDelegationTokenSelector -->
  39742. <!-- start class org.apache.hadoop.security.token.delegation.DelegationKey -->
  39743. <class name="DelegationKey" extends="java.lang.Object"
  39744. abstract="false"
  39745. static="false" final="false" visibility="public"
  39746. deprecated="not deprecated">
  39747. <implements name="org.apache.hadoop.io.Writable"/>
  39748. <constructor name="DelegationKey"
  39749. static="false" final="false" visibility="public"
  39750. deprecated="not deprecated">
  39751. </constructor>
  39752. <constructor name="DelegationKey" type="int, long, javax.crypto.SecretKey"
  39753. static="false" final="false" visibility="public"
  39754. deprecated="not deprecated">
  39755. </constructor>
  39756. <method name="getKeyId" return="int"
  39757. abstract="false" native="false" synchronized="false"
  39758. static="false" final="false" visibility="public"
  39759. deprecated="not deprecated">
  39760. </method>
  39761. <method name="getExpiryDate" return="long"
  39762. abstract="false" native="false" synchronized="false"
  39763. static="false" final="false" visibility="public"
  39764. deprecated="not deprecated">
  39765. </method>
  39766. <method name="getKey" return="javax.crypto.SecretKey"
  39767. abstract="false" native="false" synchronized="false"
  39768. static="false" final="false" visibility="public"
  39769. deprecated="not deprecated">
  39770. </method>
  39771. <method name="setExpiryDate"
  39772. abstract="false" native="false" synchronized="false"
  39773. static="false" final="false" visibility="public"
  39774. deprecated="not deprecated">
  39775. <param name="expiryDate" type="long"/>
  39776. </method>
  39777. <method name="write"
  39778. abstract="false" native="false" synchronized="false"
  39779. static="false" final="false" visibility="public"
  39780. deprecated="not deprecated">
  39781. <param name="out" type="java.io.DataOutput"/>
  39782. <exception name="IOException" type="java.io.IOException"/>
  39783. </method>
  39784. <method name="readFields"
  39785. abstract="false" native="false" synchronized="false"
  39786. static="false" final="false" visibility="public"
  39787. deprecated="not deprecated">
  39788. <param name="in" type="java.io.DataInput"/>
  39789. <exception name="IOException" type="java.io.IOException"/>
  39790. </method>
  39791. <doc>
  39792. <![CDATA[Key used for generating and verifying delegation tokens]]>
  39793. </doc>
  39794. </class>
  39795. <!-- end class org.apache.hadoop.security.token.delegation.DelegationKey -->
  39796. </package>
  39797. <package name="org.apache.hadoop.util">
  39798. <!-- start class org.apache.hadoop.util.ChecksumUtil -->
  39799. <class name="ChecksumUtil" extends="java.lang.Object"
  39800. abstract="false"
  39801. static="false" final="false" visibility="public"
  39802. deprecated="not deprecated">
  39803. <constructor name="ChecksumUtil"
  39804. static="false" final="false" visibility="public"
  39805. deprecated="not deprecated">
  39806. </constructor>
  39807. <method name="updateChunkChecksum"
  39808. abstract="false" native="false" synchronized="false"
  39809. static="true" final="false" visibility="public"
  39810. deprecated="not deprecated">
  39811. <param name="buf" type="byte[]"/>
  39812. <param name="checksumOff" type="int"/>
  39813. <param name="dataOff" type="int"/>
  39814. <param name="dataLen" type="int"/>
  39815. <param name="checksum" type="org.apache.hadoop.util.DataChecksum"/>
  39816. <exception name="IOException" type="java.io.IOException"/>
  39817. <doc>
  39818. <![CDATA[updates the checksum for a buffer
  39819. @param buf - buffer to update the checksum in
  39820. @param checksumOff - offset in the buffer where the checksum is to update
  39821. @param dataOff - offset in the buffer of the data
  39822. @param dataLen - length of data to compute checksum on]]>
  39823. </doc>
  39824. </method>
  39825. </class>
  39826. <!-- end class org.apache.hadoop.util.ChecksumUtil -->
  39827. <!-- start class org.apache.hadoop.util.ClassUtil -->
  39828. <class name="ClassUtil" extends="java.lang.Object"
  39829. abstract="false"
  39830. static="false" final="false" visibility="public"
  39831. deprecated="not deprecated">
  39832. <constructor name="ClassUtil"
  39833. static="false" final="false" visibility="public"
  39834. deprecated="not deprecated">
  39835. </constructor>
  39836. <method name="findContainingJar" return="java.lang.String"
  39837. abstract="false" native="false" synchronized="false"
  39838. static="true" final="false" visibility="public"
  39839. deprecated="not deprecated">
  39840. <param name="clazz" type="java.lang.Class"/>
  39841. <doc>
  39842. <![CDATA[Find a jar that contains a class of the same name, if any.
  39843. It will return a jar file, even if that is not the first thing
  39844. on the class path that has a class with the same name.
  39845. @param clazz the class to find.
  39846. @return a jar file that contains the class, or null.
  39847. @throws IOException]]>
  39848. </doc>
  39849. </method>
  39850. </class>
  39851. <!-- end class org.apache.hadoop.util.ClassUtil -->
  39852. <!-- start class org.apache.hadoop.util.CyclicIteration -->
  39853. <class name="CyclicIteration" extends="java.lang.Object"
  39854. abstract="false"
  39855. static="false" final="false" visibility="public"
  39856. deprecated="not deprecated">
  39857. <implements name="java.lang.Iterable"/>
  39858. <constructor name="CyclicIteration" type="java.util.NavigableMap, java.lang.Object"
  39859. static="false" final="false" visibility="public"
  39860. deprecated="not deprecated">
  39861. <doc>
  39862. <![CDATA[Construct an {@link Iterable} object,
  39863. so that an {@link Iterator} can be created
  39864. for iterating the given {@link NavigableMap}.
  39865. The iteration begins from the starting key exclusively.]]>
  39866. </doc>
  39867. </constructor>
  39868. <method name="iterator" return="java.util.Iterator"
  39869. abstract="false" native="false" synchronized="false"
  39870. static="false" final="false" visibility="public"
  39871. deprecated="not deprecated">
  39872. <doc>
  39873. <![CDATA[{@inheritDoc}]]>
  39874. </doc>
  39875. </method>
  39876. <doc>
  39877. <![CDATA[Provide an cyclic {@link Iterator} for a {@link NavigableMap}.
  39878. The {@link Iterator} navigates the entries of the map
  39879. according to the map's ordering.
  39880. If the {@link Iterator} hits the last entry of the map,
  39881. it will then continue from the first entry.]]>
  39882. </doc>
  39883. </class>
  39884. <!-- end class org.apache.hadoop.util.CyclicIteration -->
  39885. <!-- start class org.apache.hadoop.util.Daemon -->
  39886. <class name="Daemon" extends="java.lang.Thread"
  39887. abstract="false"
  39888. static="false" final="false" visibility="public"
  39889. deprecated="not deprecated">
  39890. <constructor name="Daemon"
  39891. static="false" final="false" visibility="public"
  39892. deprecated="not deprecated">
  39893. <doc>
  39894. <![CDATA[Construct a daemon thread.]]>
  39895. </doc>
  39896. </constructor>
  39897. <constructor name="Daemon" type="java.lang.Runnable"
  39898. static="false" final="false" visibility="public"
  39899. deprecated="not deprecated">
  39900. <doc>
  39901. <![CDATA[Construct a daemon thread.]]>
  39902. </doc>
  39903. </constructor>
  39904. <constructor name="Daemon" type="java.lang.ThreadGroup, java.lang.Runnable"
  39905. static="false" final="false" visibility="public"
  39906. deprecated="not deprecated">
  39907. <doc>
  39908. <![CDATA[Construct a daemon thread to be part of a specified thread group.]]>
  39909. </doc>
  39910. </constructor>
  39911. <method name="getRunnable" return="java.lang.Runnable"
  39912. abstract="false" native="false" synchronized="false"
  39913. static="false" final="false" visibility="public"
  39914. deprecated="not deprecated">
  39915. </method>
  39916. <doc>
  39917. <![CDATA[A thread that has called {@link Thread#setDaemon(boolean) } with true.]]>
  39918. </doc>
  39919. </class>
  39920. <!-- end class org.apache.hadoop.util.Daemon -->
  39921. <!-- start class org.apache.hadoop.util.DataChecksum -->
  39922. <class name="DataChecksum" extends="java.lang.Object"
  39923. abstract="false"
  39924. static="false" final="false" visibility="public"
  39925. deprecated="not deprecated">
  39926. <implements name="java.util.zip.Checksum"/>
  39927. <method name="newDataChecksum" return="org.apache.hadoop.util.DataChecksum"
  39928. abstract="false" native="false" synchronized="false"
  39929. static="true" final="false" visibility="public"
  39930. deprecated="not deprecated">
  39931. <param name="type" type="int"/>
  39932. <param name="bytesPerChecksum" type="int"/>
  39933. </method>
  39934. <method name="newDataChecksum" return="org.apache.hadoop.util.DataChecksum"
  39935. abstract="false" native="false" synchronized="false"
  39936. static="true" final="false" visibility="public"
  39937. deprecated="not deprecated">
  39938. <param name="bytes" type="byte[]"/>
  39939. <param name="offset" type="int"/>
  39940. <doc>
  39941. <![CDATA[Creates a DataChecksum from HEADER_LEN bytes from arr[offset].
  39942. @return DataChecksum of the type in the array or null in case of an error.]]>
  39943. </doc>
  39944. </method>
  39945. <method name="newDataChecksum" return="org.apache.hadoop.util.DataChecksum"
  39946. abstract="false" native="false" synchronized="false"
  39947. static="true" final="false" visibility="public"
  39948. deprecated="not deprecated">
  39949. <param name="in" type="java.io.DataInputStream"/>
  39950. <exception name="IOException" type="java.io.IOException"/>
  39951. <doc>
  39952. <![CDATA[This constructucts a DataChecksum by reading HEADER_LEN bytes from
  39953. input stream <i>in</i>]]>
  39954. </doc>
  39955. </method>
  39956. <method name="writeHeader"
  39957. abstract="false" native="false" synchronized="false"
  39958. static="false" final="false" visibility="public"
  39959. deprecated="not deprecated">
  39960. <param name="out" type="java.io.DataOutputStream"/>
  39961. <exception name="IOException" type="java.io.IOException"/>
  39962. <doc>
  39963. <![CDATA[Writes the checksum header to the output stream <i>out</i>.]]>
  39964. </doc>
  39965. </method>
  39966. <method name="getHeader" return="byte[]"
  39967. abstract="false" native="false" synchronized="false"
  39968. static="false" final="false" visibility="public"
  39969. deprecated="not deprecated">
  39970. </method>
  39971. <method name="writeValue" return="int"
  39972. abstract="false" native="false" synchronized="false"
  39973. static="false" final="false" visibility="public"
  39974. deprecated="not deprecated">
  39975. <param name="out" type="java.io.DataOutputStream"/>
  39976. <param name="reset" type="boolean"/>
  39977. <exception name="IOException" type="java.io.IOException"/>
  39978. <doc>
  39979. <![CDATA[Writes the current checksum to the stream.
  39980. If <i>reset</i> is true, then resets the checksum.
  39981. @return number of bytes written. Will be equal to getChecksumSize();]]>
  39982. </doc>
  39983. </method>
  39984. <method name="writeValue" return="int"
  39985. abstract="false" native="false" synchronized="false"
  39986. static="false" final="false" visibility="public"
  39987. deprecated="not deprecated">
  39988. <param name="buf" type="byte[]"/>
  39989. <param name="offset" type="int"/>
  39990. <param name="reset" type="boolean"/>
  39991. <exception name="IOException" type="java.io.IOException"/>
  39992. <doc>
  39993. <![CDATA[Writes the current checksum to a buffer.
  39994. If <i>reset</i> is true, then resets the checksum.
  39995. @return number of bytes written. Will be equal to getChecksumSize();]]>
  39996. </doc>
  39997. </method>
  39998. <method name="compare" return="boolean"
  39999. abstract="false" native="false" synchronized="false"
  40000. static="false" final="false" visibility="public"
  40001. deprecated="not deprecated">
  40002. <param name="buf" type="byte[]"/>
  40003. <param name="offset" type="int"/>
  40004. <doc>
  40005. <![CDATA[Compares the checksum located at buf[offset] with the current checksum.
  40006. @return true if the checksum matches and false otherwise.]]>
  40007. </doc>
  40008. </method>
  40009. <method name="getChecksumType" return="int"
  40010. abstract="false" native="false" synchronized="false"
  40011. static="false" final="false" visibility="public"
  40012. deprecated="not deprecated">
  40013. </method>
  40014. <method name="getChecksumSize" return="int"
  40015. abstract="false" native="false" synchronized="false"
  40016. static="false" final="false" visibility="public"
  40017. deprecated="not deprecated">
  40018. </method>
  40019. <method name="getBytesPerChecksum" return="int"
  40020. abstract="false" native="false" synchronized="false"
  40021. static="false" final="false" visibility="public"
  40022. deprecated="not deprecated">
  40023. </method>
  40024. <method name="getNumBytesInSum" return="int"
  40025. abstract="false" native="false" synchronized="false"
  40026. static="false" final="false" visibility="public"
  40027. deprecated="not deprecated">
  40028. </method>
  40029. <method name="getChecksumHeaderSize" return="int"
  40030. abstract="false" native="false" synchronized="false"
  40031. static="true" final="false" visibility="public"
  40032. deprecated="not deprecated">
  40033. </method>
  40034. <method name="getValue" return="long"
  40035. abstract="false" native="false" synchronized="false"
  40036. static="false" final="false" visibility="public"
  40037. deprecated="not deprecated">
  40038. </method>
  40039. <method name="reset"
  40040. abstract="false" native="false" synchronized="false"
  40041. static="false" final="false" visibility="public"
  40042. deprecated="not deprecated">
  40043. </method>
  40044. <method name="update"
  40045. abstract="false" native="false" synchronized="false"
  40046. static="false" final="false" visibility="public"
  40047. deprecated="not deprecated">
  40048. <param name="b" type="byte[]"/>
  40049. <param name="off" type="int"/>
  40050. <param name="len" type="int"/>
  40051. </method>
  40052. <method name="update"
  40053. abstract="false" native="false" synchronized="false"
  40054. static="false" final="false" visibility="public"
  40055. deprecated="not deprecated">
  40056. <param name="b" type="int"/>
  40057. </method>
  40058. <field name="HEADER_LEN" type="int"
  40059. transient="false" volatile="false"
  40060. static="true" final="true" visibility="public"
  40061. deprecated="not deprecated">
  40062. </field>
  40063. <field name="CHECKSUM_NULL" type="int"
  40064. transient="false" volatile="false"
  40065. static="true" final="true" visibility="public"
  40066. deprecated="not deprecated">
  40067. </field>
  40068. <field name="CHECKSUM_CRC32" type="int"
  40069. transient="false" volatile="false"
  40070. static="true" final="true" visibility="public"
  40071. deprecated="not deprecated">
  40072. </field>
  40073. <field name="SIZE_OF_INTEGER" type="int"
  40074. transient="false" volatile="false"
  40075. static="true" final="true" visibility="public"
  40076. deprecated="not deprecated">
  40077. </field>
  40078. <doc>
  40079. <![CDATA[This class provides inteface and utilities for processing checksums for
  40080. DFS data transfers.]]>
  40081. </doc>
  40082. </class>
  40083. <!-- end class org.apache.hadoop.util.DataChecksum -->
  40084. <!-- start class org.apache.hadoop.util.DiskChecker -->
  40085. <class name="DiskChecker" extends="java.lang.Object"
  40086. abstract="false"
  40087. static="false" final="false" visibility="public"
  40088. deprecated="not deprecated">
  40089. <constructor name="DiskChecker"
  40090. static="false" final="false" visibility="public"
  40091. deprecated="not deprecated">
  40092. </constructor>
  40093. <method name="mkdirsWithExistsCheck" return="boolean"
  40094. abstract="false" native="false" synchronized="false"
  40095. static="true" final="false" visibility="public"
  40096. deprecated="not deprecated">
  40097. <param name="dir" type="java.io.File"/>
  40098. <doc>
  40099. <![CDATA[The semantics of mkdirsWithExistsCheck method is different from the mkdirs
  40100. method provided in the Sun's java.io.File class in the following way:
  40101. While creating the non-existent parent directories, this method checks for
  40102. the existence of those directories if the mkdir fails at any point (since
  40103. that directory might have just been created by some other process).
  40104. If both mkdir() and the exists() check fails for any seemingly
  40105. non-existent directory, then we signal an error; Sun's mkdir would signal
  40106. an error (return false) if a directory it is attempting to create already
  40107. exists or the mkdir fails.
  40108. @param dir
  40109. @return true on success, false on failure]]>
  40110. </doc>
  40111. </method>
  40112. <method name="checkDir"
  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. <exception name="DiskChecker.DiskErrorException" type="org.apache.hadoop.util.DiskChecker.DiskErrorException"/>
  40118. <doc>
  40119. <![CDATA[Create the directory if it doesn't exist and
  40120. @param dir
  40121. @throws DiskErrorException]]>
  40122. </doc>
  40123. </method>
  40124. <method name="mkdirsWithExistsAndPermissionCheck" return="boolean"
  40125. abstract="false" native="false" synchronized="false"
  40126. static="true" final="false" visibility="public"
  40127. deprecated="not deprecated">
  40128. <param name="localFS" type="org.apache.hadoop.fs.LocalFileSystem"/>
  40129. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  40130. <param name="expected" type="org.apache.hadoop.fs.permission.FsPermission"/>
  40131. <exception name="IOException" type="java.io.IOException"/>
  40132. <doc>
  40133. <![CDATA[Create the directory or check permissions if it already exists.
  40134. The semantics of mkdirsWithExistsAndPermissionCheck method is different
  40135. from the mkdirs method provided in the Sun's java.io.File class in the
  40136. following way:
  40137. While creating the non-existent parent directories, this method checks for
  40138. the existence of those directories if the mkdir fails at any point (since
  40139. that directory might have just been created by some other process).
  40140. If both mkdir() and the exists() check fails for any seemingly
  40141. non-existent directory, then we signal an error; Sun's mkdir would signal
  40142. an error (return false) if a directory it is attempting to create already
  40143. exists or the mkdir fails.
  40144. @param localFS local filesystem
  40145. @param dir directory to be created or checked
  40146. @param expected expected permission
  40147. @return true on success, false on failure]]>
  40148. </doc>
  40149. </method>
  40150. <method name="checkDir"
  40151. abstract="false" native="false" synchronized="false"
  40152. static="true" final="false" visibility="public"
  40153. deprecated="not deprecated">
  40154. <param name="localFS" type="org.apache.hadoop.fs.LocalFileSystem"/>
  40155. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  40156. <param name="expected" type="org.apache.hadoop.fs.permission.FsPermission"/>
  40157. <exception name="DiskChecker.DiskErrorException" type="org.apache.hadoop.util.DiskChecker.DiskErrorException"/>
  40158. <exception name="IOException" type="java.io.IOException"/>
  40159. <doc>
  40160. <![CDATA[Create the local directory if necessary, check permissions and also ensure
  40161. it can be read from and written into.
  40162. @param localFS local filesystem
  40163. @param dir directory
  40164. @param expected permission
  40165. @throws DiskErrorException
  40166. @throws IOException]]>
  40167. </doc>
  40168. </method>
  40169. <doc>
  40170. <![CDATA[Class that provides utility functions for checking disk problem]]>
  40171. </doc>
  40172. </class>
  40173. <!-- end class org.apache.hadoop.util.DiskChecker -->
  40174. <!-- start class org.apache.hadoop.util.DiskChecker.DiskErrorException -->
  40175. <class name="DiskChecker.DiskErrorException" extends="java.io.IOException"
  40176. abstract="false"
  40177. static="true" final="false" visibility="public"
  40178. deprecated="not deprecated">
  40179. <constructor name="DiskChecker.DiskErrorException" type="java.lang.String"
  40180. static="false" final="false" visibility="public"
  40181. deprecated="not deprecated">
  40182. </constructor>
  40183. </class>
  40184. <!-- end class org.apache.hadoop.util.DiskChecker.DiskErrorException -->
  40185. <!-- start class org.apache.hadoop.util.DiskChecker.DiskOutOfSpaceException -->
  40186. <class name="DiskChecker.DiskOutOfSpaceException" extends="java.io.IOException"
  40187. abstract="false"
  40188. static="true" final="false" visibility="public"
  40189. deprecated="not deprecated">
  40190. <constructor name="DiskChecker.DiskOutOfSpaceException" type="java.lang.String"
  40191. static="false" final="false" visibility="public"
  40192. deprecated="not deprecated">
  40193. </constructor>
  40194. </class>
  40195. <!-- end class org.apache.hadoop.util.DiskChecker.DiskOutOfSpaceException -->
  40196. <!-- start class org.apache.hadoop.util.GenericOptionsParser -->
  40197. <class name="GenericOptionsParser" extends="java.lang.Object"
  40198. abstract="false"
  40199. static="false" final="false" visibility="public"
  40200. deprecated="not deprecated">
  40201. <constructor name="GenericOptionsParser" type="org.apache.commons.cli.Options, java.lang.String[]"
  40202. static="false" final="false" visibility="public"
  40203. deprecated="not deprecated">
  40204. <exception name="IOException" type="java.io.IOException"/>
  40205. <doc>
  40206. <![CDATA[Create an options parser with the given options to parse the args.
  40207. @param opts the options
  40208. @param args the command line arguments
  40209. @throws IOException]]>
  40210. </doc>
  40211. </constructor>
  40212. <constructor name="GenericOptionsParser" type="java.lang.String[]"
  40213. static="false" final="false" visibility="public"
  40214. deprecated="not deprecated">
  40215. <exception name="IOException" type="java.io.IOException"/>
  40216. <doc>
  40217. <![CDATA[Create an options parser to parse the args.
  40218. @param args the command line arguments
  40219. @throws IOException]]>
  40220. </doc>
  40221. </constructor>
  40222. <constructor name="GenericOptionsParser" type="org.apache.hadoop.conf.Configuration, java.lang.String[]"
  40223. static="false" final="false" visibility="public"
  40224. deprecated="not deprecated">
  40225. <exception name="IOException" type="java.io.IOException"/>
  40226. <doc>
  40227. <![CDATA[Create a <code>GenericOptionsParser<code> to parse only the generic Hadoop
  40228. arguments.
  40229. The array of string arguments other than the generic arguments can be
  40230. obtained by {@link #getRemainingArgs()}.
  40231. @param conf the <code>Configuration</code> to modify.
  40232. @param args command-line arguments.
  40233. @throws IOException]]>
  40234. </doc>
  40235. </constructor>
  40236. <constructor name="GenericOptionsParser" type="org.apache.hadoop.conf.Configuration, org.apache.commons.cli.Options, java.lang.String[]"
  40237. static="false" final="false" visibility="public"
  40238. deprecated="not deprecated">
  40239. <exception name="IOException" type="java.io.IOException"/>
  40240. <doc>
  40241. <![CDATA[Create a <code>GenericOptionsParser</code> to parse given options as well
  40242. as generic Hadoop options.
  40243. The resulting <code>CommandLine</code> object can be obtained by
  40244. {@link #getCommandLine()}.
  40245. @param conf the configuration to modify
  40246. @param options options built by the caller
  40247. @param args User-specified arguments
  40248. @throws IOException]]>
  40249. </doc>
  40250. </constructor>
  40251. <method name="getRemainingArgs" return="java.lang.String[]"
  40252. abstract="false" native="false" synchronized="false"
  40253. static="false" final="false" visibility="public"
  40254. deprecated="not deprecated">
  40255. <doc>
  40256. <![CDATA[Returns an array of Strings containing only application-specific arguments.
  40257. @return array of <code>String</code>s containing the un-parsed arguments
  40258. or <strong>empty array</strong> if commandLine was not defined.]]>
  40259. </doc>
  40260. </method>
  40261. <method name="getConfiguration" return="org.apache.hadoop.conf.Configuration"
  40262. abstract="false" native="false" synchronized="false"
  40263. static="false" final="false" visibility="public"
  40264. deprecated="not deprecated">
  40265. <doc>
  40266. <![CDATA[Get the modified configuration
  40267. @return the configuration that has the modified parameters.]]>
  40268. </doc>
  40269. </method>
  40270. <method name="getCommandLine" return="org.apache.commons.cli.CommandLine"
  40271. abstract="false" native="false" synchronized="false"
  40272. static="false" final="false" visibility="public"
  40273. deprecated="not deprecated">
  40274. <doc>
  40275. <![CDATA[Returns the commons-cli <code>CommandLine</code> object
  40276. to process the parsed arguments.
  40277. Note: If the object is created with
  40278. {@link #GenericOptionsParser(Configuration, String[])}, then returned
  40279. object will only contain parsed generic options.
  40280. @return <code>CommandLine</code> representing list of arguments
  40281. parsed against Options descriptor.]]>
  40282. </doc>
  40283. </method>
  40284. <method name="getLibJars" return="java.net.URL[]"
  40285. abstract="false" native="false" synchronized="false"
  40286. static="true" final="false" visibility="public"
  40287. deprecated="not deprecated">
  40288. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  40289. <exception name="IOException" type="java.io.IOException"/>
  40290. <doc>
  40291. <![CDATA[If libjars are set in the conf, parse the libjars.
  40292. @param conf
  40293. @return libjar urls
  40294. @throws IOException]]>
  40295. </doc>
  40296. </method>
  40297. <method name="printGenericCommandUsage"
  40298. abstract="false" native="false" synchronized="false"
  40299. static="true" final="false" visibility="public"
  40300. deprecated="not deprecated">
  40301. <param name="out" type="java.io.PrintStream"/>
  40302. <doc>
  40303. <![CDATA[Print the usage message for generic command-line options supported.
  40304. @param out stream to print the usage message to.]]>
  40305. </doc>
  40306. </method>
  40307. <doc>
  40308. <![CDATA[<code>GenericOptionsParser</code> is a utility to parse command line
  40309. arguments generic to the Hadoop framework.
  40310. <code>GenericOptionsParser</code> recognizes several standarad command
  40311. line arguments, enabling applications to easily specify a namenode, a
  40312. jobtracker, additional configuration resources etc.
  40313. <h4 id="GenericOptions">Generic Options</h4>
  40314. <p>The supported generic options are:</p>
  40315. <p><blockquote><pre>
  40316. -conf &lt;configuration file&gt; specify a configuration file
  40317. -D &lt;property=value&gt; use value for given property
  40318. -fs &lt;local|namenode:port&gt; specify a namenode
  40319. -jt &lt;local|jobtracker:port&gt; specify a job tracker
  40320. -files &lt;comma separated list of files&gt; specify comma separated
  40321. files to be copied to the map reduce cluster
  40322. -libjars &lt;comma separated list of jars&gt; specify comma separated
  40323. jar files to include in the classpath.
  40324. -archives &lt;comma separated list of archives&gt; specify comma
  40325. separated archives to be unarchived on the compute machines.
  40326. </pre></blockquote></p>
  40327. <p>The general command line syntax is:</p>
  40328. <p><tt><pre>
  40329. bin/hadoop command [genericOptions] [commandOptions]
  40330. </pre></tt></p>
  40331. <p>Generic command line arguments <strong>might</strong> modify
  40332. <code>Configuration </code> objects, given to constructors.</p>
  40333. <p>The functionality is implemented using Commons CLI.</p>
  40334. <p>Examples:</p>
  40335. <p><blockquote><pre>
  40336. $ bin/hadoop dfs -fs darwin:8020 -ls /data
  40337. list /data directory in dfs with namenode darwin:8020
  40338. $ bin/hadoop dfs -D fs.default.name=darwin:8020 -ls /data
  40339. list /data directory in dfs with namenode darwin:8020
  40340. $ bin/hadoop dfs -conf hadoop-site.xml -ls /data
  40341. list /data directory in dfs with conf specified in hadoop-site.xml
  40342. $ bin/hadoop job -D mapred.job.tracker=darwin:50020 -submit job.xml
  40343. submit a job to job tracker darwin:50020
  40344. $ bin/hadoop job -jt darwin:50020 -submit job.xml
  40345. submit a job to job tracker darwin:50020
  40346. $ bin/hadoop job -jt local -submit job.xml
  40347. submit a job to local runner
  40348. $ bin/hadoop jar -libjars testlib.jar
  40349. -archives test.tgz -files file.txt inputjar args
  40350. job submission with libjars, files and archives
  40351. </pre></blockquote></p>
  40352. @see Tool
  40353. @see ToolRunner]]>
  40354. </doc>
  40355. </class>
  40356. <!-- end class org.apache.hadoop.util.GenericOptionsParser -->
  40357. <!-- start class org.apache.hadoop.util.GenericsUtil -->
  40358. <class name="GenericsUtil" extends="java.lang.Object"
  40359. abstract="false"
  40360. static="false" final="false" visibility="public"
  40361. deprecated="not deprecated">
  40362. <constructor name="GenericsUtil"
  40363. static="false" final="false" visibility="public"
  40364. deprecated="not deprecated">
  40365. </constructor>
  40366. <method name="getClass" return="java.lang.Class"
  40367. abstract="false" native="false" synchronized="false"
  40368. static="true" final="false" visibility="public"
  40369. deprecated="not deprecated">
  40370. <param name="t" type="java.lang.Object"/>
  40371. <doc>
  40372. <![CDATA[Returns the Class object (of type <code>Class&lt;T&gt;</code>) of the
  40373. argument of type <code>T</code>.
  40374. @param <T> The type of the argument
  40375. @param t the object to get it class
  40376. @return <code>Class&lt;T&gt;</code>]]>
  40377. </doc>
  40378. </method>
  40379. <method name="toArray" return="java.lang.Object[]"
  40380. abstract="false" native="false" synchronized="false"
  40381. static="true" final="false" visibility="public"
  40382. deprecated="not deprecated">
  40383. <param name="c" type="java.lang.Class"/>
  40384. <param name="list" type="java.util.List"/>
  40385. <doc>
  40386. <![CDATA[Converts the given <code>List&lt;T&gt;</code> to a an array of
  40387. <code>T[]</code>.
  40388. @param c the Class object of the items in the list
  40389. @param list the list to convert]]>
  40390. </doc>
  40391. </method>
  40392. <method name="toArray" return="java.lang.Object[]"
  40393. abstract="false" native="false" synchronized="false"
  40394. static="true" final="false" visibility="public"
  40395. deprecated="not deprecated">
  40396. <param name="list" type="java.util.List"/>
  40397. <doc>
  40398. <![CDATA[Converts the given <code>List&lt;T&gt;</code> to a an array of
  40399. <code>T[]</code>.
  40400. @param list the list to convert
  40401. @throws ArrayIndexOutOfBoundsException if the list is empty.
  40402. Use {@link #toArray(Class, List)} if the list may be empty.]]>
  40403. </doc>
  40404. </method>
  40405. <doc>
  40406. <![CDATA[Contains utility methods for dealing with Java Generics.]]>
  40407. </doc>
  40408. </class>
  40409. <!-- end class org.apache.hadoop.util.GenericsUtil -->
  40410. <!-- start class org.apache.hadoop.util.HeapSort -->
  40411. <class name="HeapSort" extends="java.lang.Object"
  40412. abstract="false"
  40413. static="false" final="true" visibility="public"
  40414. deprecated="not deprecated">
  40415. <implements name="org.apache.hadoop.util.IndexedSorter"/>
  40416. <constructor name="HeapSort"
  40417. static="false" final="false" visibility="public"
  40418. deprecated="not deprecated">
  40419. </constructor>
  40420. <method name="sort"
  40421. abstract="false" native="false" synchronized="false"
  40422. static="false" final="false" visibility="public"
  40423. deprecated="not deprecated">
  40424. <param name="s" type="org.apache.hadoop.util.IndexedSortable"/>
  40425. <param name="p" type="int"/>
  40426. <param name="r" type="int"/>
  40427. <doc>
  40428. <![CDATA[Sort the given range of items using heap sort.
  40429. {@inheritDoc}]]>
  40430. </doc>
  40431. </method>
  40432. <method name="sort"
  40433. abstract="false" native="false" synchronized="false"
  40434. static="false" final="false" visibility="public"
  40435. deprecated="not deprecated">
  40436. <param name="s" type="org.apache.hadoop.util.IndexedSortable"/>
  40437. <param name="p" type="int"/>
  40438. <param name="r" type="int"/>
  40439. <param name="rep" type="org.apache.hadoop.util.Progressable"/>
  40440. <doc>
  40441. <![CDATA[{@inheritDoc}]]>
  40442. </doc>
  40443. </method>
  40444. <doc>
  40445. <![CDATA[An implementation of the core algorithm of HeapSort.]]>
  40446. </doc>
  40447. </class>
  40448. <!-- end class org.apache.hadoop.util.HeapSort -->
  40449. <!-- start class org.apache.hadoop.util.HostsFileReader -->
  40450. <class name="HostsFileReader" extends="java.lang.Object"
  40451. abstract="false"
  40452. static="false" final="false" visibility="public"
  40453. deprecated="not deprecated">
  40454. <constructor name="HostsFileReader" type="java.lang.String, java.lang.String"
  40455. static="false" final="false" visibility="public"
  40456. deprecated="not deprecated">
  40457. <exception name="IOException" type="java.io.IOException"/>
  40458. </constructor>
  40459. <method name="refresh"
  40460. abstract="false" native="false" synchronized="true"
  40461. static="false" final="false" visibility="public"
  40462. deprecated="not deprecated">
  40463. <exception name="IOException" type="java.io.IOException"/>
  40464. </method>
  40465. <method name="getHosts" return="java.util.Set"
  40466. abstract="false" native="false" synchronized="true"
  40467. static="false" final="false" visibility="public"
  40468. deprecated="not deprecated">
  40469. </method>
  40470. <method name="getExcludedHosts" return="java.util.Set"
  40471. abstract="false" native="false" synchronized="true"
  40472. static="false" final="false" visibility="public"
  40473. deprecated="not deprecated">
  40474. </method>
  40475. <method name="setIncludesFile"
  40476. abstract="false" native="false" synchronized="true"
  40477. static="false" final="false" visibility="public"
  40478. deprecated="not deprecated">
  40479. <param name="includesFile" type="java.lang.String"/>
  40480. </method>
  40481. <method name="setExcludesFile"
  40482. abstract="false" native="false" synchronized="true"
  40483. static="false" final="false" visibility="public"
  40484. deprecated="not deprecated">
  40485. <param name="excludesFile" type="java.lang.String"/>
  40486. </method>
  40487. <method name="updateFileNames"
  40488. abstract="false" native="false" synchronized="true"
  40489. static="false" final="false" visibility="public"
  40490. deprecated="not deprecated">
  40491. <param name="includesFile" type="java.lang.String"/>
  40492. <param name="excludesFile" type="java.lang.String"/>
  40493. <exception name="IOException" type="java.io.IOException"/>
  40494. </method>
  40495. </class>
  40496. <!-- end class org.apache.hadoop.util.HostsFileReader -->
  40497. <!-- start interface org.apache.hadoop.util.IndexedSortable -->
  40498. <interface name="IndexedSortable" abstract="true"
  40499. static="false" final="false" visibility="public"
  40500. deprecated="not deprecated">
  40501. <method name="compare" return="int"
  40502. abstract="false" native="false" synchronized="false"
  40503. static="false" final="false" visibility="public"
  40504. deprecated="not deprecated">
  40505. <param name="i" type="int"/>
  40506. <param name="j" type="int"/>
  40507. <doc>
  40508. <![CDATA[Compare items at the given addresses consistent with the semantics of
  40509. {@link java.util.Comparator#compare(Object, Object)}.]]>
  40510. </doc>
  40511. </method>
  40512. <method name="swap"
  40513. abstract="false" native="false" synchronized="false"
  40514. static="false" final="false" visibility="public"
  40515. deprecated="not deprecated">
  40516. <param name="i" type="int"/>
  40517. <param name="j" type="int"/>
  40518. <doc>
  40519. <![CDATA[Swap items at the given addresses.]]>
  40520. </doc>
  40521. </method>
  40522. <doc>
  40523. <![CDATA[Interface for collections capable of being sorted by {@link IndexedSorter}
  40524. algorithms.]]>
  40525. </doc>
  40526. </interface>
  40527. <!-- end interface org.apache.hadoop.util.IndexedSortable -->
  40528. <!-- start interface org.apache.hadoop.util.IndexedSorter -->
  40529. <interface name="IndexedSorter" abstract="true"
  40530. static="false" final="false" visibility="public"
  40531. deprecated="not deprecated">
  40532. <method name="sort"
  40533. abstract="false" native="false" synchronized="false"
  40534. static="false" final="false" visibility="public"
  40535. deprecated="not deprecated">
  40536. <param name="s" type="org.apache.hadoop.util.IndexedSortable"/>
  40537. <param name="l" type="int"/>
  40538. <param name="r" type="int"/>
  40539. <doc>
  40540. <![CDATA[Sort the items accessed through the given IndexedSortable over the given
  40541. range of logical indices. From the perspective of the sort algorithm,
  40542. each index between l (inclusive) and r (exclusive) is an addressable
  40543. entry.
  40544. @see IndexedSortable#compare
  40545. @see IndexedSortable#swap]]>
  40546. </doc>
  40547. </method>
  40548. <method name="sort"
  40549. abstract="false" native="false" synchronized="false"
  40550. static="false" final="false" visibility="public"
  40551. deprecated="not deprecated">
  40552. <param name="s" type="org.apache.hadoop.util.IndexedSortable"/>
  40553. <param name="l" type="int"/>
  40554. <param name="r" type="int"/>
  40555. <param name="rep" type="org.apache.hadoop.util.Progressable"/>
  40556. <doc>
  40557. <![CDATA[Same as {@link #sort(IndexedSortable,int,int)}, but indicate progress
  40558. periodically.
  40559. @see #sort(IndexedSortable,int,int)]]>
  40560. </doc>
  40561. </method>
  40562. <doc>
  40563. <![CDATA[Interface for sort algorithms accepting {@link IndexedSortable} items.
  40564. A sort algorithm implementing this interface may only
  40565. {@link IndexedSortable#compare} and {@link IndexedSortable#swap} items
  40566. for a range of indices to effect a sort across that range.]]>
  40567. </doc>
  40568. </interface>
  40569. <!-- end interface org.apache.hadoop.util.IndexedSorter -->
  40570. <!-- start class org.apache.hadoop.util.LineReader -->
  40571. <class name="LineReader" extends="java.lang.Object"
  40572. abstract="false"
  40573. static="false" final="false" visibility="public"
  40574. deprecated="not deprecated">
  40575. <constructor name="LineReader" type="java.io.InputStream"
  40576. static="false" final="false" visibility="public"
  40577. deprecated="not deprecated">
  40578. <doc>
  40579. <![CDATA[Create a line reader that reads from the given stream using the
  40580. default buffer-size (64k).
  40581. @param in The input stream
  40582. @throws IOException]]>
  40583. </doc>
  40584. </constructor>
  40585. <constructor name="LineReader" type="java.io.InputStream, int"
  40586. static="false" final="false" visibility="public"
  40587. deprecated="not deprecated">
  40588. <doc>
  40589. <![CDATA[Create a line reader that reads from the given stream using the
  40590. given buffer-size.
  40591. @param in The input stream
  40592. @param bufferSize Size of the read buffer
  40593. @throws IOException]]>
  40594. </doc>
  40595. </constructor>
  40596. <constructor name="LineReader" type="java.io.InputStream, org.apache.hadoop.conf.Configuration"
  40597. static="false" final="false" visibility="public"
  40598. deprecated="not deprecated">
  40599. <exception name="IOException" type="java.io.IOException"/>
  40600. <doc>
  40601. <![CDATA[Create a line reader that reads from the given stream using the
  40602. <code>io.file.buffer.size</code> specified in the given
  40603. <code>Configuration</code>.
  40604. @param in input stream
  40605. @param conf configuration
  40606. @throws IOException]]>
  40607. </doc>
  40608. </constructor>
  40609. <constructor name="LineReader" type="java.io.InputStream, byte[]"
  40610. static="false" final="false" visibility="public"
  40611. deprecated="not deprecated">
  40612. <doc>
  40613. <![CDATA[Create a line reader that reads from the given stream using the
  40614. default buffer-size, and using a custom delimiter of array of
  40615. bytes.
  40616. @param in The input stream
  40617. @param recordDelimiterBytes The delimiter]]>
  40618. </doc>
  40619. </constructor>
  40620. <constructor name="LineReader" type="java.io.InputStream, int, byte[]"
  40621. static="false" final="false" visibility="public"
  40622. deprecated="not deprecated">
  40623. <doc>
  40624. <![CDATA[Create a line reader that reads from the given stream using the
  40625. given buffer-size, and using a custom delimiter of array of
  40626. bytes.
  40627. @param in The input stream
  40628. @param bufferSize Size of the read buffer
  40629. @param recordDelimiterBytes The delimiter
  40630. @throws IOException]]>
  40631. </doc>
  40632. </constructor>
  40633. <constructor name="LineReader" type="java.io.InputStream, org.apache.hadoop.conf.Configuration, byte[]"
  40634. static="false" final="false" visibility="public"
  40635. deprecated="not deprecated">
  40636. <exception name="IOException" type="java.io.IOException"/>
  40637. <doc>
  40638. <![CDATA[Create a line reader that reads from the given stream using the
  40639. <code>io.file.buffer.size</code> specified in the given
  40640. <code>Configuration</code>, and using a custom delimiter of array of
  40641. bytes.
  40642. @param in input stream
  40643. @param conf configuration
  40644. @param recordDelimiterBytes The delimiter
  40645. @throws IOException]]>
  40646. </doc>
  40647. </constructor>
  40648. <method name="close"
  40649. abstract="false" native="false" synchronized="false"
  40650. static="false" final="false" visibility="public"
  40651. deprecated="not deprecated">
  40652. <exception name="IOException" type="java.io.IOException"/>
  40653. <doc>
  40654. <![CDATA[Close the underlying stream.
  40655. @throws IOException]]>
  40656. </doc>
  40657. </method>
  40658. <method name="readLine" return="int"
  40659. abstract="false" native="false" synchronized="false"
  40660. static="false" final="false" visibility="public"
  40661. deprecated="not deprecated">
  40662. <param name="str" type="org.apache.hadoop.io.Text"/>
  40663. <param name="maxLineLength" type="int"/>
  40664. <param name="maxBytesToConsume" type="int"/>
  40665. <exception name="IOException" type="java.io.IOException"/>
  40666. <doc>
  40667. <![CDATA[Read one line from the InputStream into the given Text.
  40668. @param str the object to store the given line (without newline)
  40669. @param maxLineLength the maximum number of bytes to store into str;
  40670. the rest of the line is silently discarded.
  40671. @param maxBytesToConsume the maximum number of bytes to consume
  40672. in this call. This is only a hint, because if the line cross
  40673. this threshold, we allow it to happen. It can overshoot
  40674. potentially by as much as one buffer length.
  40675. @return the number of bytes read including the (longest) newline
  40676. found.
  40677. @throws IOException if the underlying stream throws]]>
  40678. </doc>
  40679. </method>
  40680. <method name="readLine" return="int"
  40681. abstract="false" native="false" synchronized="false"
  40682. static="false" final="false" visibility="public"
  40683. deprecated="not deprecated">
  40684. <param name="str" type="org.apache.hadoop.io.Text"/>
  40685. <param name="maxLineLength" type="int"/>
  40686. <exception name="IOException" type="java.io.IOException"/>
  40687. <doc>
  40688. <![CDATA[Read from the InputStream into the given Text.
  40689. @param str the object to store the given line
  40690. @param maxLineLength the maximum number of bytes to store into str.
  40691. @return the number of bytes read including the newline
  40692. @throws IOException if the underlying stream throws]]>
  40693. </doc>
  40694. </method>
  40695. <method name="readLine" return="int"
  40696. abstract="false" native="false" synchronized="false"
  40697. static="false" final="false" visibility="public"
  40698. deprecated="not deprecated">
  40699. <param name="str" type="org.apache.hadoop.io.Text"/>
  40700. <exception name="IOException" type="java.io.IOException"/>
  40701. <doc>
  40702. <![CDATA[Read from the InputStream into the given Text.
  40703. @param str the object to store the given line
  40704. @return the number of bytes read including the newline
  40705. @throws IOException if the underlying stream throws]]>
  40706. </doc>
  40707. </method>
  40708. <doc>
  40709. <![CDATA[A class that provides a line reader from an input stream.
  40710. Depending on the constructor used, lines will either be terminated by:
  40711. <ul>
  40712. <li>one of the following: '\n' (LF) , '\r' (CR),
  40713. or '\r\n' (CR+LF).</li>
  40714. <li><em>or</em>, a custom byte sequence delimiter</li>
  40715. </ul>
  40716. In both cases, EOF also terminates an otherwise unterminated
  40717. line.]]>
  40718. </doc>
  40719. </class>
  40720. <!-- end class org.apache.hadoop.util.LineReader -->
  40721. <!-- start class org.apache.hadoop.util.LinuxMemoryCalculatorPlugin -->
  40722. <class name="LinuxMemoryCalculatorPlugin" extends="org.apache.hadoop.util.MemoryCalculatorPlugin"
  40723. abstract="false"
  40724. static="false" final="false" visibility="public"
  40725. deprecated="Use {@link org.apache.hadoop.util.LinuxResourceCalculatorPlugin}
  40726. instead">
  40727. <constructor name="LinuxMemoryCalculatorPlugin"
  40728. static="false" final="false" visibility="public"
  40729. deprecated="not deprecated">
  40730. </constructor>
  40731. <method name="getPhysicalMemorySize" return="long"
  40732. abstract="false" native="false" synchronized="false"
  40733. static="false" final="false" visibility="public"
  40734. deprecated="not deprecated">
  40735. <doc>
  40736. <![CDATA[{@inheritDoc}]]>
  40737. </doc>
  40738. </method>
  40739. <method name="getVirtualMemorySize" return="long"
  40740. abstract="false" native="false" synchronized="false"
  40741. static="false" final="false" visibility="public"
  40742. deprecated="not deprecated">
  40743. <doc>
  40744. <![CDATA[{@inheritDoc}]]>
  40745. </doc>
  40746. </method>
  40747. <doc>
  40748. <![CDATA[Plugin to calculate virtual and physical memories on Linux systems.
  40749. @deprecated Use {@link org.apache.hadoop.util.LinuxResourceCalculatorPlugin}
  40750. instead]]>
  40751. </doc>
  40752. </class>
  40753. <!-- end class org.apache.hadoop.util.LinuxMemoryCalculatorPlugin -->
  40754. <!-- start class org.apache.hadoop.util.LinuxResourceCalculatorPlugin -->
  40755. <class name="LinuxResourceCalculatorPlugin" extends="org.apache.hadoop.util.ResourceCalculatorPlugin"
  40756. abstract="false"
  40757. static="false" final="false" visibility="public"
  40758. deprecated="not deprecated">
  40759. <constructor name="LinuxResourceCalculatorPlugin"
  40760. static="false" final="false" visibility="public"
  40761. deprecated="not deprecated">
  40762. </constructor>
  40763. <constructor name="LinuxResourceCalculatorPlugin" type="java.lang.String, java.lang.String, java.lang.String, long"
  40764. static="false" final="false" visibility="public"
  40765. deprecated="not deprecated">
  40766. <doc>
  40767. <![CDATA[Constructor which allows assigning the /proc/ directories. This will be
  40768. used only in unit tests
  40769. @param procfsMemFile fake file for /proc/meminfo
  40770. @param procfsCpuFile fake file for /proc/cpuinfo
  40771. @param procfsStatFile fake file for /proc/stat
  40772. @param jiffyLengthInMillis fake jiffy length value]]>
  40773. </doc>
  40774. </constructor>
  40775. <method name="getPhysicalMemorySize" return="long"
  40776. abstract="false" native="false" synchronized="false"
  40777. static="false" final="false" visibility="public"
  40778. deprecated="not deprecated">
  40779. <doc>
  40780. <![CDATA[{@inheritDoc}]]>
  40781. </doc>
  40782. </method>
  40783. <method name="getVirtualMemorySize" return="long"
  40784. abstract="false" native="false" synchronized="false"
  40785. static="false" final="false" visibility="public"
  40786. deprecated="not deprecated">
  40787. <doc>
  40788. <![CDATA[{@inheritDoc}]]>
  40789. </doc>
  40790. </method>
  40791. <method name="getAvailablePhysicalMemorySize" return="long"
  40792. abstract="false" native="false" synchronized="false"
  40793. static="false" final="false" visibility="public"
  40794. deprecated="not deprecated">
  40795. <doc>
  40796. <![CDATA[{@inheritDoc}]]>
  40797. </doc>
  40798. </method>
  40799. <method name="getAvailableVirtualMemorySize" return="long"
  40800. abstract="false" native="false" synchronized="false"
  40801. static="false" final="false" visibility="public"
  40802. deprecated="not deprecated">
  40803. <doc>
  40804. <![CDATA[{@inheritDoc}]]>
  40805. </doc>
  40806. </method>
  40807. <method name="getNumProcessors" return="int"
  40808. abstract="false" native="false" synchronized="false"
  40809. static="false" final="false" visibility="public"
  40810. deprecated="not deprecated">
  40811. <doc>
  40812. <![CDATA[{@inheritDoc}]]>
  40813. </doc>
  40814. </method>
  40815. <method name="getCpuFrequency" return="long"
  40816. abstract="false" native="false" synchronized="false"
  40817. static="false" final="false" visibility="public"
  40818. deprecated="not deprecated">
  40819. <doc>
  40820. <![CDATA[{@inheritDoc}]]>
  40821. </doc>
  40822. </method>
  40823. <method name="getCumulativeCpuTime" return="long"
  40824. abstract="false" native="false" synchronized="false"
  40825. static="false" final="false" visibility="public"
  40826. deprecated="not deprecated">
  40827. <doc>
  40828. <![CDATA[{@inheritDoc}]]>
  40829. </doc>
  40830. </method>
  40831. <method name="getCpuUsage" return="float"
  40832. abstract="false" native="false" synchronized="false"
  40833. static="false" final="false" visibility="public"
  40834. deprecated="not deprecated">
  40835. <doc>
  40836. <![CDATA[{@inheritDoc}]]>
  40837. </doc>
  40838. </method>
  40839. <method name="main"
  40840. abstract="false" native="false" synchronized="false"
  40841. static="true" final="false" visibility="public"
  40842. deprecated="not deprecated">
  40843. <param name="args" type="java.lang.String[]"/>
  40844. <doc>
  40845. <![CDATA[Test the {@link LinuxResourceCalculatorPlugin}
  40846. @param args]]>
  40847. </doc>
  40848. </method>
  40849. <method name="getProcResourceValues" return="org.apache.hadoop.util.ResourceCalculatorPlugin.ProcResourceValues"
  40850. abstract="false" native="false" synchronized="false"
  40851. static="false" final="false" visibility="public"
  40852. deprecated="not deprecated">
  40853. </method>
  40854. <doc>
  40855. <![CDATA[Plugin to calculate resource information on Linux systems.]]>
  40856. </doc>
  40857. </class>
  40858. <!-- end class org.apache.hadoop.util.LinuxResourceCalculatorPlugin -->
  40859. <!-- start class org.apache.hadoop.util.MemoryCalculatorPlugin -->
  40860. <class name="MemoryCalculatorPlugin" extends="org.apache.hadoop.conf.Configured"
  40861. abstract="true"
  40862. static="false" final="false" visibility="public"
  40863. deprecated="Use
  40864. {@link org.apache.hadoop.util.ResourceCalculatorPlugin}
  40865. instead">
  40866. <constructor name="MemoryCalculatorPlugin"
  40867. static="false" final="false" visibility="public"
  40868. deprecated="not deprecated">
  40869. </constructor>
  40870. <method name="getVirtualMemorySize" return="long"
  40871. abstract="true" native="false" synchronized="false"
  40872. static="false" final="false" visibility="public"
  40873. deprecated="not deprecated">
  40874. <doc>
  40875. <![CDATA[Obtain the total size of the virtual memory present in the system.
  40876. @return virtual memory size in bytes.]]>
  40877. </doc>
  40878. </method>
  40879. <method name="getPhysicalMemorySize" return="long"
  40880. abstract="true" native="false" synchronized="false"
  40881. static="false" final="false" visibility="public"
  40882. deprecated="not deprecated">
  40883. <doc>
  40884. <![CDATA[Obtain the total size of the physical memory present in the system.
  40885. @return physical memory size bytes.]]>
  40886. </doc>
  40887. </method>
  40888. <method name="getMemoryCalculatorPlugin" return="org.apache.hadoop.util.MemoryCalculatorPlugin"
  40889. abstract="false" native="false" synchronized="false"
  40890. static="true" final="false" visibility="public"
  40891. deprecated="not deprecated">
  40892. <param name="clazz" type="java.lang.Class"/>
  40893. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  40894. <doc>
  40895. <![CDATA[Get the MemoryCalculatorPlugin from the class name and configure it. If
  40896. class name is null, this method will try and return a memory calculator
  40897. plugin available for this system.
  40898. @param clazz class-name
  40899. @param conf configure the plugin with this.
  40900. @return MemoryCalculatorPlugin]]>
  40901. </doc>
  40902. </method>
  40903. <doc>
  40904. <![CDATA[Plugin to calculate virtual and physical memories on the system.
  40905. @deprecated Use
  40906. {@link org.apache.hadoop.util.ResourceCalculatorPlugin}
  40907. instead]]>
  40908. </doc>
  40909. </class>
  40910. <!-- end class org.apache.hadoop.util.MemoryCalculatorPlugin -->
  40911. <!-- start class org.apache.hadoop.util.MergeSort -->
  40912. <class name="MergeSort" extends="java.lang.Object"
  40913. abstract="false"
  40914. static="false" final="false" visibility="public"
  40915. deprecated="not deprecated">
  40916. <constructor name="MergeSort" type="java.util.Comparator"
  40917. static="false" final="false" visibility="public"
  40918. deprecated="not deprecated">
  40919. </constructor>
  40920. <method name="mergeSort"
  40921. abstract="false" native="false" synchronized="false"
  40922. static="false" final="false" visibility="public"
  40923. deprecated="not deprecated">
  40924. <param name="src" type="int[]"/>
  40925. <param name="dest" type="int[]"/>
  40926. <param name="low" type="int"/>
  40927. <param name="high" type="int"/>
  40928. </method>
  40929. <doc>
  40930. <![CDATA[An implementation of the core algorithm of MergeSort.]]>
  40931. </doc>
  40932. </class>
  40933. <!-- end class org.apache.hadoop.util.MergeSort -->
  40934. <!-- start class org.apache.hadoop.util.NativeCodeLoader -->
  40935. <class name="NativeCodeLoader" extends="java.lang.Object"
  40936. abstract="false"
  40937. static="false" final="false" visibility="public"
  40938. deprecated="not deprecated">
  40939. <constructor name="NativeCodeLoader"
  40940. static="false" final="false" visibility="public"
  40941. deprecated="not deprecated">
  40942. </constructor>
  40943. <method name="isNativeCodeLoaded" return="boolean"
  40944. abstract="false" native="false" synchronized="false"
  40945. static="true" final="false" visibility="public"
  40946. deprecated="not deprecated">
  40947. <doc>
  40948. <![CDATA[Check if native-hadoop code is loaded for this platform.
  40949. @return <code>true</code> if native-hadoop is loaded,
  40950. else <code>false</code>]]>
  40951. </doc>
  40952. </method>
  40953. <method name="getLoadNativeLibraries" return="boolean"
  40954. abstract="false" native="false" synchronized="false"
  40955. static="false" final="false" visibility="public"
  40956. deprecated="not deprecated">
  40957. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  40958. <doc>
  40959. <![CDATA[Return if native hadoop libraries, if present, can be used for this job.
  40960. @param conf configuration
  40961. @return <code>true</code> if native hadoop libraries, if present, can be
  40962. used for this job; <code>false</code> otherwise.]]>
  40963. </doc>
  40964. </method>
  40965. <method name="setLoadNativeLibraries"
  40966. abstract="false" native="false" synchronized="false"
  40967. static="false" final="false" visibility="public"
  40968. deprecated="not deprecated">
  40969. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  40970. <param name="loadNativeLibraries" type="boolean"/>
  40971. <doc>
  40972. <![CDATA[Set if native hadoop libraries, if present, can be used for this job.
  40973. @param conf configuration
  40974. @param loadNativeLibraries can native hadoop libraries be loaded]]>
  40975. </doc>
  40976. </method>
  40977. <doc>
  40978. <![CDATA[A helper to load the native hadoop code i.e. libhadoop.so.
  40979. This handles the fallback to either the bundled libhadoop-Linux-i386-32.so
  40980. or the default java implementations where appropriate.]]>
  40981. </doc>
  40982. </class>
  40983. <!-- end class org.apache.hadoop.util.NativeCodeLoader -->
  40984. <!-- start class org.apache.hadoop.util.PlatformName -->
  40985. <class name="PlatformName" extends="java.lang.Object"
  40986. abstract="false"
  40987. static="false" final="false" visibility="public"
  40988. deprecated="not deprecated">
  40989. <constructor name="PlatformName"
  40990. static="false" final="false" visibility="public"
  40991. deprecated="not deprecated">
  40992. </constructor>
  40993. <method name="getPlatformName" return="java.lang.String"
  40994. abstract="false" native="false" synchronized="false"
  40995. static="true" final="false" visibility="public"
  40996. deprecated="not deprecated">
  40997. <doc>
  40998. <![CDATA[Get the complete platform as per the java-vm.
  40999. @return returns the complete platform as per the java-vm.]]>
  41000. </doc>
  41001. </method>
  41002. <method name="main"
  41003. abstract="false" native="false" synchronized="false"
  41004. static="true" final="false" visibility="public"
  41005. deprecated="not deprecated">
  41006. <param name="args" type="java.lang.String[]"/>
  41007. </method>
  41008. <doc>
  41009. <![CDATA[A helper class for getting build-info of the java-vm.]]>
  41010. </doc>
  41011. </class>
  41012. <!-- end class org.apache.hadoop.util.PlatformName -->
  41013. <!-- start class org.apache.hadoop.util.PrintJarMainClass -->
  41014. <class name="PrintJarMainClass" extends="java.lang.Object"
  41015. abstract="false"
  41016. static="false" final="false" visibility="public"
  41017. deprecated="not deprecated">
  41018. <constructor name="PrintJarMainClass"
  41019. static="false" final="false" visibility="public"
  41020. deprecated="not deprecated">
  41021. </constructor>
  41022. <method name="main"
  41023. abstract="false" native="false" synchronized="false"
  41024. static="true" final="false" visibility="public"
  41025. deprecated="not deprecated">
  41026. <param name="args" type="java.lang.String[]"/>
  41027. <doc>
  41028. <![CDATA[@param args]]>
  41029. </doc>
  41030. </method>
  41031. <doc>
  41032. <![CDATA[A micro-application that prints the main class name out of a jar file.]]>
  41033. </doc>
  41034. </class>
  41035. <!-- end class org.apache.hadoop.util.PrintJarMainClass -->
  41036. <!-- start class org.apache.hadoop.util.PriorityQueue -->
  41037. <class name="PriorityQueue" extends="java.lang.Object"
  41038. abstract="true"
  41039. static="false" final="false" visibility="public"
  41040. deprecated="not deprecated">
  41041. <constructor name="PriorityQueue"
  41042. static="false" final="false" visibility="public"
  41043. deprecated="not deprecated">
  41044. </constructor>
  41045. <method name="lessThan" return="boolean"
  41046. abstract="true" native="false" synchronized="false"
  41047. static="false" final="false" visibility="protected"
  41048. deprecated="not deprecated">
  41049. <param name="a" type="java.lang.Object"/>
  41050. <param name="b" type="java.lang.Object"/>
  41051. <doc>
  41052. <![CDATA[Determines the ordering of objects in this priority queue. Subclasses
  41053. must define this one method.]]>
  41054. </doc>
  41055. </method>
  41056. <method name="initialize"
  41057. abstract="false" native="false" synchronized="false"
  41058. static="false" final="true" visibility="protected"
  41059. deprecated="not deprecated">
  41060. <param name="maxSize" type="int"/>
  41061. <doc>
  41062. <![CDATA[Subclass constructors must call this.]]>
  41063. </doc>
  41064. </method>
  41065. <method name="put"
  41066. abstract="false" native="false" synchronized="false"
  41067. static="false" final="true" visibility="public"
  41068. deprecated="not deprecated">
  41069. <param name="element" type="java.lang.Object"/>
  41070. <doc>
  41071. <![CDATA[Adds an Object to a PriorityQueue in log(size) time.
  41072. If one tries to add more objects than maxSize from initialize
  41073. a RuntimeException (ArrayIndexOutOfBound) is thrown.]]>
  41074. </doc>
  41075. </method>
  41076. <method name="insert" return="boolean"
  41077. abstract="false" native="false" synchronized="false"
  41078. static="false" final="false" visibility="public"
  41079. deprecated="not deprecated">
  41080. <param name="element" type="java.lang.Object"/>
  41081. <doc>
  41082. <![CDATA[Adds element to the PriorityQueue in log(size) time if either
  41083. the PriorityQueue is not full, or not lessThan(element, top()).
  41084. @param element
  41085. @return true if element is added, false otherwise.]]>
  41086. </doc>
  41087. </method>
  41088. <method name="top" return="java.lang.Object"
  41089. abstract="false" native="false" synchronized="false"
  41090. static="false" final="true" visibility="public"
  41091. deprecated="not deprecated">
  41092. <doc>
  41093. <![CDATA[Returns the least element of the PriorityQueue in constant time.]]>
  41094. </doc>
  41095. </method>
  41096. <method name="pop" return="java.lang.Object"
  41097. abstract="false" native="false" synchronized="false"
  41098. static="false" final="true" visibility="public"
  41099. deprecated="not deprecated">
  41100. <doc>
  41101. <![CDATA[Removes and returns the least element of the PriorityQueue in log(size)
  41102. time.]]>
  41103. </doc>
  41104. </method>
  41105. <method name="adjustTop"
  41106. abstract="false" native="false" synchronized="false"
  41107. static="false" final="true" visibility="public"
  41108. deprecated="not deprecated">
  41109. <doc>
  41110. <![CDATA[Should be called when the Object at top changes values. Still log(n)
  41111. worst case, but it's at least twice as fast to <pre>
  41112. { pq.top().change(); pq.adjustTop(); }
  41113. </pre> instead of <pre>
  41114. { o = pq.pop(); o.change(); pq.push(o); }
  41115. </pre>]]>
  41116. </doc>
  41117. </method>
  41118. <method name="size" return="int"
  41119. abstract="false" native="false" synchronized="false"
  41120. static="false" final="true" visibility="public"
  41121. deprecated="not deprecated">
  41122. <doc>
  41123. <![CDATA[Returns the number of elements currently stored in the PriorityQueue.]]>
  41124. </doc>
  41125. </method>
  41126. <method name="clear"
  41127. abstract="false" native="false" synchronized="false"
  41128. static="false" final="true" visibility="public"
  41129. deprecated="not deprecated">
  41130. <doc>
  41131. <![CDATA[Removes all entries from the PriorityQueue.]]>
  41132. </doc>
  41133. </method>
  41134. <doc>
  41135. <![CDATA[A PriorityQueue maintains a partial ordering of its elements such that the
  41136. least element can always be found in constant time. Put()'s and pop()'s
  41137. require log(size) time.]]>
  41138. </doc>
  41139. </class>
  41140. <!-- end class org.apache.hadoop.util.PriorityQueue -->
  41141. <!-- start class org.apache.hadoop.util.ProcessTree -->
  41142. <class name="ProcessTree" extends="java.lang.Object"
  41143. abstract="false"
  41144. static="false" final="false" visibility="public"
  41145. deprecated="not deprecated">
  41146. <constructor name="ProcessTree"
  41147. static="false" final="false" visibility="public"
  41148. deprecated="not deprecated">
  41149. </constructor>
  41150. <method name="killProcess"
  41151. abstract="false" native="false" synchronized="false"
  41152. static="true" final="false" visibility="public"
  41153. deprecated="not deprecated">
  41154. <param name="pid" type="java.lang.String"/>
  41155. <param name="signal" type="org.apache.hadoop.util.ProcessTree.Signal"/>
  41156. <doc>
  41157. <![CDATA[Sends signal to process, forcefully terminating the process.
  41158. @param pid process id
  41159. @param signal the signal number to send]]>
  41160. </doc>
  41161. </method>
  41162. <method name="killProcessGroup"
  41163. abstract="false" native="false" synchronized="false"
  41164. static="true" final="false" visibility="public"
  41165. deprecated="not deprecated">
  41166. <param name="pgrpId" type="java.lang.String"/>
  41167. <param name="signal" type="org.apache.hadoop.util.ProcessTree.Signal"/>
  41168. <doc>
  41169. <![CDATA[Sends signal to all process belonging to same process group,
  41170. forcefully terminating the process group.
  41171. @param pgrpId process group id
  41172. @param signal the signal number to send]]>
  41173. </doc>
  41174. </method>
  41175. <method name="isAlive" return="boolean"
  41176. abstract="false" native="false" synchronized="false"
  41177. static="true" final="false" visibility="public"
  41178. deprecated="not deprecated">
  41179. <param name="pid" type="java.lang.String"/>
  41180. <doc>
  41181. <![CDATA[Is the process with PID pid still alive?
  41182. This method assumes that isAlive is called on a pid that was alive not
  41183. too long ago, and hence assumes no chance of pid-wrapping-around.
  41184. @param pid pid of the process to check.
  41185. @return true if process is alive.]]>
  41186. </doc>
  41187. </method>
  41188. <method name="isProcessGroupAlive" return="boolean"
  41189. abstract="false" native="false" synchronized="false"
  41190. static="true" final="false" visibility="public"
  41191. deprecated="not deprecated">
  41192. <param name="pgrpId" type="java.lang.String"/>
  41193. <doc>
  41194. <![CDATA[Is the process group with still alive?
  41195. This method assumes that isAlive is called on a pid that was alive not
  41196. too long ago, and hence assumes no chance of pid-wrapping-around.
  41197. @param pgrpId process group id
  41198. @return true if any of process in group is alive.]]>
  41199. </doc>
  41200. </method>
  41201. <field name="isSetsidAvailable" type="boolean"
  41202. transient="false" volatile="false"
  41203. static="true" final="true" visibility="public"
  41204. deprecated="not deprecated">
  41205. </field>
  41206. <doc>
  41207. <![CDATA[Process tree related operations]]>
  41208. </doc>
  41209. </class>
  41210. <!-- end class org.apache.hadoop.util.ProcessTree -->
  41211. <!-- start class org.apache.hadoop.util.ProcessTree.Signal -->
  41212. <class name="ProcessTree.Signal" extends="java.lang.Enum"
  41213. abstract="false"
  41214. static="true" final="true" visibility="public"
  41215. deprecated="not deprecated">
  41216. <method name="values" return="org.apache.hadoop.util.ProcessTree.Signal[]"
  41217. abstract="false" native="false" synchronized="false"
  41218. static="true" final="false" visibility="public"
  41219. deprecated="not deprecated">
  41220. </method>
  41221. <method name="valueOf" return="org.apache.hadoop.util.ProcessTree.Signal"
  41222. abstract="false" native="false" synchronized="false"
  41223. static="true" final="false" visibility="public"
  41224. deprecated="not deprecated">
  41225. <param name="name" type="java.lang.String"/>
  41226. </method>
  41227. <method name="getValue" return="int"
  41228. abstract="false" native="false" synchronized="false"
  41229. static="false" final="false" visibility="public"
  41230. deprecated="not deprecated">
  41231. </method>
  41232. <field name="QUIT" type="org.apache.hadoop.util.ProcessTree.Signal"
  41233. transient="false" volatile="false"
  41234. static="true" final="true" visibility="public"
  41235. deprecated="not deprecated">
  41236. </field>
  41237. <field name="KILL" type="org.apache.hadoop.util.ProcessTree.Signal"
  41238. transient="false" volatile="false"
  41239. static="true" final="true" visibility="public"
  41240. deprecated="not deprecated">
  41241. </field>
  41242. <field name="TERM" type="org.apache.hadoop.util.ProcessTree.Signal"
  41243. transient="false" volatile="false"
  41244. static="true" final="true" visibility="public"
  41245. deprecated="not deprecated">
  41246. </field>
  41247. <doc>
  41248. <![CDATA[The constants for the signals.]]>
  41249. </doc>
  41250. </class>
  41251. <!-- end class org.apache.hadoop.util.ProcessTree.Signal -->
  41252. <!-- start class org.apache.hadoop.util.ProcfsBasedProcessTree -->
  41253. <class name="ProcfsBasedProcessTree" extends="org.apache.hadoop.util.ProcessTree"
  41254. abstract="false"
  41255. static="false" final="false" visibility="public"
  41256. deprecated="not deprecated">
  41257. <constructor name="ProcfsBasedProcessTree" type="java.lang.String"
  41258. static="false" final="false" visibility="public"
  41259. deprecated="not deprecated">
  41260. </constructor>
  41261. <constructor name="ProcfsBasedProcessTree" type="java.lang.String, boolean"
  41262. static="false" final="false" visibility="public"
  41263. deprecated="not deprecated">
  41264. </constructor>
  41265. <constructor name="ProcfsBasedProcessTree" type="java.lang.String, java.lang.String"
  41266. static="false" final="false" visibility="public"
  41267. deprecated="not deprecated">
  41268. </constructor>
  41269. <method name="isAvailable" return="boolean"
  41270. abstract="false" native="false" synchronized="false"
  41271. static="true" final="false" visibility="public"
  41272. deprecated="not deprecated">
  41273. <doc>
  41274. <![CDATA[Checks if the ProcfsBasedProcessTree is available on this system.
  41275. @return true if ProcfsBasedProcessTree is available. False otherwise.]]>
  41276. </doc>
  41277. </method>
  41278. <method name="getProcessTree" return="org.apache.hadoop.util.ProcfsBasedProcessTree"
  41279. abstract="false" native="false" synchronized="false"
  41280. static="false" final="false" visibility="public"
  41281. deprecated="not deprecated">
  41282. <doc>
  41283. <![CDATA[Get the process-tree with latest state. If the root-process is not alive,
  41284. an empty tree will be returned.
  41285. @return the process-tree with latest state.]]>
  41286. </doc>
  41287. </method>
  41288. <method name="isAlive" return="boolean"
  41289. abstract="false" native="false" synchronized="false"
  41290. static="false" final="false" visibility="public"
  41291. deprecated="not deprecated">
  41292. <doc>
  41293. <![CDATA[Is the root-process alive?
  41294. @return true if the root-process is alive, false otherwise.]]>
  41295. </doc>
  41296. </method>
  41297. <method name="isAnyProcessInTreeAlive" return="boolean"
  41298. abstract="false" native="false" synchronized="false"
  41299. static="false" final="false" visibility="public"
  41300. deprecated="not deprecated">
  41301. <doc>
  41302. <![CDATA[Is any of the subprocesses in the process-tree alive?
  41303. @return true if any of the processes in the process-tree is
  41304. alive, false otherwise.]]>
  41305. </doc>
  41306. </method>
  41307. <method name="getProcessTreeDump" return="java.lang.String"
  41308. abstract="false" native="false" synchronized="false"
  41309. static="false" final="false" visibility="public"
  41310. deprecated="not deprecated">
  41311. <doc>
  41312. <![CDATA[Get a dump of the process-tree.
  41313. @return a string concatenating the dump of information of all the processes
  41314. in the process-tree]]>
  41315. </doc>
  41316. </method>
  41317. <method name="getCumulativeVmem" return="long"
  41318. abstract="false" native="false" synchronized="false"
  41319. static="false" final="false" visibility="public"
  41320. deprecated="not deprecated">
  41321. <doc>
  41322. <![CDATA[Get the cumulative virtual memory used by all the processes in the
  41323. process-tree.
  41324. @return cumulative virtual memory used by the process-tree in bytes.]]>
  41325. </doc>
  41326. </method>
  41327. <method name="getCumulativeRssmem" return="long"
  41328. abstract="false" native="false" synchronized="false"
  41329. static="false" final="false" visibility="public"
  41330. deprecated="not deprecated">
  41331. <doc>
  41332. <![CDATA[Get the cumulative resident set size (rss) memory used by all the processes
  41333. in the process-tree.
  41334. @return cumulative rss memory used by the process-tree in bytes. return 0
  41335. if it cannot be calculated]]>
  41336. </doc>
  41337. </method>
  41338. <method name="getCumulativeVmem" return="long"
  41339. abstract="false" native="false" synchronized="false"
  41340. static="false" final="false" visibility="public"
  41341. deprecated="not deprecated">
  41342. <param name="olderThanAge" type="int"/>
  41343. <doc>
  41344. <![CDATA[Get the cumulative virtual memory used by all the processes in the
  41345. process-tree that are older than the passed in age.
  41346. @param olderThanAge processes above this age are included in the
  41347. memory addition
  41348. @return cumulative virtual memory used by the process-tree in bytes,
  41349. for processes older than this age.]]>
  41350. </doc>
  41351. </method>
  41352. <method name="getCumulativeRssmem" return="long"
  41353. abstract="false" native="false" synchronized="false"
  41354. static="false" final="false" visibility="public"
  41355. deprecated="not deprecated">
  41356. <param name="olderThanAge" type="int"/>
  41357. <doc>
  41358. <![CDATA[Get the cumulative resident set size (rss) memory used by all the processes
  41359. in the process-tree that are older than the passed in age.
  41360. @param olderThanAge processes above this age are included in the
  41361. memory addition
  41362. @return cumulative rss memory used by the process-tree in bytes,
  41363. for processes older than this age. return 0 if it cannot be
  41364. calculated]]>
  41365. </doc>
  41366. </method>
  41367. <method name="getCumulativeCpuTime" return="long"
  41368. abstract="false" native="false" synchronized="false"
  41369. static="false" final="false" visibility="public"
  41370. deprecated="not deprecated">
  41371. <doc>
  41372. <![CDATA[Get the CPU time in millisecond used by all the processes in the
  41373. process-tree since the process-tree created
  41374. @return cumulative CPU time in millisecond since the process-tree created
  41375. return 0 if it cannot be calculated]]>
  41376. </doc>
  41377. </method>
  41378. <method name="toString" return="java.lang.String"
  41379. abstract="false" native="false" synchronized="false"
  41380. static="false" final="false" visibility="public"
  41381. deprecated="not deprecated">
  41382. <doc>
  41383. <![CDATA[Returns a string printing PIDs of process present in the
  41384. ProcfsBasedProcessTree. Output format : [pid pid ..]]]>
  41385. </doc>
  41386. </method>
  41387. <field name="PAGE_SIZE" type="long"
  41388. transient="false" volatile="false"
  41389. static="true" final="true" visibility="public"
  41390. deprecated="not deprecated">
  41391. </field>
  41392. <field name="JIFFY_LENGTH_IN_MILLIS" type="long"
  41393. transient="false" volatile="false"
  41394. static="true" final="true" visibility="public"
  41395. deprecated="not deprecated">
  41396. </field>
  41397. <doc>
  41398. <![CDATA[A Proc file-system based ProcessTree. Works only on Linux.]]>
  41399. </doc>
  41400. </class>
  41401. <!-- end class org.apache.hadoop.util.ProcfsBasedProcessTree -->
  41402. <!-- start class org.apache.hadoop.util.ProgramDriver -->
  41403. <class name="ProgramDriver" extends="java.lang.Object"
  41404. abstract="false"
  41405. static="false" final="false" visibility="public"
  41406. deprecated="not deprecated">
  41407. <constructor name="ProgramDriver"
  41408. static="false" final="false" visibility="public"
  41409. deprecated="not deprecated">
  41410. </constructor>
  41411. <method name="addClass"
  41412. abstract="false" native="false" synchronized="false"
  41413. static="false" final="false" visibility="public"
  41414. deprecated="not deprecated">
  41415. <param name="name" type="java.lang.String"/>
  41416. <param name="mainClass" type="java.lang.Class"/>
  41417. <param name="description" type="java.lang.String"/>
  41418. <exception name="Throwable" type="java.lang.Throwable"/>
  41419. <doc>
  41420. <![CDATA[This is the method that adds the classed to the repository
  41421. @param name The name of the string you want the class instance to be called with
  41422. @param mainClass The class that you want to add to the repository
  41423. @param description The description of the class
  41424. @throws NoSuchMethodException
  41425. @throws SecurityException]]>
  41426. </doc>
  41427. </method>
  41428. <method name="driver"
  41429. abstract="false" native="false" synchronized="false"
  41430. static="false" final="false" visibility="public"
  41431. deprecated="not deprecated">
  41432. <param name="args" type="java.lang.String[]"/>
  41433. <exception name="Throwable" type="java.lang.Throwable"/>
  41434. <doc>
  41435. <![CDATA[This is a driver for the example programs.
  41436. It looks at the first command line argument and tries to find an
  41437. example program with that name.
  41438. If it is found, it calls the main method in that class with the rest
  41439. of the command line arguments.
  41440. @param args The argument from the user. args[0] is the command to run.
  41441. @throws NoSuchMethodException
  41442. @throws SecurityException
  41443. @throws IllegalAccessException
  41444. @throws IllegalArgumentException
  41445. @throws Throwable Anything thrown by the example program's main]]>
  41446. </doc>
  41447. </method>
  41448. <doc>
  41449. <![CDATA[A driver that is used to run programs added to it]]>
  41450. </doc>
  41451. </class>
  41452. <!-- end class org.apache.hadoop.util.ProgramDriver -->
  41453. <!-- start class org.apache.hadoop.util.Progress -->
  41454. <class name="Progress" extends="java.lang.Object"
  41455. abstract="false"
  41456. static="false" final="false" visibility="public"
  41457. deprecated="not deprecated">
  41458. <constructor name="Progress"
  41459. static="false" final="false" visibility="public"
  41460. deprecated="not deprecated">
  41461. <doc>
  41462. <![CDATA[Creates a new root node.]]>
  41463. </doc>
  41464. </constructor>
  41465. <method name="addPhase" return="org.apache.hadoop.util.Progress"
  41466. abstract="false" native="false" synchronized="false"
  41467. static="false" final="false" visibility="public"
  41468. deprecated="not deprecated">
  41469. <param name="status" type="java.lang.String"/>
  41470. <doc>
  41471. <![CDATA[Adds a named node to the tree.]]>
  41472. </doc>
  41473. </method>
  41474. <method name="addPhase" return="org.apache.hadoop.util.Progress"
  41475. abstract="false" native="false" synchronized="true"
  41476. static="false" final="false" visibility="public"
  41477. deprecated="not deprecated">
  41478. <doc>
  41479. <![CDATA[Adds a node to the tree.]]>
  41480. </doc>
  41481. </method>
  41482. <method name="startNextPhase"
  41483. abstract="false" native="false" synchronized="true"
  41484. static="false" final="false" visibility="public"
  41485. deprecated="not deprecated">
  41486. <doc>
  41487. <![CDATA[Called during execution to move to the next phase at this level in the
  41488. tree.]]>
  41489. </doc>
  41490. </method>
  41491. <method name="phase" return="org.apache.hadoop.util.Progress"
  41492. abstract="false" native="false" synchronized="true"
  41493. static="false" final="false" visibility="public"
  41494. deprecated="not deprecated">
  41495. <doc>
  41496. <![CDATA[Returns the current sub-node executing.]]>
  41497. </doc>
  41498. </method>
  41499. <method name="complete"
  41500. abstract="false" native="false" synchronized="false"
  41501. static="false" final="false" visibility="public"
  41502. deprecated="not deprecated">
  41503. <doc>
  41504. <![CDATA[Completes this node, moving the parent node to its next child.]]>
  41505. </doc>
  41506. </method>
  41507. <method name="set"
  41508. abstract="false" native="false" synchronized="true"
  41509. static="false" final="false" visibility="public"
  41510. deprecated="not deprecated">
  41511. <param name="progress" type="float"/>
  41512. <doc>
  41513. <![CDATA[Called during execution on a leaf node to set its progress.]]>
  41514. </doc>
  41515. </method>
  41516. <method name="get" return="float"
  41517. abstract="false" native="false" synchronized="true"
  41518. static="false" final="false" visibility="public"
  41519. deprecated="not deprecated">
  41520. <doc>
  41521. <![CDATA[Returns the overall progress of the root.]]>
  41522. </doc>
  41523. </method>
  41524. <method name="getProgress" return="float"
  41525. abstract="false" native="false" synchronized="true"
  41526. static="false" final="false" visibility="public"
  41527. deprecated="not deprecated">
  41528. <doc>
  41529. <![CDATA[Returns progress in this node. get() would give overall progress of the
  41530. root node(not just given current node).]]>
  41531. </doc>
  41532. </method>
  41533. <method name="setStatus"
  41534. abstract="false" native="false" synchronized="true"
  41535. static="false" final="false" visibility="public"
  41536. deprecated="not deprecated">
  41537. <param name="status" type="java.lang.String"/>
  41538. </method>
  41539. <method name="toString" return="java.lang.String"
  41540. abstract="false" native="false" synchronized="false"
  41541. static="false" final="false" visibility="public"
  41542. deprecated="not deprecated">
  41543. </method>
  41544. <doc>
  41545. <![CDATA[Utility to assist with generation of progress reports. Applications build
  41546. a hierarchy of {@link Progress} instances, each modelling a phase of
  41547. execution. The root is constructed with {@link #Progress()}. Nodes for
  41548. sub-phases are created by calling {@link #addPhase()}.]]>
  41549. </doc>
  41550. </class>
  41551. <!-- end class org.apache.hadoop.util.Progress -->
  41552. <!-- start interface org.apache.hadoop.util.Progressable -->
  41553. <interface name="Progressable" abstract="true"
  41554. static="false" final="false" visibility="public"
  41555. deprecated="not deprecated">
  41556. <method name="progress"
  41557. abstract="false" native="false" synchronized="false"
  41558. static="false" final="false" visibility="public"
  41559. deprecated="not deprecated">
  41560. <doc>
  41561. <![CDATA[Report progress to the Hadoop framework.]]>
  41562. </doc>
  41563. </method>
  41564. <doc>
  41565. <![CDATA[A facility for reporting progress.
  41566. <p>Clients and/or applications can use the provided <code>Progressable</code>
  41567. to explicitly report progress to the Hadoop framework. This is especially
  41568. important for operations which take an insignificant amount of time since,
  41569. in-lieu of the reported progress, the framework has to assume that an error
  41570. has occured and time-out the operation.</p>]]>
  41571. </doc>
  41572. </interface>
  41573. <!-- end interface org.apache.hadoop.util.Progressable -->
  41574. <!-- start class org.apache.hadoop.util.PureJavaCrc32 -->
  41575. <class name="PureJavaCrc32" extends="java.lang.Object"
  41576. abstract="false"
  41577. static="false" final="false" visibility="public"
  41578. deprecated="not deprecated">
  41579. <implements name="java.util.zip.Checksum"/>
  41580. <constructor name="PureJavaCrc32"
  41581. static="false" final="false" visibility="public"
  41582. deprecated="not deprecated">
  41583. </constructor>
  41584. <method name="getValue" return="long"
  41585. abstract="false" native="false" synchronized="false"
  41586. static="false" final="false" visibility="public"
  41587. deprecated="not deprecated">
  41588. <doc>
  41589. <![CDATA[{@inheritDoc}]]>
  41590. </doc>
  41591. </method>
  41592. <method name="reset"
  41593. abstract="false" native="false" synchronized="false"
  41594. static="false" final="false" visibility="public"
  41595. deprecated="not deprecated">
  41596. <doc>
  41597. <![CDATA[{@inheritDoc}]]>
  41598. </doc>
  41599. </method>
  41600. <method name="update"
  41601. abstract="false" native="false" synchronized="false"
  41602. static="false" final="false" visibility="public"
  41603. deprecated="not deprecated">
  41604. <param name="b" type="byte[]"/>
  41605. <param name="off" type="int"/>
  41606. <param name="len" type="int"/>
  41607. <doc>
  41608. <![CDATA[{@inheritDoc}]]>
  41609. </doc>
  41610. </method>
  41611. <method name="update"
  41612. abstract="false" native="false" synchronized="false"
  41613. static="false" final="true" visibility="public"
  41614. deprecated="not deprecated">
  41615. <param name="b" type="int"/>
  41616. <doc>
  41617. <![CDATA[{@inheritDoc}]]>
  41618. </doc>
  41619. </method>
  41620. <doc>
  41621. <![CDATA[A pure-java implementation of the CRC32 checksum that uses
  41622. the same polynomial as the built-in native CRC32.
  41623. This is to avoid the JNI overhead for certain uses of Checksumming
  41624. where many small pieces of data are checksummed in succession.
  41625. The current version is ~10x to 1.8x as fast as Sun's native
  41626. java.util.zip.CRC32 in Java 1.6
  41627. @see java.util.zip.CRC32]]>
  41628. </doc>
  41629. </class>
  41630. <!-- end class org.apache.hadoop.util.PureJavaCrc32 -->
  41631. <!-- start class org.apache.hadoop.util.QueueProcessingStatistics -->
  41632. <class name="QueueProcessingStatistics" extends="java.lang.Object"
  41633. abstract="true"
  41634. static="false" final="false" visibility="public"
  41635. deprecated="not deprecated">
  41636. <constructor name="QueueProcessingStatistics" type="java.lang.String, java.lang.String, org.apache.commons.logging.Log"
  41637. static="false" final="false" visibility="public"
  41638. deprecated="not deprecated">
  41639. <doc>
  41640. <![CDATA[@param queueName - Human-readable name of the queue being monitored,
  41641. used as first word in the log messages.
  41642. @param workItemsName - what kind of work items are being managed
  41643. on the queue? A plural word is best here, for logging.
  41644. @param logObject - What log do you want the log messages to be sent to?]]>
  41645. </doc>
  41646. </constructor>
  41647. <method name="startCycle"
  41648. abstract="false" native="false" synchronized="false"
  41649. static="false" final="false" visibility="public"
  41650. deprecated="not deprecated">
  41651. <param name="maxWorkToProcess" type="int"/>
  41652. </method>
  41653. <method name="endCycle"
  41654. abstract="false" native="false" synchronized="false"
  41655. static="false" final="false" visibility="public"
  41656. deprecated="not deprecated">
  41657. <param name="workFound" type="int"/>
  41658. </method>
  41659. <method name="checkRestart"
  41660. abstract="false" native="false" synchronized="false"
  41661. static="false" final="false" visibility="public"
  41662. deprecated="not deprecated">
  41663. </method>
  41664. <method name="preCheckIsLastCycle" return="boolean"
  41665. abstract="true" native="false" synchronized="false"
  41666. static="false" final="false" visibility="public"
  41667. deprecated="not deprecated">
  41668. <param name="maxWorkToProcess" type="int"/>
  41669. <doc>
  41670. <![CDATA[The termination condition is to identify the last cycle that will
  41671. empty the queue. Two abstract APIs are called: {@code preCheckIsLastCycle}
  41672. is called at the beginning of each cycle, and
  41673. {@link #postCheckIsLastCycle} is called at the end of each cycle.
  41674. At least one of them must correctly provide the termination
  41675. condition. The other may always return 'false'. If either of them
  41676. returns 'true' in a given cycle, then at the end of that cycle the
  41677. stats will be output to log, and stats collection will end.
  41678. @param maxWorkToProcess - if this number is greater than the amount
  41679. of work remaining at the start of a cycle, then it will
  41680. be the last cycle.
  41681. @return - true if last cycle detected, else false]]>
  41682. </doc>
  41683. </method>
  41684. <method name="postCheckIsLastCycle" return="boolean"
  41685. abstract="true" native="false" synchronized="false"
  41686. static="false" final="false" visibility="public"
  41687. deprecated="not deprecated">
  41688. <param name="workFound" type="int"/>
  41689. <doc>
  41690. <![CDATA[See {@link #preCheckIsLastCycle}.
  41691. @param workFound - may not be useful
  41692. @return - true if remaining work is zero at end of cycle,
  41693. else false]]>
  41694. </doc>
  41695. </method>
  41696. <doc>
  41697. <![CDATA[Hadoop has several work queues, such as
  41698. {@link org.apache.hadoop.hdfs.server.namenode.FSNamesystem#neededReplications}
  41699. With a properly throttled queue, a worker thread cycles repeatedly,
  41700. doing a chunk of work each cycle then resting a bit, until the queue is
  41701. empty. This class is intended to collect statistics about the behavior of
  41702. such queues and consumers. It reports the amount of work done and
  41703. how long it took, for the first cycle after collection starts, and for
  41704. the total number of cycles needed to flush the queue. We use a state
  41705. machine to detect when the queue has been flushed and then we log the
  41706. stats; see {@link State} for enumeration of the states and their meanings.]]>
  41707. </doc>
  41708. </class>
  41709. <!-- end class org.apache.hadoop.util.QueueProcessingStatistics -->
  41710. <!-- start class org.apache.hadoop.util.QueueProcessingStatistics.State -->
  41711. <class name="QueueProcessingStatistics.State" extends="java.lang.Enum"
  41712. abstract="false"
  41713. static="true" final="true" visibility="public"
  41714. deprecated="not deprecated">
  41715. <method name="values" return="org.apache.hadoop.util.QueueProcessingStatistics.State[]"
  41716. abstract="false" native="false" synchronized="false"
  41717. static="true" final="false" visibility="public"
  41718. deprecated="not deprecated">
  41719. </method>
  41720. <method name="valueOf" return="org.apache.hadoop.util.QueueProcessingStatistics.State"
  41721. abstract="false" native="false" synchronized="false"
  41722. static="true" final="false" visibility="public"
  41723. deprecated="not deprecated">
  41724. <param name="name" type="java.lang.String"/>
  41725. </method>
  41726. <field name="BEGIN_COLLECTING" type="org.apache.hadoop.util.QueueProcessingStatistics.State"
  41727. transient="false" volatile="false"
  41728. static="true" final="true" visibility="public"
  41729. deprecated="not deprecated">
  41730. </field>
  41731. <field name="IN_FIRST_CYCLE" type="org.apache.hadoop.util.QueueProcessingStatistics.State"
  41732. transient="false" volatile="false"
  41733. static="true" final="true" visibility="public"
  41734. deprecated="not deprecated">
  41735. </field>
  41736. <field name="IN_SOLE_CYCLE" type="org.apache.hadoop.util.QueueProcessingStatistics.State"
  41737. transient="false" volatile="false"
  41738. static="true" final="true" visibility="public"
  41739. deprecated="not deprecated">
  41740. </field>
  41741. <field name="DONE_FIRST_CYCLE" type="org.apache.hadoop.util.QueueProcessingStatistics.State"
  41742. transient="false" volatile="false"
  41743. static="true" final="true" visibility="public"
  41744. deprecated="not deprecated">
  41745. </field>
  41746. <field name="IN_LAST_CYCLE" type="org.apache.hadoop.util.QueueProcessingStatistics.State"
  41747. transient="false" volatile="false"
  41748. static="true" final="true" visibility="public"
  41749. deprecated="not deprecated">
  41750. </field>
  41751. <field name="DONE_COLLECTING" type="org.apache.hadoop.util.QueueProcessingStatistics.State"
  41752. transient="false" volatile="false"
  41753. static="true" final="true" visibility="public"
  41754. deprecated="not deprecated">
  41755. </field>
  41756. <doc>
  41757. <![CDATA[This enum provides the "states" of a state machine for
  41758. {@link QueueProcessingStatistics}.
  41759. The meanings of the states are: <ul>
  41760. <li> BEGIN_COLLECTING - Ready to begin.
  41761. <li> IN_FIRST_CYCLE - Started the first cycle.
  41762. <li> IN_SOLE_CYCLE - Still in first cycle, but already know there will be
  41763. no further cycles because this one will complete all
  41764. needed work. When done, will go straight to
  41765. "DONE_COLLECTING".
  41766. <li> DONE_FIRST_CYCLE - Done first cycle, doing subsequent cycles.
  41767. <li> IN_LAST_CYCLE - Started the last cycle.
  41768. <li> DONE_COLLECTING - Done with last cycle, finishing up.
  41769. </ul>]]>
  41770. </doc>
  41771. </class>
  41772. <!-- end class org.apache.hadoop.util.QueueProcessingStatistics.State -->
  41773. <!-- start class org.apache.hadoop.util.QuickSort -->
  41774. <class name="QuickSort" extends="java.lang.Object"
  41775. abstract="false"
  41776. static="false" final="true" visibility="public"
  41777. deprecated="not deprecated">
  41778. <implements name="org.apache.hadoop.util.IndexedSorter"/>
  41779. <constructor name="QuickSort"
  41780. static="false" final="false" visibility="public"
  41781. deprecated="not deprecated">
  41782. </constructor>
  41783. <method name="getMaxDepth" return="int"
  41784. abstract="false" native="false" synchronized="false"
  41785. static="true" final="false" visibility="protected"
  41786. deprecated="not deprecated">
  41787. <param name="x" type="int"/>
  41788. <doc>
  41789. <![CDATA[Deepest recursion before giving up and doing a heapsort.
  41790. Returns 2 * ceil(log(n)).]]>
  41791. </doc>
  41792. </method>
  41793. <method name="sort"
  41794. abstract="false" native="false" synchronized="false"
  41795. static="false" final="false" visibility="public"
  41796. deprecated="not deprecated">
  41797. <param name="s" type="org.apache.hadoop.util.IndexedSortable"/>
  41798. <param name="p" type="int"/>
  41799. <param name="r" type="int"/>
  41800. <doc>
  41801. <![CDATA[Sort the given range of items using quick sort.
  41802. {@inheritDoc} If the recursion depth falls below {@link #getMaxDepth},
  41803. then switch to {@link HeapSort}.]]>
  41804. </doc>
  41805. </method>
  41806. <method name="sort"
  41807. abstract="false" native="false" synchronized="false"
  41808. static="false" final="false" visibility="public"
  41809. deprecated="not deprecated">
  41810. <param name="s" type="org.apache.hadoop.util.IndexedSortable"/>
  41811. <param name="p" type="int"/>
  41812. <param name="r" type="int"/>
  41813. <param name="rep" type="org.apache.hadoop.util.Progressable"/>
  41814. <doc>
  41815. <![CDATA[{@inheritDoc}]]>
  41816. </doc>
  41817. </method>
  41818. <doc>
  41819. <![CDATA[An implementation of the core algorithm of QuickSort.]]>
  41820. </doc>
  41821. </class>
  41822. <!-- end class org.apache.hadoop.util.QuickSort -->
  41823. <!-- start class org.apache.hadoop.util.ReflectionUtils -->
  41824. <class name="ReflectionUtils" extends="java.lang.Object"
  41825. abstract="false"
  41826. static="false" final="false" visibility="public"
  41827. deprecated="not deprecated">
  41828. <constructor name="ReflectionUtils"
  41829. static="false" final="false" visibility="public"
  41830. deprecated="not deprecated">
  41831. </constructor>
  41832. <method name="setConf"
  41833. abstract="false" native="false" synchronized="false"
  41834. static="true" final="false" visibility="public"
  41835. deprecated="not deprecated">
  41836. <param name="theObject" type="java.lang.Object"/>
  41837. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  41838. <doc>
  41839. <![CDATA[Check and set 'configuration' if necessary.
  41840. @param theObject object for which to set configuration
  41841. @param conf Configuration]]>
  41842. </doc>
  41843. </method>
  41844. <method name="newInstance" return="java.lang.Object"
  41845. abstract="false" native="false" synchronized="false"
  41846. static="true" final="false" visibility="public"
  41847. deprecated="not deprecated">
  41848. <param name="theClass" type="java.lang.Class"/>
  41849. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  41850. <doc>
  41851. <![CDATA[Create an object for the given class and initialize it from conf
  41852. @param theClass class of which an object is created
  41853. @param conf Configuration
  41854. @return a new object]]>
  41855. </doc>
  41856. </method>
  41857. <method name="setContentionTracing"
  41858. abstract="false" native="false" synchronized="false"
  41859. static="true" final="false" visibility="public"
  41860. deprecated="not deprecated">
  41861. <param name="val" type="boolean"/>
  41862. </method>
  41863. <method name="printThreadInfo"
  41864. abstract="false" native="false" synchronized="false"
  41865. static="true" final="false" visibility="public"
  41866. deprecated="not deprecated">
  41867. <param name="stream" type="java.io.PrintWriter"/>
  41868. <param name="title" type="java.lang.String"/>
  41869. <doc>
  41870. <![CDATA[Print all of the thread's information and stack traces.
  41871. @param stream the stream to
  41872. @param title a string title for the stack trace]]>
  41873. </doc>
  41874. </method>
  41875. <method name="logThreadInfo"
  41876. abstract="false" native="false" synchronized="false"
  41877. static="true" final="false" visibility="public"
  41878. deprecated="not deprecated">
  41879. <param name="log" type="org.apache.commons.logging.Log"/>
  41880. <param name="title" type="java.lang.String"/>
  41881. <param name="minInterval" type="long"/>
  41882. <doc>
  41883. <![CDATA[Log the current thread stacks at INFO level.
  41884. @param log the logger that logs the stack trace
  41885. @param title a descriptive title for the call stacks
  41886. @param minInterval the minimum time from the last]]>
  41887. </doc>
  41888. </method>
  41889. <method name="getClass" return="java.lang.Class"
  41890. abstract="false" native="false" synchronized="false"
  41891. static="true" final="false" visibility="public"
  41892. deprecated="not deprecated">
  41893. <param name="o" type="java.lang.Object"/>
  41894. <doc>
  41895. <![CDATA[Return the correctly-typed {@link Class} of the given object.
  41896. @param o object whose correctly-typed <code>Class</code> is to be obtained
  41897. @return the correctly typed <code>Class</code> of the given object.]]>
  41898. </doc>
  41899. </method>
  41900. <method name="copy" return="java.lang.Object"
  41901. abstract="false" native="false" synchronized="false"
  41902. static="true" final="false" visibility="public"
  41903. deprecated="not deprecated">
  41904. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  41905. <param name="src" type="java.lang.Object"/>
  41906. <param name="dst" type="java.lang.Object"/>
  41907. <exception name="IOException" type="java.io.IOException"/>
  41908. <doc>
  41909. <![CDATA[Make a copy of the writable object using serialization to a buffer
  41910. @param dst the object to copy from
  41911. @param src the object to copy into, which is destroyed
  41912. @throws IOException]]>
  41913. </doc>
  41914. </method>
  41915. <method name="cloneWritableInto"
  41916. abstract="false" native="false" synchronized="false"
  41917. static="true" final="false" visibility="public"
  41918. deprecated="not deprecated">
  41919. <param name="dst" type="org.apache.hadoop.io.Writable"/>
  41920. <param name="src" type="org.apache.hadoop.io.Writable"/>
  41921. <exception name="IOException" type="java.io.IOException"/>
  41922. </method>
  41923. <doc>
  41924. <![CDATA[General reflection utils]]>
  41925. </doc>
  41926. </class>
  41927. <!-- end class org.apache.hadoop.util.ReflectionUtils -->
  41928. <!-- start class org.apache.hadoop.util.ResourceCalculatorPlugin -->
  41929. <class name="ResourceCalculatorPlugin" extends="org.apache.hadoop.conf.Configured"
  41930. abstract="true"
  41931. static="false" final="false" visibility="public"
  41932. deprecated="not deprecated">
  41933. <constructor name="ResourceCalculatorPlugin"
  41934. static="false" final="false" visibility="public"
  41935. deprecated="not deprecated">
  41936. </constructor>
  41937. <method name="getVirtualMemorySize" return="long"
  41938. abstract="true" native="false" synchronized="false"
  41939. static="false" final="false" visibility="public"
  41940. deprecated="not deprecated">
  41941. <doc>
  41942. <![CDATA[Obtain the total size of the virtual memory present in the system.
  41943. @return virtual memory size in bytes.]]>
  41944. </doc>
  41945. </method>
  41946. <method name="getPhysicalMemorySize" return="long"
  41947. abstract="true" native="false" synchronized="false"
  41948. static="false" final="false" visibility="public"
  41949. deprecated="not deprecated">
  41950. <doc>
  41951. <![CDATA[Obtain the total size of the physical memory present in the system.
  41952. @return physical memory size bytes.]]>
  41953. </doc>
  41954. </method>
  41955. <method name="getAvailableVirtualMemorySize" return="long"
  41956. abstract="true" native="false" synchronized="false"
  41957. static="false" final="false" visibility="public"
  41958. deprecated="not deprecated">
  41959. <doc>
  41960. <![CDATA[Obtain the total size of the available virtual memory present
  41961. in the system.
  41962. @return available virtual memory size in bytes.]]>
  41963. </doc>
  41964. </method>
  41965. <method name="getAvailablePhysicalMemorySize" 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 available physical memory present
  41971. in the system.
  41972. @return available physical memory size bytes.]]>
  41973. </doc>
  41974. </method>
  41975. <method name="getNumProcessors" return="int"
  41976. abstract="true" native="false" synchronized="false"
  41977. static="false" final="false" visibility="public"
  41978. deprecated="not deprecated">
  41979. <doc>
  41980. <![CDATA[Obtain the total number of processors present on the system.
  41981. @return number of processors]]>
  41982. </doc>
  41983. </method>
  41984. <method name="getCpuFrequency" 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 CPU frequency of on the system.
  41990. @return CPU frequency in kHz]]>
  41991. </doc>
  41992. </method>
  41993. <method name="getCumulativeCpuTime" return="long"
  41994. abstract="true" native="false" synchronized="false"
  41995. static="false" final="false" visibility="public"
  41996. deprecated="not deprecated">
  41997. <doc>
  41998. <![CDATA[Obtain the cumulative CPU time since the system is on.
  41999. @return cumulative CPU time in milliseconds]]>
  42000. </doc>
  42001. </method>
  42002. <method name="getCpuUsage" return="float"
  42003. abstract="true" native="false" synchronized="false"
  42004. static="false" final="false" visibility="public"
  42005. deprecated="not deprecated">
  42006. <doc>
  42007. <![CDATA[Obtain the CPU usage % of the machine. Return -1 if it is unavailable
  42008. @return CPU usage in %]]>
  42009. </doc>
  42010. </method>
  42011. <method name="getProcResourceValues" return="org.apache.hadoop.util.ResourceCalculatorPlugin.ProcResourceValues"
  42012. abstract="true" native="false" synchronized="false"
  42013. static="false" final="false" visibility="public"
  42014. deprecated="not deprecated">
  42015. <doc>
  42016. <![CDATA[Obtain resource status used by current process tree.]]>
  42017. </doc>
  42018. </method>
  42019. <method name="getResourceCalculatorPlugin" return="org.apache.hadoop.util.ResourceCalculatorPlugin"
  42020. abstract="false" native="false" synchronized="false"
  42021. static="true" final="false" visibility="public"
  42022. deprecated="not deprecated">
  42023. <param name="clazz" type="java.lang.Class"/>
  42024. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  42025. <doc>
  42026. <![CDATA[Get the ResourceCalculatorPlugin from the class name and configure it. If
  42027. class name is null, this method will try and return a memory calculator
  42028. plugin available for this system.
  42029. @param clazz class-name
  42030. @param conf configure the plugin with this.
  42031. @return ResourceCalculatorPlugin]]>
  42032. </doc>
  42033. </method>
  42034. <doc>
  42035. <![CDATA[Plugin to calculate resource information on the system.]]>
  42036. </doc>
  42037. </class>
  42038. <!-- end class org.apache.hadoop.util.ResourceCalculatorPlugin -->
  42039. <!-- start class org.apache.hadoop.util.ResourceCalculatorPlugin.ProcResourceValues -->
  42040. <class name="ResourceCalculatorPlugin.ProcResourceValues" extends="java.lang.Object"
  42041. abstract="false"
  42042. static="true" final="false" visibility="public"
  42043. deprecated="not deprecated">
  42044. <constructor name="ResourceCalculatorPlugin.ProcResourceValues" type="long, long, long"
  42045. static="false" final="false" visibility="public"
  42046. deprecated="not deprecated">
  42047. </constructor>
  42048. <method name="getPhysicalMemorySize" return="long"
  42049. abstract="false" native="false" synchronized="false"
  42050. static="false" final="false" visibility="public"
  42051. deprecated="not deprecated">
  42052. <doc>
  42053. <![CDATA[Obtain the physical memory size used by current process tree.
  42054. @return physical memory size in bytes.]]>
  42055. </doc>
  42056. </method>
  42057. <method name="getVirtualMemorySize" return="long"
  42058. abstract="false" native="false" synchronized="false"
  42059. static="false" final="false" visibility="public"
  42060. deprecated="not deprecated">
  42061. <doc>
  42062. <![CDATA[Obtain the virtual memory size used by a current process tree.
  42063. @return virtual memory size in bytes.]]>
  42064. </doc>
  42065. </method>
  42066. <method name="getCumulativeCpuTime" return="long"
  42067. abstract="false" native="false" synchronized="false"
  42068. static="false" final="false" visibility="public"
  42069. deprecated="not deprecated">
  42070. <doc>
  42071. <![CDATA[Obtain the cumulative CPU time used by a current process tree.
  42072. @return cumulative CPU time in milliseconds]]>
  42073. </doc>
  42074. </method>
  42075. </class>
  42076. <!-- end class org.apache.hadoop.util.ResourceCalculatorPlugin.ProcResourceValues -->
  42077. <!-- start class org.apache.hadoop.util.RunJar -->
  42078. <class name="RunJar" extends="java.lang.Object"
  42079. abstract="false"
  42080. static="false" final="false" visibility="public"
  42081. deprecated="not deprecated">
  42082. <constructor name="RunJar"
  42083. static="false" final="false" visibility="public"
  42084. deprecated="not deprecated">
  42085. </constructor>
  42086. <method name="unJar"
  42087. abstract="false" native="false" synchronized="false"
  42088. static="true" final="false" visibility="public"
  42089. deprecated="not deprecated">
  42090. <param name="jarFile" type="java.io.File"/>
  42091. <param name="toDir" type="java.io.File"/>
  42092. <exception name="IOException" type="java.io.IOException"/>
  42093. <doc>
  42094. <![CDATA[Unpack a jar file into a directory.]]>
  42095. </doc>
  42096. </method>
  42097. <method name="main"
  42098. abstract="false" native="false" synchronized="false"
  42099. static="true" final="false" visibility="public"
  42100. deprecated="not deprecated">
  42101. <param name="args" type="java.lang.String[]"/>
  42102. <exception name="Throwable" type="java.lang.Throwable"/>
  42103. <doc>
  42104. <![CDATA[Run a Hadoop job jar. If the main class is not in the jar's manifest,
  42105. then it must be provided on the command line.]]>
  42106. </doc>
  42107. </method>
  42108. <doc>
  42109. <![CDATA[Run a Hadoop job jar.]]>
  42110. </doc>
  42111. </class>
  42112. <!-- end class org.apache.hadoop.util.RunJar -->
  42113. <!-- start interface org.apache.hadoop.util.ServicePlugin -->
  42114. <interface name="ServicePlugin" abstract="true"
  42115. static="false" final="false" visibility="public"
  42116. deprecated="not deprecated">
  42117. <implements name="java.io.Closeable"/>
  42118. <method name="start"
  42119. abstract="false" native="false" synchronized="false"
  42120. static="false" final="false" visibility="public"
  42121. deprecated="not deprecated">
  42122. <param name="service" type="java.lang.Object"/>
  42123. <doc>
  42124. <![CDATA[This method is invoked when the service instance has been started.
  42125. @param service The service instance invoking this method]]>
  42126. </doc>
  42127. </method>
  42128. <method name="stop"
  42129. abstract="false" native="false" synchronized="false"
  42130. static="false" final="false" visibility="public"
  42131. deprecated="not deprecated">
  42132. <doc>
  42133. <![CDATA[This method is invoked when the service instance is about to be shut down.]]>
  42134. </doc>
  42135. </method>
  42136. <doc>
  42137. <![CDATA[Service plug-in interface.
  42138. Service plug-ins may be used to expose functionality of datanodes or
  42139. namenodes using arbitrary RPC protocols. Plug-ins are instantiated by the
  42140. service instance, and are notified of service life-cycle events using the
  42141. methods defined by this class.
  42142. Service plug-ins are started after the service instance is started, and
  42143. stopped before the service instance is stopped.]]>
  42144. </doc>
  42145. </interface>
  42146. <!-- end interface org.apache.hadoop.util.ServicePlugin -->
  42147. <!-- start class org.apache.hadoop.util.ServletUtil -->
  42148. <class name="ServletUtil" extends="java.lang.Object"
  42149. abstract="false"
  42150. static="false" final="false" visibility="public"
  42151. deprecated="not deprecated">
  42152. <constructor name="ServletUtil"
  42153. static="false" final="false" visibility="public"
  42154. deprecated="not deprecated">
  42155. </constructor>
  42156. <method name="initHTML" return="java.io.PrintWriter"
  42157. abstract="false" native="false" synchronized="false"
  42158. static="true" final="false" visibility="public"
  42159. deprecated="not deprecated">
  42160. <param name="response" type="javax.servlet.ServletResponse"/>
  42161. <param name="title" type="java.lang.String"/>
  42162. <exception name="IOException" type="java.io.IOException"/>
  42163. <doc>
  42164. <![CDATA[Initial HTML header]]>
  42165. </doc>
  42166. </method>
  42167. <method name="getParameter" return="java.lang.String"
  42168. abstract="false" native="false" synchronized="false"
  42169. static="true" final="false" visibility="public"
  42170. deprecated="not deprecated">
  42171. <param name="request" type="javax.servlet.ServletRequest"/>
  42172. <param name="name" type="java.lang.String"/>
  42173. <doc>
  42174. <![CDATA[Get a parameter from a ServletRequest.
  42175. Return null if the parameter contains only white spaces.]]>
  42176. </doc>
  42177. </method>
  42178. <method name="htmlFooter" return="java.lang.String"
  42179. abstract="false" native="false" synchronized="false"
  42180. static="true" final="false" visibility="public"
  42181. deprecated="not deprecated">
  42182. <doc>
  42183. <![CDATA[HTML footer to be added in the jsps.
  42184. @return the HTML footer.]]>
  42185. </doc>
  42186. </method>
  42187. <method name="percentageGraph" return="java.lang.String"
  42188. abstract="false" native="false" synchronized="false"
  42189. static="true" final="false" visibility="public"
  42190. deprecated="not deprecated">
  42191. <param name="perc" type="int"/>
  42192. <param name="width" type="int"/>
  42193. <exception name="IOException" type="java.io.IOException"/>
  42194. <doc>
  42195. <![CDATA[Generate the percentage graph and returns HTML representation string
  42196. of the same.
  42197. @param perc The percentage value for which graph is to be generated
  42198. @param width The width of the display table
  42199. @return HTML String representation of the percentage graph
  42200. @throws IOException]]>
  42201. </doc>
  42202. </method>
  42203. <method name="percentageGraph" return="java.lang.String"
  42204. abstract="false" native="false" synchronized="false"
  42205. static="true" final="false" visibility="public"
  42206. deprecated="not deprecated">
  42207. <param name="perc" type="float"/>
  42208. <param name="width" type="int"/>
  42209. <exception name="IOException" type="java.io.IOException"/>
  42210. <doc>
  42211. <![CDATA[Generate the percentage graph and returns HTML representation string
  42212. of the same.
  42213. @param perc The percentage value for which graph is to be generated
  42214. @param width The width of the display table
  42215. @return HTML String representation of the percentage graph
  42216. @throws IOException]]>
  42217. </doc>
  42218. </method>
  42219. <field name="HTML_TAIL" type="java.lang.String"
  42220. transient="false" volatile="false"
  42221. static="true" final="true" visibility="public"
  42222. deprecated="not deprecated">
  42223. </field>
  42224. </class>
  42225. <!-- end class org.apache.hadoop.util.ServletUtil -->
  42226. <!-- start class org.apache.hadoop.util.Shell -->
  42227. <class name="Shell" extends="java.lang.Object"
  42228. abstract="true"
  42229. static="false" final="false" visibility="public"
  42230. deprecated="not deprecated">
  42231. <constructor name="Shell"
  42232. static="false" final="false" visibility="public"
  42233. deprecated="not deprecated">
  42234. </constructor>
  42235. <constructor name="Shell" type="long"
  42236. static="false" final="false" visibility="public"
  42237. deprecated="not deprecated">
  42238. <doc>
  42239. <![CDATA[@param interval the minimum duration to wait before re-executing the
  42240. command.]]>
  42241. </doc>
  42242. </constructor>
  42243. <method name="getGroupsCommand" return="java.lang.String[]"
  42244. abstract="false" native="false" synchronized="false"
  42245. static="true" final="false" visibility="public"
  42246. deprecated="not deprecated">
  42247. <doc>
  42248. <![CDATA[a Unix command to get the current user's groups list]]>
  42249. </doc>
  42250. </method>
  42251. <method name="getGroupsForUserCommand" return="java.lang.String[]"
  42252. abstract="false" native="false" synchronized="false"
  42253. static="true" final="false" visibility="public"
  42254. deprecated="not deprecated">
  42255. <param name="user" type="java.lang.String"/>
  42256. <doc>
  42257. <![CDATA[a Unix command to get a given user's groups list]]>
  42258. </doc>
  42259. </method>
  42260. <method name="getUsersForNetgroupCommand" return="java.lang.String[]"
  42261. abstract="false" native="false" synchronized="false"
  42262. static="true" final="false" visibility="public"
  42263. deprecated="not deprecated">
  42264. <param name="netgroup" type="java.lang.String"/>
  42265. <doc>
  42266. <![CDATA[a Unix command to get a given netgroup's user list]]>
  42267. </doc>
  42268. </method>
  42269. <method name="getGET_PERMISSION_COMMAND" return="java.lang.String[]"
  42270. abstract="false" native="false" synchronized="false"
  42271. static="true" final="false" visibility="public"
  42272. deprecated="not deprecated">
  42273. <doc>
  42274. <![CDATA[Return a Unix command to get permission information.]]>
  42275. </doc>
  42276. </method>
  42277. <method name="getUlimitMemoryCommand" return="java.lang.String[]"
  42278. abstract="false" native="false" synchronized="false"
  42279. static="true" final="false" visibility="public"
  42280. deprecated="not deprecated">
  42281. <param name="memoryLimit" type="int"/>
  42282. <doc>
  42283. <![CDATA[Get the Unix command for setting the maximum virtual memory available
  42284. to a given child process. This is only relevant when we are forking a
  42285. process from within the Mapper or the Reducer implementations.
  42286. Also see Hadoop Pipes and Hadoop Streaming.
  42287. It also checks to ensure that we are running on a *nix platform else
  42288. (e.g. in Cygwin/Windows) it returns <code>null</code>.
  42289. @param memoryLimit virtual memory limit
  42290. @return a <code>String[]</code> with the ulimit command arguments or
  42291. <code>null</code> if we are running on a non *nix platform or
  42292. if the limit is unspecified.]]>
  42293. </doc>
  42294. </method>
  42295. <method name="getUlimitMemoryCommand" return="java.lang.String[]"
  42296. abstract="false" native="false" synchronized="false"
  42297. static="true" final="false" visibility="public"
  42298. deprecated="Use {@link #getUlimitMemoryCommand(int)}">
  42299. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  42300. <doc>
  42301. <![CDATA[Get the Unix command for setting the maximum virtual memory available
  42302. to a given child process. This is only relevant when we are forking a
  42303. process from within the {@link org.apache.hadoop.mapred.Mapper} or the
  42304. {@link org.apache.hadoop.mapred.Reducer} implementations
  42305. e.g. <a href="{@docRoot}/org/apache/hadoop/mapred/pipes/package-summary.html">Hadoop Pipes</a>
  42306. or <a href="{@docRoot}/org/apache/hadoop/streaming/package-summary.html">Hadoop Streaming</a>.
  42307. It also checks to ensure that we are running on a *nix platform else
  42308. (e.g. in Cygwin/Windows) it returns <code>null</code>.
  42309. @param conf configuration
  42310. @return a <code>String[]</code> with the ulimit command arguments or
  42311. <code>null</code> if we are running on a non *nix platform or
  42312. if the limit is unspecified.
  42313. @deprecated Use {@link #getUlimitMemoryCommand(int)}]]>
  42314. </doc>
  42315. </method>
  42316. <method name="setEnvironment"
  42317. abstract="false" native="false" synchronized="false"
  42318. static="false" final="false" visibility="protected"
  42319. deprecated="not deprecated">
  42320. <param name="env" type="java.util.Map"/>
  42321. <doc>
  42322. <![CDATA[set the environment for the command
  42323. @param env Mapping of environment variables]]>
  42324. </doc>
  42325. </method>
  42326. <method name="setWorkingDirectory"
  42327. abstract="false" native="false" synchronized="false"
  42328. static="false" final="false" visibility="protected"
  42329. deprecated="not deprecated">
  42330. <param name="dir" type="java.io.File"/>
  42331. <doc>
  42332. <![CDATA[set the working directory
  42333. @param dir The directory where the command would be executed]]>
  42334. </doc>
  42335. </method>
  42336. <method name="run"
  42337. abstract="false" native="false" synchronized="false"
  42338. static="false" final="false" visibility="protected"
  42339. deprecated="not deprecated">
  42340. <exception name="IOException" type="java.io.IOException"/>
  42341. <doc>
  42342. <![CDATA[check to see if a command needs to be executed and execute if needed]]>
  42343. </doc>
  42344. </method>
  42345. <method name="getExecString" return="java.lang.String[]"
  42346. abstract="true" native="false" synchronized="false"
  42347. static="false" final="false" visibility="protected"
  42348. deprecated="not deprecated">
  42349. <doc>
  42350. <![CDATA[return an array containing the command name & its parameters]]>
  42351. </doc>
  42352. </method>
  42353. <method name="parseExecResult"
  42354. abstract="true" native="false" synchronized="false"
  42355. static="false" final="false" visibility="protected"
  42356. deprecated="not deprecated">
  42357. <param name="lines" type="java.io.BufferedReader"/>
  42358. <exception name="IOException" type="java.io.IOException"/>
  42359. <doc>
  42360. <![CDATA[Parse the execution result]]>
  42361. </doc>
  42362. </method>
  42363. <method name="getProcess" return="java.lang.Process"
  42364. abstract="false" native="false" synchronized="false"
  42365. static="false" final="false" visibility="public"
  42366. deprecated="not deprecated">
  42367. <doc>
  42368. <![CDATA[get the current sub-process executing the given command
  42369. @return process executing the command]]>
  42370. </doc>
  42371. </method>
  42372. <method name="getExitCode" return="int"
  42373. abstract="false" native="false" synchronized="false"
  42374. static="false" final="false" visibility="public"
  42375. deprecated="not deprecated">
  42376. <doc>
  42377. <![CDATA[get the exit code
  42378. @return the exit code of the process]]>
  42379. </doc>
  42380. </method>
  42381. <method name="isTimedOut" return="boolean"
  42382. abstract="false" native="false" synchronized="false"
  42383. static="false" final="false" visibility="public"
  42384. deprecated="not deprecated">
  42385. <doc>
  42386. <![CDATA[To check if the passed script to shell command executor timed out or
  42387. not.
  42388. @return if the script timed out.]]>
  42389. </doc>
  42390. </method>
  42391. <method name="execCommand" return="java.lang.String"
  42392. abstract="false" native="false" synchronized="false"
  42393. static="true" final="false" visibility="public"
  42394. deprecated="not deprecated">
  42395. <param name="cmd" type="java.lang.String[]"/>
  42396. <exception name="IOException" type="java.io.IOException"/>
  42397. <doc>
  42398. <![CDATA[Static method to execute a shell command.
  42399. Covers most of the simple cases without requiring the user to implement
  42400. the <code>Shell</code> interface.
  42401. @param cmd shell command to execute.
  42402. @return the output of the executed command.]]>
  42403. </doc>
  42404. </method>
  42405. <method name="execCommand" return="java.lang.String"
  42406. abstract="false" native="false" synchronized="false"
  42407. static="true" final="false" visibility="public"
  42408. deprecated="not deprecated">
  42409. <param name="env" type="java.util.Map"/>
  42410. <param name="cmd" type="java.lang.String[]"/>
  42411. <param name="timeout" type="long"/>
  42412. <exception name="IOException" type="java.io.IOException"/>
  42413. <doc>
  42414. <![CDATA[Static method to execute a shell command.
  42415. Covers most of the simple cases without requiring the user to implement
  42416. the <code>Shell</code> interface.
  42417. @param env the map of environment key=value
  42418. @param cmd shell command to execute.
  42419. @param timeout time in milliseconds after which script should be marked timeout
  42420. @return the output of the executed command.o]]>
  42421. </doc>
  42422. </method>
  42423. <method name="execCommand" return="java.lang.String"
  42424. abstract="false" native="false" synchronized="false"
  42425. static="true" final="false" visibility="public"
  42426. deprecated="not deprecated">
  42427. <param name="env" type="java.util.Map"/>
  42428. <param name="cmd" type="java.lang.String[]"/>
  42429. <exception name="IOException" type="java.io.IOException"/>
  42430. <doc>
  42431. <![CDATA[Static method to execute a shell command.
  42432. Covers most of the simple cases without requiring the user to implement
  42433. the <code>Shell</code> interface.
  42434. @param env the map of environment key=value
  42435. @param cmd shell command to execute.
  42436. @return the output of the executed command.]]>
  42437. </doc>
  42438. </method>
  42439. <field name="LOG" type="org.apache.commons.logging.Log"
  42440. transient="false" volatile="false"
  42441. static="true" final="true" visibility="public"
  42442. deprecated="not deprecated">
  42443. </field>
  42444. <field name="USER_NAME_COMMAND" type="java.lang.String"
  42445. transient="false" volatile="false"
  42446. static="true" final="true" visibility="public"
  42447. deprecated="not deprecated">
  42448. <doc>
  42449. <![CDATA[a Unix command to get the current user's name]]>
  42450. </doc>
  42451. </field>
  42452. <field name="SET_PERMISSION_COMMAND" type="java.lang.String"
  42453. transient="false" volatile="false"
  42454. static="true" final="true" visibility="public"
  42455. deprecated="not deprecated">
  42456. <doc>
  42457. <![CDATA[a Unix command to set permission]]>
  42458. </doc>
  42459. </field>
  42460. <field name="SET_OWNER_COMMAND" type="java.lang.String"
  42461. transient="false" volatile="false"
  42462. static="true" final="true" visibility="public"
  42463. deprecated="not deprecated">
  42464. <doc>
  42465. <![CDATA[a Unix command to set owner]]>
  42466. </doc>
  42467. </field>
  42468. <field name="SET_GROUP_COMMAND" type="java.lang.String"
  42469. transient="false" volatile="false"
  42470. static="true" final="true" visibility="public"
  42471. deprecated="not deprecated">
  42472. </field>
  42473. <field name="timeOutInterval" type="long"
  42474. transient="false" volatile="false"
  42475. static="false" final="false" visibility="protected"
  42476. deprecated="not deprecated">
  42477. <doc>
  42478. <![CDATA[Time after which the executing script would be timedout]]>
  42479. </doc>
  42480. </field>
  42481. <field name="ULIMIT_COMMAND" type="java.lang.String"
  42482. transient="false" volatile="false"
  42483. static="true" final="true" visibility="public"
  42484. deprecated="not deprecated">
  42485. <doc>
  42486. <![CDATA[a Unix command to get ulimit of a process.]]>
  42487. </doc>
  42488. </field>
  42489. <field name="WINDOWS" type="boolean"
  42490. transient="false" volatile="false"
  42491. static="true" final="true" visibility="public"
  42492. deprecated="not deprecated">
  42493. <doc>
  42494. <![CDATA[Set to true on Windows platforms]]>
  42495. </doc>
  42496. </field>
  42497. <doc>
  42498. <![CDATA[A base class for running a Unix command.
  42499. <code>Shell</code> can be used to run unix commands like <code>du</code> or
  42500. <code>df</code>. It also offers facilities to gate commands by
  42501. time-intervals.]]>
  42502. </doc>
  42503. </class>
  42504. <!-- end class org.apache.hadoop.util.Shell -->
  42505. <!-- start class org.apache.hadoop.util.Shell.ExitCodeException -->
  42506. <class name="Shell.ExitCodeException" extends="java.io.IOException"
  42507. abstract="false"
  42508. static="true" final="false" visibility="public"
  42509. deprecated="not deprecated">
  42510. <constructor name="Shell.ExitCodeException" type="int, java.lang.String"
  42511. static="false" final="false" visibility="public"
  42512. deprecated="not deprecated">
  42513. </constructor>
  42514. <method name="getExitCode" return="int"
  42515. abstract="false" native="false" synchronized="false"
  42516. static="false" final="false" visibility="public"
  42517. deprecated="not deprecated">
  42518. </method>
  42519. <doc>
  42520. <![CDATA[This is an IOException with exit code added.]]>
  42521. </doc>
  42522. </class>
  42523. <!-- end class org.apache.hadoop.util.Shell.ExitCodeException -->
  42524. <!-- start class org.apache.hadoop.util.Shell.ShellCommandExecutor -->
  42525. <class name="Shell.ShellCommandExecutor" extends="org.apache.hadoop.util.Shell"
  42526. abstract="false"
  42527. static="true" final="false" visibility="public"
  42528. deprecated="not deprecated">
  42529. <constructor name="Shell.ShellCommandExecutor" type="java.lang.String[]"
  42530. static="false" final="false" visibility="public"
  42531. deprecated="not deprecated">
  42532. </constructor>
  42533. <constructor name="Shell.ShellCommandExecutor" type="java.lang.String[], java.io.File"
  42534. static="false" final="false" visibility="public"
  42535. deprecated="not deprecated">
  42536. </constructor>
  42537. <constructor name="Shell.ShellCommandExecutor" type="java.lang.String[], java.io.File, java.util.Map"
  42538. static="false" final="false" visibility="public"
  42539. deprecated="not deprecated">
  42540. </constructor>
  42541. <constructor name="Shell.ShellCommandExecutor" type="java.lang.String[], java.io.File, java.util.Map, long"
  42542. static="false" final="false" visibility="public"
  42543. deprecated="not deprecated">
  42544. <doc>
  42545. <![CDATA[Create a new instance of the ShellCommandExecutor to execute a command.
  42546. @param execString The command to execute with arguments
  42547. @param dir If not-null, specifies the directory which should be set
  42548. as the current working directory for the command.
  42549. If null, the current working directory is not modified.
  42550. @param env If not-null, environment of the command will include the
  42551. key-value pairs specified in the map. If null, the current
  42552. environment is not modified.
  42553. @param timeout Specifies the time in milliseconds, after which the
  42554. command will be killed and the status marked as timedout.
  42555. If 0, the command will not be timed out.]]>
  42556. </doc>
  42557. </constructor>
  42558. <method name="execute"
  42559. abstract="false" native="false" synchronized="false"
  42560. static="false" final="false" visibility="public"
  42561. deprecated="not deprecated">
  42562. <exception name="IOException" type="java.io.IOException"/>
  42563. <doc>
  42564. <![CDATA[Execute the shell command.]]>
  42565. </doc>
  42566. </method>
  42567. <method name="getExecString" return="java.lang.String[]"
  42568. abstract="false" native="false" synchronized="false"
  42569. static="false" final="false" visibility="protected"
  42570. deprecated="not deprecated">
  42571. </method>
  42572. <method name="parseExecResult"
  42573. abstract="false" native="false" synchronized="false"
  42574. static="false" final="false" visibility="protected"
  42575. deprecated="not deprecated">
  42576. <param name="lines" type="java.io.BufferedReader"/>
  42577. <exception name="IOException" type="java.io.IOException"/>
  42578. </method>
  42579. <method name="getOutput" return="java.lang.String"
  42580. abstract="false" native="false" synchronized="false"
  42581. static="false" final="false" visibility="public"
  42582. deprecated="not deprecated">
  42583. <doc>
  42584. <![CDATA[Get the output of the shell command.]]>
  42585. </doc>
  42586. </method>
  42587. <method name="toString" return="java.lang.String"
  42588. abstract="false" native="false" synchronized="false"
  42589. static="false" final="false" visibility="public"
  42590. deprecated="not deprecated">
  42591. <doc>
  42592. <![CDATA[Returns the commands of this instance.
  42593. Arguments with spaces in are presented with quotes round; other
  42594. arguments are presented raw
  42595. @return a string representation of the object.]]>
  42596. </doc>
  42597. </method>
  42598. <doc>
  42599. <![CDATA[A simple shell command executor.
  42600. <code>ShellCommandExecutor</code>should be used in cases where the output
  42601. of the command needs no explicit parsing and where the command, working
  42602. directory and the environment remains unchanged. The output of the command
  42603. is stored as-is and is expected to be small.]]>
  42604. </doc>
  42605. </class>
  42606. <!-- end class org.apache.hadoop.util.Shell.ShellCommandExecutor -->
  42607. <!-- start class org.apache.hadoop.util.StringUtils -->
  42608. <class name="StringUtils" extends="java.lang.Object"
  42609. abstract="false"
  42610. static="false" final="false" visibility="public"
  42611. deprecated="not deprecated">
  42612. <constructor name="StringUtils"
  42613. static="false" final="false" visibility="public"
  42614. deprecated="not deprecated">
  42615. </constructor>
  42616. <method name="stringifyException" return="java.lang.String"
  42617. abstract="false" native="false" synchronized="false"
  42618. static="true" final="false" visibility="public"
  42619. deprecated="not deprecated">
  42620. <param name="e" type="java.lang.Throwable"/>
  42621. <doc>
  42622. <![CDATA[Make a string representation of the exception.
  42623. @param e The exception to stringify
  42624. @return A string with exception name and call stack.]]>
  42625. </doc>
  42626. </method>
  42627. <method name="simpleHostname" return="java.lang.String"
  42628. abstract="false" native="false" synchronized="false"
  42629. static="true" final="false" visibility="public"
  42630. deprecated="not deprecated">
  42631. <param name="fullHostname" type="java.lang.String"/>
  42632. <doc>
  42633. <![CDATA[Given a full hostname, return the word upto the first dot.
  42634. @param fullHostname the full hostname
  42635. @return the hostname to the first dot]]>
  42636. </doc>
  42637. </method>
  42638. <method name="humanReadableInt" return="java.lang.String"
  42639. abstract="false" native="false" synchronized="false"
  42640. static="true" final="false" visibility="public"
  42641. deprecated="not deprecated">
  42642. <param name="number" type="long"/>
  42643. <doc>
  42644. <![CDATA[Given an integer, return a string that is in an approximate, but human
  42645. readable format.
  42646. It uses the bases 'k', 'm', and 'g' for 1024, 1024**2, and 1024**3.
  42647. @param number the number to format
  42648. @return a human readable form of the integer]]>
  42649. </doc>
  42650. </method>
  42651. <method name="formatPercent" return="java.lang.String"
  42652. abstract="false" native="false" synchronized="false"
  42653. static="true" final="false" visibility="public"
  42654. deprecated="not deprecated">
  42655. <param name="done" type="double"/>
  42656. <param name="digits" type="int"/>
  42657. <doc>
  42658. <![CDATA[Format a percentage for presentation to the user.
  42659. @param done the percentage to format (0.0 to 1.0)
  42660. @param digits the number of digits past the decimal point
  42661. @return a string representation of the percentage]]>
  42662. </doc>
  42663. </method>
  42664. <method name="arrayToString" return="java.lang.String"
  42665. abstract="false" native="false" synchronized="false"
  42666. static="true" final="false" visibility="public"
  42667. deprecated="not deprecated">
  42668. <param name="strs" type="java.lang.String[]"/>
  42669. <doc>
  42670. <![CDATA[Given an array of strings, return a comma-separated list of its elements.
  42671. @param strs Array of strings
  42672. @return Empty string if strs.length is 0, comma separated list of strings
  42673. otherwise]]>
  42674. </doc>
  42675. </method>
  42676. <method name="byteToHexString" return="java.lang.String"
  42677. abstract="false" native="false" synchronized="false"
  42678. static="true" final="false" visibility="public"
  42679. deprecated="not deprecated">
  42680. <param name="bytes" type="byte[]"/>
  42681. <param name="start" type="int"/>
  42682. <param name="end" type="int"/>
  42683. <doc>
  42684. <![CDATA[Given an array of bytes it will convert the bytes to a hex string
  42685. representation of the bytes
  42686. @param bytes
  42687. @param start start index, inclusively
  42688. @param end end index, exclusively
  42689. @return hex string representation of the byte array]]>
  42690. </doc>
  42691. </method>
  42692. <method name="byteToHexString" return="java.lang.String"
  42693. abstract="false" native="false" synchronized="false"
  42694. static="true" final="false" visibility="public"
  42695. deprecated="not deprecated">
  42696. <param name="bytes" type="byte[]"/>
  42697. <doc>
  42698. <![CDATA[Same as byteToHexString(bytes, 0, bytes.length).]]>
  42699. </doc>
  42700. </method>
  42701. <method name="hexStringToByte" return="byte[]"
  42702. abstract="false" native="false" synchronized="false"
  42703. static="true" final="false" visibility="public"
  42704. deprecated="not deprecated">
  42705. <param name="hex" type="java.lang.String"/>
  42706. <doc>
  42707. <![CDATA[Given a hexstring this will return the byte array corresponding to the
  42708. string
  42709. @param hex the hex String array
  42710. @return a byte array that is a hex string representation of the given
  42711. string. The size of the byte array is therefore hex.length/2]]>
  42712. </doc>
  42713. </method>
  42714. <method name="uriToString" return="java.lang.String"
  42715. abstract="false" native="false" synchronized="false"
  42716. static="true" final="false" visibility="public"
  42717. deprecated="not deprecated">
  42718. <param name="uris" type="java.net.URI[]"/>
  42719. <doc>
  42720. <![CDATA[@param uris]]>
  42721. </doc>
  42722. </method>
  42723. <method name="stringToURI" return="java.net.URI[]"
  42724. abstract="false" native="false" synchronized="false"
  42725. static="true" final="false" visibility="public"
  42726. deprecated="not deprecated">
  42727. <param name="str" type="java.lang.String[]"/>
  42728. <doc>
  42729. <![CDATA[@param str]]>
  42730. </doc>
  42731. </method>
  42732. <method name="stringToPath" return="org.apache.hadoop.fs.Path[]"
  42733. abstract="false" native="false" synchronized="false"
  42734. static="true" final="false" visibility="public"
  42735. deprecated="not deprecated">
  42736. <param name="str" type="java.lang.String[]"/>
  42737. <doc>
  42738. <![CDATA[@param str]]>
  42739. </doc>
  42740. </method>
  42741. <method name="formatTimeDiff" return="java.lang.String"
  42742. abstract="false" native="false" synchronized="false"
  42743. static="true" final="false" visibility="public"
  42744. deprecated="not deprecated">
  42745. <param name="finishTime" type="long"/>
  42746. <param name="startTime" type="long"/>
  42747. <doc>
  42748. <![CDATA[Given a finish and start time in long milliseconds, returns a
  42749. String in the format Xhrs, Ymins, Z sec, for the time difference between two times.
  42750. If finish time comes before start time then negative valeus of X, Y and Z wil return.
  42751. @param finishTime finish time
  42752. @param startTime start time]]>
  42753. </doc>
  42754. </method>
  42755. <method name="formatTime" return="java.lang.String"
  42756. abstract="false" native="false" synchronized="false"
  42757. static="true" final="false" visibility="public"
  42758. deprecated="not deprecated">
  42759. <param name="timeDiff" type="long"/>
  42760. <doc>
  42761. <![CDATA[Given the time in long milliseconds, returns a
  42762. String in the format Xhrs, Ymins, Z sec.
  42763. @param timeDiff The time difference to format]]>
  42764. </doc>
  42765. </method>
  42766. <method name="getFormattedTimeWithDiff" return="java.lang.String"
  42767. abstract="false" native="false" synchronized="false"
  42768. static="true" final="false" visibility="public"
  42769. deprecated="not deprecated">
  42770. <param name="dateFormat" type="java.text.DateFormat"/>
  42771. <param name="finishTime" type="long"/>
  42772. <param name="startTime" type="long"/>
  42773. <doc>
  42774. <![CDATA[Formats time in ms and appends difference (finishTime - startTime)
  42775. as returned by formatTimeDiff().
  42776. If finish time is 0, empty string is returned, if start time is 0
  42777. then difference is not appended to return value.
  42778. @param dateFormat date format to use
  42779. @param finishTime fnish time
  42780. @param startTime start time
  42781. @return formatted value.]]>
  42782. </doc>
  42783. </method>
  42784. <method name="getStrings" return="java.lang.String[]"
  42785. abstract="false" native="false" synchronized="false"
  42786. static="true" final="false" visibility="public"
  42787. deprecated="not deprecated">
  42788. <param name="str" type="java.lang.String"/>
  42789. <doc>
  42790. <![CDATA[Returns an arraylist of strings.
  42791. @param str the comma seperated string values
  42792. @return the arraylist of the comma seperated string values]]>
  42793. </doc>
  42794. </method>
  42795. <method name="getStringCollection" return="java.util.Collection"
  42796. abstract="false" native="false" synchronized="false"
  42797. static="true" final="false" visibility="public"
  42798. deprecated="not deprecated">
  42799. <param name="str" type="java.lang.String"/>
  42800. <doc>
  42801. <![CDATA[Returns a collection of strings.
  42802. @param str comma seperated string values
  42803. @return an <code>ArrayList</code> of string values]]>
  42804. </doc>
  42805. </method>
  42806. <method name="split" return="java.lang.String[]"
  42807. abstract="false" native="false" synchronized="false"
  42808. static="true" final="false" visibility="public"
  42809. deprecated="not deprecated">
  42810. <param name="str" type="java.lang.String"/>
  42811. <doc>
  42812. <![CDATA[Split a string using the default separator
  42813. @param str a string that may have escaped separator
  42814. @return an array of strings]]>
  42815. </doc>
  42816. </method>
  42817. <method name="split" return="java.lang.String[]"
  42818. abstract="false" native="false" synchronized="false"
  42819. static="true" final="false" visibility="public"
  42820. deprecated="not deprecated">
  42821. <param name="str" type="java.lang.String"/>
  42822. <param name="escapeChar" type="char"/>
  42823. <param name="separator" type="char"/>
  42824. <doc>
  42825. <![CDATA[Split a string using the given separator
  42826. @param str a string that may have escaped separator
  42827. @param escapeChar a char that be used to escape the separator
  42828. @param separator a separator char
  42829. @return an array of strings]]>
  42830. </doc>
  42831. </method>
  42832. <method name="findNext" return="int"
  42833. abstract="false" native="false" synchronized="false"
  42834. static="true" final="false" visibility="public"
  42835. deprecated="not deprecated">
  42836. <param name="str" type="java.lang.String"/>
  42837. <param name="separator" type="char"/>
  42838. <param name="escapeChar" type="char"/>
  42839. <param name="start" type="int"/>
  42840. <param name="split" type="java.lang.StringBuilder"/>
  42841. <doc>
  42842. <![CDATA[Finds the first occurrence of the separator character ignoring the escaped
  42843. separators starting from the index. Note the substring between the index
  42844. and the position of the separator is passed.
  42845. @param str the source string
  42846. @param separator the character to find
  42847. @param escapeChar character used to escape
  42848. @param start from where to search
  42849. @param split used to pass back the extracted string]]>
  42850. </doc>
  42851. </method>
  42852. <method name="escapeString" return="java.lang.String"
  42853. abstract="false" native="false" synchronized="false"
  42854. static="true" final="false" visibility="public"
  42855. deprecated="not deprecated">
  42856. <param name="str" type="java.lang.String"/>
  42857. <doc>
  42858. <![CDATA[Escape commas in the string using the default escape char
  42859. @param str a string
  42860. @return an escaped string]]>
  42861. </doc>
  42862. </method>
  42863. <method name="escapeString" return="java.lang.String"
  42864. abstract="false" native="false" synchronized="false"
  42865. static="true" final="false" visibility="public"
  42866. deprecated="not deprecated">
  42867. <param name="str" type="java.lang.String"/>
  42868. <param name="escapeChar" type="char"/>
  42869. <param name="charToEscape" type="char"/>
  42870. <doc>
  42871. <![CDATA[Escape <code>charToEscape</code> in the string
  42872. with the escape char <code>escapeChar</code>
  42873. @param str string
  42874. @param escapeChar escape char
  42875. @param charToEscape the char to be escaped
  42876. @return an escaped string]]>
  42877. </doc>
  42878. </method>
  42879. <method name="escapeString" return="java.lang.String"
  42880. abstract="false" native="false" synchronized="false"
  42881. static="true" final="false" visibility="public"
  42882. deprecated="not deprecated">
  42883. <param name="str" type="java.lang.String"/>
  42884. <param name="escapeChar" type="char"/>
  42885. <param name="charsToEscape" type="char[]"/>
  42886. <doc>
  42887. <![CDATA[@param charsToEscape array of characters to be escaped]]>
  42888. </doc>
  42889. </method>
  42890. <method name="unEscapeString" return="java.lang.String"
  42891. abstract="false" native="false" synchronized="false"
  42892. static="true" final="false" visibility="public"
  42893. deprecated="not deprecated">
  42894. <param name="str" type="java.lang.String"/>
  42895. <doc>
  42896. <![CDATA[Unescape commas in the string using the default escape char
  42897. @param str a string
  42898. @return an unescaped string]]>
  42899. </doc>
  42900. </method>
  42901. <method name="unEscapeString" return="java.lang.String"
  42902. abstract="false" native="false" synchronized="false"
  42903. static="true" final="false" visibility="public"
  42904. deprecated="not deprecated">
  42905. <param name="str" type="java.lang.String"/>
  42906. <param name="escapeChar" type="char"/>
  42907. <param name="charToEscape" type="char"/>
  42908. <doc>
  42909. <![CDATA[Unescape <code>charToEscape</code> in the string
  42910. with the escape char <code>escapeChar</code>
  42911. @param str string
  42912. @param escapeChar escape char
  42913. @param charToEscape the escaped char
  42914. @return an unescaped string]]>
  42915. </doc>
  42916. </method>
  42917. <method name="unEscapeString" return="java.lang.String"
  42918. abstract="false" native="false" synchronized="false"
  42919. static="true" final="false" visibility="public"
  42920. deprecated="not deprecated">
  42921. <param name="str" type="java.lang.String"/>
  42922. <param name="escapeChar" type="char"/>
  42923. <param name="charsToEscape" type="char[]"/>
  42924. <doc>
  42925. <![CDATA[@param charsToEscape array of characters to unescape]]>
  42926. </doc>
  42927. </method>
  42928. <method name="getHostname" return="java.lang.String"
  42929. abstract="false" native="false" synchronized="false"
  42930. static="true" final="false" visibility="public"
  42931. deprecated="not deprecated">
  42932. <doc>
  42933. <![CDATA[Return hostname without throwing exception.
  42934. @return hostname]]>
  42935. </doc>
  42936. </method>
  42937. <method name="startupShutdownMessage"
  42938. abstract="false" native="false" synchronized="false"
  42939. static="true" final="false" visibility="public"
  42940. deprecated="not deprecated">
  42941. <param name="clazz" type="java.lang.Class"/>
  42942. <param name="args" type="java.lang.String[]"/>
  42943. <param name="LOG" type="org.apache.commons.logging.Log"/>
  42944. <doc>
  42945. <![CDATA[Print a log message for starting up and shutting down
  42946. @param clazz the class of the server
  42947. @param args arguments
  42948. @param LOG the target log object]]>
  42949. </doc>
  42950. </method>
  42951. <method name="escapeHTML" return="java.lang.String"
  42952. abstract="false" native="false" synchronized="false"
  42953. static="true" final="false" visibility="public"
  42954. deprecated="not deprecated">
  42955. <param name="string" type="java.lang.String"/>
  42956. <doc>
  42957. <![CDATA[Escapes HTML Special characters present in the string.
  42958. @param string
  42959. @return HTML Escaped String representation]]>
  42960. </doc>
  42961. </method>
  42962. <method name="byteDesc" return="java.lang.String"
  42963. abstract="false" native="false" synchronized="false"
  42964. static="true" final="false" visibility="public"
  42965. deprecated="not deprecated">
  42966. <param name="len" type="long"/>
  42967. <doc>
  42968. <![CDATA[Return an abbreviated English-language desc of the byte length]]>
  42969. </doc>
  42970. </method>
  42971. <method name="limitDecimalTo2" return="java.lang.String"
  42972. abstract="false" native="false" synchronized="true"
  42973. static="true" final="false" visibility="public"
  42974. deprecated="not deprecated">
  42975. <param name="d" type="double"/>
  42976. </method>
  42977. <method name="join" return="java.lang.String"
  42978. abstract="false" native="false" synchronized="false"
  42979. static="true" final="false" visibility="public"
  42980. deprecated="not deprecated">
  42981. <param name="separator" type="java.lang.CharSequence"/>
  42982. <param name="strings" type="java.lang.Iterable"/>
  42983. <doc>
  42984. <![CDATA[Concatenates strings, using a separator.
  42985. @param separator Separator to join with.
  42986. @param strings Strings to join.
  42987. @return the joined string]]>
  42988. </doc>
  42989. </method>
  42990. <method name="join" return="java.lang.String"
  42991. abstract="false" native="false" synchronized="false"
  42992. static="true" final="false" visibility="public"
  42993. deprecated="not deprecated">
  42994. <param name="separator" type="java.lang.CharSequence"/>
  42995. <param name="strings" type="java.lang.String[]"/>
  42996. <doc>
  42997. <![CDATA[Concatenates strings, using a separator.
  42998. @param separator to join with
  42999. @param strings to join
  43000. @return the joined string]]>
  43001. </doc>
  43002. </method>
  43003. <method name="join" return="java.lang.String"
  43004. abstract="false" native="false" synchronized="false"
  43005. static="true" final="false" visibility="public"
  43006. deprecated="not deprecated">
  43007. <param name="separator" type="java.lang.CharSequence"/>
  43008. <param name="objects" type="java.lang.Object[]"/>
  43009. <doc>
  43010. <![CDATA[Concatenates objects, using a separator.
  43011. @param separator to join with
  43012. @param objects to join
  43013. @return the joined string]]>
  43014. </doc>
  43015. </method>
  43016. <method name="capitalize" return="java.lang.String"
  43017. abstract="false" native="false" synchronized="false"
  43018. static="true" final="false" visibility="public"
  43019. deprecated="not deprecated">
  43020. <param name="s" type="java.lang.String"/>
  43021. <doc>
  43022. <![CDATA[Capitalize a word
  43023. @param s the input string
  43024. @return capitalized string]]>
  43025. </doc>
  43026. </method>
  43027. <method name="camelize" return="java.lang.String"
  43028. abstract="false" native="false" synchronized="false"
  43029. static="true" final="false" visibility="public"
  43030. deprecated="not deprecated">
  43031. <param name="s" type="java.lang.String"/>
  43032. <doc>
  43033. <![CDATA[Convert SOME_STUFF to SomeStuff
  43034. @param s input string
  43035. @return camelized string]]>
  43036. </doc>
  43037. </method>
  43038. <field name="COMMA" type="char"
  43039. transient="false" volatile="false"
  43040. static="true" final="true" visibility="public"
  43041. deprecated="not deprecated">
  43042. </field>
  43043. <field name="COMMA_STR" type="java.lang.String"
  43044. transient="false" volatile="false"
  43045. static="true" final="true" visibility="public"
  43046. deprecated="not deprecated">
  43047. </field>
  43048. <field name="ESCAPE_CHAR" type="char"
  43049. transient="false" volatile="false"
  43050. static="true" final="true" visibility="public"
  43051. deprecated="not deprecated">
  43052. </field>
  43053. <doc>
  43054. <![CDATA[General string utils]]>
  43055. </doc>
  43056. </class>
  43057. <!-- end class org.apache.hadoop.util.StringUtils -->
  43058. <!-- start class org.apache.hadoop.util.StringUtils.TraditionalBinaryPrefix -->
  43059. <class name="StringUtils.TraditionalBinaryPrefix" extends="java.lang.Enum"
  43060. abstract="false"
  43061. static="true" final="true" visibility="public"
  43062. deprecated="not deprecated">
  43063. <method name="values" return="org.apache.hadoop.util.StringUtils.TraditionalBinaryPrefix[]"
  43064. abstract="false" native="false" synchronized="false"
  43065. static="true" final="false" visibility="public"
  43066. deprecated="not deprecated">
  43067. </method>
  43068. <method name="valueOf" return="org.apache.hadoop.util.StringUtils.TraditionalBinaryPrefix"
  43069. abstract="false" native="false" synchronized="false"
  43070. static="true" final="false" visibility="public"
  43071. deprecated="not deprecated">
  43072. <param name="name" type="java.lang.String"/>
  43073. </method>
  43074. <method name="valueOf" return="org.apache.hadoop.util.StringUtils.TraditionalBinaryPrefix"
  43075. abstract="false" native="false" synchronized="false"
  43076. static="true" final="false" visibility="public"
  43077. deprecated="not deprecated">
  43078. <param name="symbol" type="char"/>
  43079. <doc>
  43080. <![CDATA[@return The TraditionalBinaryPrefix object corresponding to the symbol.]]>
  43081. </doc>
  43082. </method>
  43083. <method name="string2long" return="long"
  43084. abstract="false" native="false" synchronized="false"
  43085. static="true" final="false" visibility="public"
  43086. deprecated="not deprecated">
  43087. <param name="s" type="java.lang.String"/>
  43088. <doc>
  43089. <![CDATA[Convert a string to long.
  43090. The input string is first be trimmed
  43091. and then it is parsed with traditional binary prefix.
  43092. For example,
  43093. "-1230k" will be converted to -1230 * 1024 = -1259520;
  43094. "891g" will be converted to 891 * 1024^3 = 956703965184;
  43095. @param s input string
  43096. @return a long value represented by the input string.]]>
  43097. </doc>
  43098. </method>
  43099. <field name="KILO" type="org.apache.hadoop.util.StringUtils.TraditionalBinaryPrefix"
  43100. transient="false" volatile="false"
  43101. static="true" final="true" visibility="public"
  43102. deprecated="not deprecated">
  43103. </field>
  43104. <field name="MEGA" type="org.apache.hadoop.util.StringUtils.TraditionalBinaryPrefix"
  43105. transient="false" volatile="false"
  43106. static="true" final="true" visibility="public"
  43107. deprecated="not deprecated">
  43108. </field>
  43109. <field name="GIGA" type="org.apache.hadoop.util.StringUtils.TraditionalBinaryPrefix"
  43110. transient="false" volatile="false"
  43111. static="true" final="true" visibility="public"
  43112. deprecated="not deprecated">
  43113. </field>
  43114. <field name="TERA" type="org.apache.hadoop.util.StringUtils.TraditionalBinaryPrefix"
  43115. transient="false" volatile="false"
  43116. static="true" final="true" visibility="public"
  43117. deprecated="not deprecated">
  43118. </field>
  43119. <field name="PETA" type="org.apache.hadoop.util.StringUtils.TraditionalBinaryPrefix"
  43120. transient="false" volatile="false"
  43121. static="true" final="true" visibility="public"
  43122. deprecated="not deprecated">
  43123. </field>
  43124. <field name="EXA" type="org.apache.hadoop.util.StringUtils.TraditionalBinaryPrefix"
  43125. transient="false" volatile="false"
  43126. static="true" final="true" visibility="public"
  43127. deprecated="not deprecated">
  43128. </field>
  43129. <field name="value" type="long"
  43130. transient="false" volatile="false"
  43131. static="false" final="true" visibility="public"
  43132. deprecated="not deprecated">
  43133. </field>
  43134. <field name="symbol" type="char"
  43135. transient="false" volatile="false"
  43136. static="false" final="true" visibility="public"
  43137. deprecated="not deprecated">
  43138. </field>
  43139. <doc>
  43140. <![CDATA[The traditional binary prefixes, kilo, mega, ..., exa,
  43141. which can be represented by a 64-bit integer.
  43142. TraditionalBinaryPrefix symbol are case insensitive.]]>
  43143. </doc>
  43144. </class>
  43145. <!-- end class org.apache.hadoop.util.StringUtils.TraditionalBinaryPrefix -->
  43146. <!-- start interface org.apache.hadoop.util.Tool -->
  43147. <interface name="Tool" abstract="true"
  43148. static="false" final="false" visibility="public"
  43149. deprecated="not deprecated">
  43150. <implements name="org.apache.hadoop.conf.Configurable"/>
  43151. <method name="run" return="int"
  43152. abstract="false" native="false" synchronized="false"
  43153. static="false" final="false" visibility="public"
  43154. deprecated="not deprecated">
  43155. <param name="args" type="java.lang.String[]"/>
  43156. <exception name="Exception" type="java.lang.Exception"/>
  43157. <doc>
  43158. <![CDATA[Execute the command with the given arguments.
  43159. @param args command specific arguments.
  43160. @return exit code.
  43161. @throws Exception]]>
  43162. </doc>
  43163. </method>
  43164. <doc>
  43165. <![CDATA[A tool interface that supports handling of generic command-line options.
  43166. <p><code>Tool</code>, is the standard for any Map-Reduce tool/application.
  43167. The tool/application should delegate the handling of
  43168. <a href="{@docRoot}/org/apache/hadoop/util/GenericOptionsParser.html#GenericOptions">
  43169. standard command-line options</a> to {@link ToolRunner#run(Tool, String[])}
  43170. and only handle its custom arguments.</p>
  43171. <p>Here is how a typical <code>Tool</code> is implemented:</p>
  43172. <p><blockquote><pre>
  43173. public class MyApp extends Configured implements Tool {
  43174. public int run(String[] args) throws Exception {
  43175. // <code>Configuration</code> processed by <code>ToolRunner</code>
  43176. Configuration conf = getConf();
  43177. // Create a JobConf using the processed <code>conf</code>
  43178. JobConf job = new JobConf(conf, MyApp.class);
  43179. // Process custom command-line options
  43180. Path in = new Path(args[1]);
  43181. Path out = new Path(args[2]);
  43182. // Specify various job-specific parameters
  43183. job.setJobName("my-app");
  43184. job.setInputPath(in);
  43185. job.setOutputPath(out);
  43186. job.setMapperClass(MyApp.MyMapper.class);
  43187. job.setReducerClass(MyApp.MyReducer.class);
  43188. // Submit the job, then poll for progress until the job is complete
  43189. JobClient.runJob(job);
  43190. }
  43191. public static void main(String[] args) throws Exception {
  43192. // Let <code>ToolRunner</code> handle generic command-line options
  43193. int res = ToolRunner.run(new Configuration(), new Sort(), args);
  43194. System.exit(res);
  43195. }
  43196. }
  43197. </pre></blockquote></p>
  43198. @see GenericOptionsParser
  43199. @see ToolRunner]]>
  43200. </doc>
  43201. </interface>
  43202. <!-- end interface org.apache.hadoop.util.Tool -->
  43203. <!-- start class org.apache.hadoop.util.ToolRunner -->
  43204. <class name="ToolRunner" extends="java.lang.Object"
  43205. abstract="false"
  43206. static="false" final="false" visibility="public"
  43207. deprecated="not deprecated">
  43208. <constructor name="ToolRunner"
  43209. static="false" final="false" visibility="public"
  43210. deprecated="not deprecated">
  43211. </constructor>
  43212. <method name="run" return="int"
  43213. abstract="false" native="false" synchronized="false"
  43214. static="true" final="false" visibility="public"
  43215. deprecated="not deprecated">
  43216. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  43217. <param name="tool" type="org.apache.hadoop.util.Tool"/>
  43218. <param name="args" type="java.lang.String[]"/>
  43219. <exception name="Exception" type="java.lang.Exception"/>
  43220. <doc>
  43221. <![CDATA[Runs the given <code>Tool</code> by {@link Tool#run(String[])}, after
  43222. parsing with the given generic arguments. Uses the given
  43223. <code>Configuration</code>, or builds one if null.
  43224. Sets the <code>Tool</code>'s configuration with the possibly modified
  43225. version of the <code>conf</code>.
  43226. @param conf <code>Configuration</code> for the <code>Tool</code>.
  43227. @param tool <code>Tool</code> to run.
  43228. @param args command-line arguments to the tool.
  43229. @return exit code of the {@link Tool#run(String[])} method.]]>
  43230. </doc>
  43231. </method>
  43232. <method name="run" return="int"
  43233. abstract="false" native="false" synchronized="false"
  43234. static="true" final="false" visibility="public"
  43235. deprecated="not deprecated">
  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 <code>Tool</code> with its <code>Configuration</code>.
  43241. Equivalent to <code>run(tool.getConf(), tool, args)</code>.
  43242. @param tool <code>Tool</code> to run.
  43243. @param args command-line arguments to the tool.
  43244. @return exit code of the {@link Tool#run(String[])} method.]]>
  43245. </doc>
  43246. </method>
  43247. <method name="printGenericCommandUsage"
  43248. abstract="false" native="false" synchronized="false"
  43249. static="true" final="false" visibility="public"
  43250. deprecated="not deprecated">
  43251. <param name="out" type="java.io.PrintStream"/>
  43252. <doc>
  43253. <![CDATA[Prints generic command-line argurments and usage information.
  43254. @param out stream to write usage information to.]]>
  43255. </doc>
  43256. </method>
  43257. <doc>
  43258. <![CDATA[A utility to help run {@link Tool}s.
  43259. <p><code>ToolRunner</code> can be used to run classes implementing
  43260. <code>Tool</code> interface. It works in conjunction with
  43261. {@link GenericOptionsParser} to parse the
  43262. <a href="{@docRoot}/org/apache/hadoop/util/GenericOptionsParser.html#GenericOptions">
  43263. generic hadoop command line arguments</a> and modifies the
  43264. <code>Configuration</code> of the <code>Tool</code>. The
  43265. application-specific options are passed along without being modified.
  43266. </p>
  43267. @see Tool
  43268. @see GenericOptionsParser]]>
  43269. </doc>
  43270. </class>
  43271. <!-- end class org.apache.hadoop.util.ToolRunner -->
  43272. <!-- start class org.apache.hadoop.util.UTF8ByteArrayUtils -->
  43273. <class name="UTF8ByteArrayUtils" extends="java.lang.Object"
  43274. abstract="false"
  43275. static="false" final="false" visibility="public"
  43276. deprecated="not deprecated">
  43277. <constructor name="UTF8ByteArrayUtils"
  43278. static="false" final="false" visibility="public"
  43279. deprecated="not deprecated">
  43280. </constructor>
  43281. <method name="findByte" return="int"
  43282. abstract="false" native="false" synchronized="false"
  43283. static="true" final="false" visibility="public"
  43284. deprecated="not deprecated">
  43285. <param name="utf" type="byte[]"/>
  43286. <param name="start" type="int"/>
  43287. <param name="end" type="int"/>
  43288. <param name="b" type="byte"/>
  43289. <doc>
  43290. <![CDATA[Find the first occurrence of the given byte b in a UTF-8 encoded string
  43291. @param utf a byte array containing a UTF-8 encoded string
  43292. @param start starting offset
  43293. @param end ending position
  43294. @param b the byte to find
  43295. @return position that first byte occures otherwise -1]]>
  43296. </doc>
  43297. </method>
  43298. <method name="findBytes" return="int"
  43299. abstract="false" native="false" synchronized="false"
  43300. static="true" final="false" visibility="public"
  43301. deprecated="not deprecated">
  43302. <param name="utf" type="byte[]"/>
  43303. <param name="start" type="int"/>
  43304. <param name="end" type="int"/>
  43305. <param name="b" type="byte[]"/>
  43306. <doc>
  43307. <![CDATA[Find the first occurrence of the given bytes b in a UTF-8 encoded string
  43308. @param utf a byte array containing a UTF-8 encoded string
  43309. @param start starting offset
  43310. @param end ending position
  43311. @param b the bytes to find
  43312. @return position that first byte occures otherwise -1]]>
  43313. </doc>
  43314. </method>
  43315. <method name="findNthByte" return="int"
  43316. abstract="false" native="false" synchronized="false"
  43317. static="true" final="false" visibility="public"
  43318. deprecated="not deprecated">
  43319. <param name="utf" type="byte[]"/>
  43320. <param name="start" type="int"/>
  43321. <param name="length" type="int"/>
  43322. <param name="b" type="byte"/>
  43323. <param name="n" type="int"/>
  43324. <doc>
  43325. <![CDATA[Find the nth occurrence of the given byte b in a UTF-8 encoded string
  43326. @param utf a byte array containing a UTF-8 encoded string
  43327. @param start starting offset
  43328. @param length the length of byte array
  43329. @param b the byte to find
  43330. @param n the desired occurrence of the given byte
  43331. @return position that nth occurrence of the given byte if exists; 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="b" type="byte"/>
  43340. <param name="n" type="int"/>
  43341. <doc>
  43342. <![CDATA[Find the nth occurrence of the given byte b in a UTF-8 encoded string
  43343. @param utf a byte array containing a UTF-8 encoded string
  43344. @param b the byte to find
  43345. @param n the desired occurrence of the given byte
  43346. @return position that nth occurrence of the given byte if exists; otherwise -1]]>
  43347. </doc>
  43348. </method>
  43349. </class>
  43350. <!-- end class org.apache.hadoop.util.UTF8ByteArrayUtils -->
  43351. <!-- start class org.apache.hadoop.util.VersionInfo -->
  43352. <class name="VersionInfo" extends="java.lang.Object"
  43353. abstract="false"
  43354. static="false" final="false" visibility="public"
  43355. deprecated="not deprecated">
  43356. <constructor name="VersionInfo"
  43357. static="false" final="false" visibility="public"
  43358. deprecated="not deprecated">
  43359. </constructor>
  43360. <method name="getVersion" return="java.lang.String"
  43361. abstract="false" native="false" synchronized="false"
  43362. static="true" final="false" visibility="public"
  43363. deprecated="not deprecated">
  43364. <doc>
  43365. <![CDATA[Get the Hadoop version.
  43366. @return the Hadoop version string, eg. "0.6.3-dev"]]>
  43367. </doc>
  43368. </method>
  43369. <method name="getRevision" return="java.lang.String"
  43370. abstract="false" native="false" synchronized="false"
  43371. static="true" final="false" visibility="public"
  43372. deprecated="not deprecated">
  43373. <doc>
  43374. <![CDATA[Get the subversion revision number for the root directory
  43375. @return the revision number, eg. "451451"]]>
  43376. </doc>
  43377. </method>
  43378. <method name="getDate" return="java.lang.String"
  43379. abstract="false" native="false" synchronized="false"
  43380. static="true" final="false" visibility="public"
  43381. deprecated="not deprecated">
  43382. <doc>
  43383. <![CDATA[The date that Hadoop was compiled.
  43384. @return the compilation date in unix date format]]>
  43385. </doc>
  43386. </method>
  43387. <method name="getUser" return="java.lang.String"
  43388. abstract="false" native="false" synchronized="false"
  43389. static="true" final="false" visibility="public"
  43390. deprecated="not deprecated">
  43391. <doc>
  43392. <![CDATA[The user that compiled Hadoop.
  43393. @return the username of the user]]>
  43394. </doc>
  43395. </method>
  43396. <method name="getUrl" return="java.lang.String"
  43397. abstract="false" native="false" synchronized="false"
  43398. static="true" final="false" visibility="public"
  43399. deprecated="not deprecated">
  43400. <doc>
  43401. <![CDATA[Get the subversion URL for the root Hadoop directory.]]>
  43402. </doc>
  43403. </method>
  43404. <method name="getSrcChecksum" return="java.lang.String"
  43405. abstract="false" native="false" synchronized="false"
  43406. static="true" final="false" visibility="public"
  43407. deprecated="not deprecated">
  43408. <doc>
  43409. <![CDATA[Get the checksum of the source files from which Hadoop was
  43410. built.]]>
  43411. </doc>
  43412. </method>
  43413. <method name="getBuildVersion" return="java.lang.String"
  43414. abstract="false" native="false" synchronized="false"
  43415. static="true" final="false" visibility="public"
  43416. deprecated="not deprecated">
  43417. <doc>
  43418. <![CDATA[Returns the full version string containing version,
  43419. revision, user and source checksum.]]>
  43420. </doc>
  43421. </method>
  43422. <method name="main"
  43423. abstract="false" native="false" synchronized="false"
  43424. static="true" final="false" visibility="public"
  43425. deprecated="not deprecated">
  43426. <param name="args" type="java.lang.String[]"/>
  43427. </method>
  43428. <doc>
  43429. <![CDATA[This class finds the package info for Hadoop and the HadoopVersionAnnotation
  43430. information.]]>
  43431. </doc>
  43432. </class>
  43433. <!-- end class org.apache.hadoop.util.VersionInfo -->
  43434. <!-- start class org.apache.hadoop.util.XMLUtils -->
  43435. <class name="XMLUtils" extends="java.lang.Object"
  43436. abstract="false"
  43437. static="false" final="false" visibility="public"
  43438. deprecated="not deprecated">
  43439. <constructor name="XMLUtils"
  43440. static="false" final="false" visibility="public"
  43441. deprecated="not deprecated">
  43442. </constructor>
  43443. <method name="transform"
  43444. abstract="false" native="false" synchronized="false"
  43445. static="true" final="false" visibility="public"
  43446. deprecated="not deprecated">
  43447. <param name="styleSheet" type="java.io.InputStream"/>
  43448. <param name="xml" type="java.io.InputStream"/>
  43449. <param name="out" type="java.io.Writer"/>
  43450. <exception name="TransformerConfigurationException" type="javax.xml.transform.TransformerConfigurationException"/>
  43451. <exception name="TransformerException" type="javax.xml.transform.TransformerException"/>
  43452. <doc>
  43453. <![CDATA[Transform input xml given a stylesheet.
  43454. @param styleSheet the style-sheet
  43455. @param xml input xml data
  43456. @param out output
  43457. @throws TransformerConfigurationException
  43458. @throws TransformerException]]>
  43459. </doc>
  43460. </method>
  43461. <doc>
  43462. <![CDATA[General xml utilities.]]>
  43463. </doc>
  43464. </class>
  43465. <!-- end class org.apache.hadoop.util.XMLUtils -->
  43466. </package>
  43467. <package name="org.apache.hadoop.util.bloom">
  43468. <!-- start class org.apache.hadoop.util.bloom.BloomFilter -->
  43469. <class name="BloomFilter" extends="org.apache.hadoop.util.bloom.Filter"
  43470. abstract="false"
  43471. static="false" final="false" visibility="public"
  43472. deprecated="not deprecated">
  43473. <constructor name="BloomFilter"
  43474. static="false" final="false" visibility="public"
  43475. deprecated="not deprecated">
  43476. <doc>
  43477. <![CDATA[Default constructor - use with readFields]]>
  43478. </doc>
  43479. </constructor>
  43480. <constructor name="BloomFilter" type="int, int, int"
  43481. static="false" final="false" visibility="public"
  43482. deprecated="not deprecated">
  43483. <doc>
  43484. <![CDATA[Constructor
  43485. @param vectorSize The vector size of <i>this</i> filter.
  43486. @param nbHash The number of hash function to consider.
  43487. @param hashType type of the hashing function (see
  43488. {@link org.apache.hadoop.util.hash.Hash}).]]>
  43489. </doc>
  43490. </constructor>
  43491. <method name="add"
  43492. abstract="false" native="false" synchronized="false"
  43493. static="false" final="false" visibility="public"
  43494. deprecated="not deprecated">
  43495. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  43496. </method>
  43497. <method name="and"
  43498. abstract="false" native="false" synchronized="false"
  43499. static="false" final="false" visibility="public"
  43500. deprecated="not deprecated">
  43501. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  43502. </method>
  43503. <method name="membershipTest" return="boolean"
  43504. abstract="false" native="false" synchronized="false"
  43505. static="false" final="false" visibility="public"
  43506. deprecated="not deprecated">
  43507. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  43508. </method>
  43509. <method name="not"
  43510. abstract="false" native="false" synchronized="false"
  43511. static="false" final="false" visibility="public"
  43512. deprecated="not deprecated">
  43513. </method>
  43514. <method name="or"
  43515. abstract="false" native="false" synchronized="false"
  43516. static="false" final="false" visibility="public"
  43517. deprecated="not deprecated">
  43518. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  43519. </method>
  43520. <method name="xor"
  43521. abstract="false" native="false" synchronized="false"
  43522. static="false" final="false" visibility="public"
  43523. deprecated="not deprecated">
  43524. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  43525. </method>
  43526. <method name="toString" return="java.lang.String"
  43527. abstract="false" native="false" synchronized="false"
  43528. static="false" final="false" visibility="public"
  43529. deprecated="not deprecated">
  43530. </method>
  43531. <method name="getVectorSize" return="int"
  43532. abstract="false" native="false" synchronized="false"
  43533. static="false" final="false" visibility="public"
  43534. deprecated="not deprecated">
  43535. <doc>
  43536. <![CDATA[@return size of the the bloomfilter]]>
  43537. </doc>
  43538. </method>
  43539. <method name="write"
  43540. abstract="false" native="false" synchronized="false"
  43541. static="false" final="false" visibility="public"
  43542. deprecated="not deprecated">
  43543. <param name="out" type="java.io.DataOutput"/>
  43544. <exception name="IOException" type="java.io.IOException"/>
  43545. </method>
  43546. <method name="readFields"
  43547. abstract="false" native="false" synchronized="false"
  43548. static="false" final="false" visibility="public"
  43549. deprecated="not deprecated">
  43550. <param name="in" type="java.io.DataInput"/>
  43551. <exception name="IOException" type="java.io.IOException"/>
  43552. </method>
  43553. <doc>
  43554. <![CDATA[Implements a <i>Bloom filter</i>, as defined by Bloom in 1970.
  43555. <p>
  43556. The Bloom filter is a data structure that was introduced in 1970 and that has been adopted by
  43557. the networking research community in the past decade thanks to the bandwidth efficiencies that it
  43558. offers for the transmission of set membership information between networked hosts. A sender encodes
  43559. the information into a bit vector, the Bloom filter, that is more compact than a conventional
  43560. representation. Computation and space costs for construction are linear in the number of elements.
  43561. The receiver uses the filter to test whether various elements are members of the set. Though the
  43562. filter will occasionally return a false positive, it will never return a false negative. When creating
  43563. the filter, the sender can choose its desired point in a trade-off between the false positive rate and the size.
  43564. <p>
  43565. Originally created by
  43566. <a href="http://www.one-lab.org">European Commission One-Lab Project 034819</a>.
  43567. @see Filter The general behavior of a filter
  43568. @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>]]>
  43569. </doc>
  43570. </class>
  43571. <!-- end class org.apache.hadoop.util.bloom.BloomFilter -->
  43572. <!-- start class org.apache.hadoop.util.bloom.CountingBloomFilter -->
  43573. <class name="CountingBloomFilter" extends="org.apache.hadoop.util.bloom.Filter"
  43574. abstract="false"
  43575. static="false" final="true" visibility="public"
  43576. deprecated="not deprecated">
  43577. <constructor name="CountingBloomFilter"
  43578. static="false" final="false" visibility="public"
  43579. deprecated="not deprecated">
  43580. <doc>
  43581. <![CDATA[Default constructor - use with readFields]]>
  43582. </doc>
  43583. </constructor>
  43584. <constructor name="CountingBloomFilter" type="int, int, int"
  43585. static="false" final="false" visibility="public"
  43586. deprecated="not deprecated">
  43587. <doc>
  43588. <![CDATA[Constructor
  43589. @param vectorSize The vector size of <i>this</i> filter.
  43590. @param nbHash The number of hash function to consider.
  43591. @param hashType type of the hashing function (see
  43592. {@link org.apache.hadoop.util.hash.Hash}).]]>
  43593. </doc>
  43594. </constructor>
  43595. <method name="add"
  43596. abstract="false" native="false" synchronized="false"
  43597. static="false" final="false" visibility="public"
  43598. deprecated="not deprecated">
  43599. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  43600. </method>
  43601. <method name="delete"
  43602. abstract="false" native="false" synchronized="false"
  43603. static="false" final="false" visibility="public"
  43604. deprecated="not deprecated">
  43605. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  43606. <doc>
  43607. <![CDATA[Removes a specified key from <i>this</i> counting Bloom filter.
  43608. <p>
  43609. <b>Invariant</b>: nothing happens if the specified key does not belong to <i>this</i> counter Bloom filter.
  43610. @param key The key to remove.]]>
  43611. </doc>
  43612. </method>
  43613. <method name="and"
  43614. abstract="false" native="false" synchronized="false"
  43615. static="false" final="false" visibility="public"
  43616. deprecated="not deprecated">
  43617. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  43618. </method>
  43619. <method name="membershipTest" return="boolean"
  43620. abstract="false" native="false" synchronized="false"
  43621. static="false" final="false" visibility="public"
  43622. deprecated="not deprecated">
  43623. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  43624. </method>
  43625. <method name="approximateCount" return="int"
  43626. abstract="false" native="false" synchronized="false"
  43627. static="false" final="false" visibility="public"
  43628. deprecated="not deprecated">
  43629. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  43630. <doc>
  43631. <![CDATA[This method calculates an approximate count of the key, i.e. how many
  43632. times the key was added to the filter. This allows the filter to be
  43633. used as an approximate <code>key -&gt; count</code> map.
  43634. <p>NOTE: due to the bucket size of this filter, inserting the same
  43635. key more than 15 times will cause an overflow at all filter positions
  43636. associated with this key, and it will significantly increase the error
  43637. rate for this and other keys. For this reason the filter can only be
  43638. used to store small count values <code>0 &lt;= N &lt;&lt; 15</code>.
  43639. @param key key to be tested
  43640. @return 0 if the key is not present. Otherwise, a positive value v will
  43641. be returned such that <code>v == count</code> with probability equal to the
  43642. error rate of this filter, and <code>v &gt; count</code> otherwise.
  43643. Additionally, if the filter experienced an underflow as a result of
  43644. {@link #delete(Key)} operation, the return value may be lower than the
  43645. <code>count</code> with the probability of the false negative rate of such
  43646. filter.]]>
  43647. </doc>
  43648. </method>
  43649. <method name="not"
  43650. abstract="false" native="false" synchronized="false"
  43651. static="false" final="false" visibility="public"
  43652. deprecated="not deprecated">
  43653. </method>
  43654. <method name="or"
  43655. abstract="false" native="false" synchronized="false"
  43656. static="false" final="false" visibility="public"
  43657. deprecated="not deprecated">
  43658. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  43659. </method>
  43660. <method name="xor"
  43661. abstract="false" native="false" synchronized="false"
  43662. static="false" final="false" visibility="public"
  43663. deprecated="not deprecated">
  43664. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  43665. </method>
  43666. <method name="toString" return="java.lang.String"
  43667. abstract="false" native="false" synchronized="false"
  43668. static="false" final="false" visibility="public"
  43669. deprecated="not deprecated">
  43670. </method>
  43671. <method name="write"
  43672. abstract="false" native="false" synchronized="false"
  43673. static="false" final="false" visibility="public"
  43674. deprecated="not deprecated">
  43675. <param name="out" type="java.io.DataOutput"/>
  43676. <exception name="IOException" type="java.io.IOException"/>
  43677. </method>
  43678. <method name="readFields"
  43679. abstract="false" native="false" synchronized="false"
  43680. static="false" final="false" visibility="public"
  43681. deprecated="not deprecated">
  43682. <param name="in" type="java.io.DataInput"/>
  43683. <exception name="IOException" type="java.io.IOException"/>
  43684. </method>
  43685. <doc>
  43686. <![CDATA[Implements a <i>counting Bloom filter</i>, as defined by Fan et al. in a ToN
  43687. 2000 paper.
  43688. <p>
  43689. A counting Bloom filter is an improvement to standard a Bloom filter as it
  43690. allows dynamic additions and deletions of set membership information. This
  43691. is achieved through the use of a counting vector instead of a bit vector.
  43692. <p>
  43693. Originally created by
  43694. <a href="http://www.one-lab.org">European Commission One-Lab Project 034819</a>.
  43695. @see Filter The general behavior of a filter
  43696. @see <a href="http://portal.acm.org/citation.cfm?id=343571.343572">Summary cache: a scalable wide-area web cache sharing protocol</a>]]>
  43697. </doc>
  43698. </class>
  43699. <!-- end class org.apache.hadoop.util.bloom.CountingBloomFilter -->
  43700. <!-- start class org.apache.hadoop.util.bloom.DynamicBloomFilter -->
  43701. <class name="DynamicBloomFilter" extends="org.apache.hadoop.util.bloom.Filter"
  43702. abstract="false"
  43703. static="false" final="false" visibility="public"
  43704. deprecated="not deprecated">
  43705. <constructor name="DynamicBloomFilter"
  43706. static="false" final="false" visibility="public"
  43707. deprecated="not deprecated">
  43708. <doc>
  43709. <![CDATA[Zero-args constructor for the serialization.]]>
  43710. </doc>
  43711. </constructor>
  43712. <constructor name="DynamicBloomFilter" type="int, int, int, int"
  43713. static="false" final="false" visibility="public"
  43714. deprecated="not deprecated">
  43715. <doc>
  43716. <![CDATA[Constructor.
  43717. <p>
  43718. Builds an empty Dynamic Bloom filter.
  43719. @param vectorSize The number of bits in the vector.
  43720. @param nbHash The number of hash function to consider.
  43721. @param hashType type of the hashing function (see
  43722. {@link org.apache.hadoop.util.hash.Hash}).
  43723. @param nr The threshold for the maximum number of keys to record in a
  43724. dynamic Bloom filter row.]]>
  43725. </doc>
  43726. </constructor>
  43727. <method name="add"
  43728. abstract="false" native="false" synchronized="false"
  43729. static="false" final="false" visibility="public"
  43730. deprecated="not deprecated">
  43731. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  43732. </method>
  43733. <method name="and"
  43734. abstract="false" native="false" synchronized="false"
  43735. static="false" final="false" visibility="public"
  43736. deprecated="not deprecated">
  43737. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  43738. </method>
  43739. <method name="membershipTest" return="boolean"
  43740. abstract="false" native="false" synchronized="false"
  43741. static="false" final="false" visibility="public"
  43742. deprecated="not deprecated">
  43743. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  43744. </method>
  43745. <method name="not"
  43746. abstract="false" native="false" synchronized="false"
  43747. static="false" final="false" visibility="public"
  43748. deprecated="not deprecated">
  43749. </method>
  43750. <method name="or"
  43751. abstract="false" native="false" synchronized="false"
  43752. static="false" final="false" visibility="public"
  43753. deprecated="not deprecated">
  43754. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  43755. </method>
  43756. <method name="xor"
  43757. abstract="false" native="false" synchronized="false"
  43758. static="false" final="false" visibility="public"
  43759. deprecated="not deprecated">
  43760. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  43761. </method>
  43762. <method name="toString" return="java.lang.String"
  43763. abstract="false" native="false" synchronized="false"
  43764. static="false" final="false" visibility="public"
  43765. deprecated="not deprecated">
  43766. </method>
  43767. <method name="write"
  43768. abstract="false" native="false" synchronized="false"
  43769. static="false" final="false" visibility="public"
  43770. deprecated="not deprecated">
  43771. <param name="out" type="java.io.DataOutput"/>
  43772. <exception name="IOException" type="java.io.IOException"/>
  43773. </method>
  43774. <method name="readFields"
  43775. abstract="false" native="false" synchronized="false"
  43776. static="false" final="false" visibility="public"
  43777. deprecated="not deprecated">
  43778. <param name="in" type="java.io.DataInput"/>
  43779. <exception name="IOException" type="java.io.IOException"/>
  43780. </method>
  43781. <doc>
  43782. <![CDATA[Implements a <i>dynamic Bloom filter</i>, as defined in the INFOCOM 2006 paper.
  43783. <p>
  43784. A dynamic Bloom filter (DBF) makes use of a <code>s * m</code> bit matrix but
  43785. each of the <code>s</code> rows is a standard Bloom filter. The creation
  43786. process of a DBF is iterative. At the start, the DBF is a <code>1 * m</code>
  43787. bit matrix, i.e., it is composed of a single standard Bloom filter.
  43788. It assumes that <code>n<sub>r</sub></code> elements are recorded in the
  43789. initial bit vector, where <code>n<sub>r</sub> <= n</code> (<code>n</code> is
  43790. the cardinality of the set <code>A</code> to record in the filter).
  43791. <p>
  43792. As the size of <code>A</code> grows during the execution of the application,
  43793. several keys must be inserted in the DBF. When inserting a key into the DBF,
  43794. one must first get an active Bloom filter in the matrix. A Bloom filter is
  43795. active when the number of recorded keys, <code>n<sub>r</sub></code>, is
  43796. strictly less than the current cardinality of <code>A</code>, <code>n</code>.
  43797. If an active Bloom filter is found, the key is inserted and
  43798. <code>n<sub>r</sub></code> is incremented by one. On the other hand, if there
  43799. is no active Bloom filter, a new one is created (i.e., a new row is added to
  43800. the matrix) according to the current size of <code>A</code> and the element
  43801. is added in this new Bloom filter and the <code>n<sub>r</sub></code> value of
  43802. this new Bloom filter is set to one. A given key is said to belong to the
  43803. DBF if the <code>k</code> positions are set to one in one of the matrix rows.
  43804. <p>
  43805. Originally created by
  43806. <a href="http://www.one-lab.org">European Commission One-Lab Project 034819</a>.
  43807. @see Filter The general behavior of a filter
  43808. @see BloomFilter A Bloom filter
  43809. @see <a href="http://www.cse.fau.edu/~jie/research/publications/Publication_files/infocom2006.pdf">Theory and Network Applications of Dynamic Bloom Filters</a>]]>
  43810. </doc>
  43811. </class>
  43812. <!-- end class org.apache.hadoop.util.bloom.DynamicBloomFilter -->
  43813. <!-- start class org.apache.hadoop.util.bloom.Filter -->
  43814. <class name="Filter" extends="java.lang.Object"
  43815. abstract="true"
  43816. static="false" final="false" visibility="public"
  43817. deprecated="not deprecated">
  43818. <implements name="org.apache.hadoop.io.Writable"/>
  43819. <constructor name="Filter"
  43820. static="false" final="false" visibility="protected"
  43821. deprecated="not deprecated">
  43822. </constructor>
  43823. <constructor name="Filter" type="int, int, int"
  43824. static="false" final="false" visibility="protected"
  43825. deprecated="not deprecated">
  43826. <doc>
  43827. <![CDATA[Constructor.
  43828. @param vectorSize The vector size of <i>this</i> filter.
  43829. @param nbHash The number of hash functions to consider.
  43830. @param hashType type of the hashing function (see {@link Hash}).]]>
  43831. </doc>
  43832. </constructor>
  43833. <method name="add"
  43834. abstract="true" native="false" synchronized="false"
  43835. static="false" final="false" visibility="public"
  43836. deprecated="not deprecated">
  43837. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  43838. <doc>
  43839. <![CDATA[Adds a key to <i>this</i> filter.
  43840. @param key The key to add.]]>
  43841. </doc>
  43842. </method>
  43843. <method name="membershipTest" return="boolean"
  43844. abstract="true" native="false" synchronized="false"
  43845. static="false" final="false" visibility="public"
  43846. deprecated="not deprecated">
  43847. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  43848. <doc>
  43849. <![CDATA[Determines wether a specified key belongs to <i>this</i> filter.
  43850. @param key The key to test.
  43851. @return boolean True if the specified key belongs to <i>this</i> filter.
  43852. False otherwise.]]>
  43853. </doc>
  43854. </method>
  43855. <method name="and"
  43856. abstract="true" native="false" synchronized="false"
  43857. static="false" final="false" visibility="public"
  43858. deprecated="not deprecated">
  43859. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  43860. <doc>
  43861. <![CDATA[Peforms a logical AND between <i>this</i> filter and a specified filter.
  43862. <p>
  43863. <b>Invariant</b>: The result is assigned to <i>this</i> filter.
  43864. @param filter The filter to AND with.]]>
  43865. </doc>
  43866. </method>
  43867. <method name="or"
  43868. abstract="true" native="false" synchronized="false"
  43869. static="false" final="false" visibility="public"
  43870. deprecated="not deprecated">
  43871. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  43872. <doc>
  43873. <![CDATA[Peforms a logical OR between <i>this</i> filter and a specified filter.
  43874. <p>
  43875. <b>Invariant</b>: The result is assigned to <i>this</i> filter.
  43876. @param filter The filter to OR with.]]>
  43877. </doc>
  43878. </method>
  43879. <method name="xor"
  43880. abstract="true" native="false" synchronized="false"
  43881. static="false" final="false" visibility="public"
  43882. deprecated="not deprecated">
  43883. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  43884. <doc>
  43885. <![CDATA[Peforms a logical XOR between <i>this</i> filter and a specified filter.
  43886. <p>
  43887. <b>Invariant</b>: The result is assigned to <i>this</i> filter.
  43888. @param filter The filter to XOR with.]]>
  43889. </doc>
  43890. </method>
  43891. <method name="not"
  43892. abstract="true" native="false" synchronized="false"
  43893. static="false" final="false" visibility="public"
  43894. deprecated="not deprecated">
  43895. <doc>
  43896. <![CDATA[Performs a logical NOT on <i>this</i> filter.
  43897. <p>
  43898. The result is assigned to <i>this</i> filter.]]>
  43899. </doc>
  43900. </method>
  43901. <method name="add"
  43902. abstract="false" native="false" synchronized="false"
  43903. static="false" final="false" visibility="public"
  43904. deprecated="not deprecated">
  43905. <param name="keys" type="java.util.List"/>
  43906. <doc>
  43907. <![CDATA[Adds a list of keys to <i>this</i> filter.
  43908. @param keys The list of keys.]]>
  43909. </doc>
  43910. </method>
  43911. <method name="add"
  43912. abstract="false" native="false" synchronized="false"
  43913. static="false" final="false" visibility="public"
  43914. deprecated="not deprecated">
  43915. <param name="keys" type="java.util.Collection"/>
  43916. <doc>
  43917. <![CDATA[Adds a collection of keys to <i>this</i> filter.
  43918. @param keys The collection of keys.]]>
  43919. </doc>
  43920. </method>
  43921. <method name="add"
  43922. abstract="false" native="false" synchronized="false"
  43923. static="false" final="false" visibility="public"
  43924. deprecated="not deprecated">
  43925. <param name="keys" type="org.apache.hadoop.util.bloom.Key[]"/>
  43926. <doc>
  43927. <![CDATA[Adds an array of keys to <i>this</i> filter.
  43928. @param keys The array of keys.]]>
  43929. </doc>
  43930. </method>
  43931. <method name="write"
  43932. abstract="false" native="false" synchronized="false"
  43933. static="false" final="false" visibility="public"
  43934. deprecated="not deprecated">
  43935. <param name="out" type="java.io.DataOutput"/>
  43936. <exception name="IOException" type="java.io.IOException"/>
  43937. </method>
  43938. <method name="readFields"
  43939. abstract="false" native="false" synchronized="false"
  43940. static="false" final="false" visibility="public"
  43941. deprecated="not deprecated">
  43942. <param name="in" type="java.io.DataInput"/>
  43943. <exception name="IOException" type="java.io.IOException"/>
  43944. </method>
  43945. <field name="vectorSize" type="int"
  43946. transient="false" volatile="false"
  43947. static="false" final="false" visibility="protected"
  43948. deprecated="not deprecated">
  43949. <doc>
  43950. <![CDATA[The vector size of <i>this</i> filter.]]>
  43951. </doc>
  43952. </field>
  43953. <field name="hash" type="org.apache.hadoop.util.bloom.HashFunction"
  43954. transient="false" volatile="false"
  43955. static="false" final="false" visibility="protected"
  43956. deprecated="not deprecated">
  43957. <doc>
  43958. <![CDATA[The hash function used to map a key to several positions in the vector.]]>
  43959. </doc>
  43960. </field>
  43961. <field name="nbHash" type="int"
  43962. transient="false" volatile="false"
  43963. static="false" final="false" visibility="protected"
  43964. deprecated="not deprecated">
  43965. <doc>
  43966. <![CDATA[The number of hash function to consider.]]>
  43967. </doc>
  43968. </field>
  43969. <field name="hashType" type="int"
  43970. transient="false" volatile="false"
  43971. static="false" final="false" visibility="protected"
  43972. deprecated="not deprecated">
  43973. <doc>
  43974. <![CDATA[Type of hashing function to use.]]>
  43975. </doc>
  43976. </field>
  43977. <doc>
  43978. <![CDATA[Defines the general behavior of a filter.
  43979. <p>
  43980. A filter is a data structure which aims at offering a lossy summary of a set <code>A</code>. The
  43981. key idea is to map entries of <code>A</code> (also called <i>keys</i>) into several positions
  43982. in a vector through the use of several hash functions.
  43983. <p>
  43984. Typically, a filter will be implemented as a Bloom filter (or a Bloom filter extension).
  43985. <p>
  43986. It must be extended in order to define the real behavior.
  43987. @see Key The general behavior of a key
  43988. @see HashFunction A hash function]]>
  43989. </doc>
  43990. </class>
  43991. <!-- end class org.apache.hadoop.util.bloom.Filter -->
  43992. <!-- start class org.apache.hadoop.util.bloom.HashFunction -->
  43993. <class name="HashFunction" extends="java.lang.Object"
  43994. abstract="false"
  43995. static="false" final="true" visibility="public"
  43996. deprecated="not deprecated">
  43997. <constructor name="HashFunction" type="int, int, int"
  43998. static="false" final="false" visibility="public"
  43999. deprecated="not deprecated">
  44000. <doc>
  44001. <![CDATA[Constructor.
  44002. <p>
  44003. Builds a hash function that must obey to a given maximum number of returned values and a highest value.
  44004. @param maxValue The maximum highest returned value.
  44005. @param nbHash The number of resulting hashed values.
  44006. @param hashType type of the hashing function (see {@link Hash}).]]>
  44007. </doc>
  44008. </constructor>
  44009. <method name="clear"
  44010. abstract="false" native="false" synchronized="false"
  44011. static="false" final="false" visibility="public"
  44012. deprecated="not deprecated">
  44013. <doc>
  44014. <![CDATA[Clears <i>this</i> hash function. A NOOP]]>
  44015. </doc>
  44016. </method>
  44017. <method name="hash" return="int[]"
  44018. abstract="false" native="false" synchronized="false"
  44019. static="false" final="false" visibility="public"
  44020. deprecated="not deprecated">
  44021. <param name="k" type="org.apache.hadoop.util.bloom.Key"/>
  44022. <doc>
  44023. <![CDATA[Hashes a specified key into several integers.
  44024. @param k The specified key.
  44025. @return The array of hashed values.]]>
  44026. </doc>
  44027. </method>
  44028. <doc>
  44029. <![CDATA[Implements a hash object that returns a certain number of hashed values.
  44030. @see Key The general behavior of a key being stored in a filter
  44031. @see Filter The general behavior of a filter]]>
  44032. </doc>
  44033. </class>
  44034. <!-- end class org.apache.hadoop.util.bloom.HashFunction -->
  44035. <!-- start class org.apache.hadoop.util.bloom.Key -->
  44036. <class name="Key" extends="java.lang.Object"
  44037. abstract="false"
  44038. static="false" final="false" visibility="public"
  44039. deprecated="not deprecated">
  44040. <implements name="org.apache.hadoop.io.WritableComparable"/>
  44041. <constructor name="Key"
  44042. static="false" final="false" visibility="public"
  44043. deprecated="not deprecated">
  44044. <doc>
  44045. <![CDATA[default constructor - use with readFields]]>
  44046. </doc>
  44047. </constructor>
  44048. <constructor name="Key" type="byte[]"
  44049. static="false" final="false" visibility="public"
  44050. deprecated="not deprecated">
  44051. <doc>
  44052. <![CDATA[Constructor.
  44053. <p>
  44054. Builds a key with a default weight.
  44055. @param value The byte value of <i>this</i> key.]]>
  44056. </doc>
  44057. </constructor>
  44058. <constructor name="Key" type="byte[], double"
  44059. static="false" final="false" visibility="public"
  44060. deprecated="not deprecated">
  44061. <doc>
  44062. <![CDATA[Constructor.
  44063. <p>
  44064. Builds a key with a specified weight.
  44065. @param value The value of <i>this</i> key.
  44066. @param weight The weight associated to <i>this</i> key.]]>
  44067. </doc>
  44068. </constructor>
  44069. <method name="set"
  44070. abstract="false" native="false" synchronized="false"
  44071. static="false" final="false" visibility="public"
  44072. deprecated="not deprecated">
  44073. <param name="value" type="byte[]"/>
  44074. <param name="weight" type="double"/>
  44075. <doc>
  44076. <![CDATA[@param value
  44077. @param weight]]>
  44078. </doc>
  44079. </method>
  44080. <method name="getBytes" return="byte[]"
  44081. abstract="false" native="false" synchronized="false"
  44082. static="false" final="false" visibility="public"
  44083. deprecated="not deprecated">
  44084. <doc>
  44085. <![CDATA[@return byte[] The value of <i>this</i> key.]]>
  44086. </doc>
  44087. </method>
  44088. <method name="getWeight" return="double"
  44089. abstract="false" native="false" synchronized="false"
  44090. static="false" final="false" visibility="public"
  44091. deprecated="not deprecated">
  44092. <doc>
  44093. <![CDATA[@return Returns the weight associated to <i>this</i> key.]]>
  44094. </doc>
  44095. </method>
  44096. <method name="incrementWeight"
  44097. abstract="false" native="false" synchronized="false"
  44098. static="false" final="false" visibility="public"
  44099. deprecated="not deprecated">
  44100. <param name="weight" type="double"/>
  44101. <doc>
  44102. <![CDATA[Increments the weight of <i>this</i> key with a specified value.
  44103. @param weight The increment.]]>
  44104. </doc>
  44105. </method>
  44106. <method name="incrementWeight"
  44107. abstract="false" native="false" synchronized="false"
  44108. static="false" final="false" visibility="public"
  44109. deprecated="not deprecated">
  44110. <doc>
  44111. <![CDATA[Increments the weight of <i>this</i> key by one.]]>
  44112. </doc>
  44113. </method>
  44114. <method name="equals" return="boolean"
  44115. abstract="false" native="false" synchronized="false"
  44116. static="false" final="false" visibility="public"
  44117. deprecated="not deprecated">
  44118. <param name="o" type="java.lang.Object"/>
  44119. </method>
  44120. <method name="hashCode" return="int"
  44121. abstract="false" native="false" synchronized="false"
  44122. static="false" final="false" visibility="public"
  44123. deprecated="not deprecated">
  44124. </method>
  44125. <method name="write"
  44126. abstract="false" native="false" synchronized="false"
  44127. static="false" final="false" visibility="public"
  44128. deprecated="not deprecated">
  44129. <param name="out" type="java.io.DataOutput"/>
  44130. <exception name="IOException" type="java.io.IOException"/>
  44131. </method>
  44132. <method name="readFields"
  44133. abstract="false" native="false" synchronized="false"
  44134. static="false" final="false" visibility="public"
  44135. deprecated="not deprecated">
  44136. <param name="in" type="java.io.DataInput"/>
  44137. <exception name="IOException" type="java.io.IOException"/>
  44138. </method>
  44139. <method name="compareTo" return="int"
  44140. abstract="false" native="false" synchronized="false"
  44141. static="false" final="false" visibility="public"
  44142. deprecated="not deprecated">
  44143. <param name="other" type="org.apache.hadoop.util.bloom.Key"/>
  44144. </method>
  44145. <doc>
  44146. <![CDATA[The general behavior of a key that must be stored in a filter.
  44147. @see Filter The general behavior of a filter]]>
  44148. </doc>
  44149. </class>
  44150. <!-- end class org.apache.hadoop.util.bloom.Key -->
  44151. <!-- start interface org.apache.hadoop.util.bloom.RemoveScheme -->
  44152. <interface name="RemoveScheme" abstract="true"
  44153. static="false" final="false" visibility="public"
  44154. deprecated="not deprecated">
  44155. <field name="RANDOM" type="short"
  44156. transient="false" volatile="false"
  44157. static="true" final="true" visibility="public"
  44158. deprecated="not deprecated">
  44159. <doc>
  44160. <![CDATA[Random selection.
  44161. <p>
  44162. The idea is to randomly select a bit to reset.]]>
  44163. </doc>
  44164. </field>
  44165. <field name="MINIMUM_FN" type="short"
  44166. transient="false" volatile="false"
  44167. static="true" final="true" visibility="public"
  44168. deprecated="not deprecated">
  44169. <doc>
  44170. <![CDATA[MinimumFN Selection.
  44171. <p>
  44172. The idea is to select the bit to reset that will generate the minimum
  44173. number of false negative.]]>
  44174. </doc>
  44175. </field>
  44176. <field name="MAXIMUM_FP" type="short"
  44177. transient="false" volatile="false"
  44178. static="true" final="true" visibility="public"
  44179. deprecated="not deprecated">
  44180. <doc>
  44181. <![CDATA[MaximumFP Selection.
  44182. <p>
  44183. The idea is to select the bit to reset that will remove the maximum number
  44184. of false positive.]]>
  44185. </doc>
  44186. </field>
  44187. <field name="RATIO" type="short"
  44188. transient="false" volatile="false"
  44189. static="true" final="true" visibility="public"
  44190. deprecated="not deprecated">
  44191. <doc>
  44192. <![CDATA[Ratio Selection.
  44193. <p>
  44194. The idea is to select the bit to reset that will, at the same time, remove
  44195. the maximum number of false positve while minimizing the amount of false
  44196. negative generated.]]>
  44197. </doc>
  44198. </field>
  44199. <doc>
  44200. <![CDATA[Defines the different remove scheme for retouched Bloom filters.
  44201. <p>
  44202. Originally created by
  44203. <a href="http://www.one-lab.org">European Commission One-Lab Project 034819</a>.]]>
  44204. </doc>
  44205. </interface>
  44206. <!-- end interface org.apache.hadoop.util.bloom.RemoveScheme -->
  44207. <!-- start class org.apache.hadoop.util.bloom.RetouchedBloomFilter -->
  44208. <class name="RetouchedBloomFilter" extends="org.apache.hadoop.util.bloom.BloomFilter"
  44209. abstract="false"
  44210. static="false" final="true" visibility="public"
  44211. deprecated="not deprecated">
  44212. <implements name="org.apache.hadoop.util.bloom.RemoveScheme"/>
  44213. <constructor name="RetouchedBloomFilter"
  44214. static="false" final="false" visibility="public"
  44215. deprecated="not deprecated">
  44216. <doc>
  44217. <![CDATA[Default constructor - use with readFields]]>
  44218. </doc>
  44219. </constructor>
  44220. <constructor name="RetouchedBloomFilter" type="int, int, int"
  44221. static="false" final="false" visibility="public"
  44222. deprecated="not deprecated">
  44223. <doc>
  44224. <![CDATA[Constructor
  44225. @param vectorSize The vector size of <i>this</i> filter.
  44226. @param nbHash The number of hash function to consider.
  44227. @param hashType type of the hashing function (see
  44228. {@link org.apache.hadoop.util.hash.Hash}).]]>
  44229. </doc>
  44230. </constructor>
  44231. <method name="add"
  44232. abstract="false" native="false" synchronized="false"
  44233. static="false" final="false" visibility="public"
  44234. deprecated="not deprecated">
  44235. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  44236. </method>
  44237. <method name="addFalsePositive"
  44238. abstract="false" native="false" synchronized="false"
  44239. static="false" final="false" visibility="public"
  44240. deprecated="not deprecated">
  44241. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  44242. <doc>
  44243. <![CDATA[Adds a false positive information to <i>this</i> retouched Bloom filter.
  44244. <p>
  44245. <b>Invariant</b>: if the false positive is <code>null</code>, nothing happens.
  44246. @param key The false positive key to add.]]>
  44247. </doc>
  44248. </method>
  44249. <method name="addFalsePositive"
  44250. abstract="false" native="false" synchronized="false"
  44251. static="false" final="false" visibility="public"
  44252. deprecated="not deprecated">
  44253. <param name="coll" type="java.util.Collection"/>
  44254. <doc>
  44255. <![CDATA[Adds a collection of false positive information to <i>this</i> retouched Bloom filter.
  44256. @param coll The collection of false positive.]]>
  44257. </doc>
  44258. </method>
  44259. <method name="addFalsePositive"
  44260. abstract="false" native="false" synchronized="false"
  44261. static="false" final="false" visibility="public"
  44262. deprecated="not deprecated">
  44263. <param name="keys" type="java.util.List"/>
  44264. <doc>
  44265. <![CDATA[Adds a list of false positive information to <i>this</i> retouched Bloom filter.
  44266. @param keys The list of false positive.]]>
  44267. </doc>
  44268. </method>
  44269. <method name="addFalsePositive"
  44270. abstract="false" native="false" synchronized="false"
  44271. static="false" final="false" visibility="public"
  44272. deprecated="not deprecated">
  44273. <param name="keys" type="org.apache.hadoop.util.bloom.Key[]"/>
  44274. <doc>
  44275. <![CDATA[Adds an array of false positive information to <i>this</i> retouched Bloom filter.
  44276. @param keys The array of false positive.]]>
  44277. </doc>
  44278. </method>
  44279. <method name="selectiveClearing"
  44280. abstract="false" native="false" synchronized="false"
  44281. static="false" final="false" visibility="public"
  44282. deprecated="not deprecated">
  44283. <param name="k" type="org.apache.hadoop.util.bloom.Key"/>
  44284. <param name="scheme" type="short"/>
  44285. <doc>
  44286. <![CDATA[Performs the selective clearing for a given key.
  44287. @param k The false positive key to remove from <i>this</i> retouched Bloom filter.
  44288. @param scheme The selective clearing scheme to apply.]]>
  44289. </doc>
  44290. </method>
  44291. <method name="write"
  44292. abstract="false" native="false" synchronized="false"
  44293. static="false" final="false" visibility="public"
  44294. deprecated="not deprecated">
  44295. <param name="out" type="java.io.DataOutput"/>
  44296. <exception name="IOException" type="java.io.IOException"/>
  44297. </method>
  44298. <method name="readFields"
  44299. abstract="false" native="false" synchronized="false"
  44300. static="false" final="false" visibility="public"
  44301. deprecated="not deprecated">
  44302. <param name="in" type="java.io.DataInput"/>
  44303. <exception name="IOException" type="java.io.IOException"/>
  44304. </method>
  44305. <doc>
  44306. <![CDATA[Implements a <i>retouched Bloom filter</i>, as defined in the CoNEXT 2006 paper.
  44307. <p>
  44308. It allows the removal of selected false positives at the cost of introducing
  44309. random false negatives, and with the benefit of eliminating some random false
  44310. positives at the same time.
  44311. <p>
  44312. Originally created by
  44313. <a href="http://www.one-lab.org">European Commission One-Lab Project 034819</a>.
  44314. @see Filter The general behavior of a filter
  44315. @see BloomFilter A Bloom filter
  44316. @see RemoveScheme The different selective clearing algorithms
  44317. @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>]]>
  44318. </doc>
  44319. </class>
  44320. <!-- end class org.apache.hadoop.util.bloom.RetouchedBloomFilter -->
  44321. </package>
  44322. <package name="org.apache.hadoop.util.hash">
  44323. <!-- start class org.apache.hadoop.util.hash.Hash -->
  44324. <class name="Hash" extends="java.lang.Object"
  44325. abstract="true"
  44326. static="false" final="false" visibility="public"
  44327. deprecated="not deprecated">
  44328. <constructor name="Hash"
  44329. static="false" final="false" visibility="public"
  44330. deprecated="not deprecated">
  44331. </constructor>
  44332. <method name="parseHashType" return="int"
  44333. abstract="false" native="false" synchronized="false"
  44334. static="true" final="false" visibility="public"
  44335. deprecated="not deprecated">
  44336. <param name="name" type="java.lang.String"/>
  44337. <doc>
  44338. <![CDATA[This utility method converts String representation of hash function name
  44339. to a symbolic constant. Currently two function types are supported,
  44340. "jenkins" and "murmur".
  44341. @param name hash function name
  44342. @return one of the predefined constants]]>
  44343. </doc>
  44344. </method>
  44345. <method name="getHashType" return="int"
  44346. abstract="false" native="false" synchronized="false"
  44347. static="true" final="false" visibility="public"
  44348. deprecated="not deprecated">
  44349. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  44350. <doc>
  44351. <![CDATA[This utility method converts the name of the configured
  44352. hash type to a symbolic constant.
  44353. @param conf configuration
  44354. @return one of the predefined constants]]>
  44355. </doc>
  44356. </method>
  44357. <method name="getInstance" return="org.apache.hadoop.util.hash.Hash"
  44358. abstract="false" native="false" synchronized="false"
  44359. static="true" final="false" visibility="public"
  44360. deprecated="not deprecated">
  44361. <param name="type" type="int"/>
  44362. <doc>
  44363. <![CDATA[Get a singleton instance of hash function of a given type.
  44364. @param type predefined hash type
  44365. @return hash function instance, or null if type is invalid]]>
  44366. </doc>
  44367. </method>
  44368. <method name="getInstance" return="org.apache.hadoop.util.hash.Hash"
  44369. abstract="false" native="false" synchronized="false"
  44370. static="true" final="false" visibility="public"
  44371. deprecated="not deprecated">
  44372. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  44373. <doc>
  44374. <![CDATA[Get a singleton instance of hash function of a type
  44375. defined in the configuration.
  44376. @param conf current configuration
  44377. @return defined hash type, or null if type is invalid]]>
  44378. </doc>
  44379. </method>
  44380. <method name="hash" return="int"
  44381. abstract="false" native="false" synchronized="false"
  44382. static="false" final="false" visibility="public"
  44383. deprecated="not deprecated">
  44384. <param name="bytes" type="byte[]"/>
  44385. <doc>
  44386. <![CDATA[Calculate a hash using all bytes from the input argument, and
  44387. a seed of -1.
  44388. @param bytes input bytes
  44389. @return hash value]]>
  44390. </doc>
  44391. </method>
  44392. <method name="hash" return="int"
  44393. abstract="false" native="false" synchronized="false"
  44394. static="false" final="false" visibility="public"
  44395. deprecated="not deprecated">
  44396. <param name="bytes" type="byte[]"/>
  44397. <param name="initval" type="int"/>
  44398. <doc>
  44399. <![CDATA[Calculate a hash using all bytes from the input argument,
  44400. and a provided seed value.
  44401. @param bytes input bytes
  44402. @param initval seed value
  44403. @return hash value]]>
  44404. </doc>
  44405. </method>
  44406. <method name="hash" return="int"
  44407. abstract="true" native="false" synchronized="false"
  44408. static="false" final="false" visibility="public"
  44409. deprecated="not deprecated">
  44410. <param name="bytes" type="byte[]"/>
  44411. <param name="length" type="int"/>
  44412. <param name="initval" type="int"/>
  44413. <doc>
  44414. <![CDATA[Calculate a hash using bytes from 0 to <code>length</code>, and
  44415. the provided seed value
  44416. @param bytes input bytes
  44417. @param length length of the valid bytes to consider
  44418. @param initval seed value
  44419. @return hash value]]>
  44420. </doc>
  44421. </method>
  44422. <field name="INVALID_HASH" type="int"
  44423. transient="false" volatile="false"
  44424. static="true" final="true" visibility="public"
  44425. deprecated="not deprecated">
  44426. <doc>
  44427. <![CDATA[Constant to denote invalid hash type.]]>
  44428. </doc>
  44429. </field>
  44430. <field name="JENKINS_HASH" type="int"
  44431. transient="false" volatile="false"
  44432. static="true" final="true" visibility="public"
  44433. deprecated="not deprecated">
  44434. <doc>
  44435. <![CDATA[Constant to denote {@link JenkinsHash}.]]>
  44436. </doc>
  44437. </field>
  44438. <field name="MURMUR_HASH" type="int"
  44439. transient="false" volatile="false"
  44440. static="true" final="true" visibility="public"
  44441. deprecated="not deprecated">
  44442. <doc>
  44443. <![CDATA[Constant to denote {@link MurmurHash}.]]>
  44444. </doc>
  44445. </field>
  44446. <doc>
  44447. <![CDATA[This class represents a common API for hashing functions.]]>
  44448. </doc>
  44449. </class>
  44450. <!-- end class org.apache.hadoop.util.hash.Hash -->
  44451. <!-- start class org.apache.hadoop.util.hash.JenkinsHash -->
  44452. <class name="JenkinsHash" extends="org.apache.hadoop.util.hash.Hash"
  44453. abstract="false"
  44454. static="false" final="false" visibility="public"
  44455. deprecated="not deprecated">
  44456. <constructor name="JenkinsHash"
  44457. static="false" final="false" visibility="public"
  44458. deprecated="not deprecated">
  44459. </constructor>
  44460. <method name="getInstance" return="org.apache.hadoop.util.hash.Hash"
  44461. abstract="false" native="false" synchronized="false"
  44462. static="true" final="false" visibility="public"
  44463. deprecated="not deprecated">
  44464. </method>
  44465. <method name="hash" return="int"
  44466. abstract="false" native="false" synchronized="false"
  44467. static="false" final="false" visibility="public"
  44468. deprecated="not deprecated">
  44469. <param name="key" type="byte[]"/>
  44470. <param name="nbytes" type="int"/>
  44471. <param name="initval" type="int"/>
  44472. <doc>
  44473. <![CDATA[taken from hashlittle() -- hash a variable-length key into a 32-bit value
  44474. @param key the key (the unaligned variable-length array of bytes)
  44475. @param nbytes number of bytes to include in hash
  44476. @param initval can be any integer value
  44477. @return a 32-bit value. Every bit of the key affects every bit of the
  44478. return value. Two keys differing by one or two bits will have totally
  44479. different hash values.
  44480. <p>The best hash table sizes are powers of 2. There is no need to do mod
  44481. a prime (mod is sooo slow!). If you need less than 32 bits, use a bitmask.
  44482. For example, if you need only 10 bits, do
  44483. <code>h = (h & hashmask(10));</code>
  44484. In which case, the hash table should have hashsize(10) elements.
  44485. <p>If you are hashing n strings byte[][] k, do it like this:
  44486. for (int i = 0, h = 0; i < n; ++i) h = hash( k[i], h);
  44487. <p>By Bob Jenkins, 2006. bob_jenkins@burtleburtle.net. You may use this
  44488. code any way you wish, private, educational, or commercial. It's free.
  44489. <p>Use for hash table lookup, or anything where one collision in 2^^32 is
  44490. acceptable. Do NOT use for cryptographic purposes.]]>
  44491. </doc>
  44492. </method>
  44493. <method name="main"
  44494. abstract="false" native="false" synchronized="false"
  44495. static="true" final="false" visibility="public"
  44496. deprecated="not deprecated">
  44497. <param name="args" type="java.lang.String[]"/>
  44498. <exception name="IOException" type="java.io.IOException"/>
  44499. <doc>
  44500. <![CDATA[Compute the hash of the specified file
  44501. @param args name of file to compute hash of.
  44502. @throws IOException]]>
  44503. </doc>
  44504. </method>
  44505. <doc>
  44506. <![CDATA[Produces 32-bit hash for hash table lookup.
  44507. <pre>lookup3.c, by Bob Jenkins, May 2006, Public Domain.
  44508. You can use this free for any purpose. It's in the public domain.
  44509. It has no warranty.
  44510. </pre>
  44511. @see <a href="http://burtleburtle.net/bob/c/lookup3.c">lookup3.c</a>
  44512. @see <a href="http://www.ddj.com/184410284">Hash Functions (and how this
  44513. function compares to others such as CRC, MD?, etc</a>
  44514. @see <a href="http://burtleburtle.net/bob/hash/doobs.html">Has update on the
  44515. Dr. Dobbs Article</a>]]>
  44516. </doc>
  44517. </class>
  44518. <!-- end class org.apache.hadoop.util.hash.JenkinsHash -->
  44519. <!-- start class org.apache.hadoop.util.hash.MurmurHash -->
  44520. <class name="MurmurHash" extends="org.apache.hadoop.util.hash.Hash"
  44521. abstract="false"
  44522. static="false" final="false" visibility="public"
  44523. deprecated="not deprecated">
  44524. <constructor name="MurmurHash"
  44525. static="false" final="false" visibility="public"
  44526. deprecated="not deprecated">
  44527. </constructor>
  44528. <method name="getInstance" return="org.apache.hadoop.util.hash.Hash"
  44529. abstract="false" native="false" synchronized="false"
  44530. static="true" final="false" visibility="public"
  44531. deprecated="not deprecated">
  44532. </method>
  44533. <method name="hash" return="int"
  44534. abstract="false" native="false" synchronized="false"
  44535. static="false" final="false" visibility="public"
  44536. deprecated="not deprecated">
  44537. <param name="data" type="byte[]"/>
  44538. <param name="length" type="int"/>
  44539. <param name="seed" type="int"/>
  44540. </method>
  44541. <doc>
  44542. <![CDATA[This is a very fast, non-cryptographic hash suitable for general hash-based
  44543. lookup. See http://murmurhash.googlepages.com/ for more details.
  44544. <p>The C version of MurmurHash 2.0 found at that site was ported
  44545. to Java by Andrzej Bialecki (ab at getopt org).</p>]]>
  44546. </doc>
  44547. </class>
  44548. <!-- end class org.apache.hadoop.util.hash.MurmurHash -->
  44549. </package>
  44550. <package name="org.apache.hadoop.filecache">
  44551. <!-- start class org.apache.hadoop.filecache.DistributedCache -->
  44552. <class name="DistributedCache" extends="java.lang.Object"
  44553. abstract="false"
  44554. static="false" final="false" visibility="public"
  44555. deprecated="not deprecated">
  44556. <constructor name="DistributedCache"
  44557. static="false" final="false" visibility="public"
  44558. deprecated="not deprecated">
  44559. </constructor>
  44560. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  44561. abstract="false" native="false" synchronized="false"
  44562. static="true" final="false" visibility="public"
  44563. deprecated="not deprecated">
  44564. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  44565. <param name="cache" type="java.net.URI"/>
  44566. <exception name="IOException" type="java.io.IOException"/>
  44567. <doc>
  44568. <![CDATA[Returns {@link FileStatus} of a given cache file on hdfs. Internal to
  44569. MapReduce.
  44570. @param conf configuration
  44571. @param cache cache file
  44572. @return <code>FileStatus</code> of a given cache file on hdfs
  44573. @throws IOException]]>
  44574. </doc>
  44575. </method>
  44576. <method name="getTimestamp" return="long"
  44577. abstract="false" native="false" synchronized="false"
  44578. static="true" final="false" visibility="public"
  44579. deprecated="not deprecated">
  44580. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  44581. <param name="cache" type="java.net.URI"/>
  44582. <exception name="IOException" type="java.io.IOException"/>
  44583. <doc>
  44584. <![CDATA[Returns mtime of a given cache file on hdfs. Internal to MapReduce.
  44585. @param conf configuration
  44586. @param cache cache file
  44587. @return mtime of a given cache file on hdfs
  44588. @throws IOException]]>
  44589. </doc>
  44590. </method>
  44591. <method name="createAllSymlink"
  44592. abstract="false" native="false" synchronized="false"
  44593. static="true" final="false" visibility="public"
  44594. deprecated="Internal to MapReduce framework. Use DistributedCacheManager
  44595. instead.">
  44596. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  44597. <param name="jobCacheDir" type="java.io.File"/>
  44598. <param name="workDir" type="java.io.File"/>
  44599. <exception name="IOException" type="java.io.IOException"/>
  44600. <doc>
  44601. <![CDATA[This method create symlinks for all files in a given dir in another directory
  44602. @param conf the configuration
  44603. @param jobCacheDir the target directory for creating symlinks
  44604. @param workDir the directory in which the symlinks are created
  44605. @throws IOException
  44606. @deprecated Internal to MapReduce framework. Use DistributedCacheManager
  44607. instead.]]>
  44608. </doc>
  44609. </method>
  44610. <method name="setCacheArchives"
  44611. abstract="false" native="false" synchronized="false"
  44612. static="true" final="false" visibility="public"
  44613. deprecated="not deprecated">
  44614. <param name="archives" type="java.net.URI[]"/>
  44615. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  44616. <doc>
  44617. <![CDATA[Set the configuration with the given set of archives. Intended
  44618. to be used by user code.
  44619. @param archives The list of archives that need to be localized
  44620. @param conf Configuration which will be changed]]>
  44621. </doc>
  44622. </method>
  44623. <method name="setCacheFiles"
  44624. abstract="false" native="false" synchronized="false"
  44625. static="true" final="false" visibility="public"
  44626. deprecated="not deprecated">
  44627. <param name="files" type="java.net.URI[]"/>
  44628. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  44629. <doc>
  44630. <![CDATA[Set the configuration with the given set of files. Intended to be
  44631. used by user code.
  44632. @param files The list of files that need to be localized
  44633. @param conf Configuration which will be changed]]>
  44634. </doc>
  44635. </method>
  44636. <method name="getCacheArchives" return="java.net.URI[]"
  44637. abstract="false" native="false" synchronized="false"
  44638. static="true" final="false" visibility="public"
  44639. deprecated="not deprecated">
  44640. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  44641. <exception name="IOException" type="java.io.IOException"/>
  44642. <doc>
  44643. <![CDATA[Get cache archives set in the Configuration. Used by
  44644. internal DistributedCache and MapReduce code.
  44645. @param conf The configuration which contains the archives
  44646. @return An array of the caches set in the Configuration
  44647. @throws IOException]]>
  44648. </doc>
  44649. </method>
  44650. <method name="getCacheFiles" return="java.net.URI[]"
  44651. abstract="false" native="false" synchronized="false"
  44652. static="true" final="false" visibility="public"
  44653. deprecated="not deprecated">
  44654. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  44655. <exception name="IOException" type="java.io.IOException"/>
  44656. <doc>
  44657. <![CDATA[Get cache files set in the Configuration. Used by internal
  44658. DistributedCache and MapReduce code.
  44659. @param conf The configuration which contains the files
  44660. @return Am array of the files set in the Configuration
  44661. @throws IOException]]>
  44662. </doc>
  44663. </method>
  44664. <method name="getLocalCacheArchives" return="org.apache.hadoop.fs.Path[]"
  44665. abstract="false" native="false" synchronized="false"
  44666. static="true" final="false" visibility="public"
  44667. deprecated="not deprecated">
  44668. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  44669. <exception name="IOException" type="java.io.IOException"/>
  44670. <doc>
  44671. <![CDATA[Return the path array of the localized caches. Intended to be used
  44672. by user code.
  44673. @param conf Configuration that contains the localized archives
  44674. @return A path array of localized caches
  44675. @throws IOException]]>
  44676. </doc>
  44677. </method>
  44678. <method name="getLocalCacheFiles" return="org.apache.hadoop.fs.Path[]"
  44679. abstract="false" native="false" synchronized="false"
  44680. static="true" final="false" visibility="public"
  44681. deprecated="not deprecated">
  44682. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  44683. <exception name="IOException" type="java.io.IOException"/>
  44684. <doc>
  44685. <![CDATA[Return the path array of the localized files. Intended to be used
  44686. by user code.
  44687. @param conf Configuration that contains the localized files
  44688. @return A path array of localized files
  44689. @throws IOException]]>
  44690. </doc>
  44691. </method>
  44692. <method name="getArchiveTimestamps" return="long[]"
  44693. abstract="false" native="false" synchronized="false"
  44694. static="true" final="false" visibility="public"
  44695. deprecated="not deprecated">
  44696. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  44697. <doc>
  44698. <![CDATA[Get the timestamps of the archives. Used by internal
  44699. DistributedCache and MapReduce code.
  44700. @param conf The configuration which stored the timestamps
  44701. @return a long array of timestamps
  44702. @throws IOException]]>
  44703. </doc>
  44704. </method>
  44705. <method name="getFileTimestamps" return="long[]"
  44706. abstract="false" native="false" synchronized="false"
  44707. static="true" final="false" visibility="public"
  44708. deprecated="not deprecated">
  44709. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  44710. <doc>
  44711. <![CDATA[Get the timestamps of the files. Used by internal
  44712. DistributedCache and MapReduce code.
  44713. @param conf The configuration which stored the timestamps
  44714. @return a long array of timestamps
  44715. @throws IOException]]>
  44716. </doc>
  44717. </method>
  44718. <method name="setArchiveTimestamps"
  44719. abstract="false" native="false" synchronized="false"
  44720. static="true" final="false" visibility="public"
  44721. deprecated="not deprecated">
  44722. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  44723. <param name="timestamps" type="java.lang.String"/>
  44724. <doc>
  44725. <![CDATA[This is to check the timestamp of the archives to be localized.
  44726. Used by internal MapReduce code.
  44727. @param conf Configuration which stores the timestamp's
  44728. @param timestamps comma separated list of timestamps of archives.
  44729. The order should be the same as the order in which the archives are added.]]>
  44730. </doc>
  44731. </method>
  44732. <method name="setFileTimestamps"
  44733. abstract="false" native="false" synchronized="false"
  44734. static="true" final="false" visibility="public"
  44735. deprecated="not deprecated">
  44736. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  44737. <param name="timestamps" type="java.lang.String"/>
  44738. <doc>
  44739. <![CDATA[This is to check the timestamp of the files to be localized.
  44740. Used by internal MapReduce code.
  44741. @param conf Configuration which stores the timestamp's
  44742. @param timestamps comma separated list of timestamps of files.
  44743. The order should be the same as the order in which the files are added.]]>
  44744. </doc>
  44745. </method>
  44746. <method name="setLocalArchives"
  44747. abstract="false" native="false" synchronized="false"
  44748. static="true" final="false" visibility="public"
  44749. deprecated="not deprecated">
  44750. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  44751. <param name="str" type="java.lang.String"/>
  44752. <doc>
  44753. <![CDATA[Set the conf to contain the location for localized archives. Used
  44754. by internal DistributedCache code.
  44755. @param conf The conf to modify to contain the localized caches
  44756. @param str a comma separated list of local archives]]>
  44757. </doc>
  44758. </method>
  44759. <method name="setLocalFiles"
  44760. abstract="false" native="false" synchronized="false"
  44761. static="true" final="false" visibility="public"
  44762. deprecated="not deprecated">
  44763. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  44764. <param name="str" type="java.lang.String"/>
  44765. <doc>
  44766. <![CDATA[Set the conf to contain the location for localized files. Used
  44767. by internal DistributedCache code.
  44768. @param conf The conf to modify to contain the localized caches
  44769. @param str a comma separated list of local files]]>
  44770. </doc>
  44771. </method>
  44772. <method name="addLocalArchives"
  44773. abstract="false" native="false" synchronized="false"
  44774. static="true" final="false" visibility="public"
  44775. deprecated="not deprecated">
  44776. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  44777. <param name="str" type="java.lang.String"/>
  44778. <doc>
  44779. <![CDATA[Add a archive that has been localized to the conf. Used
  44780. by internal DistributedCache code.
  44781. @param conf The conf to modify to contain the localized caches
  44782. @param str a comma separated list of local archives]]>
  44783. </doc>
  44784. </method>
  44785. <method name="addLocalFiles"
  44786. abstract="false" native="false" synchronized="false"
  44787. static="true" final="false" visibility="public"
  44788. deprecated="not deprecated">
  44789. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  44790. <param name="str" type="java.lang.String"/>
  44791. <doc>
  44792. <![CDATA[Add a file that has been localized to the conf.. Used
  44793. by internal DistributedCache code.
  44794. @param conf The conf to modify to contain the localized caches
  44795. @param str a comma separated list of local files]]>
  44796. </doc>
  44797. </method>
  44798. <method name="addCacheArchive"
  44799. abstract="false" native="false" synchronized="false"
  44800. static="true" final="false" visibility="public"
  44801. deprecated="not deprecated">
  44802. <param name="uri" type="java.net.URI"/>
  44803. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  44804. <doc>
  44805. <![CDATA[Add a archives to be localized to the conf. Intended to
  44806. be used by user code.
  44807. @param uri The uri of the cache to be localized
  44808. @param conf Configuration to add the cache to]]>
  44809. </doc>
  44810. </method>
  44811. <method name="addCacheFile"
  44812. abstract="false" native="false" synchronized="false"
  44813. static="true" final="false" visibility="public"
  44814. deprecated="not deprecated">
  44815. <param name="uri" type="java.net.URI"/>
  44816. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  44817. <doc>
  44818. <![CDATA[Add a file to be localized to the conf. Intended
  44819. to be used by user code.
  44820. @param uri The uri of the cache to be localized
  44821. @param conf Configuration to add the cache to]]>
  44822. </doc>
  44823. </method>
  44824. <method name="addFileToClassPath"
  44825. abstract="false" native="false" synchronized="false"
  44826. static="true" final="false" visibility="public"
  44827. deprecated="Please use {@link #addFileToClassPath(Path, Configuration, FileSystem)}
  44828. instead. The {@code FileSystem} should be obtained within an
  44829. appropriate {@code doAs}.">
  44830. <param name="file" type="org.apache.hadoop.fs.Path"/>
  44831. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  44832. <exception name="IOException" type="java.io.IOException"/>
  44833. <doc>
  44834. <![CDATA[Add a file path to the current set of classpath entries. It adds the file
  44835. to cache as well. Intended to be used by user code.
  44836. @deprecated
  44837. Please use {@link #addFileToClassPath(Path, Configuration, FileSystem)}
  44838. instead. The {@code FileSystem} should be obtained within an
  44839. appropriate {@code doAs}.
  44840. @param file Path of the file to be added
  44841. @param conf Configuration that contains the classpath setting]]>
  44842. </doc>
  44843. </method>
  44844. <method name="addFileToClassPath"
  44845. abstract="false" native="false" synchronized="false"
  44846. static="true" final="false" visibility="public"
  44847. deprecated="not deprecated">
  44848. <param name="file" type="org.apache.hadoop.fs.Path"/>
  44849. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  44850. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  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. @param file Path of the file to be added
  44856. @param conf Configuration that contains the classpath setting
  44857. @param fs FileSystem with respect to which {@code archivefile} should
  44858. be interpreted.]]>
  44859. </doc>
  44860. </method>
  44861. <method name="getFileClassPaths" return="org.apache.hadoop.fs.Path[]"
  44862. abstract="false" native="false" synchronized="false"
  44863. static="true" final="false" visibility="public"
  44864. deprecated="not deprecated">
  44865. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  44866. <doc>
  44867. <![CDATA[Get the file entries in classpath as an array of Path.
  44868. Used by internal DistributedCache code.
  44869. @param conf Configuration that contains the classpath setting]]>
  44870. </doc>
  44871. </method>
  44872. <method name="addArchiveToClassPath"
  44873. abstract="false" native="false" synchronized="false"
  44874. static="true" final="false" visibility="public"
  44875. deprecated="Please use {@link #addArchiveToClassPath(Path, Configuration, FileSystem)}
  44876. instead. The {@code FileSystem} should be obtained within an
  44877. appropriate {@code doAs}.">
  44878. <param name="archive" type="org.apache.hadoop.fs.Path"/>
  44879. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  44880. <exception name="IOException" type="java.io.IOException"/>
  44881. <doc>
  44882. <![CDATA[Add an archive path to the current set of classpath entries. It adds the
  44883. archive to cache as well. Intended to be used by user code.
  44884. @deprecated
  44885. Please use {@link #addArchiveToClassPath(Path, Configuration, FileSystem)}
  44886. instead. The {@code FileSystem} should be obtained within an
  44887. appropriate {@code doAs}.
  44888. @param archive Path of the archive to be added
  44889. @param conf Configuration that contains the classpath setting]]>
  44890. </doc>
  44891. </method>
  44892. <method name="addArchiveToClassPath"
  44893. abstract="false" native="false" synchronized="false"
  44894. static="true" final="false" visibility="public"
  44895. deprecated="not deprecated">
  44896. <param name="archive" type="org.apache.hadoop.fs.Path"/>
  44897. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  44898. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  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. @param archive Path of the archive to be added
  44904. @param conf Configuration that contains the classpath setting
  44905. @param fs FileSystem with respect to which {@code archive} should be interpreted.]]>
  44906. </doc>
  44907. </method>
  44908. <method name="getArchiveClassPaths" return="org.apache.hadoop.fs.Path[]"
  44909. abstract="false" native="false" synchronized="false"
  44910. static="true" final="false" visibility="public"
  44911. deprecated="not deprecated">
  44912. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  44913. <doc>
  44914. <![CDATA[Get the archive entries in classpath as an array of Path.
  44915. Used by internal DistributedCache code.
  44916. @param conf Configuration that contains the classpath setting]]>
  44917. </doc>
  44918. </method>
  44919. <method name="createSymlink"
  44920. abstract="false" native="false" synchronized="false"
  44921. static="true" final="false" visibility="public"
  44922. deprecated="not deprecated">
  44923. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  44924. <doc>
  44925. <![CDATA[This method allows you to create symlinks in the current working directory
  44926. of the task to all the cache files/archives.
  44927. Intended to be used by user code.
  44928. @param conf the jobconf]]>
  44929. </doc>
  44930. </method>
  44931. <method name="getSymlink" return="boolean"
  44932. abstract="false" native="false" synchronized="false"
  44933. static="true" final="false" visibility="public"
  44934. deprecated="not deprecated">
  44935. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  44936. <doc>
  44937. <![CDATA[This method checks to see if symlinks are to be create for the
  44938. localized cache files in the current working directory
  44939. Used by internal DistributedCache code.
  44940. @param conf the jobconf
  44941. @return true if symlinks are to be created- else return false]]>
  44942. </doc>
  44943. </method>
  44944. <method name="checkURIs" return="boolean"
  44945. abstract="false" native="false" synchronized="false"
  44946. static="true" final="false" visibility="public"
  44947. deprecated="not deprecated">
  44948. <param name="uriFiles" type="java.net.URI[]"/>
  44949. <param name="uriArchives" type="java.net.URI[]"/>
  44950. <doc>
  44951. <![CDATA[This method checks if there is a conflict in the fragment names
  44952. of the uris. Also makes sure that each uri has a fragment. It
  44953. is only to be called if you want to create symlinks for
  44954. the various archives and files. May be used by user code.
  44955. @param uriFiles The uri array of urifiles
  44956. @param uriArchives the uri array of uri archives]]>
  44957. </doc>
  44958. </method>
  44959. <field name="CACHE_FILES_SIZES" type="java.lang.String"
  44960. transient="false" volatile="false"
  44961. static="true" final="true" visibility="public"
  44962. deprecated="not deprecated">
  44963. <doc>
  44964. <![CDATA[Warning: {@link #CACHE_FILES_SIZES} is not a *public* constant.]]>
  44965. </doc>
  44966. </field>
  44967. <field name="CACHE_ARCHIVES_SIZES" type="java.lang.String"
  44968. transient="false" volatile="false"
  44969. static="true" final="true" visibility="public"
  44970. deprecated="not deprecated">
  44971. <doc>
  44972. <![CDATA[Warning: {@link #CACHE_ARCHIVES_SIZES} is not a *public* constant.]]>
  44973. </doc>
  44974. </field>
  44975. <field name="CACHE_ARCHIVES_TIMESTAMPS" type="java.lang.String"
  44976. transient="false" volatile="false"
  44977. static="true" final="true" visibility="public"
  44978. deprecated="not deprecated">
  44979. <doc>
  44980. <![CDATA[Warning: {@link #CACHE_ARCHIVES_TIMESTAMPS} is not a *public* constant.]]>
  44981. </doc>
  44982. </field>
  44983. <field name="CACHE_FILES_TIMESTAMPS" type="java.lang.String"
  44984. transient="false" volatile="false"
  44985. static="true" final="true" visibility="public"
  44986. deprecated="not deprecated">
  44987. <doc>
  44988. <![CDATA[Warning: {@link #CACHE_FILES_TIMESTAMPS} is not a *public* constant.]]>
  44989. </doc>
  44990. </field>
  44991. <field name="CACHE_ARCHIVES" type="java.lang.String"
  44992. transient="false" volatile="false"
  44993. static="true" final="true" visibility="public"
  44994. deprecated="not deprecated">
  44995. <doc>
  44996. <![CDATA[Warning: {@link #CACHE_ARCHIVES} is not a *public* constant.]]>
  44997. </doc>
  44998. </field>
  44999. <field name="CACHE_FILES" type="java.lang.String"
  45000. transient="false" volatile="false"
  45001. static="true" final="true" visibility="public"
  45002. deprecated="not deprecated">
  45003. <doc>
  45004. <![CDATA[Warning: {@link #CACHE_FILES} is not a *public* constant.]]>
  45005. </doc>
  45006. </field>
  45007. <field name="CACHE_LOCALARCHIVES" type="java.lang.String"
  45008. transient="false" volatile="false"
  45009. static="true" final="true" visibility="public"
  45010. deprecated="not deprecated">
  45011. <doc>
  45012. <![CDATA[Warning: {@link #CACHE_LOCALARCHIVES} is not a *public* constant.]]>
  45013. </doc>
  45014. </field>
  45015. <field name="CACHE_LOCALFILES" type="java.lang.String"
  45016. transient="false" volatile="false"
  45017. static="true" final="true" visibility="public"
  45018. deprecated="not deprecated">
  45019. <doc>
  45020. <![CDATA[Warning: {@link #CACHE_LOCALFILES} is not a *public* constant.]]>
  45021. </doc>
  45022. </field>
  45023. <field name="CACHE_SYMLINK" type="java.lang.String"
  45024. transient="false" volatile="false"
  45025. static="true" final="true" visibility="public"
  45026. deprecated="not deprecated">
  45027. <doc>
  45028. <![CDATA[Warning: {@link #CACHE_SYMLINK} is not a *public* constant.]]>
  45029. </doc>
  45030. </field>
  45031. <doc>
  45032. <![CDATA[Distribute application-specific large, read-only files efficiently.
  45033. <p><code>DistributedCache</code> is a facility provided by the Map-Reduce
  45034. framework to cache files (text, archives, jars etc.) needed by applications.
  45035. </p>
  45036. <p>Applications specify the files, via urls (hdfs:// or http://) to be cached
  45037. via the {@link org.apache.hadoop.mapred.JobConf}.
  45038. The <code>DistributedCache</code> assumes that the
  45039. files specified via hdfs:// urls are already present on the
  45040. {@link FileSystem} at the path specified by the url.</p>
  45041. <p>The framework will copy the necessary files on to the slave node before
  45042. any tasks for the job are executed on that node. Its efficiency stems from
  45043. the fact that the files are only copied once per job and the ability to
  45044. cache archives which are un-archived on the slaves.</p>
  45045. <p><code>DistributedCache</code> can be used to distribute simple, read-only
  45046. data/text files and/or more complex types such as archives, jars etc.
  45047. Archives (zip, tar and tgz/tar.gz files) are un-archived at the slave nodes.
  45048. Jars may be optionally added to the classpath of the tasks, a rudimentary
  45049. software distribution mechanism. Files have execution permissions.
  45050. Optionally users can also direct it to symlink the distributed cache file(s)
  45051. into the working directory of the task.</p>
  45052. <p><code>DistributedCache</code> tracks modification timestamps of the cache
  45053. files. Clearly the cache files should not be modified by the application
  45054. or externally while the job is executing.</p>
  45055. <p>Here is an illustrative example on how to use the
  45056. <code>DistributedCache</code>:</p>
  45057. <p><blockquote><pre>
  45058. // Setting up the cache for the application
  45059. 1. Copy the requisite files to the <code>FileSystem</code>:
  45060. $ bin/hadoop fs -copyFromLocal lookup.dat /myapp/lookup.dat
  45061. $ bin/hadoop fs -copyFromLocal map.zip /myapp/map.zip
  45062. $ bin/hadoop fs -copyFromLocal mylib.jar /myapp/mylib.jar
  45063. $ bin/hadoop fs -copyFromLocal mytar.tar /myapp/mytar.tar
  45064. $ bin/hadoop fs -copyFromLocal mytgz.tgz /myapp/mytgz.tgz
  45065. $ bin/hadoop fs -copyFromLocal mytargz.tar.gz /myapp/mytargz.tar.gz
  45066. 2. Setup the application's <code>JobConf</code>:
  45067. JobConf job = new JobConf();
  45068. DistributedCache.addCacheFile(new URI("/myapp/lookup.dat#lookup.dat"),
  45069. job);
  45070. DistributedCache.addCacheArchive(new URI("/myapp/map.zip", job);
  45071. DistributedCache.addFileToClassPath(new Path("/myapp/mylib.jar"), job);
  45072. DistributedCache.addCacheArchive(new URI("/myapp/mytar.tar", job);
  45073. DistributedCache.addCacheArchive(new URI("/myapp/mytgz.tgz", job);
  45074. DistributedCache.addCacheArchive(new URI("/myapp/mytargz.tar.gz", job);
  45075. 3. Use the cached files in the {@link org.apache.hadoop.mapred.Mapper}
  45076. or {@link org.apache.hadoop.mapred.Reducer}:
  45077. public static class MapClass extends MapReduceBase
  45078. implements Mapper&lt;K, V, K, V&gt; {
  45079. private Path[] localArchives;
  45080. private Path[] localFiles;
  45081. public void configure(JobConf job) {
  45082. // Get the cached archives/files
  45083. localArchives = DistributedCache.getLocalCacheArchives(job);
  45084. localFiles = DistributedCache.getLocalCacheFiles(job);
  45085. }
  45086. public void map(K key, V value,
  45087. OutputCollector&lt;K, V&gt; output, Reporter reporter)
  45088. throws IOException {
  45089. // Use data from the cached archives/files here
  45090. // ...
  45091. // ...
  45092. output.collect(k, v);
  45093. }
  45094. }
  45095. </pre></blockquote></p>
  45096. It is also very common to use the DistributedCache by using
  45097. {@link org.apache.hadoop.util.GenericOptionsParser}.
  45098. This class includes methods that should be used by users
  45099. (specifically those mentioned in the example above, as well
  45100. as {@link DistributedCache#addArchiveToClassPath(Path, Configuration)}),
  45101. as well as methods intended for use by the MapReduce framework
  45102. (e.g., {@link org.apache.hadoop.mapred.JobClient}). For implementation
  45103. details, see {@link TrackerDistributedCacheManager} and
  45104. {@link TaskDistributedCacheManager}.
  45105. @see TrackerDistributedCacheManager
  45106. @see TaskDistributedCacheManager
  45107. @see org.apache.hadoop.mapred.JobConf
  45108. @see org.apache.hadoop.mapred.JobClient]]>
  45109. </doc>
  45110. </class>
  45111. <!-- end class org.apache.hadoop.filecache.DistributedCache -->
  45112. <!-- start class org.apache.hadoop.filecache.TaskDistributedCacheManager -->
  45113. <class name="TaskDistributedCacheManager" extends="java.lang.Object"
  45114. abstract="false"
  45115. static="false" final="false" visibility="public"
  45116. deprecated="not deprecated">
  45117. <method name="setupCache"
  45118. abstract="false" native="false" synchronized="false"
  45119. static="false" final="false" visibility="public"
  45120. deprecated="not deprecated">
  45121. <param name="taskConf" type="org.apache.hadoop.conf.Configuration"/>
  45122. <param name="publicCacheSubdir" type="java.lang.String"/>
  45123. <param name="privateCacheSubdir" type="java.lang.String"/>
  45124. <exception name="IOException" type="java.io.IOException"/>
  45125. <doc>
  45126. <![CDATA[Retrieve public distributed cache files into the local cache and updates
  45127. the task configuration (which has been passed in via the constructor).
  45128. The private distributed cache is just looked at and the paths where the
  45129. files/archives should go to is decided here. The actual localization is
  45130. done by {@link JobLocalizer}.
  45131. It is the caller's responsibility to re-write the task configuration XML
  45132. file, if necessary.]]>
  45133. </doc>
  45134. </method>
  45135. <method name="getClassPaths" return="java.util.List"
  45136. abstract="false" native="false" synchronized="false"
  45137. static="false" final="false" visibility="public"
  45138. deprecated="not deprecated">
  45139. <exception name="IOException" type="java.io.IOException"/>
  45140. <doc>
  45141. <![CDATA[Retrieves class paths (as local references) to add.
  45142. Should be called after setup().]]>
  45143. </doc>
  45144. </method>
  45145. <method name="release"
  45146. abstract="false" native="false" synchronized="false"
  45147. static="false" final="false" visibility="public"
  45148. deprecated="not deprecated">
  45149. <exception name="IOException" type="java.io.IOException"/>
  45150. <doc>
  45151. <![CDATA[Releases the cached files/archives, so that space
  45152. can be reclaimed by the {@link TrackerDistributedCacheManager}.]]>
  45153. </doc>
  45154. </method>
  45155. <method name="setSizes"
  45156. abstract="false" native="false" synchronized="false"
  45157. static="false" final="false" visibility="public"
  45158. deprecated="not deprecated">
  45159. <param name="sizes" type="long[]"/>
  45160. <exception name="IOException" type="java.io.IOException"/>
  45161. </method>
  45162. <method name="makeClassLoader" return="java.lang.ClassLoader"
  45163. abstract="false" native="false" synchronized="false"
  45164. static="false" final="false" visibility="public"
  45165. deprecated="not deprecated">
  45166. <param name="parent" type="java.lang.ClassLoader"/>
  45167. <exception name="MalformedURLException" type="java.net.MalformedURLException"/>
  45168. <doc>
  45169. <![CDATA[Creates a class loader that includes the designated
  45170. files and archives.]]>
  45171. </doc>
  45172. </method>
  45173. <doc>
  45174. <![CDATA[Helper class of {@link TrackerDistributedCacheManager} that represents
  45175. the cached files of a single job.
  45176. <b>This class is internal to Hadoop, and should not be treated as a public
  45177. interface.</b>]]>
  45178. </doc>
  45179. </class>
  45180. <!-- end class org.apache.hadoop.filecache.TaskDistributedCacheManager -->
  45181. <!-- start class org.apache.hadoop.filecache.TrackerDistributedCacheManager -->
  45182. <class name="TrackerDistributedCacheManager" extends="java.lang.Object"
  45183. abstract="false"
  45184. static="false" final="false" visibility="public"
  45185. deprecated="not deprecated">
  45186. <constructor name="TrackerDistributedCacheManager" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.mapred.TaskController"
  45187. static="false" final="false" visibility="public"
  45188. deprecated="not deprecated">
  45189. <exception name="IOException" type="java.io.IOException"/>
  45190. </constructor>
  45191. <method name="downloadCacheObject" return="long"
  45192. abstract="false" native="false" synchronized="false"
  45193. static="true" final="false" visibility="public"
  45194. deprecated="not deprecated">
  45195. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  45196. <param name="source" type="java.net.URI"/>
  45197. <param name="destination" type="org.apache.hadoop.fs.Path"/>
  45198. <param name="desiredTimestamp" type="long"/>
  45199. <param name="isArchive" type="boolean"/>
  45200. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  45201. <exception name="IOException" type="java.io.IOException"/>
  45202. <doc>
  45203. <![CDATA[Download a given path to the local file system.
  45204. @param conf the job's configuration
  45205. @param source the source to copy from
  45206. @param destination where to copy the file. must be local fs
  45207. @param desiredTimestamp the required modification timestamp of the source
  45208. @param isArchive is this an archive that should be expanded
  45209. @param permission the desired permissions of the file.
  45210. @return for archives, the number of bytes in the unpacked directory
  45211. @throws IOException]]>
  45212. </doc>
  45213. </method>
  45214. <method name="createAllSymlink"
  45215. abstract="false" native="false" synchronized="false"
  45216. static="true" final="false" visibility="public"
  45217. deprecated="not deprecated">
  45218. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  45219. <param name="jobCacheDir" type="java.io.File"/>
  45220. <param name="workDir" type="java.io.File"/>
  45221. <exception name="IOException" type="java.io.IOException"/>
  45222. <doc>
  45223. <![CDATA[This method create symlinks for all files in a given dir in another
  45224. directory.
  45225. Should not be used outside of DistributedCache code.
  45226. @param conf the configuration
  45227. @param jobCacheDir the target directory for creating symlinks
  45228. @param workDir the directory in which the symlinks are created
  45229. @throws IOException]]>
  45230. </doc>
  45231. </method>
  45232. <method name="purgeCache"
  45233. abstract="false" native="false" synchronized="false"
  45234. static="false" final="false" visibility="public"
  45235. deprecated="not deprecated">
  45236. <doc>
  45237. <![CDATA[Clear the entire contents of the cache and delete the backing files. This
  45238. should only be used when the server is reinitializing, because the users
  45239. are going to lose their files.]]>
  45240. </doc>
  45241. </method>
  45242. <method name="newTaskDistributedCacheManager" return="org.apache.hadoop.filecache.TaskDistributedCacheManager"
  45243. abstract="false" native="false" synchronized="false"
  45244. static="false" final="false" visibility="public"
  45245. deprecated="not deprecated">
  45246. <param name="jobId" type="org.apache.hadoop.mapreduce.JobID"/>
  45247. <param name="taskConf" type="org.apache.hadoop.conf.Configuration"/>
  45248. <exception name="IOException" type="java.io.IOException"/>
  45249. </method>
  45250. <method name="setArchiveSizes"
  45251. abstract="false" native="false" synchronized="false"
  45252. static="false" final="false" visibility="public"
  45253. deprecated="not deprecated">
  45254. <param name="jobId" type="org.apache.hadoop.mapreduce.JobID"/>
  45255. <param name="sizes" type="long[]"/>
  45256. <exception name="IOException" type="java.io.IOException"/>
  45257. <doc>
  45258. <![CDATA[Set the sizes for any archives, files, or directories in the private
  45259. distributed cache.]]>
  45260. </doc>
  45261. </method>
  45262. <method name="removeTaskDistributedCacheManager"
  45263. abstract="false" native="false" synchronized="false"
  45264. static="false" final="false" visibility="public"
  45265. deprecated="not deprecated">
  45266. <param name="jobId" type="org.apache.hadoop.mapreduce.JobID"/>
  45267. </method>
  45268. <method name="getTaskDistributedCacheManager" return="org.apache.hadoop.filecache.TaskDistributedCacheManager"
  45269. abstract="false" native="false" synchronized="false"
  45270. static="false" final="false" visibility="protected"
  45271. deprecated="not deprecated">
  45272. <param name="jobId" type="org.apache.hadoop.mapreduce.JobID"/>
  45273. </method>
  45274. <method name="determineTimestampsAndCacheVisibilities"
  45275. abstract="false" native="false" synchronized="false"
  45276. static="true" final="false" visibility="public"
  45277. deprecated="not deprecated">
  45278. <param name="job" type="org.apache.hadoop.conf.Configuration"/>
  45279. <exception name="IOException" type="java.io.IOException"/>
  45280. <doc>
  45281. <![CDATA[Determines timestamps of files to be cached, and stores those
  45282. in the configuration. Determines the visibilities of the distributed cache
  45283. files and archives. The visibility of a cache path is "public" if the leaf
  45284. component has READ permissions for others, and the parent subdirs have
  45285. EXECUTE permissions for others.
  45286. This is an internal method!
  45287. @param job
  45288. @throws IOException]]>
  45289. </doc>
  45290. </method>
  45291. <method name="getFileVisibilities" return="boolean[]"
  45292. abstract="false" native="false" synchronized="false"
  45293. static="true" final="false" visibility="public"
  45294. deprecated="not deprecated">
  45295. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  45296. <doc>
  45297. <![CDATA[Get the booleans on whether the files are public or not. Used by
  45298. internal DistributedCache and MapReduce code.
  45299. @param conf The configuration which stored the timestamps
  45300. @return array of booleans
  45301. @throws IOException]]>
  45302. </doc>
  45303. </method>
  45304. <method name="getArchiveVisibilities" return="boolean[]"
  45305. abstract="false" native="false" synchronized="false"
  45306. static="true" final="false" visibility="public"
  45307. deprecated="not deprecated">
  45308. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  45309. <doc>
  45310. <![CDATA[Get the booleans on whether the archives are public or not. Used by
  45311. internal DistributedCache and MapReduce code.
  45312. @param conf The configuration which stored the timestamps
  45313. @return array of booleans]]>
  45314. </doc>
  45315. </method>
  45316. <method name="getDelegationTokens"
  45317. abstract="false" native="false" synchronized="false"
  45318. static="true" final="false" visibility="public"
  45319. deprecated="not deprecated">
  45320. <param name="job" type="org.apache.hadoop.conf.Configuration"/>
  45321. <param name="credentials" type="org.apache.hadoop.security.Credentials"/>
  45322. <exception name="IOException" type="java.io.IOException"/>
  45323. <doc>
  45324. <![CDATA[For each archive or cache file - get the corresponding delegation token
  45325. @param job
  45326. @param credentials
  45327. @throws IOException]]>
  45328. </doc>
  45329. </method>
  45330. <method name="validate"
  45331. abstract="false" native="false" synchronized="false"
  45332. static="true" final="false" visibility="public"
  45333. deprecated="not deprecated">
  45334. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  45335. <exception name="InvalidJobConfException" type="org.apache.hadoop.mapred.InvalidJobConfException"/>
  45336. <doc>
  45337. <![CDATA[This is part of the framework API. It's called within the job
  45338. submission code only, not by users. In the non-error case it has
  45339. no side effects and returns normally. If there's a URI in both
  45340. mapred.cache.files and mapred.cache.archives, it throws its
  45341. exception.
  45342. @param conf a {@link Configuration} to be cheked for duplication
  45343. in cached URIs
  45344. @throws InvalidJobConfException]]>
  45345. </doc>
  45346. </method>
  45347. <method name="startCleanupThread"
  45348. abstract="false" native="false" synchronized="false"
  45349. static="false" final="false" visibility="public"
  45350. deprecated="not deprecated">
  45351. <doc>
  45352. <![CDATA[Start the background thread]]>
  45353. </doc>
  45354. </method>
  45355. <method name="stopCleanupThread"
  45356. abstract="false" native="false" synchronized="false"
  45357. static="false" final="false" visibility="public"
  45358. deprecated="not deprecated">
  45359. <doc>
  45360. <![CDATA[Stop the background thread]]>
  45361. </doc>
  45362. </method>
  45363. <field name="baseDirManager" type="org.apache.hadoop.filecache.TrackerDistributedCacheManager.BaseDirManager"
  45364. transient="false" volatile="false"
  45365. static="false" final="false" visibility="protected"
  45366. deprecated="not deprecated">
  45367. </field>
  45368. <field name="cleanupThread" type="org.apache.hadoop.filecache.TrackerDistributedCacheManager.CleanupThread"
  45369. transient="false" volatile="false"
  45370. static="false" final="false" visibility="protected"
  45371. deprecated="not deprecated">
  45372. </field>
  45373. <doc>
  45374. <![CDATA[Manages a single machine's instance of a cross-job
  45375. cache. This class would typically be instantiated
  45376. by a TaskTracker (or something that emulates it,
  45377. like LocalJobRunner).
  45378. <b>This class is internal to Hadoop, and should not be treated as a public
  45379. interface.</b>]]>
  45380. </doc>
  45381. </class>
  45382. <!-- end class org.apache.hadoop.filecache.TrackerDistributedCacheManager -->
  45383. <!-- start class org.apache.hadoop.filecache.TrackerDistributedCacheManager.BaseDirManager -->
  45384. <class name="TrackerDistributedCacheManager.BaseDirManager" extends="java.lang.Object"
  45385. abstract="false"
  45386. static="false" final="false" visibility="protected"
  45387. deprecated="not deprecated">
  45388. <constructor name="TrackerDistributedCacheManager.BaseDirManager"
  45389. static="false" final="false" visibility="protected"
  45390. deprecated="not deprecated">
  45391. </constructor>
  45392. <method name="deleteCacheInfoUpdate"
  45393. abstract="false" native="false" synchronized="false"
  45394. static="false" final="false" visibility="public"
  45395. deprecated="not deprecated">
  45396. <param name="cacheStatus" type="org.apache.hadoop.filecache.TrackerDistributedCacheManager.CacheStatus"/>
  45397. <doc>
  45398. <![CDATA[Decrement the size and sub directory count of the cache from baseDirSize
  45399. and baseDirNumberSubDir. Have to lock lcacheStatus before calling this.
  45400. @param cacheStatus cache status of the cache is deleted]]>
  45401. </doc>
  45402. </method>
  45403. <method name="addCacheInfoUpdate"
  45404. abstract="false" native="false" synchronized="false"
  45405. static="false" final="false" visibility="public"
  45406. deprecated="not deprecated">
  45407. <param name="cacheStatus" type="org.apache.hadoop.filecache.TrackerDistributedCacheManager.CacheStatus"/>
  45408. <doc>
  45409. <![CDATA[Update the maps baseDirSize and baseDirNumberSubDir when adding cache.
  45410. Increase the size and sub directory count of the cache from baseDirSize
  45411. and baseDirNumberSubDir. Have to lock lcacheStatus before calling this.
  45412. @param cacheStatus cache status of the cache is added]]>
  45413. </doc>
  45414. </method>
  45415. <doc>
  45416. <![CDATA[This class holds properties of each base directories and is responsible
  45417. for clean up unused cache files in base directories.]]>
  45418. </doc>
  45419. </class>
  45420. <!-- end class org.apache.hadoop.filecache.TrackerDistributedCacheManager.BaseDirManager -->
  45421. <!-- start class org.apache.hadoop.filecache.TrackerDistributedCacheManager.CleanupThread -->
  45422. <class name="TrackerDistributedCacheManager.CleanupThread" extends="java.lang.Thread"
  45423. abstract="false"
  45424. static="false" final="false" visibility="protected"
  45425. deprecated="not deprecated">
  45426. <constructor name="TrackerDistributedCacheManager.CleanupThread" type="org.apache.hadoop.conf.Configuration"
  45427. static="false" final="false" visibility="public"
  45428. deprecated="not deprecated">
  45429. </constructor>
  45430. <method name="stopRunning"
  45431. abstract="false" native="false" synchronized="false"
  45432. static="false" final="false" visibility="public"
  45433. deprecated="not deprecated">
  45434. </method>
  45435. <method name="run"
  45436. abstract="false" native="false" synchronized="false"
  45437. static="false" final="false" visibility="public"
  45438. deprecated="not deprecated">
  45439. </method>
  45440. <method name="exitTaskTracker"
  45441. abstract="false" native="false" synchronized="false"
  45442. static="false" final="false" visibility="protected"
  45443. deprecated="not deprecated">
  45444. <param name="t" type="java.lang.Throwable"/>
  45445. <doc>
  45446. <![CDATA[Exit the task tracker because of a fatal error.]]>
  45447. </doc>
  45448. </method>
  45449. <doc>
  45450. <![CDATA[A thread to check and cleanup the unused files periodically]]>
  45451. </doc>
  45452. </class>
  45453. <!-- end class org.apache.hadoop.filecache.TrackerDistributedCacheManager.CleanupThread -->
  45454. </package>
  45455. <package name="org.apache.hadoop.mapred">
  45456. <!-- start interface org.apache.hadoop.mapred.AdminOperationsProtocol -->
  45457. <interface name="AdminOperationsProtocol" abstract="true"
  45458. static="false" final="false" visibility="public"
  45459. deprecated="not deprecated">
  45460. <implements name="org.apache.hadoop.ipc.VersionedProtocol"/>
  45461. <method name="refreshQueues"
  45462. abstract="false" native="false" synchronized="false"
  45463. static="false" final="false" visibility="public"
  45464. deprecated="not deprecated">
  45465. <exception name="IOException" type="java.io.IOException"/>
  45466. <doc>
  45467. <![CDATA[Refresh the queue acls in use currently.
  45468. Refresh the queues used by the jobtracker and scheduler.
  45469. Access control lists and queue states are refreshed.]]>
  45470. </doc>
  45471. </method>
  45472. <method name="refreshNodes"
  45473. abstract="false" native="false" synchronized="false"
  45474. static="false" final="false" visibility="public"
  45475. deprecated="not deprecated">
  45476. <exception name="IOException" type="java.io.IOException"/>
  45477. <doc>
  45478. <![CDATA[Refresh the node list at the {@link JobTracker}]]>
  45479. </doc>
  45480. </method>
  45481. <method name="setSafeMode" return="boolean"
  45482. abstract="false" native="false" synchronized="false"
  45483. static="false" final="false" visibility="public"
  45484. deprecated="not deprecated">
  45485. <param name="safeModeAction" type="org.apache.hadoop.mapred.JobTracker.SafeModeAction"/>
  45486. <exception name="IOException" type="java.io.IOException"/>
  45487. <doc>
  45488. <![CDATA[Set safe mode for the JobTracker.
  45489. @param safeModeAction safe mode action
  45490. @return current safemode
  45491. @throws IOException]]>
  45492. </doc>
  45493. </method>
  45494. <field name="versionID" type="long"
  45495. transient="false" volatile="false"
  45496. static="true" final="true" visibility="public"
  45497. deprecated="not deprecated">
  45498. <doc>
  45499. <![CDATA[Version 1: Initial version. Added refreshQueueAcls.
  45500. Version 2: Added node refresh facility
  45501. Version 3: Changed refreshQueueAcls to refreshQueues]]>
  45502. </doc>
  45503. </field>
  45504. <doc>
  45505. <![CDATA[Protocol for admin operations. This is a framework-public interface and is
  45506. NOT_TO_BE_USED_BY_USERS_DIRECTLY.]]>
  45507. </doc>
  45508. </interface>
  45509. <!-- end interface org.apache.hadoop.mapred.AdminOperationsProtocol -->
  45510. <!-- start class org.apache.hadoop.mapred.CleanupQueue -->
  45511. <class name="CleanupQueue" extends="java.lang.Object"
  45512. abstract="false"
  45513. static="false" final="false" visibility="public"
  45514. deprecated="not deprecated">
  45515. <constructor name="CleanupQueue"
  45516. static="false" final="false" visibility="protected"
  45517. deprecated="not deprecated">
  45518. <doc>
  45519. <![CDATA[Create a singleton path-clean-up queue. It can be used to delete
  45520. paths(directories/files) in a separate thread. This constructor creates a
  45521. clean-up thread and also starts it as a daemon. Callers can instantiate one
  45522. CleanupQueue per JVM and can use it for deleting paths. Use
  45523. {@link CleanupQueue#addToQueue(PathDeletionContext...)} to add paths for
  45524. deletion.]]>
  45525. </doc>
  45526. </constructor>
  45527. <method name="getInstance" return="org.apache.hadoop.mapred.CleanupQueue"
  45528. abstract="false" native="false" synchronized="false"
  45529. static="true" final="false" visibility="public"
  45530. deprecated="not deprecated">
  45531. </method>
  45532. <method name="addToQueue"
  45533. abstract="false" native="false" synchronized="false"
  45534. static="false" final="false" visibility="public"
  45535. deprecated="not deprecated">
  45536. <param name="contexts" type="org.apache.hadoop.mapred.CleanupQueue.PathDeletionContext[]"/>
  45537. <doc>
  45538. <![CDATA[Adds the paths to the queue of paths to be deleted by cleanupThread.]]>
  45539. </doc>
  45540. </method>
  45541. <method name="isQueueEmpty" return="boolean"
  45542. abstract="false" native="false" synchronized="false"
  45543. static="false" final="false" visibility="protected"
  45544. deprecated="not deprecated">
  45545. </method>
  45546. <field name="LOG" type="org.apache.commons.logging.Log"
  45547. transient="false" volatile="false"
  45548. static="true" final="true" visibility="public"
  45549. deprecated="not deprecated">
  45550. </field>
  45551. </class>
  45552. <!-- end class org.apache.hadoop.mapred.CleanupQueue -->
  45553. <!-- start class org.apache.hadoop.mapred.ClusterStatus -->
  45554. <class name="ClusterStatus" extends="java.lang.Object"
  45555. abstract="false"
  45556. static="false" final="false" visibility="public"
  45557. deprecated="not deprecated">
  45558. <implements name="org.apache.hadoop.io.Writable"/>
  45559. <method name="getTaskTrackers" return="int"
  45560. abstract="false" native="false" synchronized="false"
  45561. static="false" final="false" visibility="public"
  45562. deprecated="not deprecated">
  45563. <doc>
  45564. <![CDATA[Get the number of active task trackers in the cluster. Includes
  45565. graylisted but not blacklisted trackers.
  45566. @return the number of active task trackers in the cluster.]]>
  45567. </doc>
  45568. </method>
  45569. <method name="getActiveTrackerNames" return="java.util.Collection"
  45570. abstract="false" native="false" synchronized="false"
  45571. static="false" final="false" visibility="public"
  45572. deprecated="not deprecated">
  45573. <doc>
  45574. <![CDATA[Get the names of active task trackers in the cluster. Includes
  45575. graylisted but not blacklisted trackers.
  45576. @return the active task trackers in the cluster.]]>
  45577. </doc>
  45578. </method>
  45579. <method name="getBlacklistedTrackerNames" return="java.util.Collection"
  45580. abstract="false" native="false" synchronized="false"
  45581. static="false" final="false" visibility="public"
  45582. deprecated="not deprecated">
  45583. <doc>
  45584. <![CDATA[Get the names of blacklisted task trackers in the cluster.
  45585. @return the blacklisted task trackers in the cluster.]]>
  45586. </doc>
  45587. </method>
  45588. <method name="getBlacklistedTrackers" return="int"
  45589. abstract="false" native="false" synchronized="false"
  45590. static="false" final="false" visibility="public"
  45591. deprecated="not deprecated">
  45592. <doc>
  45593. <![CDATA[Get the number of blacklisted task trackers in the cluster.
  45594. @return the number of blacklisted task trackers in the cluster.]]>
  45595. </doc>
  45596. </method>
  45597. <method name="getGraylistedTrackerNames" return="java.util.Collection"
  45598. abstract="false" native="false" synchronized="false"
  45599. static="false" final="false" visibility="public"
  45600. deprecated="not deprecated">
  45601. <doc>
  45602. <![CDATA[Get the names of graylisted task trackers in the cluster.
  45603. @return the graylisted task trackers in the cluster.]]>
  45604. </doc>
  45605. </method>
  45606. <method name="getGraylistedTrackers" return="int"
  45607. abstract="false" native="false" synchronized="false"
  45608. static="false" final="false" visibility="public"
  45609. deprecated="not deprecated">
  45610. <doc>
  45611. <![CDATA[Get the number of graylisted task trackers in the cluster.
  45612. @return the number of graylisted task trackers in the cluster.]]>
  45613. </doc>
  45614. </method>
  45615. <method name="getNumExcludedNodes" return="int"
  45616. abstract="false" native="false" synchronized="false"
  45617. static="false" final="false" visibility="public"
  45618. deprecated="not deprecated">
  45619. <doc>
  45620. <![CDATA[Get the number of excluded hosts in the cluster.
  45621. @return the number of excluded hosts in the cluster.]]>
  45622. </doc>
  45623. </method>
  45624. <method name="getTTExpiryInterval" return="long"
  45625. abstract="false" native="false" synchronized="false"
  45626. static="false" final="false" visibility="public"
  45627. deprecated="not deprecated">
  45628. <doc>
  45629. <![CDATA[Get the tasktracker expiry interval for the cluster
  45630. @return the expiry interval in msec]]>
  45631. </doc>
  45632. </method>
  45633. <method name="getMapTasks" return="int"
  45634. abstract="false" native="false" synchronized="false"
  45635. static="false" final="false" visibility="public"
  45636. deprecated="not deprecated">
  45637. <doc>
  45638. <![CDATA[Get the number of currently running map tasks in the cluster.
  45639. @return the number of currently running map tasks in the cluster.]]>
  45640. </doc>
  45641. </method>
  45642. <method name="getReduceTasks" return="int"
  45643. abstract="false" native="false" synchronized="false"
  45644. static="false" final="false" visibility="public"
  45645. deprecated="not deprecated">
  45646. <doc>
  45647. <![CDATA[Get the number of currently running reduce tasks in the cluster.
  45648. @return the number of currently running reduce tasks in the cluster.]]>
  45649. </doc>
  45650. </method>
  45651. <method name="getMaxMapTasks" return="int"
  45652. abstract="false" native="false" synchronized="false"
  45653. static="false" final="false" visibility="public"
  45654. deprecated="not deprecated">
  45655. <doc>
  45656. <![CDATA[Get the maximum capacity for running map tasks in the cluster.
  45657. @return the maximum capacity for running map tasks in the cluster.]]>
  45658. </doc>
  45659. </method>
  45660. <method name="getMaxReduceTasks" return="int"
  45661. abstract="false" native="false" synchronized="false"
  45662. static="false" final="false" visibility="public"
  45663. deprecated="not deprecated">
  45664. <doc>
  45665. <![CDATA[Get the maximum capacity for running reduce tasks in the cluster.
  45666. @return the maximum capacity for running reduce tasks in the cluster.]]>
  45667. </doc>
  45668. </method>
  45669. <method name="getJobTrackerState" return="org.apache.hadoop.mapred.JobTracker.State"
  45670. abstract="false" native="false" synchronized="false"
  45671. static="false" final="false" visibility="public"
  45672. deprecated="not deprecated">
  45673. <doc>
  45674. <![CDATA[Get the current state of the <code>JobTracker</code>,
  45675. as {@link JobTracker.State}
  45676. @return the current state of the <code>JobTracker</code>.]]>
  45677. </doc>
  45678. </method>
  45679. <method name="getUsedMemory" return="long"
  45680. abstract="false" native="false" synchronized="false"
  45681. static="false" final="false" visibility="public"
  45682. deprecated="not deprecated">
  45683. <doc>
  45684. <![CDATA[Get the total heap memory used by the <code>JobTracker</code>
  45685. @return the size of heap memory used by the <code>JobTracker</code>]]>
  45686. </doc>
  45687. </method>
  45688. <method name="getMaxMemory" return="long"
  45689. abstract="false" native="false" synchronized="false"
  45690. static="false" final="false" visibility="public"
  45691. deprecated="not deprecated">
  45692. <doc>
  45693. <![CDATA[Get the maximum configured heap memory that can be used by the <code>JobTracker</code>
  45694. @return the configured size of max heap memory that can be used by the <code>JobTracker</code>]]>
  45695. </doc>
  45696. </method>
  45697. <method name="write"
  45698. abstract="false" native="false" synchronized="false"
  45699. static="false" final="false" visibility="public"
  45700. deprecated="not deprecated">
  45701. <param name="out" type="java.io.DataOutput"/>
  45702. <exception name="IOException" type="java.io.IOException"/>
  45703. </method>
  45704. <method name="readFields"
  45705. abstract="false" native="false" synchronized="false"
  45706. static="false" final="false" visibility="public"
  45707. deprecated="not deprecated">
  45708. <param name="in" type="java.io.DataInput"/>
  45709. <exception name="IOException" type="java.io.IOException"/>
  45710. </method>
  45711. <field name="UNINITIALIZED_MEMORY_VALUE" type="long"
  45712. transient="false" volatile="false"
  45713. static="true" final="true" visibility="public"
  45714. deprecated="not deprecated">
  45715. </field>
  45716. <doc>
  45717. <![CDATA[Status information on the current state of the Map-Reduce cluster.
  45718. <p><code>ClusterStatus</code> provides clients with information such as:
  45719. <ol>
  45720. <li>
  45721. Size of the cluster.
  45722. </li>
  45723. <li>
  45724. Name of the trackers.
  45725. </li>
  45726. <li>
  45727. Task capacity of the cluster.
  45728. </li>
  45729. <li>
  45730. The number of currently running map & reduce tasks.
  45731. </li>
  45732. <li>
  45733. State of the <code>JobTracker</code>.
  45734. </li>
  45735. </ol></p>
  45736. <p>Clients can query for the latest <code>ClusterStatus</code>, via
  45737. {@link JobClient#getClusterStatus()}.</p>
  45738. @see JobClient]]>
  45739. </doc>
  45740. </class>
  45741. <!-- end class org.apache.hadoop.mapred.ClusterStatus -->
  45742. <!-- start class org.apache.hadoop.mapred.Counters -->
  45743. <class name="Counters" extends="java.lang.Object"
  45744. abstract="false"
  45745. static="false" final="false" visibility="public"
  45746. deprecated="not deprecated">
  45747. <implements name="org.apache.hadoop.io.Writable"/>
  45748. <implements name="java.lang.Iterable"/>
  45749. <constructor name="Counters"
  45750. static="false" final="false" visibility="public"
  45751. deprecated="not deprecated">
  45752. </constructor>
  45753. <method name="getGroupNames" return="java.util.Collection"
  45754. abstract="false" native="false" synchronized="true"
  45755. static="false" final="false" visibility="public"
  45756. deprecated="not deprecated">
  45757. <doc>
  45758. <![CDATA[Returns the names of all counter classes.
  45759. @return Set of counter names.]]>
  45760. </doc>
  45761. </method>
  45762. <method name="iterator" return="java.util.Iterator"
  45763. abstract="false" native="false" synchronized="true"
  45764. static="false" final="false" visibility="public"
  45765. deprecated="not deprecated">
  45766. </method>
  45767. <method name="getGroup" return="org.apache.hadoop.mapred.Counters.Group"
  45768. abstract="false" native="false" synchronized="true"
  45769. static="false" final="false" visibility="public"
  45770. deprecated="not deprecated">
  45771. <param name="groupName" type="java.lang.String"/>
  45772. <doc>
  45773. <![CDATA[Returns the named counter group, or an empty group if there is none
  45774. with the specified name.]]>
  45775. </doc>
  45776. </method>
  45777. <method name="findCounter" return="org.apache.hadoop.mapred.Counters.Counter"
  45778. abstract="false" native="false" synchronized="true"
  45779. static="false" final="false" visibility="public"
  45780. deprecated="not deprecated">
  45781. <param name="key" type="java.lang.Enum"/>
  45782. <doc>
  45783. <![CDATA[Find the counter for the given enum. The same enum will always return the
  45784. same counter.
  45785. @param key the counter key
  45786. @return the matching counter object]]>
  45787. </doc>
  45788. </method>
  45789. <method name="findCounter" return="org.apache.hadoop.mapred.Counters.Counter"
  45790. abstract="false" native="false" synchronized="true"
  45791. static="false" final="false" visibility="public"
  45792. deprecated="not deprecated">
  45793. <param name="group" type="java.lang.String"/>
  45794. <param name="name" type="java.lang.String"/>
  45795. <doc>
  45796. <![CDATA[Find a counter given the group and the name.
  45797. @param group the name of the group
  45798. @param name the internal name of the counter
  45799. @return the counter for that name]]>
  45800. </doc>
  45801. </method>
  45802. <method name="findCounter" return="org.apache.hadoop.mapred.Counters.Counter"
  45803. abstract="false" native="false" synchronized="true"
  45804. static="false" final="false" visibility="public"
  45805. deprecated="deprecated, no comment">
  45806. <param name="group" type="java.lang.String"/>
  45807. <param name="id" type="int"/>
  45808. <param name="name" type="java.lang.String"/>
  45809. <doc>
  45810. <![CDATA[Find a counter by using strings
  45811. @param group the name of the group
  45812. @param id the id of the counter within the group (0 to N-1)
  45813. @param name the internal name of the counter
  45814. @return the counter for that name
  45815. @deprecated]]>
  45816. </doc>
  45817. </method>
  45818. <method name="incrCounter"
  45819. abstract="false" native="false" synchronized="true"
  45820. static="false" final="false" visibility="public"
  45821. deprecated="not deprecated">
  45822. <param name="key" type="java.lang.Enum"/>
  45823. <param name="amount" type="long"/>
  45824. <doc>
  45825. <![CDATA[Increments the specified counter by the specified amount, creating it if
  45826. it didn't already exist.
  45827. @param key identifies a counter
  45828. @param amount amount by which counter is to be incremented]]>
  45829. </doc>
  45830. </method>
  45831. <method name="incrCounter"
  45832. abstract="false" native="false" synchronized="true"
  45833. static="false" final="false" visibility="public"
  45834. deprecated="not deprecated">
  45835. <param name="group" type="java.lang.String"/>
  45836. <param name="counter" type="java.lang.String"/>
  45837. <param name="amount" type="long"/>
  45838. <doc>
  45839. <![CDATA[Increments the specified counter by the specified amount, creating it if
  45840. it didn't already exist.
  45841. @param group the name of the group
  45842. @param counter the internal name of the counter
  45843. @param amount amount by which counter is to be incremented]]>
  45844. </doc>
  45845. </method>
  45846. <method name="getCounter" return="long"
  45847. abstract="false" native="false" synchronized="true"
  45848. static="false" final="false" visibility="public"
  45849. deprecated="not deprecated">
  45850. <param name="key" type="java.lang.Enum"/>
  45851. <doc>
  45852. <![CDATA[Returns current value of the specified counter, or 0 if the counter
  45853. does not exist.]]>
  45854. </doc>
  45855. </method>
  45856. <method name="incrAllCounters"
  45857. abstract="false" native="false" synchronized="true"
  45858. static="false" final="false" visibility="public"
  45859. deprecated="not deprecated">
  45860. <param name="other" type="org.apache.hadoop.mapred.Counters"/>
  45861. <doc>
  45862. <![CDATA[Increments multiple counters by their amounts in another Counters
  45863. instance.
  45864. @param other the other Counters instance]]>
  45865. </doc>
  45866. </method>
  45867. <method name="sum" return="org.apache.hadoop.mapred.Counters"
  45868. abstract="false" native="false" synchronized="false"
  45869. static="true" final="false" visibility="public"
  45870. deprecated="not deprecated">
  45871. <param name="a" type="org.apache.hadoop.mapred.Counters"/>
  45872. <param name="b" type="org.apache.hadoop.mapred.Counters"/>
  45873. <doc>
  45874. <![CDATA[Convenience method for computing the sum of two sets of counters.]]>
  45875. </doc>
  45876. </method>
  45877. <method name="size" return="int"
  45878. abstract="false" native="false" synchronized="true"
  45879. static="false" final="false" visibility="public"
  45880. deprecated="not deprecated">
  45881. <doc>
  45882. <![CDATA[Returns the total number of counters, by summing the number of counters
  45883. in each group.]]>
  45884. </doc>
  45885. </method>
  45886. <method name="write"
  45887. abstract="false" native="false" synchronized="true"
  45888. static="false" final="false" visibility="public"
  45889. deprecated="not deprecated">
  45890. <param name="out" type="java.io.DataOutput"/>
  45891. <exception name="IOException" type="java.io.IOException"/>
  45892. <doc>
  45893. <![CDATA[Write the set of groups.
  45894. The external format is:
  45895. #groups (groupName group)*
  45896. i.e. the number of groups followed by 0 or more groups, where each
  45897. group is of the form:
  45898. groupDisplayName #counters (false | true counter)*
  45899. where each counter is of the form:
  45900. name (false | true displayName) value]]>
  45901. </doc>
  45902. </method>
  45903. <method name="readFields"
  45904. abstract="false" native="false" synchronized="true"
  45905. static="false" final="false" visibility="public"
  45906. deprecated="not deprecated">
  45907. <param name="in" type="java.io.DataInput"/>
  45908. <exception name="IOException" type="java.io.IOException"/>
  45909. <doc>
  45910. <![CDATA[Read a set of groups.]]>
  45911. </doc>
  45912. </method>
  45913. <method name="log"
  45914. abstract="false" native="false" synchronized="false"
  45915. static="false" final="false" visibility="public"
  45916. deprecated="not deprecated">
  45917. <param name="log" type="org.apache.commons.logging.Log"/>
  45918. <doc>
  45919. <![CDATA[Logs the current counter values.
  45920. @param log The log to use.]]>
  45921. </doc>
  45922. </method>
  45923. <method name="toString" return="java.lang.String"
  45924. abstract="false" native="false" synchronized="true"
  45925. static="false" final="false" visibility="public"
  45926. deprecated="not deprecated">
  45927. <doc>
  45928. <![CDATA[Return textual representation of the counter values.]]>
  45929. </doc>
  45930. </method>
  45931. <method name="makeCompactString" return="java.lang.String"
  45932. abstract="false" native="false" synchronized="true"
  45933. static="false" final="false" visibility="public"
  45934. deprecated="not deprecated">
  45935. <doc>
  45936. <![CDATA[Convert a counters object into a single line that is easy to parse.
  45937. @return the string with "name=value" for each counter and separated by ","]]>
  45938. </doc>
  45939. </method>
  45940. <method name="makeEscapedCompactString" return="java.lang.String"
  45941. abstract="false" native="false" synchronized="true"
  45942. static="false" final="false" visibility="public"
  45943. deprecated="not deprecated">
  45944. <doc>
  45945. <![CDATA[Represent the counter in a textual format that can be converted back to
  45946. its object form
  45947. @return the string in the following format
  45948. {(groupname)(group-displayname)[(countername)(displayname)(value)][][]}{}{}]]>
  45949. </doc>
  45950. </method>
  45951. <method name="fromEscapedCompactString" return="org.apache.hadoop.mapred.Counters"
  45952. abstract="false" native="false" synchronized="false"
  45953. static="true" final="false" visibility="public"
  45954. deprecated="not deprecated">
  45955. <param name="compactString" type="java.lang.String"/>
  45956. <exception name="ParseException" type="java.text.ParseException"/>
  45957. <doc>
  45958. <![CDATA[Convert a stringified counter representation into a counter object. Note
  45959. that the counter can be recovered if its stringified using
  45960. {@link #makeEscapedCompactString()}.
  45961. @return a Counter]]>
  45962. </doc>
  45963. </method>
  45964. <method name="hashCode" return="int"
  45965. abstract="false" native="false" synchronized="true"
  45966. static="false" final="false" visibility="public"
  45967. deprecated="not deprecated">
  45968. </method>
  45969. <method name="equals" return="boolean"
  45970. abstract="false" native="false" synchronized="true"
  45971. static="false" final="false" visibility="public"
  45972. deprecated="not deprecated">
  45973. <param name="obj" type="java.lang.Object"/>
  45974. </method>
  45975. <field name="MAX_COUNTER_LIMIT" type="int"
  45976. transient="false" volatile="false"
  45977. static="true" final="false" visibility="public"
  45978. deprecated="not deprecated">
  45979. <doc>
  45980. <![CDATA[limit on counters]]>
  45981. </doc>
  45982. </field>
  45983. <field name="MAX_GROUP_LIMIT" type="int"
  45984. transient="false" volatile="false"
  45985. static="true" final="true" visibility="public"
  45986. deprecated="not deprecated">
  45987. <doc>
  45988. <![CDATA[the max groups allowed]]>
  45989. </doc>
  45990. </field>
  45991. <doc>
  45992. <![CDATA[A set of named counters.
  45993. <p><code>Counters</code> represent global counters, defined either by the
  45994. Map-Reduce framework or applications. Each <code>Counter</code> can be of
  45995. any {@link Enum} type.</p>
  45996. <p><code>Counters</code> are bunched into {@link Group}s, each comprising of
  45997. counters from a particular <code>Enum</code> class.]]>
  45998. </doc>
  45999. </class>
  46000. <!-- end class org.apache.hadoop.mapred.Counters -->
  46001. <!-- start class org.apache.hadoop.mapred.Counters.Counter -->
  46002. <class name="Counters.Counter" extends="org.apache.hadoop.mapreduce.Counter"
  46003. abstract="false"
  46004. static="true" final="false" visibility="public"
  46005. deprecated="not deprecated">
  46006. <method name="setDisplayName"
  46007. abstract="false" native="false" synchronized="false"
  46008. static="false" final="false" visibility="public"
  46009. deprecated="not deprecated">
  46010. <param name="newName" type="java.lang.String"/>
  46011. </method>
  46012. <method name="makeEscapedCompactString" return="java.lang.String"
  46013. abstract="false" native="false" synchronized="true"
  46014. static="false" final="false" visibility="public"
  46015. deprecated="not deprecated">
  46016. <doc>
  46017. <![CDATA[Returns the compact stringified version of the counter in the format
  46018. [(actual-name)(display-name)(value)]]]>
  46019. </doc>
  46020. </method>
  46021. <method name="getCounter" return="long"
  46022. abstract="false" native="false" synchronized="true"
  46023. static="false" final="false" visibility="public"
  46024. deprecated="not deprecated">
  46025. <doc>
  46026. <![CDATA[What is the current value of this counter?
  46027. @return the current value]]>
  46028. </doc>
  46029. </method>
  46030. <doc>
  46031. <![CDATA[A counter record, comprising its name and value.]]>
  46032. </doc>
  46033. </class>
  46034. <!-- end class org.apache.hadoop.mapred.Counters.Counter -->
  46035. <!-- start class org.apache.hadoop.mapred.Counters.CountersExceededException -->
  46036. <class name="Counters.CountersExceededException" extends="java.lang.RuntimeException"
  46037. abstract="false"
  46038. static="true" final="false" visibility="public"
  46039. deprecated="not deprecated">
  46040. <constructor name="Counters.CountersExceededException" type="java.lang.String"
  46041. static="false" final="false" visibility="public"
  46042. deprecated="not deprecated">
  46043. </constructor>
  46044. <doc>
  46045. <![CDATA[Counter exception thrown when the number of counters exceed
  46046. the limit]]>
  46047. </doc>
  46048. </class>
  46049. <!-- end class org.apache.hadoop.mapred.Counters.CountersExceededException -->
  46050. <!-- start class org.apache.hadoop.mapred.Counters.Group -->
  46051. <class name="Counters.Group" extends="java.lang.Object"
  46052. abstract="false"
  46053. static="false" final="false" visibility="public"
  46054. deprecated="not deprecated">
  46055. <implements name="org.apache.hadoop.io.Writable"/>
  46056. <implements name="java.lang.Iterable"/>
  46057. <method name="getName" return="java.lang.String"
  46058. abstract="false" native="false" synchronized="false"
  46059. static="false" final="false" visibility="public"
  46060. deprecated="not deprecated">
  46061. <doc>
  46062. <![CDATA[Returns raw name of the group. This is the name of the enum class
  46063. for this group of counters.]]>
  46064. </doc>
  46065. </method>
  46066. <method name="getDisplayName" return="java.lang.String"
  46067. abstract="false" native="false" synchronized="false"
  46068. static="false" final="false" visibility="public"
  46069. deprecated="not deprecated">
  46070. <doc>
  46071. <![CDATA[Returns localized name of the group. This is the same as getName() by
  46072. default, but different if an appropriate ResourceBundle is found.]]>
  46073. </doc>
  46074. </method>
  46075. <method name="setDisplayName"
  46076. abstract="false" native="false" synchronized="false"
  46077. static="false" final="false" visibility="public"
  46078. deprecated="not deprecated">
  46079. <param name="displayName" type="java.lang.String"/>
  46080. <doc>
  46081. <![CDATA[Set the display name]]>
  46082. </doc>
  46083. </method>
  46084. <method name="makeEscapedCompactString" return="java.lang.String"
  46085. abstract="false" native="false" synchronized="false"
  46086. static="false" final="false" visibility="public"
  46087. deprecated="not deprecated">
  46088. <doc>
  46089. <![CDATA[Returns the compact stringified version of the group in the format
  46090. {(actual-name)(display-name)(value)[][][]} where [] are compact strings for the
  46091. counters within.]]>
  46092. </doc>
  46093. </method>
  46094. <method name="hashCode" return="int"
  46095. abstract="false" native="false" synchronized="false"
  46096. static="false" final="false" visibility="public"
  46097. deprecated="not deprecated">
  46098. </method>
  46099. <method name="equals" return="boolean"
  46100. abstract="false" native="false" synchronized="true"
  46101. static="false" final="false" visibility="public"
  46102. deprecated="not deprecated">
  46103. <param name="obj" type="java.lang.Object"/>
  46104. <doc>
  46105. <![CDATA[Checks for (content) equality of Groups]]>
  46106. </doc>
  46107. </method>
  46108. <method name="getCounter" return="long"
  46109. abstract="false" native="false" synchronized="true"
  46110. static="false" final="false" visibility="public"
  46111. deprecated="not deprecated">
  46112. <param name="counterName" type="java.lang.String"/>
  46113. <doc>
  46114. <![CDATA[Returns the value of the specified counter, or 0 if the counter does
  46115. not exist.]]>
  46116. </doc>
  46117. </method>
  46118. <method name="getCounter" return="org.apache.hadoop.mapred.Counters.Counter"
  46119. abstract="false" native="false" synchronized="false"
  46120. static="false" final="false" visibility="public"
  46121. deprecated="use {@link #getCounter(String)} instead">
  46122. <param name="id" type="int"/>
  46123. <param name="name" type="java.lang.String"/>
  46124. <doc>
  46125. <![CDATA[Get the counter for the given id and create it if it doesn't exist.
  46126. @param id the numeric id of the counter within the group
  46127. @param name the internal counter name
  46128. @return the counter
  46129. @deprecated use {@link #getCounter(String)} instead]]>
  46130. </doc>
  46131. </method>
  46132. <method name="getCounterForName" return="org.apache.hadoop.mapred.Counters.Counter"
  46133. abstract="false" native="false" synchronized="false"
  46134. static="false" final="false" visibility="public"
  46135. deprecated="not deprecated">
  46136. <param name="name" type="java.lang.String"/>
  46137. <doc>
  46138. <![CDATA[Get the counter for the given name and create it if it doesn't exist.
  46139. @param name the internal counter name
  46140. @return the counter]]>
  46141. </doc>
  46142. </method>
  46143. <method name="size" return="int"
  46144. abstract="false" native="false" synchronized="true"
  46145. static="false" final="false" visibility="public"
  46146. deprecated="not deprecated">
  46147. <doc>
  46148. <![CDATA[Returns the number of counters in this group.]]>
  46149. </doc>
  46150. </method>
  46151. <method name="write"
  46152. abstract="false" native="false" synchronized="true"
  46153. static="false" final="false" visibility="public"
  46154. deprecated="not deprecated">
  46155. <param name="out" type="java.io.DataOutput"/>
  46156. <exception name="IOException" type="java.io.IOException"/>
  46157. </method>
  46158. <method name="readFields"
  46159. abstract="false" native="false" synchronized="true"
  46160. static="false" final="false" visibility="public"
  46161. deprecated="not deprecated">
  46162. <param name="in" type="java.io.DataInput"/>
  46163. <exception name="IOException" type="java.io.IOException"/>
  46164. </method>
  46165. <method name="iterator" return="java.util.Iterator"
  46166. abstract="false" native="false" synchronized="true"
  46167. static="false" final="false" visibility="public"
  46168. deprecated="not deprecated">
  46169. </method>
  46170. <doc>
  46171. <![CDATA[<code>Group</code> of counters, comprising of counters from a particular
  46172. counter {@link Enum} class.
  46173. <p><code>Group</code>handles localization of the class name and the
  46174. counter names.</p>]]>
  46175. </doc>
  46176. </class>
  46177. <!-- end class org.apache.hadoop.mapred.Counters.Group -->
  46178. <!-- start class org.apache.hadoop.mapred.DefaultJobHistoryParser -->
  46179. <class name="DefaultJobHistoryParser" extends="java.lang.Object"
  46180. abstract="false"
  46181. static="false" final="false" visibility="public"
  46182. deprecated="not deprecated">
  46183. <constructor name="DefaultJobHistoryParser"
  46184. static="false" final="false" visibility="public"
  46185. deprecated="not deprecated">
  46186. </constructor>
  46187. <method name="parseJobTasks"
  46188. abstract="false" native="false" synchronized="false"
  46189. static="true" final="false" visibility="public"
  46190. deprecated="not deprecated">
  46191. <param name="jobHistoryFile" type="java.lang.String"/>
  46192. <param name="job" type="org.apache.hadoop.mapred.JobHistory.JobInfo"/>
  46193. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  46194. <exception name="IOException" type="java.io.IOException"/>
  46195. <doc>
  46196. <![CDATA[Populates a JobInfo object from the job's history log file.
  46197. @param jobHistoryFile history file for this job.
  46198. @param job a precreated JobInfo object, should be non-null.
  46199. @param fs FileSystem where historyFile is present.
  46200. @throws IOException]]>
  46201. </doc>
  46202. </method>
  46203. <doc>
  46204. <![CDATA[Default parser for job history files. It creates object model from
  46205. job history file.]]>
  46206. </doc>
  46207. </class>
  46208. <!-- end class org.apache.hadoop.mapred.DefaultJobHistoryParser -->
  46209. <!-- start class org.apache.hadoop.mapred.DefaultTaskController -->
  46210. <class name="DefaultTaskController" extends="org.apache.hadoop.mapred.TaskController"
  46211. abstract="false"
  46212. static="false" final="false" visibility="public"
  46213. deprecated="not deprecated">
  46214. <constructor name="DefaultTaskController"
  46215. static="false" final="false" visibility="public"
  46216. deprecated="not deprecated">
  46217. </constructor>
  46218. <method name="setConf"
  46219. abstract="false" native="false" synchronized="false"
  46220. static="false" final="false" visibility="public"
  46221. deprecated="not deprecated">
  46222. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  46223. </method>
  46224. <method name="createLogDir"
  46225. abstract="false" native="false" synchronized="false"
  46226. static="false" final="false" visibility="public"
  46227. deprecated="not deprecated">
  46228. <param name="taskID" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  46229. <param name="isCleanup" type="boolean"/>
  46230. <exception name="IOException" type="java.io.IOException"/>
  46231. </method>
  46232. <method name="launchTask" return="int"
  46233. abstract="false" native="false" synchronized="false"
  46234. static="false" final="false" visibility="public"
  46235. deprecated="not deprecated">
  46236. <param name="user" type="java.lang.String"/>
  46237. <param name="jobId" type="java.lang.String"/>
  46238. <param name="attemptId" type="java.lang.String"/>
  46239. <param name="setup" type="java.util.List"/>
  46240. <param name="jvmArguments" type="java.util.List"/>
  46241. <param name="currentWorkDirectory" type="java.io.File"/>
  46242. <param name="stdout" type="java.lang.String"/>
  46243. <param name="stderr" type="java.lang.String"/>
  46244. <exception name="IOException" type="java.io.IOException"/>
  46245. <doc>
  46246. <![CDATA[Create all of the directories for the task and launches the child jvm.
  46247. @param user the user name
  46248. @param attemptId the attempt id
  46249. @throws IOException]]>
  46250. </doc>
  46251. </method>
  46252. <method name="initializeJob"
  46253. abstract="false" native="false" synchronized="false"
  46254. static="false" final="false" visibility="public"
  46255. deprecated="not deprecated">
  46256. <param name="user" type="java.lang.String"/>
  46257. <param name="jobid" type="java.lang.String"/>
  46258. <param name="credentials" type="org.apache.hadoop.fs.Path"/>
  46259. <param name="jobConf" type="org.apache.hadoop.fs.Path"/>
  46260. <param name="taskTracker" type="org.apache.hadoop.mapred.TaskUmbilicalProtocol"/>
  46261. <param name="ttAddr" type="java.net.InetSocketAddress"/>
  46262. <exception name="IOException" type="java.io.IOException"/>
  46263. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  46264. <doc>
  46265. <![CDATA[This routine initializes the local file system for running a job.
  46266. Details:
  46267. <ul>
  46268. <li>Copies the credentials file from the TaskTracker's private space to
  46269. the job's private space </li>
  46270. <li>Creates the job work directory and set
  46271. {@link TaskTracker#JOB_LOCAL_DIR} in the configuration</li>
  46272. <li>Downloads the job.jar, unjars it, and updates the configuration to
  46273. reflect the localized path of the job.jar</li>
  46274. <li>Creates a base JobConf in the job's private space</li>
  46275. <li>Sets up the distributed cache</li>
  46276. <li>Sets up the user logs directory for the job</li>
  46277. </ul>
  46278. This method must be invoked in the access control context of the job owner
  46279. user. This is because the distributed cache is also setup here and the
  46280. access to the hdfs files requires authentication tokens in case where
  46281. security is enabled.
  46282. @param user the user in question (the job owner)
  46283. @param jobid the ID of the job in question
  46284. @param credentials the path to the credentials file that the TaskTracker
  46285. downloaded
  46286. @param jobConf the path to the job configuration file that the TaskTracker
  46287. downloaded
  46288. @param taskTracker the connection to the task tracker
  46289. @throws IOException
  46290. @throws InterruptedException]]>
  46291. </doc>
  46292. </method>
  46293. <method name="signalTask"
  46294. abstract="false" native="false" synchronized="false"
  46295. static="false" final="false" visibility="public"
  46296. deprecated="not deprecated">
  46297. <param name="user" type="java.lang.String"/>
  46298. <param name="taskPid" type="int"/>
  46299. <param name="signal" type="org.apache.hadoop.util.ProcessTree.Signal"/>
  46300. </method>
  46301. <method name="deleteAsUser"
  46302. abstract="false" native="false" synchronized="false"
  46303. static="false" final="false" visibility="public"
  46304. deprecated="not deprecated">
  46305. <param name="user" type="java.lang.String"/>
  46306. <param name="subDir" type="java.lang.String"/>
  46307. <exception name="IOException" type="java.io.IOException"/>
  46308. <doc>
  46309. <![CDATA[Delete the user's files under all of the task tracker root directories.
  46310. @param user the user name
  46311. @param subDir the path relative to the user's subdirectory under
  46312. the task tracker root directories.
  46313. @throws IOException]]>
  46314. </doc>
  46315. </method>
  46316. <method name="deleteLogAsUser"
  46317. abstract="false" native="false" synchronized="false"
  46318. static="false" final="false" visibility="public"
  46319. deprecated="not deprecated">
  46320. <param name="user" type="java.lang.String"/>
  46321. <param name="subDir" type="java.lang.String"/>
  46322. <exception name="IOException" type="java.io.IOException"/>
  46323. <doc>
  46324. <![CDATA[Delete the user's files under the userlogs directory.
  46325. @param user the user to work as
  46326. @param subDir the path under the userlogs directory.
  46327. @throws IOException]]>
  46328. </doc>
  46329. </method>
  46330. <method name="truncateLogsAsUser"
  46331. abstract="false" native="false" synchronized="false"
  46332. static="false" final="false" visibility="public"
  46333. deprecated="not deprecated">
  46334. <param name="user" type="java.lang.String"/>
  46335. <param name="allAttempts" type="java.util.List"/>
  46336. <exception name="IOException" type="java.io.IOException"/>
  46337. </method>
  46338. <method name="setup"
  46339. abstract="false" native="false" synchronized="false"
  46340. static="false" final="false" visibility="public"
  46341. deprecated="not deprecated">
  46342. <param name="allocator" type="org.apache.hadoop.fs.LocalDirAllocator"/>
  46343. <param name="localStorage" type="org.apache.hadoop.mapred.TaskTracker.LocalStorage"/>
  46344. </method>
  46345. <doc>
  46346. <![CDATA[The default implementation for controlling tasks.
  46347. This class provides an implementation for launching and killing
  46348. tasks that need to be run as the tasktracker itself. Hence,
  46349. many of the initializing or cleanup methods are not required here.
  46350. <br/>
  46351. NOTE: This class is internal only class and not intended for users!!]]>
  46352. </doc>
  46353. </class>
  46354. <!-- end class org.apache.hadoop.mapred.DefaultTaskController -->
  46355. <!-- start class org.apache.hadoop.mapred.FileAlreadyExistsException -->
  46356. <class name="FileAlreadyExistsException" extends="java.io.IOException"
  46357. abstract="false"
  46358. static="false" final="false" visibility="public"
  46359. deprecated="not deprecated">
  46360. <constructor name="FileAlreadyExistsException"
  46361. static="false" final="false" visibility="public"
  46362. deprecated="not deprecated">
  46363. </constructor>
  46364. <constructor name="FileAlreadyExistsException" type="java.lang.String"
  46365. static="false" final="false" visibility="public"
  46366. deprecated="not deprecated">
  46367. </constructor>
  46368. <doc>
  46369. <![CDATA[Used when target file already exists for any operation and
  46370. is not configured to be overwritten.]]>
  46371. </doc>
  46372. </class>
  46373. <!-- end class org.apache.hadoop.mapred.FileAlreadyExistsException -->
  46374. <!-- start class org.apache.hadoop.mapred.FileInputFormat -->
  46375. <class name="FileInputFormat" extends="java.lang.Object"
  46376. abstract="true"
  46377. static="false" final="false" visibility="public"
  46378. deprecated="not deprecated">
  46379. <implements name="org.apache.hadoop.mapred.InputFormat"/>
  46380. <constructor name="FileInputFormat"
  46381. static="false" final="false" visibility="public"
  46382. deprecated="not deprecated">
  46383. </constructor>
  46384. <method name="setMinSplitSize"
  46385. abstract="false" native="false" synchronized="false"
  46386. static="false" final="false" visibility="protected"
  46387. deprecated="not deprecated">
  46388. <param name="minSplitSize" type="long"/>
  46389. </method>
  46390. <method name="isSplitable" return="boolean"
  46391. abstract="false" native="false" synchronized="false"
  46392. static="false" final="false" visibility="protected"
  46393. deprecated="not deprecated">
  46394. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  46395. <param name="filename" type="org.apache.hadoop.fs.Path"/>
  46396. <doc>
  46397. <![CDATA[Is the given filename splitable? Usually, true, but if the file is
  46398. stream compressed, it will not be.
  46399. <code>FileInputFormat</code> implementations can override this and return
  46400. <code>false</code> to ensure that individual input files are never split-up
  46401. so that {@link Mapper}s process entire files.
  46402. @param fs the file system that the file is on
  46403. @param filename the file name to check
  46404. @return is this file splitable?]]>
  46405. </doc>
  46406. </method>
  46407. <method name="getRecordReader" return="org.apache.hadoop.mapred.RecordReader"
  46408. abstract="true" native="false" synchronized="false"
  46409. static="false" final="false" visibility="public"
  46410. deprecated="not deprecated">
  46411. <param name="split" type="org.apache.hadoop.mapred.InputSplit"/>
  46412. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  46413. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  46414. <exception name="IOException" type="java.io.IOException"/>
  46415. </method>
  46416. <method name="setInputPathFilter"
  46417. abstract="false" native="false" synchronized="false"
  46418. static="true" final="false" visibility="public"
  46419. deprecated="not deprecated">
  46420. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  46421. <param name="filter" type="java.lang.Class"/>
  46422. <doc>
  46423. <![CDATA[Set a PathFilter to be applied to the input paths for the map-reduce job.
  46424. @param filter the PathFilter class use for filtering the input paths.]]>
  46425. </doc>
  46426. </method>
  46427. <method name="getInputPathFilter" return="org.apache.hadoop.fs.PathFilter"
  46428. abstract="false" native="false" synchronized="false"
  46429. static="true" final="false" visibility="public"
  46430. deprecated="not deprecated">
  46431. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  46432. <doc>
  46433. <![CDATA[Get a PathFilter instance of the filter set for the input paths.
  46434. @return the PathFilter instance set for the job, NULL if none has been set.]]>
  46435. </doc>
  46436. </method>
  46437. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  46438. abstract="false" native="false" synchronized="false"
  46439. static="false" final="false" visibility="protected"
  46440. deprecated="not deprecated">
  46441. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  46442. <exception name="IOException" type="java.io.IOException"/>
  46443. <doc>
  46444. <![CDATA[List input directories.
  46445. Subclasses may override to, e.g., select only files matching a regular
  46446. expression.
  46447. @param job the job to list input paths for
  46448. @return array of FileStatus objects
  46449. @throws IOException if zero items.]]>
  46450. </doc>
  46451. </method>
  46452. <method name="getSplits" return="org.apache.hadoop.mapred.InputSplit[]"
  46453. abstract="false" native="false" synchronized="false"
  46454. static="false" final="false" visibility="public"
  46455. deprecated="not deprecated">
  46456. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  46457. <param name="numSplits" type="int"/>
  46458. <exception name="IOException" type="java.io.IOException"/>
  46459. <doc>
  46460. <![CDATA[Splits files returned by {@link #listStatus(JobConf)} when
  46461. they're too big.]]>
  46462. </doc>
  46463. </method>
  46464. <method name="computeSplitSize" return="long"
  46465. abstract="false" native="false" synchronized="false"
  46466. static="false" final="false" visibility="protected"
  46467. deprecated="not deprecated">
  46468. <param name="goalSize" type="long"/>
  46469. <param name="minSize" type="long"/>
  46470. <param name="blockSize" type="long"/>
  46471. </method>
  46472. <method name="getBlockIndex" return="int"
  46473. abstract="false" native="false" synchronized="false"
  46474. static="false" final="false" visibility="protected"
  46475. deprecated="not deprecated">
  46476. <param name="blkLocations" type="org.apache.hadoop.fs.BlockLocation[]"/>
  46477. <param name="offset" type="long"/>
  46478. </method>
  46479. <method name="setInputPaths"
  46480. abstract="false" native="false" synchronized="false"
  46481. static="true" final="false" visibility="public"
  46482. deprecated="not deprecated">
  46483. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  46484. <param name="commaSeparatedPaths" type="java.lang.String"/>
  46485. <doc>
  46486. <![CDATA[Sets the given comma separated paths as the list of inputs
  46487. for the map-reduce job.
  46488. @param conf Configuration of the job
  46489. @param commaSeparatedPaths Comma separated paths to be set as
  46490. the list of inputs for the map-reduce job.]]>
  46491. </doc>
  46492. </method>
  46493. <method name="addInputPaths"
  46494. abstract="false" native="false" synchronized="false"
  46495. static="true" final="false" visibility="public"
  46496. deprecated="not deprecated">
  46497. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  46498. <param name="commaSeparatedPaths" type="java.lang.String"/>
  46499. <doc>
  46500. <![CDATA[Add the given comma separated paths to the list of inputs for
  46501. the map-reduce job.
  46502. @param conf The configuration of the job
  46503. @param commaSeparatedPaths Comma separated paths to be added to
  46504. the list of inputs for the map-reduce job.]]>
  46505. </doc>
  46506. </method>
  46507. <method name="setInputPaths"
  46508. abstract="false" native="false" synchronized="false"
  46509. static="true" final="false" visibility="public"
  46510. deprecated="not deprecated">
  46511. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  46512. <param name="inputPaths" type="org.apache.hadoop.fs.Path[]"/>
  46513. <doc>
  46514. <![CDATA[Set the array of {@link Path}s as the list of inputs
  46515. for the map-reduce job.
  46516. @param conf Configuration of the job.
  46517. @param inputPaths the {@link Path}s of the input directories/files
  46518. for the map-reduce job.]]>
  46519. </doc>
  46520. </method>
  46521. <method name="addInputPath"
  46522. abstract="false" native="false" synchronized="false"
  46523. static="true" final="false" visibility="public"
  46524. deprecated="not deprecated">
  46525. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  46526. <param name="path" type="org.apache.hadoop.fs.Path"/>
  46527. <doc>
  46528. <![CDATA[Add a {@link Path} to the list of inputs for the map-reduce job.
  46529. @param conf The configuration of the job
  46530. @param path {@link Path} to be added to the list of inputs for
  46531. the map-reduce job.]]>
  46532. </doc>
  46533. </method>
  46534. <method name="getInputPaths" return="org.apache.hadoop.fs.Path[]"
  46535. abstract="false" native="false" synchronized="false"
  46536. static="true" final="false" visibility="public"
  46537. deprecated="not deprecated">
  46538. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  46539. <doc>
  46540. <![CDATA[Get the list of input {@link Path}s for the map-reduce job.
  46541. @param conf The configuration of the job
  46542. @return the list of input {@link Path}s for the map-reduce job.]]>
  46543. </doc>
  46544. </method>
  46545. <method name="getSplitHosts" return="java.lang.String[]"
  46546. abstract="false" native="false" synchronized="false"
  46547. static="false" final="false" visibility="protected"
  46548. deprecated="not deprecated">
  46549. <param name="blkLocations" type="org.apache.hadoop.fs.BlockLocation[]"/>
  46550. <param name="offset" type="long"/>
  46551. <param name="splitSize" type="long"/>
  46552. <param name="clusterMap" type="org.apache.hadoop.net.NetworkTopology"/>
  46553. <exception name="IOException" type="java.io.IOException"/>
  46554. <doc>
  46555. <![CDATA[This function identifies and returns the hosts that contribute
  46556. most for a given split. For calculating the contribution, rack
  46557. locality is treated on par with host locality, so hosts from racks
  46558. that contribute the most are preferred over hosts on racks that
  46559. contribute less
  46560. @param blkLocations The list of block locations
  46561. @param offset
  46562. @param splitSize
  46563. @return array of hosts that contribute most to this split
  46564. @throws IOException]]>
  46565. </doc>
  46566. </method>
  46567. <field name="LOG" type="org.apache.commons.logging.Log"
  46568. transient="false" volatile="false"
  46569. static="true" final="true" visibility="public"
  46570. deprecated="not deprecated">
  46571. </field>
  46572. <doc>
  46573. <![CDATA[A base class for file-based {@link InputFormat}.
  46574. <p><code>FileInputFormat</code> is the base class for all file-based
  46575. <code>InputFormat</code>s. This provides a generic implementation of
  46576. {@link #getSplits(JobConf, int)}.
  46577. Subclasses of <code>FileInputFormat</code> can also override the
  46578. {@link #isSplitable(FileSystem, Path)} method to ensure input-files are
  46579. not split-up and are processed as a whole by {@link Mapper}s.]]>
  46580. </doc>
  46581. </class>
  46582. <!-- end class org.apache.hadoop.mapred.FileInputFormat -->
  46583. <!-- start class org.apache.hadoop.mapred.FileInputFormat.Counter -->
  46584. <class name="FileInputFormat.Counter" extends="java.lang.Enum"
  46585. abstract="false"
  46586. static="true" final="true" visibility="public"
  46587. deprecated="not deprecated">
  46588. <method name="values" return="org.apache.hadoop.mapred.FileInputFormat.Counter[]"
  46589. abstract="false" native="false" synchronized="false"
  46590. static="true" final="false" visibility="public"
  46591. deprecated="not deprecated">
  46592. </method>
  46593. <method name="valueOf" return="org.apache.hadoop.mapred.FileInputFormat.Counter"
  46594. abstract="false" native="false" synchronized="false"
  46595. static="true" final="false" visibility="public"
  46596. deprecated="not deprecated">
  46597. <param name="name" type="java.lang.String"/>
  46598. </method>
  46599. <field name="BYTES_READ" type="org.apache.hadoop.mapred.FileInputFormat.Counter"
  46600. transient="false" volatile="false"
  46601. static="true" final="true" visibility="public"
  46602. deprecated="not deprecated">
  46603. </field>
  46604. </class>
  46605. <!-- end class org.apache.hadoop.mapred.FileInputFormat.Counter -->
  46606. <!-- start class org.apache.hadoop.mapred.FileOutputCommitter -->
  46607. <class name="FileOutputCommitter" extends="org.apache.hadoop.mapred.OutputCommitter"
  46608. abstract="false"
  46609. static="false" final="false" visibility="public"
  46610. deprecated="not deprecated">
  46611. <constructor name="FileOutputCommitter"
  46612. static="false" final="false" visibility="public"
  46613. deprecated="not deprecated">
  46614. </constructor>
  46615. <method name="setupJob"
  46616. abstract="false" native="false" synchronized="false"
  46617. static="false" final="false" visibility="public"
  46618. deprecated="not deprecated">
  46619. <param name="context" type="org.apache.hadoop.mapred.JobContext"/>
  46620. <exception name="IOException" type="java.io.IOException"/>
  46621. </method>
  46622. <method name="commitJob"
  46623. abstract="false" native="false" synchronized="false"
  46624. static="false" final="false" visibility="public"
  46625. deprecated="not deprecated">
  46626. <param name="context" type="org.apache.hadoop.mapred.JobContext"/>
  46627. <exception name="IOException" type="java.io.IOException"/>
  46628. </method>
  46629. <method name="cleanupJob"
  46630. abstract="false" native="false" synchronized="false"
  46631. static="false" final="false" visibility="public"
  46632. deprecated="not deprecated">
  46633. <param name="context" type="org.apache.hadoop.mapred.JobContext"/>
  46634. <exception name="IOException" type="java.io.IOException"/>
  46635. </method>
  46636. <method name="abortJob"
  46637. abstract="false" native="false" synchronized="false"
  46638. static="false" final="false" visibility="public"
  46639. deprecated="not deprecated">
  46640. <param name="context" type="org.apache.hadoop.mapred.JobContext"/>
  46641. <param name="runState" type="int"/>
  46642. <exception name="IOException" type="java.io.IOException"/>
  46643. <doc>
  46644. <![CDATA[Delete the temporary directory, including all of the work directories.
  46645. @param context the job's context
  46646. @param runState final run state of the job, should be
  46647. {@link JobStatus#KILLED} or {@link JobStatus#FAILED}]]>
  46648. </doc>
  46649. </method>
  46650. <method name="setupTask"
  46651. abstract="false" native="false" synchronized="false"
  46652. static="false" final="false" visibility="public"
  46653. deprecated="not deprecated">
  46654. <param name="context" type="org.apache.hadoop.mapred.TaskAttemptContext"/>
  46655. <exception name="IOException" type="java.io.IOException"/>
  46656. </method>
  46657. <method name="commitTask"
  46658. abstract="false" native="false" synchronized="false"
  46659. static="false" final="false" visibility="public"
  46660. deprecated="not deprecated">
  46661. <param name="context" type="org.apache.hadoop.mapred.TaskAttemptContext"/>
  46662. <exception name="IOException" type="java.io.IOException"/>
  46663. </method>
  46664. <method name="abortTask"
  46665. abstract="false" native="false" synchronized="false"
  46666. static="false" final="false" visibility="public"
  46667. deprecated="not deprecated">
  46668. <param name="context" type="org.apache.hadoop.mapred.TaskAttemptContext"/>
  46669. <exception name="IOException" type="java.io.IOException"/>
  46670. </method>
  46671. <method name="needsTaskCommit" return="boolean"
  46672. abstract="false" native="false" synchronized="false"
  46673. static="false" final="false" visibility="public"
  46674. deprecated="not deprecated">
  46675. <param name="context" type="org.apache.hadoop.mapred.TaskAttemptContext"/>
  46676. <exception name="IOException" type="java.io.IOException"/>
  46677. </method>
  46678. <field name="LOG" type="org.apache.commons.logging.Log"
  46679. transient="false" volatile="false"
  46680. static="true" final="true" visibility="public"
  46681. deprecated="not deprecated">
  46682. </field>
  46683. <field name="TEMP_DIR_NAME" type="java.lang.String"
  46684. transient="false" volatile="false"
  46685. static="true" final="true" visibility="public"
  46686. deprecated="not deprecated">
  46687. <doc>
  46688. <![CDATA[Temporary directory name]]>
  46689. </doc>
  46690. </field>
  46691. <field name="SUCCEEDED_FILE_NAME" type="java.lang.String"
  46692. transient="false" volatile="false"
  46693. static="true" final="true" visibility="public"
  46694. deprecated="not deprecated">
  46695. </field>
  46696. <doc>
  46697. <![CDATA[An {@link OutputCommitter} that commits files specified
  46698. in job output directory i.e. ${mapred.output.dir}.]]>
  46699. </doc>
  46700. </class>
  46701. <!-- end class org.apache.hadoop.mapred.FileOutputCommitter -->
  46702. <!-- start class org.apache.hadoop.mapred.FileOutputFormat -->
  46703. <class name="FileOutputFormat" extends="java.lang.Object"
  46704. abstract="true"
  46705. static="false" final="false" visibility="public"
  46706. deprecated="not deprecated">
  46707. <implements name="org.apache.hadoop.mapred.OutputFormat"/>
  46708. <constructor name="FileOutputFormat"
  46709. static="false" final="false" visibility="public"
  46710. deprecated="not deprecated">
  46711. </constructor>
  46712. <method name="setCompressOutput"
  46713. abstract="false" native="false" synchronized="false"
  46714. static="true" final="false" visibility="public"
  46715. deprecated="not deprecated">
  46716. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  46717. <param name="compress" type="boolean"/>
  46718. <doc>
  46719. <![CDATA[Set whether the output of the job is compressed.
  46720. @param conf the {@link JobConf} to modify
  46721. @param compress should the output of the job be compressed?]]>
  46722. </doc>
  46723. </method>
  46724. <method name="getCompressOutput" return="boolean"
  46725. abstract="false" native="false" synchronized="false"
  46726. static="true" final="false" visibility="public"
  46727. deprecated="not deprecated">
  46728. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  46729. <doc>
  46730. <![CDATA[Is the job output compressed?
  46731. @param conf the {@link JobConf} to look in
  46732. @return <code>true</code> if the job output should be compressed,
  46733. <code>false</code> otherwise]]>
  46734. </doc>
  46735. </method>
  46736. <method name="setOutputCompressorClass"
  46737. abstract="false" native="false" synchronized="false"
  46738. static="true" final="false" visibility="public"
  46739. deprecated="not deprecated">
  46740. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  46741. <param name="codecClass" type="java.lang.Class"/>
  46742. <doc>
  46743. <![CDATA[Set the {@link CompressionCodec} to be used to compress job outputs.
  46744. @param conf the {@link JobConf} to modify
  46745. @param codecClass the {@link CompressionCodec} to be used to
  46746. compress the job outputs]]>
  46747. </doc>
  46748. </method>
  46749. <method name="getOutputCompressorClass" return="java.lang.Class"
  46750. abstract="false" native="false" synchronized="false"
  46751. static="true" final="false" visibility="public"
  46752. deprecated="not deprecated">
  46753. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  46754. <param name="defaultValue" type="java.lang.Class"/>
  46755. <doc>
  46756. <![CDATA[Get the {@link CompressionCodec} for compressing the job outputs.
  46757. @param conf the {@link JobConf} to look in
  46758. @param defaultValue the {@link CompressionCodec} to return if not set
  46759. @return the {@link CompressionCodec} to be used to compress the
  46760. job outputs
  46761. @throws IllegalArgumentException if the class was specified, but not found]]>
  46762. </doc>
  46763. </method>
  46764. <method name="getRecordWriter" return="org.apache.hadoop.mapred.RecordWriter"
  46765. abstract="true" native="false" synchronized="false"
  46766. static="false" final="false" visibility="public"
  46767. deprecated="not deprecated">
  46768. <param name="ignored" type="org.apache.hadoop.fs.FileSystem"/>
  46769. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  46770. <param name="name" type="java.lang.String"/>
  46771. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  46772. <exception name="IOException" type="java.io.IOException"/>
  46773. </method>
  46774. <method name="checkOutputSpecs"
  46775. abstract="false" native="false" synchronized="false"
  46776. static="false" final="false" visibility="public"
  46777. deprecated="not deprecated">
  46778. <param name="ignored" type="org.apache.hadoop.fs.FileSystem"/>
  46779. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  46780. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.mapred.FileAlreadyExistsException"/>
  46781. <exception name="InvalidJobConfException" type="org.apache.hadoop.mapred.InvalidJobConfException"/>
  46782. <exception name="IOException" type="java.io.IOException"/>
  46783. </method>
  46784. <method name="setOutputPath"
  46785. abstract="false" native="false" synchronized="false"
  46786. static="true" final="false" visibility="public"
  46787. deprecated="not deprecated">
  46788. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  46789. <param name="outputDir" type="org.apache.hadoop.fs.Path"/>
  46790. <doc>
  46791. <![CDATA[Set the {@link Path} of the output directory for the map-reduce job.
  46792. @param conf The configuration of the job.
  46793. @param outputDir the {@link Path} of the output directory for
  46794. the map-reduce job.]]>
  46795. </doc>
  46796. </method>
  46797. <method name="getOutputPath" return="org.apache.hadoop.fs.Path"
  46798. abstract="false" native="false" synchronized="false"
  46799. static="true" final="false" visibility="public"
  46800. deprecated="not deprecated">
  46801. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  46802. <doc>
  46803. <![CDATA[Get the {@link Path} to the output directory for the map-reduce job.
  46804. @return the {@link Path} to the output directory for the map-reduce job.
  46805. @see FileOutputFormat#getWorkOutputPath(JobConf)]]>
  46806. </doc>
  46807. </method>
  46808. <method name="getWorkOutputPath" return="org.apache.hadoop.fs.Path"
  46809. abstract="false" native="false" synchronized="false"
  46810. static="true" final="false" visibility="public"
  46811. deprecated="not deprecated">
  46812. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  46813. <doc>
  46814. <![CDATA[Get the {@link Path} to the task's temporary output directory
  46815. for the map-reduce job
  46816. <h4 id="SideEffectFiles">Tasks' Side-Effect Files</h4>
  46817. <p><i>Note:</i> The following is valid only if the {@link OutputCommitter}
  46818. is {@link FileOutputCommitter}. If <code>OutputCommitter</code> is not
  46819. a <code>FileOutputCommitter</code>, the task's temporary output
  46820. directory is same as {@link #getOutputPath(JobConf)} i.e.
  46821. <tt>${mapred.output.dir}$</tt></p>
  46822. <p>Some applications need to create/write-to side-files, which differ from
  46823. the actual job-outputs.
  46824. <p>In such cases there could be issues with 2 instances of the same TIP
  46825. (running simultaneously e.g. speculative tasks) trying to open/write-to the
  46826. same file (path) on HDFS. Hence the application-writer will have to pick
  46827. unique names per task-attempt (e.g. using the attemptid, say
  46828. <tt>attempt_200709221812_0001_m_000000_0</tt>), not just per TIP.</p>
  46829. <p>To get around this the Map-Reduce framework helps the application-writer
  46830. out by maintaining a special
  46831. <tt>${mapred.output.dir}/_temporary/_${taskid}</tt>
  46832. sub-directory for each task-attempt on HDFS where the output of the
  46833. task-attempt goes. On successful completion of the task-attempt the files
  46834. in the <tt>${mapred.output.dir}/_temporary/_${taskid}</tt> (only)
  46835. are <i>promoted</i> to <tt>${mapred.output.dir}</tt>. Of course, the
  46836. framework discards the sub-directory of unsuccessful task-attempts. This
  46837. is completely transparent to the application.</p>
  46838. <p>The application-writer can take advantage of this by creating any
  46839. side-files required in <tt>${mapred.work.output.dir}</tt> during execution
  46840. of his reduce-task i.e. via {@link #getWorkOutputPath(JobConf)}, and the
  46841. framework will move them out similarly - thus she doesn't have to pick
  46842. unique paths per task-attempt.</p>
  46843. <p><i>Note</i>: the value of <tt>${mapred.work.output.dir}</tt> during
  46844. execution of a particular task-attempt is actually
  46845. <tt>${mapred.output.dir}/_temporary/_{$taskid}</tt>, and this value is
  46846. set by the map-reduce framework. So, just create any side-files in the
  46847. path returned by {@link #getWorkOutputPath(JobConf)} from map/reduce
  46848. task to take advantage of this feature.</p>
  46849. <p>The entire discussion holds true for maps of jobs with
  46850. reducer=NONE (i.e. 0 reduces) since output of the map, in that case,
  46851. goes directly to HDFS.</p>
  46852. @return the {@link Path} to the task's temporary output directory
  46853. for the map-reduce job.]]>
  46854. </doc>
  46855. </method>
  46856. <method name="getTaskOutputPath" return="org.apache.hadoop.fs.Path"
  46857. abstract="false" native="false" synchronized="false"
  46858. static="true" final="false" visibility="public"
  46859. deprecated="not deprecated">
  46860. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  46861. <param name="name" type="java.lang.String"/>
  46862. <exception name="IOException" type="java.io.IOException"/>
  46863. <doc>
  46864. <![CDATA[Helper function to create the task's temporary output directory and
  46865. return the path to the task's output file.
  46866. @param conf job-configuration
  46867. @param name temporary task-output filename
  46868. @return path to the task's temporary output file
  46869. @throws IOException]]>
  46870. </doc>
  46871. </method>
  46872. <method name="getUniqueName" return="java.lang.String"
  46873. abstract="false" native="false" synchronized="false"
  46874. static="true" final="false" visibility="public"
  46875. deprecated="not deprecated">
  46876. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  46877. <param name="name" type="java.lang.String"/>
  46878. <doc>
  46879. <![CDATA[Helper function to generate a name that is unique for the task.
  46880. <p>The generated name can be used to create custom files from within the
  46881. different tasks for the job, the names for different tasks will not collide
  46882. with each other.</p>
  46883. <p>The given name is postfixed with the task type, 'm' for maps, 'r' for
  46884. reduces and the task partition number. For example, give a name 'test'
  46885. running on the first map o the job the generated name will be
  46886. 'test-m-00000'.</p>
  46887. @param conf the configuration for the job.
  46888. @param name the name to make unique.
  46889. @return a unique name accross all tasks of the job.]]>
  46890. </doc>
  46891. </method>
  46892. <method name="getPathForCustomFile" return="org.apache.hadoop.fs.Path"
  46893. abstract="false" native="false" synchronized="false"
  46894. static="true" final="false" visibility="public"
  46895. deprecated="not deprecated">
  46896. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  46897. <param name="name" type="java.lang.String"/>
  46898. <doc>
  46899. <![CDATA[Helper function to generate a {@link Path} for a file that is unique for
  46900. the task within the job output directory.
  46901. <p>The path can be used to create custom files from within the map and
  46902. reduce tasks. The path name will be unique for each task. The path parent
  46903. will be the job output directory.</p>ls
  46904. <p>This method uses the {@link #getUniqueName} method to make the file name
  46905. unique for the task.</p>
  46906. @param conf the configuration for the job.
  46907. @param name the name for the file.
  46908. @return a unique path accross all tasks of the job.]]>
  46909. </doc>
  46910. </method>
  46911. <doc>
  46912. <![CDATA[A base class for {@link OutputFormat}.]]>
  46913. </doc>
  46914. </class>
  46915. <!-- end class org.apache.hadoop.mapred.FileOutputFormat -->
  46916. <!-- start class org.apache.hadoop.mapred.FileOutputFormat.Counter -->
  46917. <class name="FileOutputFormat.Counter" extends="java.lang.Enum"
  46918. abstract="false"
  46919. static="true" final="true" visibility="public"
  46920. deprecated="not deprecated">
  46921. <method name="values" return="org.apache.hadoop.mapred.FileOutputFormat.Counter[]"
  46922. abstract="false" native="false" synchronized="false"
  46923. static="true" final="false" visibility="public"
  46924. deprecated="not deprecated">
  46925. </method>
  46926. <method name="valueOf" return="org.apache.hadoop.mapred.FileOutputFormat.Counter"
  46927. abstract="false" native="false" synchronized="false"
  46928. static="true" final="false" visibility="public"
  46929. deprecated="not deprecated">
  46930. <param name="name" type="java.lang.String"/>
  46931. </method>
  46932. <field name="BYTES_WRITTEN" type="org.apache.hadoop.mapred.FileOutputFormat.Counter"
  46933. transient="false" volatile="false"
  46934. static="true" final="true" visibility="public"
  46935. deprecated="not deprecated">
  46936. </field>
  46937. </class>
  46938. <!-- end class org.apache.hadoop.mapred.FileOutputFormat.Counter -->
  46939. <!-- start class org.apache.hadoop.mapred.FileSplit -->
  46940. <class name="FileSplit" extends="org.apache.hadoop.mapreduce.InputSplit"
  46941. abstract="false"
  46942. static="false" final="false" visibility="public"
  46943. deprecated="not deprecated">
  46944. <implements name="org.apache.hadoop.mapred.InputSplit"/>
  46945. <constructor name="FileSplit" type="org.apache.hadoop.fs.Path, long, long, org.apache.hadoop.mapred.JobConf"
  46946. static="false" final="false" visibility="public"
  46947. deprecated="deprecated, no comment">
  46948. <doc>
  46949. <![CDATA[Constructs a split.
  46950. @deprecated
  46951. @param file the file name
  46952. @param start the position of the first byte in the file to process
  46953. @param length the number of bytes in the file to process]]>
  46954. </doc>
  46955. </constructor>
  46956. <constructor name="FileSplit" type="org.apache.hadoop.fs.Path, long, long, java.lang.String[]"
  46957. static="false" final="false" visibility="public"
  46958. deprecated="not deprecated">
  46959. <doc>
  46960. <![CDATA[Constructs a split with host information
  46961. @param file the file name
  46962. @param start the position of the first byte in the file to process
  46963. @param length the number of bytes in the file to process
  46964. @param hosts the list of hosts containing the block, possibly null]]>
  46965. </doc>
  46966. </constructor>
  46967. <method name="getPath" return="org.apache.hadoop.fs.Path"
  46968. abstract="false" native="false" synchronized="false"
  46969. static="false" final="false" visibility="public"
  46970. deprecated="not deprecated">
  46971. <doc>
  46972. <![CDATA[The file containing this split's data.]]>
  46973. </doc>
  46974. </method>
  46975. <method name="getStart" return="long"
  46976. abstract="false" native="false" synchronized="false"
  46977. static="false" final="false" visibility="public"
  46978. deprecated="not deprecated">
  46979. <doc>
  46980. <![CDATA[The position of the first byte in the file to process.]]>
  46981. </doc>
  46982. </method>
  46983. <method name="getLength" return="long"
  46984. abstract="false" native="false" synchronized="false"
  46985. static="false" final="false" visibility="public"
  46986. deprecated="not deprecated">
  46987. <doc>
  46988. <![CDATA[The number of bytes in the file to process.]]>
  46989. </doc>
  46990. </method>
  46991. <method name="toString" return="java.lang.String"
  46992. abstract="false" native="false" synchronized="false"
  46993. static="false" final="false" visibility="public"
  46994. deprecated="not deprecated">
  46995. </method>
  46996. <method name="write"
  46997. abstract="false" native="false" synchronized="false"
  46998. static="false" final="false" visibility="public"
  46999. deprecated="not deprecated">
  47000. <param name="out" type="java.io.DataOutput"/>
  47001. <exception name="IOException" type="java.io.IOException"/>
  47002. </method>
  47003. <method name="readFields"
  47004. abstract="false" native="false" synchronized="false"
  47005. static="false" final="false" visibility="public"
  47006. deprecated="not deprecated">
  47007. <param name="in" type="java.io.DataInput"/>
  47008. <exception name="IOException" type="java.io.IOException"/>
  47009. </method>
  47010. <method name="getLocations" return="java.lang.String[]"
  47011. abstract="false" native="false" synchronized="false"
  47012. static="false" final="false" visibility="public"
  47013. deprecated="not deprecated">
  47014. <exception name="IOException" type="java.io.IOException"/>
  47015. </method>
  47016. <doc>
  47017. <![CDATA[A section of an input file. Returned by {@link
  47018. InputFormat#getSplits(JobConf, int)} and passed to
  47019. {@link InputFormat#getRecordReader(InputSplit,JobConf,Reporter)}.]]>
  47020. </doc>
  47021. </class>
  47022. <!-- end class org.apache.hadoop.mapred.FileSplit -->
  47023. <!-- start class org.apache.hadoop.mapred.HDFSMonitorThread -->
  47024. <class name="HDFSMonitorThread" extends="java.lang.Thread"
  47025. abstract="false"
  47026. static="false" final="false" visibility="public"
  47027. deprecated="not deprecated">
  47028. <constructor name="HDFSMonitorThread" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.mapred.JobTracker, org.apache.hadoop.fs.FileSystem"
  47029. static="false" final="false" visibility="public"
  47030. deprecated="not deprecated">
  47031. </constructor>
  47032. <method name="run"
  47033. abstract="false" native="false" synchronized="false"
  47034. static="false" final="false" visibility="public"
  47035. deprecated="not deprecated">
  47036. </method>
  47037. <field name="LOG" type="org.apache.commons.logging.Log"
  47038. transient="false" volatile="false"
  47039. static="true" final="true" visibility="public"
  47040. deprecated="not deprecated">
  47041. </field>
  47042. </class>
  47043. <!-- end class org.apache.hadoop.mapred.HDFSMonitorThread -->
  47044. <!-- start class org.apache.hadoop.mapred.ID -->
  47045. <class name="ID" extends="org.apache.hadoop.mapreduce.ID"
  47046. abstract="true"
  47047. static="false" final="false" visibility="public"
  47048. deprecated="not deprecated">
  47049. <constructor name="ID" type="int"
  47050. static="false" final="false" visibility="public"
  47051. deprecated="not deprecated">
  47052. <doc>
  47053. <![CDATA[constructs an ID object from the given int]]>
  47054. </doc>
  47055. </constructor>
  47056. <constructor name="ID"
  47057. static="false" final="false" visibility="protected"
  47058. deprecated="not deprecated">
  47059. </constructor>
  47060. <doc>
  47061. <![CDATA[A general identifier, which internally stores the id
  47062. as an integer. This is the super class of {@link JobID},
  47063. {@link TaskID} and {@link TaskAttemptID}.
  47064. @see JobID
  47065. @see TaskID
  47066. @see TaskAttemptID]]>
  47067. </doc>
  47068. </class>
  47069. <!-- end class org.apache.hadoop.mapred.ID -->
  47070. <!-- start interface org.apache.hadoop.mapred.InputFormat -->
  47071. <interface name="InputFormat" abstract="true"
  47072. static="false" final="false" visibility="public"
  47073. deprecated="not deprecated">
  47074. <method name="getSplits" return="org.apache.hadoop.mapred.InputSplit[]"
  47075. abstract="false" native="false" synchronized="false"
  47076. static="false" final="false" visibility="public"
  47077. deprecated="not deprecated">
  47078. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  47079. <param name="numSplits" type="int"/>
  47080. <exception name="IOException" type="java.io.IOException"/>
  47081. <doc>
  47082. <![CDATA[Logically split the set of input files for the job.
  47083. <p>Each {@link InputSplit} is then assigned to an individual {@link Mapper}
  47084. for processing.</p>
  47085. <p><i>Note</i>: The split is a <i>logical</i> split of the inputs and the
  47086. input files are not physically split into chunks. For e.g. a split could
  47087. be <i>&lt;input-file-path, start, offset&gt;</i> tuple.
  47088. @param job job configuration.
  47089. @param numSplits the desired number of splits, a hint.
  47090. @return an array of {@link InputSplit}s for the job.]]>
  47091. </doc>
  47092. </method>
  47093. <method name="getRecordReader" return="org.apache.hadoop.mapred.RecordReader"
  47094. abstract="false" native="false" synchronized="false"
  47095. static="false" final="false" visibility="public"
  47096. deprecated="not deprecated">
  47097. <param name="split" type="org.apache.hadoop.mapred.InputSplit"/>
  47098. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  47099. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  47100. <exception name="IOException" type="java.io.IOException"/>
  47101. <doc>
  47102. <![CDATA[Get the {@link RecordReader} for the given {@link InputSplit}.
  47103. <p>It is the responsibility of the <code>RecordReader</code> to respect
  47104. record boundaries while processing the logical split to present a
  47105. record-oriented view to the individual task.</p>
  47106. @param split the {@link InputSplit}
  47107. @param job the job that this split belongs to
  47108. @return a {@link RecordReader}]]>
  47109. </doc>
  47110. </method>
  47111. <doc>
  47112. <![CDATA[<code>InputFormat</code> describes the input-specification for a
  47113. Map-Reduce job.
  47114. <p>The Map-Reduce framework relies on the <code>InputFormat</code> of the
  47115. job to:<p>
  47116. <ol>
  47117. <li>
  47118. Validate the input-specification of the job.
  47119. <li>
  47120. Split-up the input file(s) into logical {@link InputSplit}s, each of
  47121. which is then assigned to an individual {@link Mapper}.
  47122. </li>
  47123. <li>
  47124. Provide the {@link RecordReader} implementation to be used to glean
  47125. input records from the logical <code>InputSplit</code> for processing by
  47126. the {@link Mapper}.
  47127. </li>
  47128. </ol>
  47129. <p>The default behavior of file-based {@link InputFormat}s, typically
  47130. sub-classes of {@link FileInputFormat}, is to split the
  47131. input into <i>logical</i> {@link InputSplit}s based on the total size, in
  47132. bytes, of the input files. However, the {@link FileSystem} blocksize of
  47133. the input files is treated as an upper bound for input splits. A lower bound
  47134. on the split size can be set via
  47135. <a href="{@docRoot}/../mapred-default.html#mapred.min.split.size">
  47136. mapred.min.split.size</a>.</p>
  47137. <p>Clearly, logical splits based on input-size is insufficient for many
  47138. applications since record boundaries are to respected. In such cases, the
  47139. application has to also implement a {@link RecordReader} on whom lies the
  47140. responsibilty to respect record-boundaries and present a record-oriented
  47141. view of the logical <code>InputSplit</code> to the individual task.
  47142. @see InputSplit
  47143. @see RecordReader
  47144. @see JobClient
  47145. @see FileInputFormat]]>
  47146. </doc>
  47147. </interface>
  47148. <!-- end interface org.apache.hadoop.mapred.InputFormat -->
  47149. <!-- start interface org.apache.hadoop.mapred.InputSplit -->
  47150. <interface name="InputSplit" abstract="true"
  47151. static="false" final="false" visibility="public"
  47152. deprecated="not deprecated">
  47153. <implements name="org.apache.hadoop.io.Writable"/>
  47154. <method name="getLength" return="long"
  47155. abstract="false" native="false" synchronized="false"
  47156. static="false" final="false" visibility="public"
  47157. deprecated="not deprecated">
  47158. <exception name="IOException" type="java.io.IOException"/>
  47159. <doc>
  47160. <![CDATA[Get the total number of bytes in the data of the <code>InputSplit</code>.
  47161. @return the number of bytes in the input split.
  47162. @throws IOException]]>
  47163. </doc>
  47164. </method>
  47165. <method name="getLocations" return="java.lang.String[]"
  47166. abstract="false" native="false" synchronized="false"
  47167. static="false" final="false" visibility="public"
  47168. deprecated="not deprecated">
  47169. <exception name="IOException" type="java.io.IOException"/>
  47170. <doc>
  47171. <![CDATA[Get the list of hostnames where the input split is located.
  47172. @return list of hostnames where data of the <code>InputSplit</code> is
  47173. located as an array of <code>String</code>s.
  47174. @throws IOException]]>
  47175. </doc>
  47176. </method>
  47177. <doc>
  47178. <![CDATA[<code>InputSplit</code> represents the data to be processed by an
  47179. individual {@link Mapper}.
  47180. <p>Typically, it presents a byte-oriented view on the input and is the
  47181. responsibility of {@link RecordReader} of the job to process this and present
  47182. a record-oriented view.
  47183. @see InputFormat
  47184. @see RecordReader]]>
  47185. </doc>
  47186. </interface>
  47187. <!-- end interface org.apache.hadoop.mapred.InputSplit -->
  47188. <!-- start class org.apache.hadoop.mapred.InvalidFileTypeException -->
  47189. <class name="InvalidFileTypeException" extends="java.io.IOException"
  47190. abstract="false"
  47191. static="false" final="false" visibility="public"
  47192. deprecated="not deprecated">
  47193. <constructor name="InvalidFileTypeException"
  47194. static="false" final="false" visibility="public"
  47195. deprecated="not deprecated">
  47196. </constructor>
  47197. <constructor name="InvalidFileTypeException" type="java.lang.String"
  47198. static="false" final="false" visibility="public"
  47199. deprecated="not deprecated">
  47200. </constructor>
  47201. <doc>
  47202. <![CDATA[Used when file type differs from the desired file type. like
  47203. getting a file when a directory is expected. Or a wrong file type.]]>
  47204. </doc>
  47205. </class>
  47206. <!-- end class org.apache.hadoop.mapred.InvalidFileTypeException -->
  47207. <!-- start class org.apache.hadoop.mapred.InvalidInputException -->
  47208. <class name="InvalidInputException" extends="java.io.IOException"
  47209. abstract="false"
  47210. static="false" final="false" visibility="public"
  47211. deprecated="not deprecated">
  47212. <constructor name="InvalidInputException" type="java.util.List"
  47213. static="false" final="false" visibility="public"
  47214. deprecated="not deprecated">
  47215. <doc>
  47216. <![CDATA[Create the exception with the given list.
  47217. @param probs the list of problems to report. this list is not copied.]]>
  47218. </doc>
  47219. </constructor>
  47220. <method name="getProblems" return="java.util.List"
  47221. abstract="false" native="false" synchronized="false"
  47222. static="false" final="false" visibility="public"
  47223. deprecated="not deprecated">
  47224. <doc>
  47225. <![CDATA[Get the complete list of the problems reported.
  47226. @return the list of problems, which must not be modified]]>
  47227. </doc>
  47228. </method>
  47229. <method name="getMessage" return="java.lang.String"
  47230. abstract="false" native="false" synchronized="false"
  47231. static="false" final="false" visibility="public"
  47232. deprecated="not deprecated">
  47233. <doc>
  47234. <![CDATA[Get a summary message of the problems found.
  47235. @return the concatenated messages from all of the problems.]]>
  47236. </doc>
  47237. </method>
  47238. <doc>
  47239. <![CDATA[This class wraps a list of problems with the input, so that the user
  47240. can get a list of problems together instead of finding and fixing them one
  47241. by one.]]>
  47242. </doc>
  47243. </class>
  47244. <!-- end class org.apache.hadoop.mapred.InvalidInputException -->
  47245. <!-- start class org.apache.hadoop.mapred.InvalidJobConfException -->
  47246. <class name="InvalidJobConfException" extends="java.io.IOException"
  47247. abstract="false"
  47248. static="false" final="false" visibility="public"
  47249. deprecated="not deprecated">
  47250. <constructor name="InvalidJobConfException"
  47251. static="false" final="false" visibility="public"
  47252. deprecated="not deprecated">
  47253. </constructor>
  47254. <constructor name="InvalidJobConfException" type="java.lang.String"
  47255. static="false" final="false" visibility="public"
  47256. deprecated="not deprecated">
  47257. </constructor>
  47258. <constructor name="InvalidJobConfException" type="java.lang.String, java.lang.Throwable"
  47259. static="false" final="false" visibility="public"
  47260. deprecated="not deprecated">
  47261. </constructor>
  47262. <constructor name="InvalidJobConfException" type="java.lang.Throwable"
  47263. static="false" final="false" visibility="public"
  47264. deprecated="not deprecated">
  47265. </constructor>
  47266. <doc>
  47267. <![CDATA[This exception is thrown when jobconf misses some mendatory attributes
  47268. or value of some attributes is invalid.]]>
  47269. </doc>
  47270. </class>
  47271. <!-- end class org.apache.hadoop.mapred.InvalidJobConfException -->
  47272. <!-- start class org.apache.hadoop.mapred.IsolationRunner -->
  47273. <class name="IsolationRunner" extends="java.lang.Object"
  47274. abstract="false"
  47275. static="false" final="false" visibility="public"
  47276. deprecated="not deprecated">
  47277. <constructor name="IsolationRunner"
  47278. static="false" final="false" visibility="public"
  47279. deprecated="not deprecated">
  47280. </constructor>
  47281. <method name="main"
  47282. abstract="false" native="false" synchronized="false"
  47283. static="true" final="false" visibility="public"
  47284. deprecated="not deprecated">
  47285. <param name="args" type="java.lang.String[]"/>
  47286. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  47287. <exception name="IOException" type="java.io.IOException"/>
  47288. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  47289. <doc>
  47290. <![CDATA[Run a single task.
  47291. @param args the first argument is the task directory]]>
  47292. </doc>
  47293. </method>
  47294. <doc>
  47295. <![CDATA[IsolationRunner is intended to facilitate debugging by re-running a specific
  47296. task, given left-over task files for a (typically failed) past job.
  47297. Currently, it is limited to re-running map tasks.
  47298. Users may coerce MapReduce to keep task files around by setting
  47299. keep.failed.task.files. See mapred_tutorial.xml for more documentation.]]>
  47300. </doc>
  47301. </class>
  47302. <!-- end class org.apache.hadoop.mapred.IsolationRunner -->
  47303. <!-- start class org.apache.hadoop.mapred.JobClient -->
  47304. <class name="JobClient" extends="org.apache.hadoop.conf.Configured"
  47305. abstract="false"
  47306. static="false" final="false" visibility="public"
  47307. deprecated="not deprecated">
  47308. <implements name="org.apache.hadoop.mapred.MRConstants"/>
  47309. <implements name="org.apache.hadoop.util.Tool"/>
  47310. <constructor name="JobClient"
  47311. static="false" final="false" visibility="public"
  47312. deprecated="not deprecated">
  47313. <doc>
  47314. <![CDATA[Create a job client.]]>
  47315. </doc>
  47316. </constructor>
  47317. <constructor name="JobClient" type="org.apache.hadoop.mapred.JobConf"
  47318. static="false" final="false" visibility="public"
  47319. deprecated="not deprecated">
  47320. <exception name="IOException" type="java.io.IOException"/>
  47321. <doc>
  47322. <![CDATA[Build a job client with the given {@link JobConf}, and connect to the
  47323. default {@link JobTracker}.
  47324. @param conf the job configuration.
  47325. @throws IOException]]>
  47326. </doc>
  47327. </constructor>
  47328. <constructor name="JobClient" type="java.net.InetSocketAddress, org.apache.hadoop.conf.Configuration"
  47329. static="false" final="false" visibility="public"
  47330. deprecated="not deprecated">
  47331. <exception name="IOException" type="java.io.IOException"/>
  47332. <doc>
  47333. <![CDATA[Build a job client, connect to the indicated job tracker.
  47334. @param jobTrackAddr the job tracker to connect to.
  47335. @param conf configuration.]]>
  47336. </doc>
  47337. </constructor>
  47338. <method name="init"
  47339. abstract="false" native="false" synchronized="false"
  47340. static="false" final="false" visibility="public"
  47341. deprecated="not deprecated">
  47342. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  47343. <exception name="IOException" type="java.io.IOException"/>
  47344. <doc>
  47345. <![CDATA[Connect to the default {@link JobTracker}.
  47346. @param conf the job configuration.
  47347. @throws IOException]]>
  47348. </doc>
  47349. </method>
  47350. <method name="close"
  47351. abstract="false" native="false" synchronized="true"
  47352. static="false" final="false" visibility="public"
  47353. deprecated="not deprecated">
  47354. <exception name="IOException" type="java.io.IOException"/>
  47355. <doc>
  47356. <![CDATA[Close the <code>JobClient</code>.]]>
  47357. </doc>
  47358. </method>
  47359. <method name="getFs" return="org.apache.hadoop.fs.FileSystem"
  47360. abstract="false" native="false" synchronized="true"
  47361. static="false" final="false" visibility="public"
  47362. deprecated="not deprecated">
  47363. <exception name="IOException" type="java.io.IOException"/>
  47364. <doc>
  47365. <![CDATA[Get a filesystem handle. We need this to prepare jobs
  47366. for submission to the MapReduce system.
  47367. @return the filesystem handle.
  47368. @throws IOException]]>
  47369. </doc>
  47370. </method>
  47371. <method name="submitJob" return="org.apache.hadoop.mapred.RunningJob"
  47372. abstract="false" native="false" synchronized="false"
  47373. static="false" final="false" visibility="public"
  47374. deprecated="not deprecated">
  47375. <param name="jobFile" type="java.lang.String"/>
  47376. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  47377. <exception name="InvalidJobConfException" type="org.apache.hadoop.mapred.InvalidJobConfException"/>
  47378. <exception name="IOException" type="java.io.IOException"/>
  47379. <doc>
  47380. <![CDATA[Submit a job to the MR system.
  47381. This returns a handle to the {@link RunningJob} which can be used to track
  47382. the running-job.
  47383. @param jobFile the job configuration.
  47384. @return a handle to the {@link RunningJob} which can be used to track the
  47385. running-job.
  47386. @throws FileNotFoundException
  47387. @throws InvalidJobConfException
  47388. @throws IOException]]>
  47389. </doc>
  47390. </method>
  47391. <method name="submitJob" return="org.apache.hadoop.mapred.RunningJob"
  47392. abstract="false" native="false" synchronized="false"
  47393. static="false" final="false" visibility="public"
  47394. deprecated="not deprecated">
  47395. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  47396. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  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 job 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 IOException]]>
  47407. </doc>
  47408. </method>
  47409. <method name="submitJobInternal" return="org.apache.hadoop.mapred.RunningJob"
  47410. abstract="false" native="false" synchronized="false"
  47411. static="false" final="false" visibility="public"
  47412. deprecated="not deprecated">
  47413. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  47414. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  47415. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  47416. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  47417. <exception name="IOException" type="java.io.IOException"/>
  47418. <doc>
  47419. <![CDATA[Internal method for submitting jobs to the system.
  47420. @param job the configuration to submit
  47421. @return a proxy object for the running job
  47422. @throws FileNotFoundException
  47423. @throws ClassNotFoundException
  47424. @throws InterruptedException
  47425. @throws IOException]]>
  47426. </doc>
  47427. </method>
  47428. <method name="isJobDirValid" return="boolean"
  47429. abstract="false" native="false" synchronized="false"
  47430. static="true" final="false" visibility="public"
  47431. deprecated="not deprecated">
  47432. <param name="jobDirPath" type="org.apache.hadoop.fs.Path"/>
  47433. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  47434. <exception name="IOException" type="java.io.IOException"/>
  47435. <doc>
  47436. <![CDATA[Checks if the job directory is clean and has all the required components
  47437. for (re) starting the job]]>
  47438. </doc>
  47439. </method>
  47440. <method name="getJob" return="org.apache.hadoop.mapred.RunningJob"
  47441. abstract="false" native="false" synchronized="false"
  47442. static="false" final="false" visibility="public"
  47443. deprecated="not deprecated">
  47444. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  47445. <exception name="IOException" type="java.io.IOException"/>
  47446. <doc>
  47447. <![CDATA[Get an {@link RunningJob} object to track an ongoing job. Returns
  47448. null if the id does not correspond to any known job.
  47449. @param jobid the jobid of the job.
  47450. @return the {@link RunningJob} handle to track the job, null if the
  47451. <code>jobid</code> doesn't correspond to any known job.
  47452. @throws IOException]]>
  47453. </doc>
  47454. </method>
  47455. <method name="getJob" return="org.apache.hadoop.mapred.RunningJob"
  47456. abstract="false" native="false" synchronized="false"
  47457. static="false" final="false" visibility="public"
  47458. deprecated="Applications should rather use {@link #getJob(JobID)}.">
  47459. <param name="jobid" type="java.lang.String"/>
  47460. <exception name="IOException" type="java.io.IOException"/>
  47461. <doc>
  47462. <![CDATA[@deprecated Applications should rather use {@link #getJob(JobID)}.]]>
  47463. </doc>
  47464. </method>
  47465. <method name="getMapTaskReports" return="org.apache.hadoop.mapred.TaskReport[]"
  47466. abstract="false" native="false" synchronized="false"
  47467. static="false" final="false" visibility="public"
  47468. deprecated="not deprecated">
  47469. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  47470. <exception name="IOException" type="java.io.IOException"/>
  47471. <doc>
  47472. <![CDATA[Get the information of the current state of the map tasks of a job.
  47473. @param jobId the job to query.
  47474. @return the list of all of the map tips.
  47475. @throws IOException]]>
  47476. </doc>
  47477. </method>
  47478. <method name="getMapTaskReports" return="org.apache.hadoop.mapred.TaskReport[]"
  47479. abstract="false" native="false" synchronized="false"
  47480. static="false" final="false" visibility="public"
  47481. deprecated="Applications should rather use {@link #getMapTaskReports(JobID)}">
  47482. <param name="jobId" type="java.lang.String"/>
  47483. <exception name="IOException" type="java.io.IOException"/>
  47484. <doc>
  47485. <![CDATA[@deprecated Applications should rather use {@link #getMapTaskReports(JobID)}]]>
  47486. </doc>
  47487. </method>
  47488. <method name="getReduceTaskReports" return="org.apache.hadoop.mapred.TaskReport[]"
  47489. abstract="false" native="false" synchronized="false"
  47490. static="false" final="false" visibility="public"
  47491. deprecated="not deprecated">
  47492. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  47493. <exception name="IOException" type="java.io.IOException"/>
  47494. <doc>
  47495. <![CDATA[Get the information of the current state of the reduce tasks of a job.
  47496. @param jobId the job to query.
  47497. @return the list of all of the reduce tips.
  47498. @throws IOException]]>
  47499. </doc>
  47500. </method>
  47501. <method name="getCleanupTaskReports" return="org.apache.hadoop.mapred.TaskReport[]"
  47502. abstract="false" native="false" synchronized="false"
  47503. static="false" final="false" visibility="public"
  47504. deprecated="not deprecated">
  47505. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  47506. <exception name="IOException" type="java.io.IOException"/>
  47507. <doc>
  47508. <![CDATA[Get the information of the current state of the cleanup tasks of a job.
  47509. @param jobId the job to query.
  47510. @return the list of all of the cleanup tips.
  47511. @throws IOException]]>
  47512. </doc>
  47513. </method>
  47514. <method name="getSetupTaskReports" return="org.apache.hadoop.mapred.TaskReport[]"
  47515. abstract="false" native="false" synchronized="false"
  47516. static="false" final="false" visibility="public"
  47517. deprecated="not deprecated">
  47518. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  47519. <exception name="IOException" type="java.io.IOException"/>
  47520. <doc>
  47521. <![CDATA[Get the information of the current state of the setup tasks of a job.
  47522. @param jobId the job to query.
  47523. @return the list of all of the setup tips.
  47524. @throws IOException]]>
  47525. </doc>
  47526. </method>
  47527. <method name="getReduceTaskReports" return="org.apache.hadoop.mapred.TaskReport[]"
  47528. abstract="false" native="false" synchronized="false"
  47529. static="false" final="false" visibility="public"
  47530. deprecated="Applications should rather use {@link #getReduceTaskReports(JobID)}">
  47531. <param name="jobId" type="java.lang.String"/>
  47532. <exception name="IOException" type="java.io.IOException"/>
  47533. <doc>
  47534. <![CDATA[@deprecated Applications should rather use {@link #getReduceTaskReports(JobID)}]]>
  47535. </doc>
  47536. </method>
  47537. <method name="displayTasks"
  47538. abstract="false" native="false" synchronized="false"
  47539. static="false" final="false" visibility="public"
  47540. deprecated="not deprecated">
  47541. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  47542. <param name="type" type="java.lang.String"/>
  47543. <param name="state" type="java.lang.String"/>
  47544. <exception name="IOException" type="java.io.IOException"/>
  47545. <doc>
  47546. <![CDATA[Display the information about a job's tasks, of a particular type and
  47547. in a particular state
  47548. @param jobId the ID of the job
  47549. @param type the type of the task (map/reduce/setup/cleanup)
  47550. @param state the state of the task
  47551. (pending/running/completed/failed/killed)]]>
  47552. </doc>
  47553. </method>
  47554. <method name="getClusterStatus" return="org.apache.hadoop.mapred.ClusterStatus"
  47555. abstract="false" native="false" synchronized="false"
  47556. static="false" final="false" visibility="public"
  47557. deprecated="not deprecated">
  47558. <exception name="IOException" type="java.io.IOException"/>
  47559. <doc>
  47560. <![CDATA[Get status information about the Map-Reduce cluster.
  47561. @return the status information about the Map-Reduce cluster as an object
  47562. of {@link ClusterStatus}.
  47563. @throws IOException]]>
  47564. </doc>
  47565. </method>
  47566. <method name="getClusterStatus" return="org.apache.hadoop.mapred.ClusterStatus"
  47567. abstract="false" native="false" synchronized="false"
  47568. static="false" final="false" visibility="public"
  47569. deprecated="not deprecated">
  47570. <param name="detailed" type="boolean"/>
  47571. <exception name="IOException" type="java.io.IOException"/>
  47572. <doc>
  47573. <![CDATA[Get status information about the Map-Reduce cluster.
  47574. @param detailed if true then get a detailed status including the
  47575. tracker names and memory usage of the JobTracker
  47576. @return the status information about the Map-Reduce cluster as an object
  47577. of {@link ClusterStatus}.
  47578. @throws IOException]]>
  47579. </doc>
  47580. </method>
  47581. <method name="getStagingAreaDir" return="org.apache.hadoop.fs.Path"
  47582. abstract="false" native="false" synchronized="false"
  47583. static="false" final="false" visibility="public"
  47584. deprecated="not deprecated">
  47585. <exception name="IOException" type="java.io.IOException"/>
  47586. <doc>
  47587. <![CDATA[Grab the jobtracker's view of the staging directory path where
  47588. job-specific files will be placed.
  47589. @return the staging directory where job-specific files are to be placed.]]>
  47590. </doc>
  47591. </method>
  47592. <method name="jobsToComplete" return="org.apache.hadoop.mapred.JobStatus[]"
  47593. abstract="false" native="false" synchronized="false"
  47594. static="false" final="false" visibility="public"
  47595. deprecated="not deprecated">
  47596. <exception name="IOException" type="java.io.IOException"/>
  47597. <doc>
  47598. <![CDATA[Get the jobs that are not completed and not failed.
  47599. @return array of {@link JobStatus} for the running/to-be-run jobs.
  47600. @throws IOException]]>
  47601. </doc>
  47602. </method>
  47603. <method name="getAllJobs" return="org.apache.hadoop.mapred.JobStatus[]"
  47604. abstract="false" native="false" synchronized="false"
  47605. static="false" final="false" visibility="public"
  47606. deprecated="not deprecated">
  47607. <exception name="IOException" type="java.io.IOException"/>
  47608. <doc>
  47609. <![CDATA[Get the jobs that are submitted.
  47610. @return array of {@link JobStatus} for the submitted jobs.
  47611. @throws IOException]]>
  47612. </doc>
  47613. </method>
  47614. <method name="runJob" return="org.apache.hadoop.mapred.RunningJob"
  47615. abstract="false" native="false" synchronized="false"
  47616. static="true" final="false" visibility="public"
  47617. deprecated="not deprecated">
  47618. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  47619. <exception name="IOException" type="java.io.IOException"/>
  47620. <doc>
  47621. <![CDATA[Utility that submits a job, then polls for progress until the job is
  47622. complete.
  47623. @param job the job configuration.
  47624. @throws IOException if the job fails]]>
  47625. </doc>
  47626. </method>
  47627. <method name="monitorAndPrintJob" return="boolean"
  47628. abstract="false" native="false" synchronized="false"
  47629. static="false" final="false" visibility="public"
  47630. deprecated="not deprecated">
  47631. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  47632. <param name="job" type="org.apache.hadoop.mapred.RunningJob"/>
  47633. <exception name="IOException" type="java.io.IOException"/>
  47634. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  47635. <doc>
  47636. <![CDATA[Monitor a job and print status in real-time as progress is made and tasks
  47637. fail.
  47638. @param conf the job's configuration
  47639. @param job the job to track
  47640. @return true if the job succeeded
  47641. @throws IOException if communication to the JobTracker fails]]>
  47642. </doc>
  47643. </method>
  47644. <method name="setTaskOutputFilter"
  47645. abstract="false" native="false" synchronized="false"
  47646. static="false" final="false" visibility="public"
  47647. deprecated="not deprecated">
  47648. <param name="newValue" type="org.apache.hadoop.mapred.JobClient.TaskStatusFilter"/>
  47649. <doc>
  47650. <![CDATA[Sets the output filter for tasks. only those tasks are printed whose
  47651. output matches the filter.
  47652. @param newValue task filter.]]>
  47653. </doc>
  47654. </method>
  47655. <method name="getTaskOutputFilter" return="org.apache.hadoop.mapred.JobClient.TaskStatusFilter"
  47656. abstract="false" native="false" synchronized="false"
  47657. static="true" final="false" visibility="public"
  47658. deprecated="not deprecated">
  47659. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  47660. <doc>
  47661. <![CDATA[Get the task output filter out of the JobConf.
  47662. @param job the JobConf to examine.
  47663. @return the filter level.]]>
  47664. </doc>
  47665. </method>
  47666. <method name="setTaskOutputFilter"
  47667. abstract="false" native="false" synchronized="false"
  47668. static="true" final="false" visibility="public"
  47669. deprecated="not deprecated">
  47670. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  47671. <param name="newValue" type="org.apache.hadoop.mapred.JobClient.TaskStatusFilter"/>
  47672. <doc>
  47673. <![CDATA[Modify the JobConf to set the task output filter.
  47674. @param job the JobConf to modify.
  47675. @param newValue the value to set.]]>
  47676. </doc>
  47677. </method>
  47678. <method name="getTaskOutputFilter" return="org.apache.hadoop.mapred.JobClient.TaskStatusFilter"
  47679. abstract="false" native="false" synchronized="false"
  47680. static="false" final="false" visibility="public"
  47681. deprecated="not deprecated">
  47682. <doc>
  47683. <![CDATA[Returns task output filter.
  47684. @return task filter.]]>
  47685. </doc>
  47686. </method>
  47687. <method name="run" return="int"
  47688. abstract="false" native="false" synchronized="false"
  47689. static="false" final="false" visibility="public"
  47690. deprecated="not deprecated">
  47691. <param name="argv" type="java.lang.String[]"/>
  47692. <exception name="Exception" type="java.lang.Exception"/>
  47693. </method>
  47694. <method name="getDefaultMaps" return="int"
  47695. abstract="false" native="false" synchronized="false"
  47696. static="false" final="false" visibility="public"
  47697. deprecated="not deprecated">
  47698. <exception name="IOException" type="java.io.IOException"/>
  47699. <doc>
  47700. <![CDATA[Get status information about the max available Maps in the cluster.
  47701. @return the max available Maps in the cluster
  47702. @throws IOException]]>
  47703. </doc>
  47704. </method>
  47705. <method name="getDefaultReduces" return="int"
  47706. abstract="false" native="false" synchronized="false"
  47707. static="false" final="false" visibility="public"
  47708. deprecated="not deprecated">
  47709. <exception name="IOException" type="java.io.IOException"/>
  47710. <doc>
  47711. <![CDATA[Get status information about the max available Reduces in the cluster.
  47712. @return the max available Reduces in the cluster
  47713. @throws IOException]]>
  47714. </doc>
  47715. </method>
  47716. <method name="getSystemDir" return="org.apache.hadoop.fs.Path"
  47717. abstract="false" native="false" synchronized="false"
  47718. static="false" final="false" visibility="public"
  47719. deprecated="not deprecated">
  47720. <doc>
  47721. <![CDATA[Grab the jobtracker system directory path where job-specific files are to be placed.
  47722. @return the system directory where job-specific files are to be placed.]]>
  47723. </doc>
  47724. </method>
  47725. <method name="getQueues" return="org.apache.hadoop.mapred.JobQueueInfo[]"
  47726. abstract="false" native="false" synchronized="false"
  47727. static="false" final="false" visibility="public"
  47728. deprecated="not deprecated">
  47729. <exception name="IOException" type="java.io.IOException"/>
  47730. <doc>
  47731. <![CDATA[Return an array of queue information objects about all the Job Queues
  47732. configured.
  47733. @return Array of JobQueueInfo objects
  47734. @throws IOException]]>
  47735. </doc>
  47736. </method>
  47737. <method name="getJobsFromQueue" return="org.apache.hadoop.mapred.JobStatus[]"
  47738. abstract="false" native="false" synchronized="false"
  47739. static="false" final="false" visibility="public"
  47740. deprecated="not deprecated">
  47741. <param name="queueName" type="java.lang.String"/>
  47742. <exception name="IOException" type="java.io.IOException"/>
  47743. <doc>
  47744. <![CDATA[Gets all the jobs which were added to particular Job Queue
  47745. @param queueName name of the Job Queue
  47746. @return Array of jobs present in the job queue
  47747. @throws IOException]]>
  47748. </doc>
  47749. </method>
  47750. <method name="getQueueInfo" return="org.apache.hadoop.mapred.JobQueueInfo"
  47751. abstract="false" native="false" synchronized="false"
  47752. static="false" final="false" visibility="public"
  47753. deprecated="not deprecated">
  47754. <param name="queueName" type="java.lang.String"/>
  47755. <exception name="IOException" type="java.io.IOException"/>
  47756. <doc>
  47757. <![CDATA[Gets the queue information associated to a particular Job Queue
  47758. @param queueName name of the job queue.
  47759. @return Queue information associated to particular queue.
  47760. @throws IOException]]>
  47761. </doc>
  47762. </method>
  47763. <method name="getQueueAclsForCurrentUser" return="org.apache.hadoop.mapred.QueueAclsInfo[]"
  47764. abstract="false" native="false" synchronized="false"
  47765. static="false" final="false" visibility="public"
  47766. deprecated="not deprecated">
  47767. <exception name="IOException" type="java.io.IOException"/>
  47768. <doc>
  47769. <![CDATA[Gets the Queue ACLs for current user
  47770. @return array of QueueAclsInfo object for current user.
  47771. @throws IOException]]>
  47772. </doc>
  47773. </method>
  47774. <method name="getDelegationToken" return="org.apache.hadoop.security.token.Token"
  47775. abstract="false" native="false" synchronized="false"
  47776. static="false" final="false" visibility="public"
  47777. deprecated="not deprecated">
  47778. <param name="renewer" type="org.apache.hadoop.io.Text"/>
  47779. <exception name="IOException" type="java.io.IOException"/>
  47780. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  47781. </method>
  47782. <method name="renewDelegationToken" return="long"
  47783. abstract="false" native="false" synchronized="false"
  47784. static="false" final="false" visibility="public"
  47785. deprecated="not deprecated">
  47786. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  47787. <exception name="SecretManager.InvalidToken" type="org.apache.hadoop.security.token.SecretManager.InvalidToken"/>
  47788. <exception name="IOException" type="java.io.IOException"/>
  47789. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  47790. <doc>
  47791. <![CDATA[Renew a delegation token
  47792. @param token the token to renew
  47793. @return the new expiration time
  47794. @throws InvalidToken
  47795. @throws IOException]]>
  47796. </doc>
  47797. </method>
  47798. <method name="cancelDelegationToken"
  47799. abstract="false" native="false" synchronized="false"
  47800. static="false" final="false" visibility="public"
  47801. deprecated="not deprecated">
  47802. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  47803. <exception name="IOException" type="java.io.IOException"/>
  47804. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  47805. <doc>
  47806. <![CDATA[Cancel a delegation token from the JobTracker
  47807. @param token the token to cancel
  47808. @throws IOException]]>
  47809. </doc>
  47810. </method>
  47811. <method name="main"
  47812. abstract="false" native="false" synchronized="false"
  47813. static="true" final="false" visibility="public"
  47814. deprecated="not deprecated">
  47815. <param name="argv" type="java.lang.String[]"/>
  47816. <exception name="Exception" type="java.lang.Exception"/>
  47817. </method>
  47818. <field name="MAPREDUCE_CLIENT_RETRY_POLICY_ENABLED_KEY" type="java.lang.String"
  47819. transient="false" volatile="false"
  47820. static="true" final="true" visibility="public"
  47821. deprecated="not deprecated">
  47822. </field>
  47823. <field name="MAPREDUCE_CLIENT_RETRY_POLICY_ENABLED_DEFAULT" type="boolean"
  47824. transient="false" volatile="false"
  47825. static="true" final="true" visibility="public"
  47826. deprecated="not deprecated">
  47827. </field>
  47828. <field name="MAPREDUCE_CLIENT_RETRY_POLICY_SPEC_KEY" type="java.lang.String"
  47829. transient="false" volatile="false"
  47830. static="true" final="true" visibility="public"
  47831. deprecated="not deprecated">
  47832. </field>
  47833. <field name="MAPREDUCE_CLIENT_RETRY_POLICY_SPEC_DEFAULT" type="java.lang.String"
  47834. transient="false" volatile="false"
  47835. static="true" final="true" visibility="public"
  47836. deprecated="not deprecated">
  47837. </field>
  47838. <doc>
  47839. <![CDATA[<code>JobClient</code> is the primary interface for the user-job to interact
  47840. with the {@link JobTracker}.
  47841. <code>JobClient</code> provides facilities to submit jobs, track their
  47842. progress, access component-tasks' reports/logs, get the Map-Reduce cluster
  47843. status information etc.
  47844. <p>The job submission process involves:
  47845. <ol>
  47846. <li>
  47847. Checking the input and output specifications of the job.
  47848. </li>
  47849. <li>
  47850. Computing the {@link InputSplit}s for the job.
  47851. </li>
  47852. <li>
  47853. Setup the requisite accounting information for the {@link DistributedCache}
  47854. of the job, if necessary.
  47855. </li>
  47856. <li>
  47857. Copying the job's jar and configuration to the map-reduce system directory
  47858. on the distributed file-system.
  47859. </li>
  47860. <li>
  47861. Submitting the job to the <code>JobTracker</code> and optionally monitoring
  47862. it's status.
  47863. </li>
  47864. </ol></p>
  47865. Normally the user creates the application, describes various facets of the
  47866. job via {@link JobConf} and then uses the <code>JobClient</code> to submit
  47867. the job and monitor its progress.
  47868. <p>Here is an example on how to use <code>JobClient</code>:</p>
  47869. <p><blockquote><pre>
  47870. // Create a new JobConf
  47871. JobConf job = new JobConf(new Configuration(), MyJob.class);
  47872. // Specify various job-specific parameters
  47873. job.setJobName("myjob");
  47874. job.setInputPath(new Path("in"));
  47875. job.setOutputPath(new Path("out"));
  47876. job.setMapperClass(MyJob.MyMapper.class);
  47877. job.setReducerClass(MyJob.MyReducer.class);
  47878. // Submit the job, then poll for progress until the job is complete
  47879. JobClient.runJob(job);
  47880. </pre></blockquote></p>
  47881. <h4 id="JobControl">Job Control</h4>
  47882. <p>At times clients would chain map-reduce jobs to accomplish complex tasks
  47883. which cannot be done via a single map-reduce job. This is fairly easy since
  47884. the output of the job, typically, goes to distributed file-system and that
  47885. can be used as the input for the next job.</p>
  47886. <p>However, this also means that the onus on ensuring jobs are complete
  47887. (success/failure) lies squarely on the clients. In such situations the
  47888. various job-control options are:
  47889. <ol>
  47890. <li>
  47891. {@link #runJob(JobConf)} : submits the job and returns only after
  47892. the job has completed.
  47893. </li>
  47894. <li>
  47895. {@link #submitJob(JobConf)} : only submits the job, then poll the
  47896. returned handle to the {@link RunningJob} to query status and make
  47897. scheduling decisions.
  47898. </li>
  47899. <li>
  47900. {@link JobConf#setJobEndNotificationURI(String)} : setup a notification
  47901. on job-completion, thus avoiding polling.
  47902. </li>
  47903. </ol></p>
  47904. @see JobConf
  47905. @see ClusterStatus
  47906. @see Tool
  47907. @see DistributedCache]]>
  47908. </doc>
  47909. </class>
  47910. <!-- end class org.apache.hadoop.mapred.JobClient -->
  47911. <!-- start class org.apache.hadoop.mapred.JobClient.Renewer -->
  47912. <class name="JobClient.Renewer" extends="org.apache.hadoop.security.token.TokenRenewer"
  47913. abstract="false"
  47914. static="true" final="false" visibility="public"
  47915. deprecated="not deprecated">
  47916. <constructor name="JobClient.Renewer"
  47917. static="false" final="false" visibility="public"
  47918. deprecated="not deprecated">
  47919. </constructor>
  47920. <method name="handleKind" return="boolean"
  47921. abstract="false" native="false" synchronized="false"
  47922. static="false" final="false" visibility="public"
  47923. deprecated="not deprecated">
  47924. <param name="kind" type="org.apache.hadoop.io.Text"/>
  47925. </method>
  47926. <method name="renew" return="long"
  47927. abstract="false" native="false" synchronized="false"
  47928. static="false" final="false" visibility="public"
  47929. deprecated="not deprecated">
  47930. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  47931. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  47932. <exception name="IOException" type="java.io.IOException"/>
  47933. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  47934. </method>
  47935. <method name="cancel"
  47936. abstract="false" native="false" synchronized="false"
  47937. static="false" final="false" visibility="public"
  47938. deprecated="not deprecated">
  47939. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  47940. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  47941. <exception name="IOException" type="java.io.IOException"/>
  47942. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  47943. </method>
  47944. <method name="isManaged" return="boolean"
  47945. abstract="false" native="false" synchronized="false"
  47946. static="false" final="false" visibility="public"
  47947. deprecated="not deprecated">
  47948. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  47949. <exception name="IOException" type="java.io.IOException"/>
  47950. </method>
  47951. </class>
  47952. <!-- end class org.apache.hadoop.mapred.JobClient.Renewer -->
  47953. <!-- start class org.apache.hadoop.mapred.JobClient.TaskStatusFilter -->
  47954. <class name="JobClient.TaskStatusFilter" extends="java.lang.Enum"
  47955. abstract="false"
  47956. static="true" final="true" visibility="public"
  47957. deprecated="not deprecated">
  47958. <method name="values" return="org.apache.hadoop.mapred.JobClient.TaskStatusFilter[]"
  47959. abstract="false" native="false" synchronized="false"
  47960. static="true" final="false" visibility="public"
  47961. deprecated="not deprecated">
  47962. </method>
  47963. <method name="valueOf" return="org.apache.hadoop.mapred.JobClient.TaskStatusFilter"
  47964. abstract="false" native="false" synchronized="false"
  47965. static="true" final="false" visibility="public"
  47966. deprecated="not deprecated">
  47967. <param name="name" type="java.lang.String"/>
  47968. </method>
  47969. <field name="NONE" type="org.apache.hadoop.mapred.JobClient.TaskStatusFilter"
  47970. transient="false" volatile="false"
  47971. static="true" final="true" visibility="public"
  47972. deprecated="not deprecated">
  47973. </field>
  47974. <field name="KILLED" type="org.apache.hadoop.mapred.JobClient.TaskStatusFilter"
  47975. transient="false" volatile="false"
  47976. static="true" final="true" visibility="public"
  47977. deprecated="not deprecated">
  47978. </field>
  47979. <field name="FAILED" type="org.apache.hadoop.mapred.JobClient.TaskStatusFilter"
  47980. transient="false" volatile="false"
  47981. static="true" final="true" visibility="public"
  47982. deprecated="not deprecated">
  47983. </field>
  47984. <field name="SUCCEEDED" type="org.apache.hadoop.mapred.JobClient.TaskStatusFilter"
  47985. transient="false" volatile="false"
  47986. static="true" final="true" visibility="public"
  47987. deprecated="not deprecated">
  47988. </field>
  47989. <field name="ALL" type="org.apache.hadoop.mapred.JobClient.TaskStatusFilter"
  47990. transient="false" volatile="false"
  47991. static="true" final="true" visibility="public"
  47992. deprecated="not deprecated">
  47993. </field>
  47994. </class>
  47995. <!-- end class org.apache.hadoop.mapred.JobClient.TaskStatusFilter -->
  47996. <!-- start class org.apache.hadoop.mapred.JobConf -->
  47997. <class name="JobConf" extends="org.apache.hadoop.conf.Configuration"
  47998. abstract="false"
  47999. static="false" final="false" visibility="public"
  48000. deprecated="not deprecated">
  48001. <constructor name="JobConf"
  48002. static="false" final="false" visibility="public"
  48003. deprecated="not deprecated">
  48004. <doc>
  48005. <![CDATA[Construct a map/reduce job configuration.]]>
  48006. </doc>
  48007. </constructor>
  48008. <constructor name="JobConf" type="java.lang.Class"
  48009. static="false" final="false" visibility="public"
  48010. deprecated="not deprecated">
  48011. <doc>
  48012. <![CDATA[Construct a map/reduce job configuration.
  48013. @param exampleClass a class whose containing jar is used as the job's jar.]]>
  48014. </doc>
  48015. </constructor>
  48016. <constructor name="JobConf" type="org.apache.hadoop.conf.Configuration"
  48017. static="false" final="false" visibility="public"
  48018. deprecated="not deprecated">
  48019. <doc>
  48020. <![CDATA[Construct a map/reduce job configuration.
  48021. @param conf a Configuration whose settings will be inherited.]]>
  48022. </doc>
  48023. </constructor>
  48024. <constructor name="JobConf" type="org.apache.hadoop.conf.Configuration, java.lang.Class"
  48025. static="false" final="false" visibility="public"
  48026. deprecated="not deprecated">
  48027. <doc>
  48028. <![CDATA[Construct a map/reduce job configuration.
  48029. @param conf a Configuration whose settings will be inherited.
  48030. @param exampleClass a class whose containing jar is used as the job's jar.]]>
  48031. </doc>
  48032. </constructor>
  48033. <constructor name="JobConf" type="java.lang.String"
  48034. static="false" final="false" visibility="public"
  48035. deprecated="not deprecated">
  48036. <doc>
  48037. <![CDATA[Construct a map/reduce configuration.
  48038. @param config a Configuration-format XML job description file.]]>
  48039. </doc>
  48040. </constructor>
  48041. <constructor name="JobConf" type="org.apache.hadoop.fs.Path"
  48042. static="false" final="false" visibility="public"
  48043. deprecated="not deprecated">
  48044. <doc>
  48045. <![CDATA[Construct a map/reduce configuration.
  48046. @param config a Configuration-format XML job description file.]]>
  48047. </doc>
  48048. </constructor>
  48049. <constructor name="JobConf" type="boolean"
  48050. static="false" final="false" visibility="public"
  48051. deprecated="not deprecated">
  48052. <doc>
  48053. <![CDATA[A new map/reduce configuration where the behavior of reading from the
  48054. default resources can be turned off.
  48055. <p/>
  48056. If the parameter {@code loadDefaults} is false, the new instance
  48057. will not load resources from the default files.
  48058. @param loadDefaults specifies whether to load from the default files]]>
  48059. </doc>
  48060. </constructor>
  48061. <method name="getCredentials" return="org.apache.hadoop.security.Credentials"
  48062. abstract="false" native="false" synchronized="false"
  48063. static="false" final="false" visibility="public"
  48064. deprecated="not deprecated">
  48065. <doc>
  48066. <![CDATA[Get credentials for the job.
  48067. @return credentials for the job]]>
  48068. </doc>
  48069. </method>
  48070. <method name="getJar" return="java.lang.String"
  48071. abstract="false" native="false" synchronized="false"
  48072. static="false" final="false" visibility="public"
  48073. deprecated="not deprecated">
  48074. <doc>
  48075. <![CDATA[Get the user jar for the map-reduce job.
  48076. @return the user jar for the map-reduce job.]]>
  48077. </doc>
  48078. </method>
  48079. <method name="setJar"
  48080. abstract="false" native="false" synchronized="false"
  48081. static="false" final="false" visibility="public"
  48082. deprecated="not deprecated">
  48083. <param name="jar" type="java.lang.String"/>
  48084. <doc>
  48085. <![CDATA[Set the user jar for the map-reduce job.
  48086. @param jar the user jar for the map-reduce job.]]>
  48087. </doc>
  48088. </method>
  48089. <method name="setJarByClass"
  48090. abstract="false" native="false" synchronized="false"
  48091. static="false" final="false" visibility="public"
  48092. deprecated="not deprecated">
  48093. <param name="cls" type="java.lang.Class"/>
  48094. <doc>
  48095. <![CDATA[Set the job's jar file by finding an example class location.
  48096. @param cls the example class.]]>
  48097. </doc>
  48098. </method>
  48099. <method name="getLocalDirs" return="java.lang.String[]"
  48100. abstract="false" native="false" synchronized="false"
  48101. static="false" final="false" visibility="public"
  48102. deprecated="not deprecated">
  48103. <exception name="IOException" type="java.io.IOException"/>
  48104. </method>
  48105. <method name="deleteLocalFiles"
  48106. abstract="false" native="false" synchronized="false"
  48107. static="false" final="false" visibility="public"
  48108. deprecated="not deprecated">
  48109. <exception name="IOException" type="java.io.IOException"/>
  48110. </method>
  48111. <method name="deleteLocalFiles"
  48112. abstract="false" native="false" synchronized="false"
  48113. static="false" final="false" visibility="public"
  48114. deprecated="not deprecated">
  48115. <param name="subdir" type="java.lang.String"/>
  48116. <exception name="IOException" type="java.io.IOException"/>
  48117. </method>
  48118. <method name="getLocalPath" return="org.apache.hadoop.fs.Path"
  48119. abstract="false" native="false" synchronized="false"
  48120. static="false" final="false" visibility="public"
  48121. deprecated="not deprecated">
  48122. <param name="pathString" type="java.lang.String"/>
  48123. <exception name="IOException" type="java.io.IOException"/>
  48124. <doc>
  48125. <![CDATA[Constructs a local file name. Files are distributed among configured
  48126. local directories.]]>
  48127. </doc>
  48128. </method>
  48129. <method name="getUser" return="java.lang.String"
  48130. abstract="false" native="false" synchronized="false"
  48131. static="false" final="false" visibility="public"
  48132. deprecated="not deprecated">
  48133. <doc>
  48134. <![CDATA[Get the reported username for this job.
  48135. @return the username]]>
  48136. </doc>
  48137. </method>
  48138. <method name="setUser"
  48139. abstract="false" native="false" synchronized="false"
  48140. static="false" final="false" visibility="public"
  48141. deprecated="not deprecated">
  48142. <param name="user" type="java.lang.String"/>
  48143. <doc>
  48144. <![CDATA[Set the reported username for this job.
  48145. @param user the username for this job.]]>
  48146. </doc>
  48147. </method>
  48148. <method name="setKeepFailedTaskFiles"
  48149. abstract="false" native="false" synchronized="false"
  48150. static="false" final="false" visibility="public"
  48151. deprecated="not deprecated">
  48152. <param name="keep" type="boolean"/>
  48153. <doc>
  48154. <![CDATA[Set whether the framework should keep the intermediate files for
  48155. failed tasks.
  48156. @param keep <code>true</code> if framework should keep the intermediate files
  48157. for failed tasks, <code>false</code> otherwise.]]>
  48158. </doc>
  48159. </method>
  48160. <method name="getKeepFailedTaskFiles" return="boolean"
  48161. abstract="false" native="false" synchronized="false"
  48162. static="false" final="false" visibility="public"
  48163. deprecated="not deprecated">
  48164. <doc>
  48165. <![CDATA[Should the temporary files for failed tasks be kept?
  48166. @return should the files be kept?]]>
  48167. </doc>
  48168. </method>
  48169. <method name="setKeepTaskFilesPattern"
  48170. abstract="false" native="false" synchronized="false"
  48171. static="false" final="false" visibility="public"
  48172. deprecated="not deprecated">
  48173. <param name="pattern" type="java.lang.String"/>
  48174. <doc>
  48175. <![CDATA[Set a regular expression for task names that should be kept.
  48176. The regular expression ".*_m_000123_0" would keep the files
  48177. for the first instance of map 123 that ran.
  48178. @param pattern the java.util.regex.Pattern to match against the
  48179. task names.]]>
  48180. </doc>
  48181. </method>
  48182. <method name="getKeepTaskFilesPattern" return="java.lang.String"
  48183. abstract="false" native="false" synchronized="false"
  48184. static="false" final="false" visibility="public"
  48185. deprecated="not deprecated">
  48186. <doc>
  48187. <![CDATA[Get the regular expression that is matched against the task names
  48188. to see if we need to keep the files.
  48189. @return the pattern as a string, if it was set, othewise null.]]>
  48190. </doc>
  48191. </method>
  48192. <method name="setWorkingDirectory"
  48193. abstract="false" native="false" synchronized="false"
  48194. static="false" final="false" visibility="public"
  48195. deprecated="not deprecated">
  48196. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  48197. <doc>
  48198. <![CDATA[Set the current working directory for the default file system.
  48199. @param dir the new current working directory.]]>
  48200. </doc>
  48201. </method>
  48202. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  48203. abstract="false" native="false" synchronized="false"
  48204. static="false" final="false" visibility="public"
  48205. deprecated="not deprecated">
  48206. <doc>
  48207. <![CDATA[Get the current working directory for the default file system.
  48208. @return the directory name.]]>
  48209. </doc>
  48210. </method>
  48211. <method name="setNumTasksToExecutePerJvm"
  48212. abstract="false" native="false" synchronized="false"
  48213. static="false" final="false" visibility="public"
  48214. deprecated="not deprecated">
  48215. <param name="numTasks" type="int"/>
  48216. <doc>
  48217. <![CDATA[Sets the number of tasks that a spawned task JVM should run
  48218. before it exits
  48219. @param numTasks the number of tasks to execute; defaults to 1;
  48220. -1 signifies no limit]]>
  48221. </doc>
  48222. </method>
  48223. <method name="getNumTasksToExecutePerJvm" return="int"
  48224. abstract="false" native="false" synchronized="false"
  48225. static="false" final="false" visibility="public"
  48226. deprecated="not deprecated">
  48227. <doc>
  48228. <![CDATA[Get the number of tasks that a spawned JVM should execute]]>
  48229. </doc>
  48230. </method>
  48231. <method name="getInputFormat" return="org.apache.hadoop.mapred.InputFormat"
  48232. abstract="false" native="false" synchronized="false"
  48233. static="false" final="false" visibility="public"
  48234. deprecated="not deprecated">
  48235. <doc>
  48236. <![CDATA[Get the {@link InputFormat} implementation for the map-reduce job,
  48237. defaults to {@link TextInputFormat} if not specified explicity.
  48238. @return the {@link InputFormat} implementation for the map-reduce job.]]>
  48239. </doc>
  48240. </method>
  48241. <method name="setInputFormat"
  48242. abstract="false" native="false" synchronized="false"
  48243. static="false" final="false" visibility="public"
  48244. deprecated="not deprecated">
  48245. <param name="theClass" type="java.lang.Class"/>
  48246. <doc>
  48247. <![CDATA[Set the {@link InputFormat} implementation for the map-reduce job.
  48248. @param theClass the {@link InputFormat} implementation for the map-reduce
  48249. job.]]>
  48250. </doc>
  48251. </method>
  48252. <method name="getOutputFormat" return="org.apache.hadoop.mapred.OutputFormat"
  48253. abstract="false" native="false" synchronized="false"
  48254. static="false" final="false" visibility="public"
  48255. deprecated="not deprecated">
  48256. <doc>
  48257. <![CDATA[Get the {@link OutputFormat} implementation for the map-reduce job,
  48258. defaults to {@link TextOutputFormat} if not specified explicity.
  48259. @return the {@link OutputFormat} implementation for the map-reduce job.]]>
  48260. </doc>
  48261. </method>
  48262. <method name="getOutputCommitter" return="org.apache.hadoop.mapred.OutputCommitter"
  48263. abstract="false" native="false" synchronized="false"
  48264. static="false" final="false" visibility="public"
  48265. deprecated="not deprecated">
  48266. <doc>
  48267. <![CDATA[Get the {@link OutputCommitter} implementation for the map-reduce job,
  48268. defaults to {@link FileOutputCommitter} if not specified explicitly.
  48269. @return the {@link OutputCommitter} implementation for the map-reduce job.]]>
  48270. </doc>
  48271. </method>
  48272. <method name="setOutputCommitter"
  48273. abstract="false" native="false" synchronized="false"
  48274. static="false" final="false" visibility="public"
  48275. deprecated="not deprecated">
  48276. <param name="theClass" type="java.lang.Class"/>
  48277. <doc>
  48278. <![CDATA[Set the {@link OutputCommitter} implementation for the map-reduce job.
  48279. @param theClass the {@link OutputCommitter} implementation for the map-reduce
  48280. job.]]>
  48281. </doc>
  48282. </method>
  48283. <method name="setOutputFormat"
  48284. abstract="false" native="false" synchronized="false"
  48285. static="false" final="false" visibility="public"
  48286. deprecated="not deprecated">
  48287. <param name="theClass" type="java.lang.Class"/>
  48288. <doc>
  48289. <![CDATA[Set the {@link OutputFormat} implementation for the map-reduce job.
  48290. @param theClass the {@link OutputFormat} implementation for the map-reduce
  48291. job.]]>
  48292. </doc>
  48293. </method>
  48294. <method name="setCompressMapOutput"
  48295. abstract="false" native="false" synchronized="false"
  48296. static="false" final="false" visibility="public"
  48297. deprecated="not deprecated">
  48298. <param name="compress" type="boolean"/>
  48299. <doc>
  48300. <![CDATA[Should the map outputs be compressed before transfer?
  48301. Uses the SequenceFile compression.
  48302. @param compress should the map outputs be compressed?]]>
  48303. </doc>
  48304. </method>
  48305. <method name="getCompressMapOutput" return="boolean"
  48306. abstract="false" native="false" synchronized="false"
  48307. static="false" final="false" visibility="public"
  48308. deprecated="not deprecated">
  48309. <doc>
  48310. <![CDATA[Are the outputs of the maps be compressed?
  48311. @return <code>true</code> if the outputs of the maps are to be compressed,
  48312. <code>false</code> otherwise.]]>
  48313. </doc>
  48314. </method>
  48315. <method name="setMapOutputCompressorClass"
  48316. abstract="false" native="false" synchronized="false"
  48317. static="false" final="false" visibility="public"
  48318. deprecated="not deprecated">
  48319. <param name="codecClass" type="java.lang.Class"/>
  48320. <doc>
  48321. <![CDATA[Set the given class as the {@link CompressionCodec} for the map outputs.
  48322. @param codecClass the {@link CompressionCodec} class that will compress
  48323. the map outputs.]]>
  48324. </doc>
  48325. </method>
  48326. <method name="getMapOutputCompressorClass" return="java.lang.Class"
  48327. abstract="false" native="false" synchronized="false"
  48328. static="false" final="false" visibility="public"
  48329. deprecated="not deprecated">
  48330. <param name="defaultValue" type="java.lang.Class"/>
  48331. <doc>
  48332. <![CDATA[Get the {@link CompressionCodec} for compressing the map outputs.
  48333. @param defaultValue the {@link CompressionCodec} to return if not set
  48334. @return the {@link CompressionCodec} class that should be used to compress the
  48335. map outputs.
  48336. @throws IllegalArgumentException if the class was specified, but not found]]>
  48337. </doc>
  48338. </method>
  48339. <method name="getMapOutputKeyClass" return="java.lang.Class"
  48340. abstract="false" native="false" synchronized="false"
  48341. static="false" final="false" visibility="public"
  48342. deprecated="not deprecated">
  48343. <doc>
  48344. <![CDATA[Get the key class for the map output data. If it is not set, use the
  48345. (final) output key class. This allows the map output key class to be
  48346. different than the final output key class.
  48347. @return the map output key class.]]>
  48348. </doc>
  48349. </method>
  48350. <method name="setMapOutputKeyClass"
  48351. abstract="false" native="false" synchronized="false"
  48352. static="false" final="false" visibility="public"
  48353. deprecated="not deprecated">
  48354. <param name="theClass" type="java.lang.Class"/>
  48355. <doc>
  48356. <![CDATA[Set the key class for the map output data. This allows the user to
  48357. specify the map output key class to be different than the final output
  48358. value class.
  48359. @param theClass the map output key class.]]>
  48360. </doc>
  48361. </method>
  48362. <method name="getMapOutputValueClass" return="java.lang.Class"
  48363. abstract="false" native="false" synchronized="false"
  48364. static="false" final="false" visibility="public"
  48365. deprecated="not deprecated">
  48366. <doc>
  48367. <![CDATA[Get the value class for the map output data. If it is not set, use the
  48368. (final) output value class This allows the map output value class to be
  48369. different than the final output value class.
  48370. @return the map output value class.]]>
  48371. </doc>
  48372. </method>
  48373. <method name="setMapOutputValueClass"
  48374. abstract="false" native="false" synchronized="false"
  48375. static="false" final="false" visibility="public"
  48376. deprecated="not deprecated">
  48377. <param name="theClass" type="java.lang.Class"/>
  48378. <doc>
  48379. <![CDATA[Set the value class for the map output data. This allows the user to
  48380. specify the map output value class to be different than the final output
  48381. value class.
  48382. @param theClass the map output value class.]]>
  48383. </doc>
  48384. </method>
  48385. <method name="getOutputKeyClass" return="java.lang.Class"
  48386. abstract="false" native="false" synchronized="false"
  48387. static="false" final="false" visibility="public"
  48388. deprecated="not deprecated">
  48389. <doc>
  48390. <![CDATA[Get the key class for the job output data.
  48391. @return the key class for the job output data.]]>
  48392. </doc>
  48393. </method>
  48394. <method name="setOutputKeyClass"
  48395. abstract="false" native="false" synchronized="false"
  48396. static="false" final="false" visibility="public"
  48397. deprecated="not deprecated">
  48398. <param name="theClass" type="java.lang.Class"/>
  48399. <doc>
  48400. <![CDATA[Set the key class for the job output data.
  48401. @param theClass the key class for the job output data.]]>
  48402. </doc>
  48403. </method>
  48404. <method name="getOutputKeyComparator" return="org.apache.hadoop.io.RawComparator"
  48405. abstract="false" native="false" synchronized="false"
  48406. static="false" final="false" visibility="public"
  48407. deprecated="not deprecated">
  48408. <doc>
  48409. <![CDATA[Get the {@link RawComparator} comparator used to compare keys.
  48410. @return the {@link RawComparator} comparator used to compare keys.]]>
  48411. </doc>
  48412. </method>
  48413. <method name="setOutputKeyComparatorClass"
  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 {@link RawComparator} comparator used to compare keys.
  48420. @param theClass the {@link RawComparator} comparator used to
  48421. compare keys.
  48422. @see #setOutputValueGroupingComparator(Class)]]>
  48423. </doc>
  48424. </method>
  48425. <method name="setKeyFieldComparatorOptions"
  48426. abstract="false" native="false" synchronized="false"
  48427. static="false" final="false" visibility="public"
  48428. deprecated="not deprecated">
  48429. <param name="keySpec" type="java.lang.String"/>
  48430. <doc>
  48431. <![CDATA[Set the {@link KeyFieldBasedComparator} options used to compare keys.
  48432. @param keySpec the key specification of the form -k pos1[,pos2], where,
  48433. pos is of the form f[.c][opts], where f is the number
  48434. of the key field to use, and c is the number of the first character from
  48435. the beginning of the field. Fields and character posns are numbered
  48436. starting with 1; a character position of zero in pos2 indicates the
  48437. field's last character. If '.c' is omitted from pos1, it defaults to 1
  48438. (the beginning of the field); if omitted from pos2, it defaults to 0
  48439. (the end of the field). opts are ordering options. The supported options
  48440. are:
  48441. -n, (Sort numerically)
  48442. -r, (Reverse the result of comparison)]]>
  48443. </doc>
  48444. </method>
  48445. <method name="getKeyFieldComparatorOption" return="java.lang.String"
  48446. abstract="false" native="false" synchronized="false"
  48447. static="false" final="false" visibility="public"
  48448. deprecated="not deprecated">
  48449. <doc>
  48450. <![CDATA[Get the {@link KeyFieldBasedComparator} options]]>
  48451. </doc>
  48452. </method>
  48453. <method name="setKeyFieldPartitionerOptions"
  48454. abstract="false" native="false" synchronized="false"
  48455. static="false" final="false" visibility="public"
  48456. deprecated="not deprecated">
  48457. <param name="keySpec" type="java.lang.String"/>
  48458. <doc>
  48459. <![CDATA[Set the {@link KeyFieldBasedPartitioner} options used for
  48460. {@link Partitioner}
  48461. @param keySpec the key specification of the form -k pos1[,pos2], where,
  48462. pos is of the form f[.c][opts], where f is the number
  48463. of the key field to use, and c is the number of the first character from
  48464. the beginning of the field. Fields and character posns are numbered
  48465. starting with 1; a character position of zero in pos2 indicates the
  48466. field's last character. If '.c' is omitted from pos1, it defaults to 1
  48467. (the beginning of the field); if omitted from pos2, it defaults to 0
  48468. (the end of the field).]]>
  48469. </doc>
  48470. </method>
  48471. <method name="getKeyFieldPartitionerOption" return="java.lang.String"
  48472. abstract="false" native="false" synchronized="false"
  48473. static="false" final="false" visibility="public"
  48474. deprecated="not deprecated">
  48475. <doc>
  48476. <![CDATA[Get the {@link KeyFieldBasedPartitioner} options]]>
  48477. </doc>
  48478. </method>
  48479. <method name="getOutputValueGroupingComparator" return="org.apache.hadoop.io.RawComparator"
  48480. abstract="false" native="false" synchronized="false"
  48481. static="false" final="false" visibility="public"
  48482. deprecated="not deprecated">
  48483. <doc>
  48484. <![CDATA[Get the user defined {@link WritableComparable} comparator for
  48485. grouping keys of inputs to the reduce.
  48486. @return comparator set by the user for grouping values.
  48487. @see #setOutputValueGroupingComparator(Class) for details.]]>
  48488. </doc>
  48489. </method>
  48490. <method name="setOutputValueGroupingComparator"
  48491. abstract="false" native="false" synchronized="false"
  48492. static="false" final="false" visibility="public"
  48493. deprecated="not deprecated">
  48494. <param name="theClass" type="java.lang.Class"/>
  48495. <doc>
  48496. <![CDATA[Set the user defined {@link RawComparator} comparator for
  48497. grouping keys in the input to the reduce.
  48498. <p>This comparator should be provided if the equivalence rules for keys
  48499. for sorting the intermediates are different from those for grouping keys
  48500. before each call to
  48501. {@link Reducer#reduce(Object, java.util.Iterator, OutputCollector, Reporter)}.</p>
  48502. <p>For key-value pairs (K1,V1) and (K2,V2), the values (V1, V2) are passed
  48503. in a single call to the reduce function if K1 and K2 compare as equal.</p>
  48504. <p>Since {@link #setOutputKeyComparatorClass(Class)} can be used to control
  48505. how keys are sorted, this can be used in conjunction to simulate
  48506. <i>secondary sort on values</i>.</p>
  48507. <p><i>Note</i>: This is not a guarantee of the reduce sort being
  48508. <i>stable</i> in any sense. (In any case, with the order of available
  48509. map-outputs to the reduce being non-deterministic, it wouldn't make
  48510. that much sense.)</p>
  48511. @param theClass the comparator class to be used for grouping keys.
  48512. It should implement <code>RawComparator</code>.
  48513. @see #setOutputKeyComparatorClass(Class)]]>
  48514. </doc>
  48515. </method>
  48516. <method name="getUseNewMapper" return="boolean"
  48517. abstract="false" native="false" synchronized="false"
  48518. static="false" final="false" visibility="public"
  48519. deprecated="not deprecated">
  48520. <doc>
  48521. <![CDATA[Should the framework use the new context-object code for running
  48522. the mapper?
  48523. @return true, if the new api should be used]]>
  48524. </doc>
  48525. </method>
  48526. <method name="setUseNewMapper"
  48527. abstract="false" native="false" synchronized="false"
  48528. static="false" final="false" visibility="public"
  48529. deprecated="not deprecated">
  48530. <param name="flag" type="boolean"/>
  48531. <doc>
  48532. <![CDATA[Set whether the framework should use the new api for the mapper.
  48533. This is the default for jobs submitted with the new Job api.
  48534. @param flag true, if the new api should be used]]>
  48535. </doc>
  48536. </method>
  48537. <method name="getUseNewReducer" return="boolean"
  48538. abstract="false" native="false" synchronized="false"
  48539. static="false" final="false" visibility="public"
  48540. deprecated="not deprecated">
  48541. <doc>
  48542. <![CDATA[Should the framework use the new context-object code for running
  48543. the reducer?
  48544. @return true, if the new api should be used]]>
  48545. </doc>
  48546. </method>
  48547. <method name="setUseNewReducer"
  48548. abstract="false" native="false" synchronized="false"
  48549. static="false" final="false" visibility="public"
  48550. deprecated="not deprecated">
  48551. <param name="flag" type="boolean"/>
  48552. <doc>
  48553. <![CDATA[Set whether the framework should use the new api for the reducer.
  48554. This is the default for jobs submitted with the new Job api.
  48555. @param flag true, if the new api should be used]]>
  48556. </doc>
  48557. </method>
  48558. <method name="getOutputValueClass" return="java.lang.Class"
  48559. abstract="false" native="false" synchronized="false"
  48560. static="false" final="false" visibility="public"
  48561. deprecated="not deprecated">
  48562. <doc>
  48563. <![CDATA[Get the value class for job outputs.
  48564. @return the value class for job outputs.]]>
  48565. </doc>
  48566. </method>
  48567. <method name="setOutputValueClass"
  48568. abstract="false" native="false" synchronized="false"
  48569. static="false" final="false" visibility="public"
  48570. deprecated="not deprecated">
  48571. <param name="theClass" type="java.lang.Class"/>
  48572. <doc>
  48573. <![CDATA[Set the value class for job outputs.
  48574. @param theClass the value class for job outputs.]]>
  48575. </doc>
  48576. </method>
  48577. <method name="getMapperClass" 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 {@link Mapper} class for the job.
  48583. @return the {@link Mapper} class for the job.]]>
  48584. </doc>
  48585. </method>
  48586. <method name="setMapperClass"
  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 {@link Mapper} class for the job.
  48593. @param theClass the {@link Mapper} class for the job.]]>
  48594. </doc>
  48595. </method>
  48596. <method name="getMapRunnerClass" 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 MapRunnable} class for the job.
  48602. @return the {@link MapRunnable} class for the job.]]>
  48603. </doc>
  48604. </method>
  48605. <method name="setMapRunnerClass"
  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[Expert: Set the {@link MapRunnable} class for the job.
  48612. Typically used to exert greater control on {@link Mapper}s.
  48613. @param theClass the {@link MapRunnable} class for the job.]]>
  48614. </doc>
  48615. </method>
  48616. <method name="getPartitionerClass" return="java.lang.Class"
  48617. abstract="false" native="false" synchronized="false"
  48618. static="false" final="false" visibility="public"
  48619. deprecated="not deprecated">
  48620. <doc>
  48621. <![CDATA[Get the {@link Partitioner} used to partition {@link Mapper}-outputs
  48622. to be sent to the {@link Reducer}s.
  48623. @return the {@link Partitioner} used to partition map-outputs.]]>
  48624. </doc>
  48625. </method>
  48626. <method name="setPartitionerClass"
  48627. abstract="false" native="false" synchronized="false"
  48628. static="false" final="false" visibility="public"
  48629. deprecated="not deprecated">
  48630. <param name="theClass" type="java.lang.Class"/>
  48631. <doc>
  48632. <![CDATA[Set the {@link Partitioner} class used to partition
  48633. {@link Mapper}-outputs to be sent to the {@link Reducer}s.
  48634. @param theClass the {@link Partitioner} used to partition map-outputs.]]>
  48635. </doc>
  48636. </method>
  48637. <method name="getReducerClass" return="java.lang.Class"
  48638. abstract="false" native="false" synchronized="false"
  48639. static="false" final="false" visibility="public"
  48640. deprecated="not deprecated">
  48641. <doc>
  48642. <![CDATA[Get the {@link Reducer} class for the job.
  48643. @return the {@link Reducer} class for the job.]]>
  48644. </doc>
  48645. </method>
  48646. <method name="setReducerClass"
  48647. abstract="false" native="false" synchronized="false"
  48648. static="false" final="false" visibility="public"
  48649. deprecated="not deprecated">
  48650. <param name="theClass" type="java.lang.Class"/>
  48651. <doc>
  48652. <![CDATA[Set the {@link Reducer} class for the job.
  48653. @param theClass the {@link Reducer} class for the job.]]>
  48654. </doc>
  48655. </method>
  48656. <method name="getCombinerClass" 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 user-defined <i>combiner</i> class used to combine map-outputs
  48662. before being sent to the reducers. Typically the combiner is same as the
  48663. the {@link Reducer} for the job i.e. {@link #getReducerClass()}.
  48664. @return the user-defined combiner class used to combine map-outputs.]]>
  48665. </doc>
  48666. </method>
  48667. <method name="setCombinerClass"
  48668. abstract="false" native="false" synchronized="false"
  48669. static="false" final="false" visibility="public"
  48670. deprecated="not deprecated">
  48671. <param name="theClass" type="java.lang.Class"/>
  48672. <doc>
  48673. <![CDATA[Set the user-defined <i>combiner</i> class used to combine map-outputs
  48674. before being sent to the reducers.
  48675. <p>The combiner is an application-specified aggregation operation, which
  48676. can help cut down the amount of data transferred between the
  48677. {@link Mapper} and the {@link Reducer}, leading to better performance.</p>
  48678. <p>The framework may invoke the combiner 0, 1, or multiple times, in both
  48679. the mapper and reducer tasks. In general, the combiner is called as the
  48680. sort/merge result is written to disk. The combiner must:
  48681. <ul>
  48682. <li> be side-effect free</li>
  48683. <li> have the same input and output key types and the same input and
  48684. output value types</li>
  48685. </ul></p>
  48686. <p>Typically the combiner is same as the <code>Reducer</code> for the
  48687. job i.e. {@link #setReducerClass(Class)}.</p>
  48688. @param theClass the user-defined combiner class used to combine
  48689. map-outputs.]]>
  48690. </doc>
  48691. </method>
  48692. <method name="getSpeculativeExecution" return="boolean"
  48693. abstract="false" native="false" synchronized="false"
  48694. static="false" final="false" visibility="public"
  48695. deprecated="not deprecated">
  48696. <doc>
  48697. <![CDATA[Should speculative execution be used for this job?
  48698. Defaults to <code>true</code>.
  48699. @return <code>true</code> if speculative execution be used for this job,
  48700. <code>false</code> otherwise.]]>
  48701. </doc>
  48702. </method>
  48703. <method name="setSpeculativeExecution"
  48704. abstract="false" native="false" synchronized="false"
  48705. static="false" final="false" visibility="public"
  48706. deprecated="not deprecated">
  48707. <param name="speculativeExecution" type="boolean"/>
  48708. <doc>
  48709. <![CDATA[Turn speculative execution on or off for this job.
  48710. @param speculativeExecution <code>true</code> if speculative execution
  48711. should be turned on, else <code>false</code>.]]>
  48712. </doc>
  48713. </method>
  48714. <method name="getMapSpeculativeExecution" return="boolean"
  48715. abstract="false" native="false" synchronized="false"
  48716. static="false" final="false" visibility="public"
  48717. deprecated="not deprecated">
  48718. <doc>
  48719. <![CDATA[Should speculative execution be used for this job for map tasks?
  48720. Defaults to <code>true</code>.
  48721. @return <code>true</code> if speculative execution be
  48722. used for this job for map tasks,
  48723. <code>false</code> otherwise.]]>
  48724. </doc>
  48725. </method>
  48726. <method name="setMapSpeculativeExecution"
  48727. abstract="false" native="false" synchronized="false"
  48728. static="false" final="false" visibility="public"
  48729. deprecated="not deprecated">
  48730. <param name="speculativeExecution" type="boolean"/>
  48731. <doc>
  48732. <![CDATA[Turn speculative execution on or off for this job for map tasks.
  48733. @param speculativeExecution <code>true</code> if speculative execution
  48734. should be turned on for map tasks,
  48735. else <code>false</code>.]]>
  48736. </doc>
  48737. </method>
  48738. <method name="getReduceSpeculativeExecution" return="boolean"
  48739. abstract="false" native="false" synchronized="false"
  48740. static="false" final="false" visibility="public"
  48741. deprecated="not deprecated">
  48742. <doc>
  48743. <![CDATA[Should speculative execution be used for this job for reduce tasks?
  48744. Defaults to <code>true</code>.
  48745. @return <code>true</code> if speculative execution be used
  48746. for reduce tasks for this job,
  48747. <code>false</code> otherwise.]]>
  48748. </doc>
  48749. </method>
  48750. <method name="setReduceSpeculativeExecution"
  48751. abstract="false" native="false" synchronized="false"
  48752. static="false" final="false" visibility="public"
  48753. deprecated="not deprecated">
  48754. <param name="speculativeExecution" type="boolean"/>
  48755. <doc>
  48756. <![CDATA[Turn speculative execution on or off for this job for reduce tasks.
  48757. @param speculativeExecution <code>true</code> if speculative execution
  48758. should be turned on for reduce tasks,
  48759. else <code>false</code>.]]>
  48760. </doc>
  48761. </method>
  48762. <method name="getNumMapTasks" return="int"
  48763. abstract="false" native="false" synchronized="false"
  48764. static="false" final="false" visibility="public"
  48765. deprecated="not deprecated">
  48766. <doc>
  48767. <![CDATA[Get configured the number of reduce tasks for this job.
  48768. Defaults to <code>1</code>.
  48769. @return the number of reduce tasks for this job.]]>
  48770. </doc>
  48771. </method>
  48772. <method name="setNumMapTasks"
  48773. abstract="false" native="false" synchronized="false"
  48774. static="false" final="false" visibility="public"
  48775. deprecated="not deprecated">
  48776. <param name="n" type="int"/>
  48777. <doc>
  48778. <![CDATA[Set the number of map tasks for this job.
  48779. <p><i>Note</i>: This is only a <i>hint</i> to the framework. The actual
  48780. number of spawned map tasks depends on the number of {@link InputSplit}s
  48781. generated by the job's {@link InputFormat#getSplits(JobConf, int)}.
  48782. A custom {@link InputFormat} is typically used to accurately control
  48783. the number of map tasks for the job.</p>
  48784. <h4 id="NoOfMaps">How many maps?</h4>
  48785. <p>The number of maps is usually driven by the total size of the inputs
  48786. i.e. total number of blocks of the input files.</p>
  48787. <p>The right level of parallelism for maps seems to be around 10-100 maps
  48788. per-node, although it has been set up to 300 or so for very cpu-light map
  48789. tasks. Task setup takes awhile, so it is best if the maps take at least a
  48790. minute to execute.</p>
  48791. <p>The default behavior of file-based {@link InputFormat}s is to split the
  48792. input into <i>logical</i> {@link InputSplit}s based on the total size, in
  48793. bytes, of input files. However, the {@link FileSystem} blocksize of the
  48794. input files is treated as an upper bound for input splits. A lower bound
  48795. on the split size can be set via
  48796. <a href="{@docRoot}/../mapred-default.html#mapred.min.split.size">
  48797. mapred.min.split.size</a>.</p>
  48798. <p>Thus, if you expect 10TB of input data and have a blocksize of 128MB,
  48799. you'll end up with 82,000 maps, unless {@link #setNumMapTasks(int)} is
  48800. used to set it even higher.</p>
  48801. @param n the number of map tasks for this job.
  48802. @see InputFormat#getSplits(JobConf, int)
  48803. @see FileInputFormat
  48804. @see FileSystem#getDefaultBlockSize()
  48805. @see FileStatus#getBlockSize()]]>
  48806. </doc>
  48807. </method>
  48808. <method name="getNumReduceTasks" return="int"
  48809. abstract="false" native="false" synchronized="false"
  48810. static="false" final="false" visibility="public"
  48811. deprecated="not deprecated">
  48812. <doc>
  48813. <![CDATA[Get configured the number of reduce tasks for this job. Defaults to
  48814. <code>1</code>.
  48815. @return the number of reduce tasks for this job.]]>
  48816. </doc>
  48817. </method>
  48818. <method name="setNumReduceTasks"
  48819. abstract="false" native="false" synchronized="false"
  48820. static="false" final="false" visibility="public"
  48821. deprecated="not deprecated">
  48822. <param name="n" type="int"/>
  48823. <doc>
  48824. <![CDATA[Set the requisite number of reduce tasks for this job.
  48825. <h4 id="NoOfReduces">How many reduces?</h4>
  48826. <p>The right number of reduces seems to be <code>0.95</code> or
  48827. <code>1.75</code> multiplied by (&lt;<i>no. of nodes</i>&gt; *
  48828. <a href="{@docRoot}/../mapred-default.html#mapred.tasktracker.reduce.tasks.maximum">
  48829. mapred.tasktracker.reduce.tasks.maximum</a>).
  48830. </p>
  48831. <p>With <code>0.95</code> all of the reduces can launch immediately and
  48832. start transfering map outputs as the maps finish. With <code>1.75</code>
  48833. the faster nodes will finish their first round of reduces and launch a
  48834. second wave of reduces doing a much better job of load balancing.</p>
  48835. <p>Increasing the number of reduces increases the framework overhead, but
  48836. increases load balancing and lowers the cost of failures.</p>
  48837. <p>The scaling factors above are slightly less than whole numbers to
  48838. reserve a few reduce slots in the framework for speculative-tasks, failures
  48839. etc.</p>
  48840. <h4 id="ReducerNone">Reducer NONE</h4>
  48841. <p>It is legal to set the number of reduce-tasks to <code>zero</code>.</p>
  48842. <p>In this case the output of the map-tasks directly go to distributed
  48843. file-system, to the path set by
  48844. {@link FileOutputFormat#setOutputPath(JobConf, Path)}. Also, the
  48845. framework doesn't sort the map-outputs before writing it out to HDFS.</p>
  48846. @param n the number of reduce tasks for this job.]]>
  48847. </doc>
  48848. </method>
  48849. <method name="getMaxMapAttempts" return="int"
  48850. abstract="false" native="false" synchronized="false"
  48851. static="false" final="false" visibility="public"
  48852. deprecated="not deprecated">
  48853. <doc>
  48854. <![CDATA[Get the configured number of maximum attempts that will be made to run a
  48855. map task, as specified by the <code>mapred.map.max.attempts</code>
  48856. property. If this property is not already set, the default is 4 attempts.
  48857. @return the max number of attempts per map task.]]>
  48858. </doc>
  48859. </method>
  48860. <method name="setMaxMapAttempts"
  48861. abstract="false" native="false" synchronized="false"
  48862. static="false" final="false" visibility="public"
  48863. deprecated="not deprecated">
  48864. <param name="n" type="int"/>
  48865. <doc>
  48866. <![CDATA[Expert: Set the number of maximum attempts that will be made to run a
  48867. map task.
  48868. @param n the number of attempts per map task.]]>
  48869. </doc>
  48870. </method>
  48871. <method name="getMaxReduceAttempts" return="int"
  48872. abstract="false" native="false" synchronized="false"
  48873. static="false" final="false" visibility="public"
  48874. deprecated="not deprecated">
  48875. <doc>
  48876. <![CDATA[Get the configured number of maximum attempts that will be made to run a
  48877. reduce task, as specified by the <code>mapred.reduce.max.attempts</code>
  48878. property. If this property is not already set, the default is 4 attempts.
  48879. @return the max number of attempts per reduce task.]]>
  48880. </doc>
  48881. </method>
  48882. <method name="setMaxReduceAttempts"
  48883. abstract="false" native="false" synchronized="false"
  48884. static="false" final="false" visibility="public"
  48885. deprecated="not deprecated">
  48886. <param name="n" type="int"/>
  48887. <doc>
  48888. <![CDATA[Expert: Set the number of maximum attempts that will be made to run a
  48889. reduce task.
  48890. @param n the number of attempts per reduce task.]]>
  48891. </doc>
  48892. </method>
  48893. <method name="getJobName" return="java.lang.String"
  48894. abstract="false" native="false" synchronized="false"
  48895. static="false" final="false" visibility="public"
  48896. deprecated="not deprecated">
  48897. <doc>
  48898. <![CDATA[Get the user-specified job name. This is only used to identify the
  48899. job to the user.
  48900. @return the job's name, defaulting to "".]]>
  48901. </doc>
  48902. </method>
  48903. <method name="setJobName"
  48904. abstract="false" native="false" synchronized="false"
  48905. static="false" final="false" visibility="public"
  48906. deprecated="not deprecated">
  48907. <param name="name" type="java.lang.String"/>
  48908. <doc>
  48909. <![CDATA[Set the user-specified job name.
  48910. @param name the job's new name.]]>
  48911. </doc>
  48912. </method>
  48913. <method name="getSessionId" return="java.lang.String"
  48914. abstract="false" native="false" synchronized="false"
  48915. static="false" final="false" visibility="public"
  48916. deprecated="not deprecated">
  48917. <doc>
  48918. <![CDATA[Get the user-specified session identifier. The default is the empty string.
  48919. The session identifier is used to tag metric data that is reported to some
  48920. performance metrics system via the org.apache.hadoop.metrics API. The
  48921. session identifier is intended, in particular, for use by Hadoop-On-Demand
  48922. (HOD) which allocates a virtual Hadoop cluster dynamically and transiently.
  48923. HOD will set the session identifier by modifying the mapred-site.xml file
  48924. before starting the cluster.
  48925. When not running under HOD, this identifer is expected to remain set to
  48926. the empty string.
  48927. @return the session identifier, defaulting to "".]]>
  48928. </doc>
  48929. </method>
  48930. <method name="setSessionId"
  48931. abstract="false" native="false" synchronized="false"
  48932. static="false" final="false" visibility="public"
  48933. deprecated="not deprecated">
  48934. <param name="sessionId" type="java.lang.String"/>
  48935. <doc>
  48936. <![CDATA[Set the user-specified session identifier.
  48937. @param sessionId the new session id.]]>
  48938. </doc>
  48939. </method>
  48940. <method name="setMaxTaskFailuresPerTracker"
  48941. abstract="false" native="false" synchronized="false"
  48942. static="false" final="false" visibility="public"
  48943. deprecated="not deprecated">
  48944. <param name="noFailures" type="int"/>
  48945. <doc>
  48946. <![CDATA[Set the maximum no. of failures of a given job per tasktracker.
  48947. If the no. of task failures exceeds <code>noFailures</code>, the
  48948. tasktracker is <i>blacklisted</i> for this job.
  48949. @param noFailures maximum no. of failures of a given job per tasktracker.]]>
  48950. </doc>
  48951. </method>
  48952. <method name="getMaxTaskFailuresPerTracker" return="int"
  48953. abstract="false" native="false" synchronized="false"
  48954. static="false" final="false" visibility="public"
  48955. deprecated="not deprecated">
  48956. <doc>
  48957. <![CDATA[Expert: Get the maximum no. of failures of a given job per tasktracker.
  48958. If the no. of task failures exceeds this, the tasktracker is
  48959. <i>blacklisted</i> for this job.
  48960. @return the maximum no. of failures of a given job per tasktracker.]]>
  48961. </doc>
  48962. </method>
  48963. <method name="getMaxMapTaskFailuresPercent" return="int"
  48964. abstract="false" native="false" synchronized="false"
  48965. static="false" final="false" visibility="public"
  48966. deprecated="not deprecated">
  48967. <doc>
  48968. <![CDATA[Get the maximum percentage of map tasks that can fail without
  48969. the job being aborted.
  48970. Each map task is executed a minimum of {@link #getMaxMapAttempts()}
  48971. attempts before being declared as <i>failed</i>.
  48972. Defaults to <code>zero</code>, i.e. <i>any</i> failed map-task results in
  48973. the job being declared as {@link JobStatus#FAILED}.
  48974. @return the maximum percentage of map tasks that can fail without
  48975. the job being aborted.]]>
  48976. </doc>
  48977. </method>
  48978. <method name="setMaxMapTaskFailuresPercent"
  48979. abstract="false" native="false" synchronized="false"
  48980. static="false" final="false" visibility="public"
  48981. deprecated="not deprecated">
  48982. <param name="percent" type="int"/>
  48983. <doc>
  48984. <![CDATA[Expert: Set the maximum percentage of map tasks that can fail without the
  48985. job being aborted.
  48986. Each map task is executed a minimum of {@link #getMaxMapAttempts} attempts
  48987. before being declared as <i>failed</i>.
  48988. @param percent the maximum percentage of map tasks that can fail without
  48989. the job being aborted.]]>
  48990. </doc>
  48991. </method>
  48992. <method name="getMaxReduceTaskFailuresPercent" return="int"
  48993. abstract="false" native="false" synchronized="false"
  48994. static="false" final="false" visibility="public"
  48995. deprecated="not deprecated">
  48996. <doc>
  48997. <![CDATA[Get the maximum percentage of reduce tasks that can fail without
  48998. the job being aborted.
  48999. Each reduce task is executed a minimum of {@link #getMaxReduceAttempts()}
  49000. attempts before being declared as <i>failed</i>.
  49001. Defaults to <code>zero</code>, i.e. <i>any</i> failed reduce-task results
  49002. in the job being declared as {@link JobStatus#FAILED}.
  49003. @return the maximum percentage of reduce tasks that can fail without
  49004. the job being aborted.]]>
  49005. </doc>
  49006. </method>
  49007. <method name="setMaxReduceTaskFailuresPercent"
  49008. abstract="false" native="false" synchronized="false"
  49009. static="false" final="false" visibility="public"
  49010. deprecated="not deprecated">
  49011. <param name="percent" type="int"/>
  49012. <doc>
  49013. <![CDATA[Set the maximum percentage of reduce tasks that can fail without the job
  49014. being aborted.
  49015. Each reduce task is executed a minimum of {@link #getMaxReduceAttempts()}
  49016. attempts before being declared as <i>failed</i>.
  49017. @param percent the maximum percentage of reduce tasks that can fail without
  49018. the job being aborted.]]>
  49019. </doc>
  49020. </method>
  49021. <method name="setJobPriority"
  49022. abstract="false" native="false" synchronized="false"
  49023. static="false" final="false" visibility="public"
  49024. deprecated="not deprecated">
  49025. <param name="prio" type="org.apache.hadoop.mapred.JobPriority"/>
  49026. <doc>
  49027. <![CDATA[Set {@link JobPriority} for this job.
  49028. @param prio the {@link JobPriority} for this job.]]>
  49029. </doc>
  49030. </method>
  49031. <method name="getJobPriority" return="org.apache.hadoop.mapred.JobPriority"
  49032. abstract="false" native="false" synchronized="false"
  49033. static="false" final="false" visibility="public"
  49034. deprecated="not deprecated">
  49035. <doc>
  49036. <![CDATA[Get the {@link JobPriority} for this job.
  49037. @return the {@link JobPriority} for this job.]]>
  49038. </doc>
  49039. </method>
  49040. <method name="getProfileEnabled" return="boolean"
  49041. abstract="false" native="false" synchronized="false"
  49042. static="false" final="false" visibility="public"
  49043. deprecated="not deprecated">
  49044. <doc>
  49045. <![CDATA[Get whether the task profiling is enabled.
  49046. @return true if some tasks will be profiled]]>
  49047. </doc>
  49048. </method>
  49049. <method name="setProfileEnabled"
  49050. abstract="false" native="false" synchronized="false"
  49051. static="false" final="false" visibility="public"
  49052. deprecated="not deprecated">
  49053. <param name="newValue" type="boolean"/>
  49054. <doc>
  49055. <![CDATA[Set whether the system should collect profiler information for some of
  49056. the tasks in this job? The information is stored in the user log
  49057. directory.
  49058. @param newValue true means it should be gathered]]>
  49059. </doc>
  49060. </method>
  49061. <method name="getProfileParams" return="java.lang.String"
  49062. abstract="false" native="false" synchronized="false"
  49063. static="false" final="false" visibility="public"
  49064. deprecated="not deprecated">
  49065. <doc>
  49066. <![CDATA[Get the profiler configuration arguments.
  49067. The default value for this property is
  49068. "-agentlib:hprof=cpu=samples,heap=sites,force=n,thread=y,verbose=n,file=%s"
  49069. @return the parameters to pass to the task child to configure profiling]]>
  49070. </doc>
  49071. </method>
  49072. <method name="setProfileParams"
  49073. abstract="false" native="false" synchronized="false"
  49074. static="false" final="false" visibility="public"
  49075. deprecated="not deprecated">
  49076. <param name="value" type="java.lang.String"/>
  49077. <doc>
  49078. <![CDATA[Set the profiler configuration arguments. If the string contains a '%s' it
  49079. will be replaced with the name of the profiling output file when the task
  49080. runs.
  49081. This value is passed to the task child JVM on the command line.
  49082. @param value the configuration string]]>
  49083. </doc>
  49084. </method>
  49085. <method name="getProfileTaskRange" return="org.apache.hadoop.conf.Configuration.IntegerRanges"
  49086. abstract="false" native="false" synchronized="false"
  49087. static="false" final="false" visibility="public"
  49088. deprecated="not deprecated">
  49089. <param name="isMap" type="boolean"/>
  49090. <doc>
  49091. <![CDATA[Get the range of maps or reduces to profile.
  49092. @param isMap is the task a map?
  49093. @return the task ranges]]>
  49094. </doc>
  49095. </method>
  49096. <method name="setProfileTaskRange"
  49097. abstract="false" native="false" synchronized="false"
  49098. static="false" final="false" visibility="public"
  49099. deprecated="not deprecated">
  49100. <param name="isMap" type="boolean"/>
  49101. <param name="newValue" type="java.lang.String"/>
  49102. <doc>
  49103. <![CDATA[Set the ranges of maps or reduces to profile. setProfileEnabled(true)
  49104. must also be called.
  49105. @param newValue a set of integer ranges of the map ids]]>
  49106. </doc>
  49107. </method>
  49108. <method name="setMapDebugScript"
  49109. abstract="false" native="false" synchronized="false"
  49110. static="false" final="false" visibility="public"
  49111. deprecated="not deprecated">
  49112. <param name="mDbgScript" type="java.lang.String"/>
  49113. <doc>
  49114. <![CDATA[Set the debug script to run when the map tasks fail.
  49115. <p>The debug script can aid debugging of failed map tasks. The script is
  49116. given task's stdout, stderr, syslog, jobconf files as arguments.</p>
  49117. <p>The debug command, run on the node where the map failed, is:</p>
  49118. <p><pre><blockquote>
  49119. $script $stdout $stderr $syslog $jobconf.
  49120. </blockquote></pre></p>
  49121. <p> The script file is distributed through {@link DistributedCache}
  49122. APIs. The script needs to be symlinked. </p>
  49123. <p>Here is an example on how to submit a script
  49124. <p><blockquote><pre>
  49125. job.setMapDebugScript("./myscript");
  49126. DistributedCache.createSymlink(job);
  49127. DistributedCache.addCacheFile("/debug/scripts/myscript#myscript");
  49128. </pre></blockquote></p>
  49129. @param mDbgScript the script name]]>
  49130. </doc>
  49131. </method>
  49132. <method name="getMapDebugScript" return="java.lang.String"
  49133. abstract="false" native="false" synchronized="false"
  49134. static="false" final="false" visibility="public"
  49135. deprecated="not deprecated">
  49136. <doc>
  49137. <![CDATA[Get the map task's debug script.
  49138. @return the debug Script for the mapred job for failed map tasks.
  49139. @see #setMapDebugScript(String)]]>
  49140. </doc>
  49141. </method>
  49142. <method name="setReduceDebugScript"
  49143. abstract="false" native="false" synchronized="false"
  49144. static="false" final="false" visibility="public"
  49145. deprecated="not deprecated">
  49146. <param name="rDbgScript" type="java.lang.String"/>
  49147. <doc>
  49148. <![CDATA[Set the debug script to run when the reduce tasks fail.
  49149. <p>The debug script can aid debugging of failed reduce tasks. The script
  49150. is given task's stdout, stderr, syslog, jobconf files as arguments.</p>
  49151. <p>The debug command, run on the node where the map failed, is:</p>
  49152. <p><pre><blockquote>
  49153. $script $stdout $stderr $syslog $jobconf.
  49154. </blockquote></pre></p>
  49155. <p> The script file is distributed through {@link DistributedCache}
  49156. APIs. The script file needs to be symlinked </p>
  49157. <p>Here is an example on how to submit a script
  49158. <p><blockquote><pre>
  49159. job.setReduceDebugScript("./myscript");
  49160. DistributedCache.createSymlink(job);
  49161. DistributedCache.addCacheFile("/debug/scripts/myscript#myscript");
  49162. </pre></blockquote></p>
  49163. @param rDbgScript the script name]]>
  49164. </doc>
  49165. </method>
  49166. <method name="getReduceDebugScript" return="java.lang.String"
  49167. abstract="false" native="false" synchronized="false"
  49168. static="false" final="false" visibility="public"
  49169. deprecated="not deprecated">
  49170. <doc>
  49171. <![CDATA[Get the reduce task's debug Script
  49172. @return the debug script for the mapred job for failed reduce tasks.
  49173. @see #setReduceDebugScript(String)]]>
  49174. </doc>
  49175. </method>
  49176. <method name="getJobEndNotificationURI" return="java.lang.String"
  49177. abstract="false" native="false" synchronized="false"
  49178. static="false" final="false" visibility="public"
  49179. deprecated="not deprecated">
  49180. <doc>
  49181. <![CDATA[Get the uri to be invoked in-order to send a notification after the job
  49182. has completed (success/failure).
  49183. @return the job end notification uri, <code>null</code> if it hasn't
  49184. been set.
  49185. @see #setJobEndNotificationURI(String)]]>
  49186. </doc>
  49187. </method>
  49188. <method name="setJobEndNotificationURI"
  49189. abstract="false" native="false" synchronized="false"
  49190. static="false" final="false" visibility="public"
  49191. deprecated="not deprecated">
  49192. <param name="uri" type="java.lang.String"/>
  49193. <doc>
  49194. <![CDATA[Set the uri to be invoked in-order to send a notification after the job
  49195. has completed (success/failure).
  49196. <p>The uri can contain 2 special parameters: <tt>$jobId</tt> and
  49197. <tt>$jobStatus</tt>. Those, if present, are replaced by the job's
  49198. identifier and completion-status respectively.</p>
  49199. <p>This is typically used by application-writers to implement chaining of
  49200. Map-Reduce jobs in an <i>asynchronous manner</i>.</p>
  49201. @param uri the job end notification uri
  49202. @see JobStatus
  49203. @see <a href="{@docRoot}/org/apache/hadoop/mapred/JobClient.html#
  49204. JobCompletionAndChaining">Job Completion and Chaining</a>]]>
  49205. </doc>
  49206. </method>
  49207. <method name="getJobLocalDir" return="java.lang.String"
  49208. abstract="false" native="false" synchronized="false"
  49209. static="false" final="false" visibility="public"
  49210. deprecated="not deprecated">
  49211. <doc>
  49212. <![CDATA[Get job-specific shared directory for use as scratch space
  49213. <p>
  49214. When a job starts, a shared directory is created at location
  49215. <code>
  49216. ${mapred.local.dir}/taskTracker/$user/jobcache/$jobid/work/ </code>.
  49217. This directory is exposed to the users through
  49218. <code>job.local.dir </code>.
  49219. So, the tasks can use this space
  49220. as scratch space and share files among them. </p>
  49221. This value is available as System property also.
  49222. @return The localized job specific shared directory]]>
  49223. </doc>
  49224. </method>
  49225. <method name="getMemoryForMapTask" return="long"
  49226. abstract="false" native="false" synchronized="false"
  49227. static="false" final="false" visibility="public"
  49228. deprecated="not deprecated">
  49229. <doc>
  49230. <![CDATA[Get memory required to run a map task of the job, in MB.
  49231. If a value is specified in the configuration, it is returned.
  49232. Else, it returns {@link #DISABLED_MEMORY_LIMIT}.
  49233. <p/>
  49234. For backward compatibility, if the job configuration sets the
  49235. key {@link #MAPRED_TASK_MAXVMEM_PROPERTY} to a value different
  49236. from {@link #DISABLED_MEMORY_LIMIT}, that value will be used
  49237. after converting it from bytes to MB.
  49238. @return memory required to run a map task of the job, in MB,
  49239. or {@link #DISABLED_MEMORY_LIMIT} if unset.]]>
  49240. </doc>
  49241. </method>
  49242. <method name="setMemoryForMapTask"
  49243. abstract="false" native="false" synchronized="false"
  49244. static="false" final="false" visibility="public"
  49245. deprecated="not deprecated">
  49246. <param name="mem" type="long"/>
  49247. </method>
  49248. <method name="getMemoryForReduceTask" return="long"
  49249. abstract="false" native="false" synchronized="false"
  49250. static="false" final="false" visibility="public"
  49251. deprecated="not deprecated">
  49252. <doc>
  49253. <![CDATA[Get memory required to run a reduce task of the job, in MB.
  49254. If a value is specified in the configuration, it is returned.
  49255. Else, it returns {@link #DISABLED_MEMORY_LIMIT}.
  49256. <p/>
  49257. For backward compatibility, if the job configuration sets the
  49258. key {@link #MAPRED_TASK_MAXVMEM_PROPERTY} to a value different
  49259. from {@link #DISABLED_MEMORY_LIMIT}, that value will be used
  49260. after converting it from bytes to MB.
  49261. @return memory required to run a reduce task of the job, in MB,
  49262. or {@link #DISABLED_MEMORY_LIMIT} if unset.]]>
  49263. </doc>
  49264. </method>
  49265. <method name="setMemoryForReduceTask"
  49266. abstract="false" native="false" synchronized="false"
  49267. static="false" final="false" visibility="public"
  49268. deprecated="not deprecated">
  49269. <param name="mem" type="long"/>
  49270. </method>
  49271. <method name="getQueueName" return="java.lang.String"
  49272. abstract="false" native="false" synchronized="false"
  49273. static="false" final="false" visibility="public"
  49274. deprecated="not deprecated">
  49275. <doc>
  49276. <![CDATA[Return the name of the queue to which this job is submitted.
  49277. Defaults to 'default'.
  49278. @return name of the queue]]>
  49279. </doc>
  49280. </method>
  49281. <method name="setQueueName"
  49282. abstract="false" native="false" synchronized="false"
  49283. static="false" final="false" visibility="public"
  49284. deprecated="not deprecated">
  49285. <param name="queueName" type="java.lang.String"/>
  49286. <doc>
  49287. <![CDATA[Set the name of the queue to which this job should be submitted.
  49288. @param queueName Name of the queue]]>
  49289. </doc>
  49290. </method>
  49291. <method name="normalizeMemoryConfigValue" return="long"
  49292. abstract="false" native="false" synchronized="false"
  49293. static="true" final="false" visibility="public"
  49294. deprecated="not deprecated">
  49295. <param name="val" type="long"/>
  49296. <doc>
  49297. <![CDATA[Normalize the negative values in configuration
  49298. @param val
  49299. @return normalized value]]>
  49300. </doc>
  49301. </method>
  49302. <method name="getMaxVirtualMemoryForTask" return="long"
  49303. abstract="false" native="false" synchronized="false"
  49304. static="false" final="false" visibility="public"
  49305. deprecated="Use {@link #getMemoryForMapTask()} and
  49306. {@link #getMemoryForReduceTask()}">
  49307. <doc>
  49308. <![CDATA[Get the memory required to run a task of this job, in bytes. See
  49309. {@link #MAPRED_TASK_MAXVMEM_PROPERTY}
  49310. <p/>
  49311. This method is deprecated. Now, different memory limits can be
  49312. set for map and reduce tasks of a job, in MB.
  49313. <p/>
  49314. For backward compatibility, if the job configuration sets the
  49315. key {@link #MAPRED_TASK_MAXVMEM_PROPERTY} to a value different
  49316. from {@link #DISABLED_MEMORY_LIMIT}, that value is returned.
  49317. Otherwise, this method will return the larger of the values returned by
  49318. {@link #getMemoryForMapTask()} and {@link #getMemoryForReduceTask()}
  49319. after converting them into bytes.
  49320. @return Memory required to run a task of this job, in bytes,
  49321. or {@link #DISABLED_MEMORY_LIMIT}, if unset.
  49322. @see #setMaxVirtualMemoryForTask(long)
  49323. @deprecated Use {@link #getMemoryForMapTask()} and
  49324. {@link #getMemoryForReduceTask()}]]>
  49325. </doc>
  49326. </method>
  49327. <method name="setMaxVirtualMemoryForTask"
  49328. abstract="false" native="false" synchronized="false"
  49329. static="false" final="false" visibility="public"
  49330. deprecated="Use {@link #setMemoryForMapTask(long mem)} and
  49331. Use {@link #setMemoryForReduceTask(long mem)}">
  49332. <param name="vmem" type="long"/>
  49333. <doc>
  49334. <![CDATA[Set the maximum amount of memory any task of this job can use. See
  49335. {@link #MAPRED_TASK_MAXVMEM_PROPERTY}
  49336. <p/>
  49337. mapred.task.maxvmem is split into
  49338. mapred.job.map.memory.mb
  49339. and mapred.job.map.memory.mb,mapred
  49340. each of the new key are set
  49341. as mapred.task.maxvmem / 1024
  49342. as new values are in MB
  49343. @param vmem Maximum amount of virtual memory in bytes any task of this job
  49344. can use.
  49345. @see #getMaxVirtualMemoryForTask()
  49346. @deprecated
  49347. Use {@link #setMemoryForMapTask(long mem)} and
  49348. Use {@link #setMemoryForReduceTask(long mem)}]]>
  49349. </doc>
  49350. </method>
  49351. <method name="getMaxPhysicalMemoryForTask" return="long"
  49352. abstract="false" native="false" synchronized="false"
  49353. static="false" final="false" visibility="public"
  49354. deprecated="this variable is deprecated and nolonger in use.">
  49355. <doc>
  49356. <![CDATA[@deprecated this variable is deprecated and nolonger in use.]]>
  49357. </doc>
  49358. </method>
  49359. <method name="setMaxPhysicalMemoryForTask"
  49360. abstract="false" native="false" synchronized="false"
  49361. static="false" final="false" visibility="public"
  49362. deprecated="not deprecated">
  49363. <param name="mem" type="long"/>
  49364. </method>
  49365. <field name="MAPRED_TASK_MAXVMEM_PROPERTY" type="java.lang.String"
  49366. transient="false" volatile="false"
  49367. static="true" final="true" visibility="public"
  49368. deprecated="Use {@link #MAPRED_JOB_MAP_MEMORY_MB_PROPERTY} and
  49369. {@link #MAPRED_JOB_REDUCE_MEMORY_MB_PROPERTY}">
  49370. <doc>
  49371. <![CDATA[@deprecated Use {@link #MAPRED_JOB_MAP_MEMORY_MB_PROPERTY} and
  49372. {@link #MAPRED_JOB_REDUCE_MEMORY_MB_PROPERTY}]]>
  49373. </doc>
  49374. </field>
  49375. <field name="UPPER_LIMIT_ON_TASK_VMEM_PROPERTY" type="java.lang.String"
  49376. transient="false" volatile="false"
  49377. static="true" final="true" visibility="public"
  49378. deprecated="deprecated, no comment">
  49379. <doc>
  49380. <![CDATA[@deprecated]]>
  49381. </doc>
  49382. </field>
  49383. <field name="MAPRED_TASK_DEFAULT_MAXVMEM_PROPERTY" type="java.lang.String"
  49384. transient="false" volatile="false"
  49385. static="true" final="true" visibility="public"
  49386. deprecated="deprecated, no comment">
  49387. <doc>
  49388. <![CDATA[@deprecated]]>
  49389. </doc>
  49390. </field>
  49391. <field name="MAPRED_TASK_MAXPMEM_PROPERTY" type="java.lang.String"
  49392. transient="false" volatile="false"
  49393. static="true" final="true" visibility="public"
  49394. deprecated="deprecated, no comment">
  49395. <doc>
  49396. <![CDATA[@deprecated]]>
  49397. </doc>
  49398. </field>
  49399. <field name="DISABLED_MEMORY_LIMIT" type="long"
  49400. transient="false" volatile="false"
  49401. static="true" final="true" visibility="public"
  49402. deprecated="not deprecated">
  49403. <doc>
  49404. <![CDATA[A value which if set for memory related configuration options,
  49405. indicates that the options are turned off.]]>
  49406. </doc>
  49407. </field>
  49408. <field name="MAPRED_LOCAL_DIR_PROPERTY" type="java.lang.String"
  49409. transient="false" volatile="false"
  49410. static="true" final="true" visibility="public"
  49411. deprecated="not deprecated">
  49412. <doc>
  49413. <![CDATA[Property name for the configuration property mapred.local.dir]]>
  49414. </doc>
  49415. </field>
  49416. <field name="DEFAULT_QUEUE_NAME" type="java.lang.String"
  49417. transient="false" volatile="false"
  49418. static="true" final="true" visibility="public"
  49419. deprecated="not deprecated">
  49420. <doc>
  49421. <![CDATA[Name of the queue to which jobs will be submitted, if no queue
  49422. name is mentioned.]]>
  49423. </doc>
  49424. </field>
  49425. <field name="MAPRED_JOB_MAP_MEMORY_MB_PROPERTY" type="java.lang.String"
  49426. transient="false" volatile="false"
  49427. static="true" final="true" visibility="public"
  49428. deprecated="not deprecated">
  49429. </field>
  49430. <field name="MAPRED_JOB_REDUCE_MEMORY_MB_PROPERTY" type="java.lang.String"
  49431. transient="false" volatile="false"
  49432. static="true" final="true" visibility="public"
  49433. deprecated="not deprecated">
  49434. </field>
  49435. <field name="MAPRED_TASK_JAVA_OPTS" type="java.lang.String"
  49436. transient="false" volatile="false"
  49437. static="true" final="true" visibility="public"
  49438. deprecated="Use {@link #MAPRED_MAP_TASK_JAVA_OPTS} or
  49439. {@link #MAPRED_REDUCE_TASK_JAVA_OPTS}">
  49440. <doc>
  49441. <![CDATA[Configuration key to set the java command line options for the child
  49442. map and reduce tasks.
  49443. Java opts for the task tracker child processes.
  49444. The following symbol, if present, will be interpolated: @taskid@.
  49445. It is replaced by current TaskID. Any other occurrences of '@' will go
  49446. unchanged.
  49447. For example, to enable verbose gc logging to a file named for the taskid in
  49448. /tmp and to set the heap maximum to be a gigabyte, pass a 'value' of:
  49449. -Xmx1024m -verbose:gc -Xloggc:/tmp/@taskid@.gc
  49450. The configuration variable {@link #MAPRED_TASK_ULIMIT} can be used to
  49451. control the maximum virtual memory of the child processes.
  49452. The configuration variable {@link #MAPRED_TASK_ENV} can be used to pass
  49453. other environment variables to the child processes.
  49454. @deprecated Use {@link #MAPRED_MAP_TASK_JAVA_OPTS} or
  49455. {@link #MAPRED_REDUCE_TASK_JAVA_OPTS}]]>
  49456. </doc>
  49457. </field>
  49458. <field name="MAPRED_MAP_TASK_JAVA_OPTS" type="java.lang.String"
  49459. transient="false" volatile="false"
  49460. static="true" final="true" visibility="public"
  49461. deprecated="not deprecated">
  49462. <doc>
  49463. <![CDATA[Configuration key to set the java command line options for the map tasks.
  49464. Java opts for the task tracker child map processes.
  49465. The following symbol, if present, will be interpolated: @taskid@.
  49466. It is replaced by current TaskID. Any other occurrences of '@' will go
  49467. unchanged.
  49468. For example, to enable verbose gc logging to a file named for the taskid in
  49469. /tmp and to set the heap maximum to be a gigabyte, pass a 'value' of:
  49470. -Xmx1024m -verbose:gc -Xloggc:/tmp/@taskid@.gc
  49471. The configuration variable {@link #MAPRED_MAP_TASK_ULIMIT} can be used to
  49472. control the maximum virtual memory of the map processes.
  49473. The configuration variable {@link #MAPRED_MAP_TASK_ENV} can be used to pass
  49474. other environment variables to the map processes.]]>
  49475. </doc>
  49476. </field>
  49477. <field name="MAPRED_REDUCE_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 reduce tasks.
  49483. Java opts for the task tracker child reduce 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_REDUCE_TASK_ULIMIT} can be used
  49491. to control the maximum virtual memory of the reduce processes.
  49492. The configuration variable {@link #MAPRED_REDUCE_TASK_ENV} can be used to
  49493. pass process environment variables to the reduce processes.]]>
  49494. </doc>
  49495. </field>
  49496. <field name="DEFAULT_MAPRED_TASK_JAVA_OPTS" type="java.lang.String"
  49497. transient="false" volatile="false"
  49498. static="true" final="true" visibility="public"
  49499. deprecated="not deprecated">
  49500. </field>
  49501. <field name="MAPRED_TASK_ULIMIT" type="java.lang.String"
  49502. transient="false" volatile="false"
  49503. static="true" final="true" visibility="public"
  49504. deprecated="Use {@link #MAPRED_MAP_TASK_ULIMIT} or
  49505. {@link #MAPRED_REDUCE_TASK_ULIMIT}">
  49506. <doc>
  49507. <![CDATA[Configuration key to set the maximum virutal memory available to the child
  49508. map and reduce tasks (in kilo-bytes).
  49509. Note: This must be greater than or equal to the -Xmx passed to the JavaVM
  49510. via {@link #MAPRED_TASK_JAVA_OPTS}, else the VM might not start.
  49511. @deprecated Use {@link #MAPRED_MAP_TASK_ULIMIT} or
  49512. {@link #MAPRED_REDUCE_TASK_ULIMIT}]]>
  49513. </doc>
  49514. </field>
  49515. <field name="MAPRED_MAP_TASK_ULIMIT" type="java.lang.String"
  49516. transient="false" volatile="false"
  49517. static="true" final="true" visibility="public"
  49518. deprecated="not deprecated">
  49519. <doc>
  49520. <![CDATA[Configuration key to set the maximum virutal memory available to the
  49521. map tasks (in kilo-bytes).
  49522. Note: This must be greater than or equal to the -Xmx passed to the JavaVM
  49523. via {@link #MAPRED_MAP_TASK_JAVA_OPTS}, else the VM might not start.]]>
  49524. </doc>
  49525. </field>
  49526. <field name="MAPRED_REDUCE_TASK_ULIMIT" type="java.lang.String"
  49527. transient="false" volatile="false"
  49528. static="true" final="true" visibility="public"
  49529. deprecated="not deprecated">
  49530. <doc>
  49531. <![CDATA[Configuration key to set the maximum virutal memory available to the
  49532. reduce tasks (in kilo-bytes).
  49533. Note: This must be greater than or equal to the -Xmx passed to the JavaVM
  49534. via {@link #MAPRED_REDUCE_TASK_JAVA_OPTS}, else the VM might not start.]]>
  49535. </doc>
  49536. </field>
  49537. <field name="MAPRED_TASK_ENV" type="java.lang.String"
  49538. transient="false" volatile="false"
  49539. static="true" final="true" visibility="public"
  49540. deprecated="Use {@link #MAPRED_MAP_TASK_ENV} or
  49541. {@link #MAPRED_REDUCE_TASK_ENV}">
  49542. <doc>
  49543. <![CDATA[Configuration key to set the environment of the child map/reduce tasks.
  49544. The format of the value is <code>k1=v1,k2=v2</code>. Further it can
  49545. reference existing environment variables via <code>$key</code>.
  49546. Example:
  49547. <ul>
  49548. <li> A=foo - This will set the env variable A to foo. </li>
  49549. <li> B=$X:c This is inherit tasktracker's X env variable. </li>
  49550. </ul>
  49551. @deprecated Use {@link #MAPRED_MAP_TASK_ENV} or
  49552. {@link #MAPRED_REDUCE_TASK_ENV}]]>
  49553. </doc>
  49554. </field>
  49555. <field name="MAPRED_MAP_TASK_ENV" type="java.lang.String"
  49556. transient="false" volatile="false"
  49557. static="true" final="true" visibility="public"
  49558. deprecated="not deprecated">
  49559. <doc>
  49560. <![CDATA[Configuration key to set the maximum virutal memory available to the
  49561. map tasks.
  49562. The format of the value is <code>k1=v1,k2=v2</code>. Further it can
  49563. reference existing environment variables via <code>$key</code>.
  49564. Example:
  49565. <ul>
  49566. <li> A=foo - This will set the env variable A to foo. </li>
  49567. <li> B=$X:c This is inherit tasktracker's X env variable. </li>
  49568. </ul>]]>
  49569. </doc>
  49570. </field>
  49571. <field name="MAPRED_REDUCE_TASK_ENV" type="java.lang.String"
  49572. transient="false" volatile="false"
  49573. static="true" final="true" visibility="public"
  49574. deprecated="not deprecated">
  49575. <doc>
  49576. <![CDATA[Configuration key to set the maximum virutal memory available to the
  49577. reduce tasks.
  49578. The format of the value is <code>k1=v1,k2=v2</code>. Further it can
  49579. reference existing environment variables via <code>$key</code>.
  49580. Example:
  49581. <ul>
  49582. <li> A=foo - This will set the env variable A to foo. </li>
  49583. <li> B=$X:c This is inherit tasktracker's X env variable. </li>
  49584. </ul>]]>
  49585. </doc>
  49586. </field>
  49587. <field name="WORKFLOW_ID" type="java.lang.String"
  49588. transient="false" volatile="false"
  49589. static="true" final="true" visibility="public"
  49590. deprecated="not deprecated">
  49591. </field>
  49592. <field name="WORKFLOW_NAME" type="java.lang.String"
  49593. transient="false" volatile="false"
  49594. static="true" final="true" visibility="public"
  49595. deprecated="not deprecated">
  49596. </field>
  49597. <field name="WORKFLOW_NODE_NAME" type="java.lang.String"
  49598. transient="false" volatile="false"
  49599. static="true" final="true" visibility="public"
  49600. deprecated="not deprecated">
  49601. </field>
  49602. <field name="WORKFLOW_ADJACENCY_PREFIX_STRING" type="java.lang.String"
  49603. transient="false" volatile="false"
  49604. static="true" final="true" visibility="public"
  49605. deprecated="not deprecated">
  49606. </field>
  49607. <field name="WORKFLOW_ADJACENCY_PREFIX_PATTERN" type="java.lang.String"
  49608. transient="false" volatile="false"
  49609. static="true" final="true" visibility="public"
  49610. deprecated="not deprecated">
  49611. </field>
  49612. <field name="WORKFLOW_TAGS" type="java.lang.String"
  49613. transient="false" volatile="false"
  49614. static="true" final="true" visibility="public"
  49615. deprecated="not deprecated">
  49616. </field>
  49617. <field name="MAPREDUCE_RECOVER_JOB" type="java.lang.String"
  49618. transient="false" volatile="false"
  49619. static="true" final="true" visibility="public"
  49620. deprecated="not deprecated">
  49621. </field>
  49622. <field name="DEFAULT_MAPREDUCE_RECOVER_JOB" type="boolean"
  49623. transient="false" volatile="false"
  49624. static="true" final="true" visibility="public"
  49625. deprecated="not deprecated">
  49626. </field>
  49627. <doc>
  49628. <![CDATA[A map/reduce job configuration.
  49629. <p><code>JobConf</code> is the primary interface for a user to describe a
  49630. map-reduce job to the Hadoop framework for execution. The framework tries to
  49631. faithfully execute the job as-is described by <code>JobConf</code>, however:
  49632. <ol>
  49633. <li>
  49634. Some configuration parameters might have been marked as
  49635. <a href="{@docRoot}/org/apache/hadoop/conf/Configuration.html#FinalParams">
  49636. final</a> by administrators and hence cannot be altered.
  49637. </li>
  49638. <li>
  49639. While some job parameters are straight-forward to set
  49640. (e.g. {@link #setNumReduceTasks(int)}), some parameters interact subtly
  49641. rest of the framework and/or job-configuration and is relatively more
  49642. complex for the user to control finely (e.g. {@link #setNumMapTasks(int)}).
  49643. </li>
  49644. </ol></p>
  49645. <p><code>JobConf</code> typically specifies the {@link Mapper}, combiner
  49646. (if any), {@link Partitioner}, {@link Reducer}, {@link InputFormat} and
  49647. {@link OutputFormat} implementations to be used etc.
  49648. <p>Optionally <code>JobConf</code> is used to specify other advanced facets
  49649. of the job such as <code>Comparator</code>s to be used, files to be put in
  49650. the {@link DistributedCache}, whether or not intermediate and/or job outputs
  49651. are to be compressed (and how), debugability via user-provided scripts
  49652. ( {@link #setMapDebugScript(String)}/{@link #setReduceDebugScript(String)}),
  49653. for doing post-processing on task logs, task's stdout, stderr, syslog.
  49654. and etc.</p>
  49655. <p>Here is an example on how to configure a job via <code>JobConf</code>:</p>
  49656. <p><blockquote><pre>
  49657. // Create a new JobConf
  49658. JobConf job = new JobConf(new Configuration(), MyJob.class);
  49659. // Specify various job-specific parameters
  49660. job.setJobName("myjob");
  49661. FileInputFormat.setInputPaths(job, new Path("in"));
  49662. FileOutputFormat.setOutputPath(job, new Path("out"));
  49663. job.setMapperClass(MyJob.MyMapper.class);
  49664. job.setCombinerClass(MyJob.MyReducer.class);
  49665. job.setReducerClass(MyJob.MyReducer.class);
  49666. job.setInputFormat(SequenceFileInputFormat.class);
  49667. job.setOutputFormat(SequenceFileOutputFormat.class);
  49668. </pre></blockquote></p>
  49669. @see JobClient
  49670. @see ClusterStatus
  49671. @see Tool
  49672. @see DistributedCache]]>
  49673. </doc>
  49674. </class>
  49675. <!-- end class org.apache.hadoop.mapred.JobConf -->
  49676. <!-- start interface org.apache.hadoop.mapred.JobConfigurable -->
  49677. <interface name="JobConfigurable" abstract="true"
  49678. static="false" final="false" visibility="public"
  49679. deprecated="not deprecated">
  49680. <method name="configure"
  49681. abstract="false" native="false" synchronized="false"
  49682. static="false" final="false" visibility="public"
  49683. deprecated="not deprecated">
  49684. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  49685. <doc>
  49686. <![CDATA[Initializes a new instance from a {@link JobConf}.
  49687. @param job the configuration]]>
  49688. </doc>
  49689. </method>
  49690. <doc>
  49691. <![CDATA[That what may be configured.]]>
  49692. </doc>
  49693. </interface>
  49694. <!-- end interface org.apache.hadoop.mapred.JobConfigurable -->
  49695. <!-- start class org.apache.hadoop.mapred.JobContext -->
  49696. <class name="JobContext" extends="org.apache.hadoop.mapreduce.JobContext"
  49697. abstract="false"
  49698. static="false" final="false" visibility="public"
  49699. deprecated="not deprecated">
  49700. <method name="getJobConf" return="org.apache.hadoop.mapred.JobConf"
  49701. abstract="false" native="false" synchronized="false"
  49702. static="false" final="false" visibility="public"
  49703. deprecated="not deprecated">
  49704. <doc>
  49705. <![CDATA[Get the job Configuration
  49706. @return JobConf]]>
  49707. </doc>
  49708. </method>
  49709. <method name="getProgressible" return="org.apache.hadoop.util.Progressable"
  49710. abstract="false" native="false" synchronized="false"
  49711. static="false" final="false" visibility="public"
  49712. deprecated="not deprecated">
  49713. <doc>
  49714. <![CDATA[Get the progress mechanism for reporting progress.
  49715. @return progress mechanism]]>
  49716. </doc>
  49717. </method>
  49718. </class>
  49719. <!-- end class org.apache.hadoop.mapred.JobContext -->
  49720. <!-- start class org.apache.hadoop.mapred.JobEndNotifier -->
  49721. <class name="JobEndNotifier" extends="java.lang.Object"
  49722. abstract="false"
  49723. static="false" final="false" visibility="public"
  49724. deprecated="not deprecated">
  49725. <constructor name="JobEndNotifier"
  49726. static="false" final="false" visibility="public"
  49727. deprecated="not deprecated">
  49728. </constructor>
  49729. <method name="startNotifier"
  49730. abstract="false" native="false" synchronized="false"
  49731. static="true" final="false" visibility="public"
  49732. deprecated="not deprecated">
  49733. </method>
  49734. <method name="stopNotifier"
  49735. abstract="false" native="false" synchronized="false"
  49736. static="true" final="false" visibility="public"
  49737. deprecated="not deprecated">
  49738. </method>
  49739. <method name="registerNotification"
  49740. abstract="false" native="false" synchronized="false"
  49741. static="true" final="false" visibility="public"
  49742. deprecated="not deprecated">
  49743. <param name="jobConf" type="org.apache.hadoop.mapred.JobConf"/>
  49744. <param name="status" type="org.apache.hadoop.mapred.JobStatus"/>
  49745. </method>
  49746. <method name="localRunnerNotification"
  49747. abstract="false" native="false" synchronized="false"
  49748. static="true" final="false" visibility="public"
  49749. deprecated="not deprecated">
  49750. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  49751. <param name="status" type="org.apache.hadoop.mapred.JobStatus"/>
  49752. </method>
  49753. <field name="MAPREDUCE_JOBEND_NOTIFICATION_TIMEOUT_DEFAULT" type="int"
  49754. transient="false" volatile="false"
  49755. static="true" final="true" visibility="public"
  49756. deprecated="not deprecated">
  49757. </field>
  49758. </class>
  49759. <!-- end class org.apache.hadoop.mapred.JobEndNotifier -->
  49760. <!-- start class org.apache.hadoop.mapred.JobHistory -->
  49761. <class name="JobHistory" extends="java.lang.Object"
  49762. abstract="false"
  49763. static="false" final="false" visibility="public"
  49764. deprecated="not deprecated">
  49765. <constructor name="JobHistory"
  49766. static="false" final="false" visibility="public"
  49767. deprecated="not deprecated">
  49768. </constructor>
  49769. <method name="getHistoryFilePath" return="java.lang.String"
  49770. abstract="false" native="false" synchronized="false"
  49771. static="true" final="false" visibility="public"
  49772. deprecated="not deprecated">
  49773. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  49774. <doc>
  49775. <![CDATA[Given the job id, return the history file path from the cache]]>
  49776. </doc>
  49777. </method>
  49778. <method name="init"
  49779. abstract="false" native="false" synchronized="false"
  49780. static="true" final="false" visibility="public"
  49781. deprecated="not deprecated">
  49782. <param name="jobTracker" type="org.apache.hadoop.mapred.JobTracker"/>
  49783. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  49784. <param name="hostname" type="java.lang.String"/>
  49785. <param name="jobTrackerStartTime" type="long"/>
  49786. <exception name="IOException" type="java.io.IOException"/>
  49787. <doc>
  49788. <![CDATA[Initialize JobHistory files.
  49789. @param conf Jobconf of the job tracker.
  49790. @param hostname jobtracker's hostname
  49791. @param jobTrackerStartTime jobtracker's start time]]>
  49792. </doc>
  49793. </method>
  49794. <method name="parseHistoryFromFS"
  49795. abstract="false" native="false" synchronized="false"
  49796. static="true" final="false" visibility="public"
  49797. deprecated="not deprecated">
  49798. <param name="path" type="java.lang.String"/>
  49799. <param name="l" type="org.apache.hadoop.mapred.JobHistory.Listener"/>
  49800. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  49801. <exception name="IOException" type="java.io.IOException"/>
  49802. <doc>
  49803. <![CDATA[Parses history file and invokes Listener.handle() for
  49804. each line of history. It can be used for looking through history
  49805. files for specific items without having to keep whole history in memory.
  49806. @param path path to history file
  49807. @param l Listener for history events
  49808. @param fs FileSystem where history file is present
  49809. @throws IOException]]>
  49810. </doc>
  49811. </method>
  49812. <method name="getTaskLogsUrl" return="java.lang.String"
  49813. abstract="false" native="false" synchronized="false"
  49814. static="true" final="false" visibility="public"
  49815. deprecated="not deprecated">
  49816. <param name="attempt" type="org.apache.hadoop.mapred.JobHistory.TaskAttempt"/>
  49817. <doc>
  49818. <![CDATA[Return the TaskLogsUrl of a particular TaskAttempt
  49819. @param attempt
  49820. @return the taskLogsUrl. null if http-port or tracker-name or
  49821. task-attempt-id are unavailable.]]>
  49822. </doc>
  49823. </method>
  49824. <field name="LOG" type="org.apache.commons.logging.Log"
  49825. transient="false" volatile="false"
  49826. static="true" final="true" visibility="public"
  49827. deprecated="not deprecated">
  49828. </field>
  49829. <field name="JOB_NAME_TRIM_LENGTH" type="int"
  49830. transient="false" volatile="false"
  49831. static="true" final="true" visibility="public"
  49832. deprecated="not deprecated">
  49833. </field>
  49834. <field name="DONEDIR_FS" type="org.apache.hadoop.fs.FileSystem"
  49835. transient="false" volatile="false"
  49836. static="true" final="false" visibility="protected"
  49837. deprecated="not deprecated">
  49838. </field>
  49839. <field name="DONE" type="org.apache.hadoop.fs.Path"
  49840. transient="false" volatile="false"
  49841. static="true" final="false" visibility="protected"
  49842. deprecated="not deprecated">
  49843. </field>
  49844. <field name="JOBHISTORY_FILENAME_REGEX" type="java.util.regex.Pattern"
  49845. transient="false" volatile="false"
  49846. static="true" final="true" visibility="public"
  49847. deprecated="not deprecated">
  49848. </field>
  49849. <field name="CONF_FILENAME_REGEX" type="java.util.regex.Pattern"
  49850. transient="false" volatile="false"
  49851. static="true" final="true" visibility="public"
  49852. deprecated="not deprecated">
  49853. </field>
  49854. <doc>
  49855. <![CDATA[Provides methods for writing to and reading from job history.
  49856. Job History works in an append mode, JobHistory and its inner classes provide methods
  49857. to log job events.
  49858. JobHistory is split into multiple files, format of each file is plain text where each line
  49859. is of the format [type (key=value)*], where type identifies the type of the record.
  49860. Type maps to UID of one of the inner classes of this class.
  49861. Job history is maintained in a master index which contains star/stop times of all jobs with
  49862. a few other job level properties. Apart from this each job's history is maintained in a seperate history
  49863. file. name of job history files follows the format jobtrackerId_jobid
  49864. For parsing the job history it supports a listener based interface where each line is parsed
  49865. and passed to listener. The listener can create an object model of history or look for specific
  49866. events and discard rest of the history.
  49867. CHANGE LOG :
  49868. Version 0 : The history has the following format :
  49869. TAG KEY1="VALUE1" KEY2="VALUE2" and so on.
  49870. TAG can be Job, Task, MapAttempt or ReduceAttempt.
  49871. Note that a '"' is the line delimiter.
  49872. Version 1 : Changes the line delimiter to '.'
  49873. Values are now escaped for unambiguous parsing.
  49874. Added the Meta tag to store version info.]]>
  49875. </doc>
  49876. </class>
  49877. <!-- end class org.apache.hadoop.mapred.JobHistory -->
  49878. <!-- start class org.apache.hadoop.mapred.JobHistory.HistoryCleaner -->
  49879. <class name="JobHistory.HistoryCleaner" extends="java.lang.Object"
  49880. abstract="false"
  49881. static="true" final="false" visibility="public"
  49882. deprecated="not deprecated">
  49883. <implements name="java.lang.Runnable"/>
  49884. <constructor name="JobHistory.HistoryCleaner"
  49885. static="false" final="false" visibility="public"
  49886. deprecated="not deprecated">
  49887. </constructor>
  49888. <method name="run"
  49889. abstract="false" native="false" synchronized="false"
  49890. static="false" final="false" visibility="public"
  49891. deprecated="not deprecated">
  49892. <doc>
  49893. <![CDATA[Cleans up history data.]]>
  49894. </doc>
  49895. </method>
  49896. <method name="clean"
  49897. abstract="false" native="false" synchronized="false"
  49898. static="false" final="false" visibility="public"
  49899. deprecated="not deprecated">
  49900. <param name="now" type="long"/>
  49901. </method>
  49902. <doc>
  49903. <![CDATA[Delete history files older than one month. Update master index and remove all
  49904. jobs older than one month. Also if a job tracker has no jobs in last one month
  49905. remove reference to the job tracker.]]>
  49906. </doc>
  49907. </class>
  49908. <!-- end class org.apache.hadoop.mapred.JobHistory.HistoryCleaner -->
  49909. <!-- start class org.apache.hadoop.mapred.JobHistory.JobInfo -->
  49910. <class name="JobHistory.JobInfo" extends="org.apache.hadoop.mapred.JobHistory.KeyValuePair"
  49911. abstract="false"
  49912. static="true" final="false" visibility="public"
  49913. deprecated="not deprecated">
  49914. <constructor name="JobHistory.JobInfo" type="java.lang.String"
  49915. static="false" final="false" visibility="public"
  49916. deprecated="not deprecated">
  49917. <doc>
  49918. <![CDATA[Create new JobInfo]]>
  49919. </doc>
  49920. </constructor>
  49921. <method name="getAllTasks" return="java.util.Map"
  49922. abstract="false" native="false" synchronized="false"
  49923. static="false" final="false" visibility="public"
  49924. deprecated="not deprecated">
  49925. <doc>
  49926. <![CDATA[Returns all map and reduce tasks <taskid-Task>.]]>
  49927. </doc>
  49928. </method>
  49929. <method name="getJobACLs" return="java.util.Map"
  49930. abstract="false" native="false" synchronized="false"
  49931. static="false" final="false" visibility="public"
  49932. deprecated="not deprecated">
  49933. <doc>
  49934. <![CDATA[Get the job acls.
  49935. @return a {@link Map} from {@link JobACL} to {@link AccessControlList}]]>
  49936. </doc>
  49937. </method>
  49938. <method name="handle"
  49939. abstract="false" native="false" synchronized="true"
  49940. static="false" final="false" visibility="public"
  49941. deprecated="not deprecated">
  49942. <param name="values" type="java.util.Map"/>
  49943. </method>
  49944. <method name="getLocalJobFilePath" return="java.lang.String"
  49945. abstract="false" native="false" synchronized="false"
  49946. static="true" final="false" visibility="public"
  49947. deprecated="not deprecated">
  49948. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  49949. <doc>
  49950. <![CDATA[Get the path of the locally stored job file
  49951. @param jobId id of the job
  49952. @return the path of the job file on the local file system]]>
  49953. </doc>
  49954. </method>
  49955. <method name="encodeJobHistoryFilePath" return="java.lang.String"
  49956. abstract="false" native="false" synchronized="false"
  49957. static="true" final="false" visibility="public"
  49958. deprecated="not deprecated">
  49959. <param name="logFile" type="java.lang.String"/>
  49960. <exception name="IOException" type="java.io.IOException"/>
  49961. <doc>
  49962. <![CDATA[Helper function to encode the URL of the path of the job-history
  49963. log file.
  49964. @param logFile path of the job-history file
  49965. @return URL encoded path
  49966. @throws IOException]]>
  49967. </doc>
  49968. </method>
  49969. <method name="encodeJobHistoryFileName" return="java.lang.String"
  49970. abstract="false" native="false" synchronized="false"
  49971. static="true" final="false" visibility="public"
  49972. deprecated="not deprecated">
  49973. <param name="logFileName" type="java.lang.String"/>
  49974. <exception name="IOException" type="java.io.IOException"/>
  49975. <doc>
  49976. <![CDATA[Helper function to encode the URL of the filename of the job-history
  49977. log file.
  49978. @param logFileName file name of the job-history file
  49979. @return URL encoded filename
  49980. @throws IOException]]>
  49981. </doc>
  49982. </method>
  49983. <method name="decodeJobHistoryFileName" return="java.lang.String"
  49984. abstract="false" native="false" synchronized="false"
  49985. static="true" final="false" visibility="public"
  49986. deprecated="not deprecated">
  49987. <param name="logFileName" type="java.lang.String"/>
  49988. <exception name="IOException" type="java.io.IOException"/>
  49989. <doc>
  49990. <![CDATA[Helper function to decode the URL of the filename of the job-history
  49991. log file.
  49992. @param logFileName file name of the job-history file
  49993. @return URL decoded filename
  49994. @throws IOException]]>
  49995. </doc>
  49996. </method>
  49997. <method name="getUserName" return="java.lang.String"
  49998. abstract="false" native="false" synchronized="false"
  49999. static="true" final="false" visibility="public"
  50000. deprecated="not deprecated">
  50001. <param name="jobConf" type="org.apache.hadoop.mapred.JobConf"/>
  50002. <doc>
  50003. <![CDATA[Get the user name from the job conf]]>
  50004. </doc>
  50005. </method>
  50006. <method name="getWorkflowAdjacencies" return="java.lang.String"
  50007. abstract="false" native="false" synchronized="false"
  50008. static="true" final="false" visibility="public"
  50009. deprecated="not deprecated">
  50010. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  50011. <doc>
  50012. <![CDATA[Get the workflow adjacencies from the job conf
  50013. The string returned is of the form "key"="value" "key"="value" ...]]>
  50014. </doc>
  50015. </method>
  50016. <method name="getJobHistoryLogLocation" return="org.apache.hadoop.fs.Path"
  50017. abstract="false" native="false" synchronized="false"
  50018. static="true" final="false" visibility="public"
  50019. deprecated="not deprecated">
  50020. <param name="logFileName" type="java.lang.String"/>
  50021. <doc>
  50022. <![CDATA[Get the job history file path given the history filename]]>
  50023. </doc>
  50024. </method>
  50025. <method name="getJobHistoryLogLocationForUser" return="org.apache.hadoop.fs.Path"
  50026. abstract="false" native="false" synchronized="false"
  50027. static="true" final="false" visibility="public"
  50028. deprecated="not deprecated">
  50029. <param name="logFileName" type="java.lang.String"/>
  50030. <param name="jobConf" type="org.apache.hadoop.mapred.JobConf"/>
  50031. <doc>
  50032. <![CDATA[Get the user job history file path]]>
  50033. </doc>
  50034. </method>
  50035. <method name="getJobHistoryFileName" return="java.lang.String"
  50036. abstract="false" native="false" synchronized="true"
  50037. static="true" final="false" visibility="public"
  50038. deprecated="not deprecated">
  50039. <param name="jobConf" type="org.apache.hadoop.mapred.JobConf"/>
  50040. <param name="id" type="org.apache.hadoop.mapred.JobID"/>
  50041. <exception name="IOException" type="java.io.IOException"/>
  50042. <doc>
  50043. <![CDATA[Recover the job history filename from the history folder.
  50044. Uses the following pattern
  50045. $jt-hostname_[0-9]*_$job-id_$user_$job-name*
  50046. @param jobConf the job conf
  50047. @param id job id]]>
  50048. </doc>
  50049. </method>
  50050. <method name="recoverJobHistoryFile" return="org.apache.hadoop.fs.Path"
  50051. abstract="false" native="false" synchronized="true"
  50052. static="true" final="false" visibility="public"
  50053. deprecated="not deprecated">
  50054. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  50055. <param name="logFilePath" type="org.apache.hadoop.fs.Path"/>
  50056. <exception name="IOException" type="java.io.IOException"/>
  50057. <doc>
  50058. <![CDATA[Selects one of the two files generated as a part of recovery.
  50059. The thumb rule is that always select the oldest file.
  50060. This call makes sure that only one file is left in the end.
  50061. @param conf job conf
  50062. @param logFilePath Path of the log file
  50063. @throws IOException]]>
  50064. </doc>
  50065. </method>
  50066. <method name="logSubmitted"
  50067. abstract="false" native="false" synchronized="false"
  50068. static="true" final="false" visibility="public"
  50069. deprecated="Use
  50070. {@link #logSubmitted(JobID, JobConf, String, long, boolean)} instead.">
  50071. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  50072. <param name="jobConf" type="org.apache.hadoop.mapred.JobConf"/>
  50073. <param name="jobConfPath" type="java.lang.String"/>
  50074. <param name="submitTime" type="long"/>
  50075. <exception name="IOException" type="java.io.IOException"/>
  50076. <doc>
  50077. <![CDATA[Log job submitted event to history. Creates a new file in history
  50078. for the job. if history file creation fails, it disables history
  50079. for all other events.
  50080. @param jobId job id assigned by job tracker.
  50081. @param jobConf job conf of the job
  50082. @param jobConfPath path to job conf xml file in HDFS.
  50083. @param submitTime time when job tracker received the job
  50084. @throws IOException
  50085. @deprecated Use
  50086. {@link #logSubmitted(JobID, JobConf, String, long, boolean)} instead.]]>
  50087. </doc>
  50088. </method>
  50089. <method name="logSubmitted"
  50090. abstract="false" native="false" synchronized="false"
  50091. static="true" final="false" visibility="public"
  50092. deprecated="not deprecated">
  50093. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  50094. <param name="jobConf" type="org.apache.hadoop.mapred.JobConf"/>
  50095. <param name="jobConfPath" type="java.lang.String"/>
  50096. <param name="submitTime" type="long"/>
  50097. <param name="restarted" type="boolean"/>
  50098. <exception name="IOException" type="java.io.IOException"/>
  50099. </method>
  50100. <method name="logInited"
  50101. abstract="false" native="false" synchronized="false"
  50102. static="true" final="false" visibility="public"
  50103. deprecated="not deprecated">
  50104. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  50105. <param name="startTime" type="long"/>
  50106. <param name="totalMaps" type="int"/>
  50107. <param name="totalReduces" type="int"/>
  50108. <doc>
  50109. <![CDATA[Logs launch time of job.
  50110. @param jobId job id, assigned by jobtracker.
  50111. @param startTime start time of job.
  50112. @param totalMaps total maps assigned by jobtracker.
  50113. @param totalReduces total reduces.]]>
  50114. </doc>
  50115. </method>
  50116. <method name="logStarted"
  50117. abstract="false" native="false" synchronized="false"
  50118. static="true" final="false" visibility="public"
  50119. deprecated="Use {@link #logInited(JobID, long, int, int)} and
  50120. {@link #logStarted(JobID)}">
  50121. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  50122. <param name="startTime" type="long"/>
  50123. <param name="totalMaps" type="int"/>
  50124. <param name="totalReduces" type="int"/>
  50125. <doc>
  50126. <![CDATA[Logs the job as RUNNING.
  50127. @param jobId job id, assigned by jobtracker.
  50128. @param startTime start time of job.
  50129. @param totalMaps total maps assigned by jobtracker.
  50130. @param totalReduces total reduces.
  50131. @deprecated Use {@link #logInited(JobID, long, int, int)} and
  50132. {@link #logStarted(JobID)}]]>
  50133. </doc>
  50134. </method>
  50135. <method name="logStarted"
  50136. abstract="false" native="false" synchronized="false"
  50137. static="true" final="false" visibility="public"
  50138. deprecated="not deprecated">
  50139. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  50140. <doc>
  50141. <![CDATA[Logs job as running
  50142. @param jobId job id, assigned by jobtracker.]]>
  50143. </doc>
  50144. </method>
  50145. <method name="logFinished"
  50146. abstract="false" native="false" synchronized="false"
  50147. static="true" final="false" visibility="public"
  50148. deprecated="not deprecated">
  50149. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  50150. <param name="finishTime" type="long"/>
  50151. <param name="finishedMaps" type="int"/>
  50152. <param name="finishedReduces" type="int"/>
  50153. <param name="failedMaps" type="int"/>
  50154. <param name="failedReduces" type="int"/>
  50155. <param name="mapCounters" type="org.apache.hadoop.mapred.Counters"/>
  50156. <param name="reduceCounters" type="org.apache.hadoop.mapred.Counters"/>
  50157. <param name="counters" type="org.apache.hadoop.mapred.Counters"/>
  50158. <doc>
  50159. <![CDATA[Log job finished. closes the job file in history.
  50160. @param jobId job id, assigned by jobtracker.
  50161. @param finishTime finish time of job in ms.
  50162. @param finishedMaps no of maps successfully finished.
  50163. @param finishedReduces no of reduces finished sucessfully.
  50164. @param failedMaps no of failed map tasks.
  50165. @param failedReduces no of failed reduce tasks.
  50166. @param counters the counters from the job]]>
  50167. </doc>
  50168. </method>
  50169. <method name="logFailed"
  50170. abstract="false" native="false" synchronized="false"
  50171. static="true" final="false" visibility="public"
  50172. deprecated="not deprecated">
  50173. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  50174. <param name="timestamp" type="long"/>
  50175. <param name="finishedMaps" type="int"/>
  50176. <param name="finishedReduces" type="int"/>
  50177. <param name="failReason" type="java.lang.String"/>
  50178. <doc>
  50179. <![CDATA[Logs job failed event. Closes the job history log file.
  50180. @param jobid job id
  50181. @param timestamp time when job failure was detected in ms.
  50182. @param finishedMaps no finished map tasks.
  50183. @param finishedReduces no of finished reduce tasks.]]>
  50184. </doc>
  50185. </method>
  50186. <method name="logKilled"
  50187. abstract="false" native="false" synchronized="false"
  50188. static="true" final="false" visibility="public"
  50189. deprecated="not deprecated">
  50190. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  50191. <param name="timestamp" type="long"/>
  50192. <param name="finishedMaps" type="int"/>
  50193. <param name="finishedReduces" type="int"/>
  50194. <doc>
  50195. <![CDATA[Logs job killed event. Closes the job history log file.
  50196. @param jobid
  50197. job id
  50198. @param timestamp
  50199. time when job killed was issued in ms.
  50200. @param finishedMaps
  50201. no finished map tasks.
  50202. @param finishedReduces
  50203. no of finished reduce tasks.]]>
  50204. </doc>
  50205. </method>
  50206. <method name="logJobPriority"
  50207. abstract="false" native="false" synchronized="false"
  50208. static="true" final="false" visibility="public"
  50209. deprecated="not deprecated">
  50210. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  50211. <param name="priority" type="org.apache.hadoop.mapred.JobPriority"/>
  50212. <doc>
  50213. <![CDATA[Log job's priority.
  50214. @param jobid job id
  50215. @param priority Jobs priority]]>
  50216. </doc>
  50217. </method>
  50218. <method name="logJobInfo"
  50219. abstract="false" native="false" synchronized="false"
  50220. static="true" final="false" visibility="public"
  50221. deprecated="Use {@link #logJobInfo(JobID, long, long)} instead.">
  50222. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  50223. <param name="submitTime" type="long"/>
  50224. <param name="launchTime" type="long"/>
  50225. <param name="restartCount" type="int"/>
  50226. <doc>
  50227. <![CDATA[Log job's submit-time/launch-time
  50228. @param jobid job id
  50229. @param submitTime job's submit time
  50230. @param launchTime job's launch time
  50231. @param restartCount number of times the job got restarted
  50232. @deprecated Use {@link #logJobInfo(JobID, long, long)} instead.]]>
  50233. </doc>
  50234. </method>
  50235. <method name="logJobInfo"
  50236. abstract="false" native="false" synchronized="false"
  50237. static="true" final="false" visibility="public"
  50238. deprecated="not deprecated">
  50239. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  50240. <param name="submitTime" type="long"/>
  50241. <param name="launchTime" type="long"/>
  50242. </method>
  50243. <doc>
  50244. <![CDATA[Helper class for logging or reading back events related to job start, finish or failure.]]>
  50245. </doc>
  50246. </class>
  50247. <!-- end class org.apache.hadoop.mapred.JobHistory.JobInfo -->
  50248. <!-- start class org.apache.hadoop.mapred.JobHistory.Keys -->
  50249. <class name="JobHistory.Keys" extends="java.lang.Enum"
  50250. abstract="false"
  50251. static="true" final="true" visibility="public"
  50252. deprecated="not deprecated">
  50253. <method name="values" return="org.apache.hadoop.mapred.JobHistory.Keys[]"
  50254. abstract="false" native="false" synchronized="false"
  50255. static="true" final="false" visibility="public"
  50256. deprecated="not deprecated">
  50257. </method>
  50258. <method name="valueOf" return="org.apache.hadoop.mapred.JobHistory.Keys"
  50259. abstract="false" native="false" synchronized="false"
  50260. static="true" final="false" visibility="public"
  50261. deprecated="not deprecated">
  50262. <param name="name" type="java.lang.String"/>
  50263. </method>
  50264. <field name="JOBTRACKERID" type="org.apache.hadoop.mapred.JobHistory.Keys"
  50265. transient="false" volatile="false"
  50266. static="true" final="true" visibility="public"
  50267. deprecated="not deprecated">
  50268. </field>
  50269. <field name="START_TIME" type="org.apache.hadoop.mapred.JobHistory.Keys"
  50270. transient="false" volatile="false"
  50271. static="true" final="true" visibility="public"
  50272. deprecated="not deprecated">
  50273. </field>
  50274. <field name="FINISH_TIME" type="org.apache.hadoop.mapred.JobHistory.Keys"
  50275. transient="false" volatile="false"
  50276. static="true" final="true" visibility="public"
  50277. deprecated="not deprecated">
  50278. </field>
  50279. <field name="JOBID" type="org.apache.hadoop.mapred.JobHistory.Keys"
  50280. transient="false" volatile="false"
  50281. static="true" final="true" visibility="public"
  50282. deprecated="not deprecated">
  50283. </field>
  50284. <field name="JOBNAME" type="org.apache.hadoop.mapred.JobHistory.Keys"
  50285. transient="false" volatile="false"
  50286. static="true" final="true" visibility="public"
  50287. deprecated="not deprecated">
  50288. </field>
  50289. <field name="USER" type="org.apache.hadoop.mapred.JobHistory.Keys"
  50290. transient="false" volatile="false"
  50291. static="true" final="true" visibility="public"
  50292. deprecated="not deprecated">
  50293. </field>
  50294. <field name="JOBCONF" type="org.apache.hadoop.mapred.JobHistory.Keys"
  50295. transient="false" volatile="false"
  50296. static="true" final="true" visibility="public"
  50297. deprecated="not deprecated">
  50298. </field>
  50299. <field name="SUBMIT_TIME" type="org.apache.hadoop.mapred.JobHistory.Keys"
  50300. transient="false" volatile="false"
  50301. static="true" final="true" visibility="public"
  50302. deprecated="not deprecated">
  50303. </field>
  50304. <field name="LAUNCH_TIME" type="org.apache.hadoop.mapred.JobHistory.Keys"
  50305. transient="false" volatile="false"
  50306. static="true" final="true" visibility="public"
  50307. deprecated="not deprecated">
  50308. </field>
  50309. <field name="TOTAL_MAPS" type="org.apache.hadoop.mapred.JobHistory.Keys"
  50310. transient="false" volatile="false"
  50311. static="true" final="true" visibility="public"
  50312. deprecated="not deprecated">
  50313. </field>
  50314. <field name="TOTAL_REDUCES" type="org.apache.hadoop.mapred.JobHistory.Keys"
  50315. transient="false" volatile="false"
  50316. static="true" final="true" visibility="public"
  50317. deprecated="not deprecated">
  50318. </field>
  50319. <field name="FAILED_MAPS" type="org.apache.hadoop.mapred.JobHistory.Keys"
  50320. transient="false" volatile="false"
  50321. static="true" final="true" visibility="public"
  50322. deprecated="not deprecated">
  50323. </field>
  50324. <field name="FAILED_REDUCES" type="org.apache.hadoop.mapred.JobHistory.Keys"
  50325. transient="false" volatile="false"
  50326. static="true" final="true" visibility="public"
  50327. deprecated="not deprecated">
  50328. </field>
  50329. <field name="FINISHED_MAPS" type="org.apache.hadoop.mapred.JobHistory.Keys"
  50330. transient="false" volatile="false"
  50331. static="true" final="true" visibility="public"
  50332. deprecated="not deprecated">
  50333. </field>
  50334. <field name="FINISHED_REDUCES" type="org.apache.hadoop.mapred.JobHistory.Keys"
  50335. transient="false" volatile="false"
  50336. static="true" final="true" visibility="public"
  50337. deprecated="not deprecated">
  50338. </field>
  50339. <field name="JOB_STATUS" type="org.apache.hadoop.mapred.JobHistory.Keys"
  50340. transient="false" volatile="false"
  50341. static="true" final="true" visibility="public"
  50342. deprecated="not deprecated">
  50343. </field>
  50344. <field name="TASKID" type="org.apache.hadoop.mapred.JobHistory.Keys"
  50345. transient="false" volatile="false"
  50346. static="true" final="true" visibility="public"
  50347. deprecated="not deprecated">
  50348. </field>
  50349. <field name="HOSTNAME" type="org.apache.hadoop.mapred.JobHistory.Keys"
  50350. transient="false" volatile="false"
  50351. static="true" final="true" visibility="public"
  50352. deprecated="not deprecated">
  50353. </field>
  50354. <field name="TASK_TYPE" type="org.apache.hadoop.mapred.JobHistory.Keys"
  50355. transient="false" volatile="false"
  50356. static="true" final="true" visibility="public"
  50357. deprecated="not deprecated">
  50358. </field>
  50359. <field name="ERROR" type="org.apache.hadoop.mapred.JobHistory.Keys"
  50360. transient="false" volatile="false"
  50361. static="true" final="true" visibility="public"
  50362. deprecated="not deprecated">
  50363. </field>
  50364. <field name="TASK_ATTEMPT_ID" type="org.apache.hadoop.mapred.JobHistory.Keys"
  50365. transient="false" volatile="false"
  50366. static="true" final="true" visibility="public"
  50367. deprecated="not deprecated">
  50368. </field>
  50369. <field name="TASK_STATUS" type="org.apache.hadoop.mapred.JobHistory.Keys"
  50370. transient="false" volatile="false"
  50371. static="true" final="true" visibility="public"
  50372. deprecated="not deprecated">
  50373. </field>
  50374. <field name="COPY_PHASE" type="org.apache.hadoop.mapred.JobHistory.Keys"
  50375. transient="false" volatile="false"
  50376. static="true" final="true" visibility="public"
  50377. deprecated="not deprecated">
  50378. </field>
  50379. <field name="SORT_PHASE" type="org.apache.hadoop.mapred.JobHistory.Keys"
  50380. transient="false" volatile="false"
  50381. static="true" final="true" visibility="public"
  50382. deprecated="not deprecated">
  50383. </field>
  50384. <field name="REDUCE_PHASE" type="org.apache.hadoop.mapred.JobHistory.Keys"
  50385. transient="false" volatile="false"
  50386. static="true" final="true" visibility="public"
  50387. deprecated="not deprecated">
  50388. </field>
  50389. <field name="SHUFFLE_FINISHED" type="org.apache.hadoop.mapred.JobHistory.Keys"
  50390. transient="false" volatile="false"
  50391. static="true" final="true" visibility="public"
  50392. deprecated="not deprecated">
  50393. </field>
  50394. <field name="SORT_FINISHED" type="org.apache.hadoop.mapred.JobHistory.Keys"
  50395. transient="false" volatile="false"
  50396. static="true" final="true" visibility="public"
  50397. deprecated="not deprecated">
  50398. </field>
  50399. <field name="COUNTERS" type="org.apache.hadoop.mapred.JobHistory.Keys"
  50400. transient="false" volatile="false"
  50401. static="true" final="true" visibility="public"
  50402. deprecated="not deprecated">
  50403. </field>
  50404. <field name="SPLITS" type="org.apache.hadoop.mapred.JobHistory.Keys"
  50405. transient="false" volatile="false"
  50406. static="true" final="true" visibility="public"
  50407. deprecated="not deprecated">
  50408. </field>
  50409. <field name="JOB_PRIORITY" type="org.apache.hadoop.mapred.JobHistory.Keys"
  50410. transient="false" volatile="false"
  50411. static="true" final="true" visibility="public"
  50412. deprecated="not deprecated">
  50413. </field>
  50414. <field name="HTTP_PORT" type="org.apache.hadoop.mapred.JobHistory.Keys"
  50415. transient="false" volatile="false"
  50416. static="true" final="true" visibility="public"
  50417. deprecated="not deprecated">
  50418. </field>
  50419. <field name="TRACKER_NAME" type="org.apache.hadoop.mapred.JobHistory.Keys"
  50420. transient="false" volatile="false"
  50421. static="true" final="true" visibility="public"
  50422. deprecated="not deprecated">
  50423. </field>
  50424. <field name="STATE_STRING" type="org.apache.hadoop.mapred.JobHistory.Keys"
  50425. transient="false" volatile="false"
  50426. static="true" final="true" visibility="public"
  50427. deprecated="not deprecated">
  50428. </field>
  50429. <field name="VERSION" type="org.apache.hadoop.mapred.JobHistory.Keys"
  50430. transient="false" volatile="false"
  50431. static="true" final="true" visibility="public"
  50432. deprecated="not deprecated">
  50433. </field>
  50434. <field name="MAP_COUNTERS" type="org.apache.hadoop.mapred.JobHistory.Keys"
  50435. transient="false" volatile="false"
  50436. static="true" final="true" visibility="public"
  50437. deprecated="not deprecated">
  50438. </field>
  50439. <field name="REDUCE_COUNTERS" type="org.apache.hadoop.mapred.JobHistory.Keys"
  50440. transient="false" volatile="false"
  50441. static="true" final="true" visibility="public"
  50442. deprecated="not deprecated">
  50443. </field>
  50444. <field name="VIEW_JOB" type="org.apache.hadoop.mapred.JobHistory.Keys"
  50445. transient="false" volatile="false"
  50446. static="true" final="true" visibility="public"
  50447. deprecated="not deprecated">
  50448. </field>
  50449. <field name="MODIFY_JOB" type="org.apache.hadoop.mapred.JobHistory.Keys"
  50450. transient="false" volatile="false"
  50451. static="true" final="true" visibility="public"
  50452. deprecated="not deprecated">
  50453. </field>
  50454. <field name="JOB_QUEUE" type="org.apache.hadoop.mapred.JobHistory.Keys"
  50455. transient="false" volatile="false"
  50456. static="true" final="true" visibility="public"
  50457. deprecated="not deprecated">
  50458. </field>
  50459. <field name="FAIL_REASON" type="org.apache.hadoop.mapred.JobHistory.Keys"
  50460. transient="false" volatile="false"
  50461. static="true" final="true" visibility="public"
  50462. deprecated="not deprecated">
  50463. </field>
  50464. <field name="LOCALITY" type="org.apache.hadoop.mapred.JobHistory.Keys"
  50465. transient="false" volatile="false"
  50466. static="true" final="true" visibility="public"
  50467. deprecated="not deprecated">
  50468. </field>
  50469. <field name="AVATAAR" type="org.apache.hadoop.mapred.JobHistory.Keys"
  50470. transient="false" volatile="false"
  50471. static="true" final="true" visibility="public"
  50472. deprecated="not deprecated">
  50473. </field>
  50474. <field name="WORKFLOW_ID" type="org.apache.hadoop.mapred.JobHistory.Keys"
  50475. transient="false" volatile="false"
  50476. static="true" final="true" visibility="public"
  50477. deprecated="not deprecated">
  50478. </field>
  50479. <field name="WORKFLOW_NAME" type="org.apache.hadoop.mapred.JobHistory.Keys"
  50480. transient="false" volatile="false"
  50481. static="true" final="true" visibility="public"
  50482. deprecated="not deprecated">
  50483. </field>
  50484. <field name="WORKFLOW_NODE_NAME" type="org.apache.hadoop.mapred.JobHistory.Keys"
  50485. transient="false" volatile="false"
  50486. static="true" final="true" visibility="public"
  50487. deprecated="not deprecated">
  50488. </field>
  50489. <field name="WORKFLOW_ADJACENCIES" type="org.apache.hadoop.mapred.JobHistory.Keys"
  50490. transient="false" volatile="false"
  50491. static="true" final="true" visibility="public"
  50492. deprecated="not deprecated">
  50493. </field>
  50494. <field name="WORKFLOW_TAGS" type="org.apache.hadoop.mapred.JobHistory.Keys"
  50495. transient="false" volatile="false"
  50496. static="true" final="true" visibility="public"
  50497. deprecated="not deprecated">
  50498. </field>
  50499. <doc>
  50500. <![CDATA[Job history files contain key="value" pairs, where keys belong to this enum.
  50501. It acts as a global namespace for all keys.]]>
  50502. </doc>
  50503. </class>
  50504. <!-- end class org.apache.hadoop.mapred.JobHistory.Keys -->
  50505. <!-- start interface org.apache.hadoop.mapred.JobHistory.Listener -->
  50506. <interface name="JobHistory.Listener" abstract="true"
  50507. static="true" final="false" visibility="public"
  50508. deprecated="not deprecated">
  50509. <method name="handle"
  50510. abstract="false" native="false" synchronized="false"
  50511. static="false" final="false" visibility="public"
  50512. deprecated="not deprecated">
  50513. <param name="recType" type="org.apache.hadoop.mapred.JobHistory.RecordTypes"/>
  50514. <param name="values" type="java.util.Map"/>
  50515. <exception name="IOException" type="java.io.IOException"/>
  50516. <doc>
  50517. <![CDATA[Callback method for history parser.
  50518. @param recType type of record, which is the first entry in the line.
  50519. @param values a map of key-value pairs as thry appear in history.
  50520. @throws IOException]]>
  50521. </doc>
  50522. </method>
  50523. <doc>
  50524. <![CDATA[Callback interface for reading back log events from JobHistory. This interface
  50525. should be implemented and passed to JobHistory.parseHistory()]]>
  50526. </doc>
  50527. </interface>
  50528. <!-- end interface org.apache.hadoop.mapred.JobHistory.Listener -->
  50529. <!-- start class org.apache.hadoop.mapred.JobHistory.MapAttempt -->
  50530. <class name="JobHistory.MapAttempt" extends="org.apache.hadoop.mapred.JobHistory.TaskAttempt"
  50531. abstract="false"
  50532. static="true" final="false" visibility="public"
  50533. deprecated="not deprecated">
  50534. <constructor name="JobHistory.MapAttempt"
  50535. static="false" final="false" visibility="public"
  50536. deprecated="not deprecated">
  50537. </constructor>
  50538. <method name="logStarted"
  50539. abstract="false" native="false" synchronized="false"
  50540. static="true" final="false" visibility="public"
  50541. deprecated="Use
  50542. {@link #logStarted(TaskAttemptID, long, String, int, String)}">
  50543. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  50544. <param name="startTime" type="long"/>
  50545. <param name="hostName" type="java.lang.String"/>
  50546. <doc>
  50547. <![CDATA[Log start time of this map task attempt.
  50548. @param taskAttemptId task attempt id
  50549. @param startTime start time of task attempt as reported by task tracker.
  50550. @param hostName host name of the task attempt.
  50551. @deprecated Use
  50552. {@link #logStarted(TaskAttemptID, long, String, int, String)}]]>
  50553. </doc>
  50554. </method>
  50555. <method name="logStarted"
  50556. abstract="false" native="false" synchronized="false"
  50557. static="true" final="false" visibility="public"
  50558. deprecated="not deprecated">
  50559. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  50560. <param name="startTime" type="long"/>
  50561. <param name="trackerName" type="java.lang.String"/>
  50562. <param name="httpPort" type="int"/>
  50563. <param name="taskType" type="java.lang.String"/>
  50564. </method>
  50565. <method name="logStarted"
  50566. abstract="false" native="false" synchronized="false"
  50567. static="true" final="false" visibility="public"
  50568. deprecated="not deprecated">
  50569. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  50570. <param name="startTime" type="long"/>
  50571. <param name="trackerName" type="java.lang.String"/>
  50572. <param name="httpPort" type="int"/>
  50573. <param name="taskType" type="java.lang.String"/>
  50574. <param name="locality" type="org.apache.hadoop.mapred.Locality"/>
  50575. <param name="avataar" type="org.apache.hadoop.mapred.Avataar"/>
  50576. <doc>
  50577. <![CDATA[Log start time of this map task attempt.
  50578. @param taskAttemptId task attempt id
  50579. @param startTime start time of task attempt as reported by task tracker.
  50580. @param trackerName name of the tracker executing the task attempt.
  50581. @param httpPort http port of the task tracker executing the task attempt
  50582. @param taskType Whether the attempt is cleanup or setup or map
  50583. @param locality the data locality of the task attempt
  50584. @param Avataar the avataar of the task attempt]]>
  50585. </doc>
  50586. </method>
  50587. <method name="logFinished"
  50588. abstract="false" native="false" synchronized="false"
  50589. static="true" final="false" visibility="public"
  50590. deprecated="Use
  50591. {@link #logFinished(TaskAttemptID, long, String, String, String, Counters)}">
  50592. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  50593. <param name="finishTime" type="long"/>
  50594. <param name="hostName" type="java.lang.String"/>
  50595. <doc>
  50596. <![CDATA[Log finish time of map task attempt.
  50597. @param taskAttemptId task attempt id
  50598. @param finishTime finish time
  50599. @param hostName host name
  50600. @deprecated Use
  50601. {@link #logFinished(TaskAttemptID, long, String, String, String, Counters)}]]>
  50602. </doc>
  50603. </method>
  50604. <method name="logFinished"
  50605. abstract="false" native="false" synchronized="false"
  50606. static="true" final="false" visibility="public"
  50607. deprecated="not deprecated">
  50608. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  50609. <param name="finishTime" type="long"/>
  50610. <param name="hostName" type="java.lang.String"/>
  50611. <param name="taskType" type="java.lang.String"/>
  50612. <param name="stateString" type="java.lang.String"/>
  50613. <param name="counter" type="org.apache.hadoop.mapred.Counters"/>
  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. @param taskType Whether the attempt is cleanup or setup or map
  50620. @param stateString state string of the task attempt
  50621. @param counter counters of the task attempt]]>
  50622. </doc>
  50623. </method>
  50624. <method name="logFailed"
  50625. abstract="false" native="false" synchronized="false"
  50626. static="true" final="false" visibility="public"
  50627. deprecated="Use
  50628. {@link #logFailed(TaskAttemptID, long, String, String, String)}">
  50629. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  50630. <param name="timestamp" type="long"/>
  50631. <param name="hostName" type="java.lang.String"/>
  50632. <param name="error" type="java.lang.String"/>
  50633. <doc>
  50634. <![CDATA[Log task attempt failed event.
  50635. @param taskAttemptId task attempt id
  50636. @param timestamp timestamp
  50637. @param hostName hostname of this task attempt.
  50638. @param error error message if any for this task attempt.
  50639. @deprecated Use
  50640. {@link #logFailed(TaskAttemptID, long, String, String, String)}]]>
  50641. </doc>
  50642. </method>
  50643. <method name="logFailed"
  50644. abstract="false" native="false" synchronized="false"
  50645. static="true" final="false" visibility="public"
  50646. deprecated="not deprecated">
  50647. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  50648. <param name="timestamp" type="long"/>
  50649. <param name="hostName" type="java.lang.String"/>
  50650. <param name="error" type="java.lang.String"/>
  50651. <param name="taskType" 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. @param taskType Whether the attempt is cleanup or setup or map]]>
  50659. </doc>
  50660. </method>
  50661. <method name="logKilled"
  50662. abstract="false" native="false" synchronized="false"
  50663. static="true" final="false" visibility="public"
  50664. deprecated="Use
  50665. {@link #logKilled(TaskAttemptID, long, String, String, String)}">
  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. <doc>
  50671. <![CDATA[Log task attempt killed event.
  50672. @param taskAttemptId task attempt id
  50673. @param timestamp timestamp
  50674. @param hostName hostname of this task attempt.
  50675. @param error error message if any for this task attempt.
  50676. @deprecated Use
  50677. {@link #logKilled(TaskAttemptID, long, String, String, String)}]]>
  50678. </doc>
  50679. </method>
  50680. <method name="logKilled"
  50681. abstract="false" native="false" synchronized="false"
  50682. static="true" final="false" visibility="public"
  50683. deprecated="not deprecated">
  50684. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  50685. <param name="timestamp" type="long"/>
  50686. <param name="hostName" type="java.lang.String"/>
  50687. <param name="error" type="java.lang.String"/>
  50688. <param name="taskType" 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. @param taskType Whether the attempt is cleanup or setup or map]]>
  50696. </doc>
  50697. </method>
  50698. <doc>
  50699. <![CDATA[Helper class for logging or reading back events related to start, finish or failure of
  50700. a Map Attempt on a node.]]>
  50701. </doc>
  50702. </class>
  50703. <!-- end class org.apache.hadoop.mapred.JobHistory.MapAttempt -->
  50704. <!-- start class org.apache.hadoop.mapred.JobHistory.RecordTypes -->
  50705. <class name="JobHistory.RecordTypes" extends="java.lang.Enum"
  50706. abstract="false"
  50707. static="true" final="true" visibility="public"
  50708. deprecated="not deprecated">
  50709. <method name="values" return="org.apache.hadoop.mapred.JobHistory.RecordTypes[]"
  50710. abstract="false" native="false" synchronized="false"
  50711. static="true" final="false" visibility="public"
  50712. deprecated="not deprecated">
  50713. </method>
  50714. <method name="valueOf" return="org.apache.hadoop.mapred.JobHistory.RecordTypes"
  50715. abstract="false" native="false" synchronized="false"
  50716. static="true" final="false" visibility="public"
  50717. deprecated="not deprecated">
  50718. <param name="name" type="java.lang.String"/>
  50719. </method>
  50720. <field name="Jobtracker" type="org.apache.hadoop.mapred.JobHistory.RecordTypes"
  50721. transient="false" volatile="false"
  50722. static="true" final="true" visibility="public"
  50723. deprecated="not deprecated">
  50724. </field>
  50725. <field name="Job" type="org.apache.hadoop.mapred.JobHistory.RecordTypes"
  50726. transient="false" volatile="false"
  50727. static="true" final="true" visibility="public"
  50728. deprecated="not deprecated">
  50729. </field>
  50730. <field name="Task" type="org.apache.hadoop.mapred.JobHistory.RecordTypes"
  50731. transient="false" volatile="false"
  50732. static="true" final="true" visibility="public"
  50733. deprecated="not deprecated">
  50734. </field>
  50735. <field name="MapAttempt" type="org.apache.hadoop.mapred.JobHistory.RecordTypes"
  50736. transient="false" volatile="false"
  50737. static="true" final="true" visibility="public"
  50738. deprecated="not deprecated">
  50739. </field>
  50740. <field name="ReduceAttempt" type="org.apache.hadoop.mapred.JobHistory.RecordTypes"
  50741. transient="false" volatile="false"
  50742. static="true" final="true" visibility="public"
  50743. deprecated="not deprecated">
  50744. </field>
  50745. <field name="Meta" type="org.apache.hadoop.mapred.JobHistory.RecordTypes"
  50746. transient="false" volatile="false"
  50747. static="true" final="true" visibility="public"
  50748. deprecated="not deprecated">
  50749. </field>
  50750. <doc>
  50751. <![CDATA[Record types are identifiers for each line of log in history files.
  50752. A record type appears as the first token in a single line of log.]]>
  50753. </doc>
  50754. </class>
  50755. <!-- end class org.apache.hadoop.mapred.JobHistory.RecordTypes -->
  50756. <!-- start class org.apache.hadoop.mapred.JobHistory.ReduceAttempt -->
  50757. <class name="JobHistory.ReduceAttempt" extends="org.apache.hadoop.mapred.JobHistory.TaskAttempt"
  50758. abstract="false"
  50759. static="true" final="false" visibility="public"
  50760. deprecated="not deprecated">
  50761. <constructor name="JobHistory.ReduceAttempt"
  50762. static="false" final="false" visibility="public"
  50763. deprecated="not deprecated">
  50764. </constructor>
  50765. <method name="logStarted"
  50766. abstract="false" native="false" synchronized="false"
  50767. static="true" final="false" visibility="public"
  50768. deprecated="Use
  50769. {@link #logStarted(TaskAttemptID, long, String, int, String)}">
  50770. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  50771. <param name="startTime" type="long"/>
  50772. <param name="hostName" type="java.lang.String"/>
  50773. <doc>
  50774. <![CDATA[Log start time of Reduce task attempt.
  50775. @param taskAttemptId task attempt id
  50776. @param startTime start time
  50777. @param hostName host name
  50778. @deprecated Use
  50779. {@link #logStarted(TaskAttemptID, long, String, int, String)}]]>
  50780. </doc>
  50781. </method>
  50782. <method name="logStarted"
  50783. abstract="false" native="false" synchronized="false"
  50784. static="true" final="false" visibility="public"
  50785. deprecated="not deprecated">
  50786. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  50787. <param name="startTime" type="long"/>
  50788. <param name="trackerName" type="java.lang.String"/>
  50789. <param name="httpPort" type="int"/>
  50790. <param name="taskType" type="java.lang.String"/>
  50791. </method>
  50792. <method name="logStarted"
  50793. abstract="false" native="false" synchronized="false"
  50794. static="true" final="false" visibility="public"
  50795. deprecated="not deprecated">
  50796. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  50797. <param name="startTime" type="long"/>
  50798. <param name="trackerName" type="java.lang.String"/>
  50799. <param name="httpPort" type="int"/>
  50800. <param name="taskType" type="java.lang.String"/>
  50801. <param name="locality" type="org.apache.hadoop.mapred.Locality"/>
  50802. <param name="avataar" type="org.apache.hadoop.mapred.Avataar"/>
  50803. <doc>
  50804. <![CDATA[Log start time of Reduce task attempt.
  50805. @param taskAttemptId task attempt id
  50806. @param startTime start time
  50807. @param trackerName tracker name
  50808. @param httpPort the http port of the tracker executing the task attempt
  50809. @param taskType Whether the attempt is cleanup or setup or reduce
  50810. @param locality the data locality of the task attempt
  50811. @param Avataar the avataar of the task attempt]]>
  50812. </doc>
  50813. </method>
  50814. <method name="logFinished"
  50815. abstract="false" native="false" synchronized="false"
  50816. static="true" final="false" visibility="public"
  50817. deprecated="Use
  50818. {@link #logFinished(TaskAttemptID, long, long, long, String, String, String, Counters)}">
  50819. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  50820. <param name="shuffleFinished" type="long"/>
  50821. <param name="sortFinished" type="long"/>
  50822. <param name="finishTime" type="long"/>
  50823. <param name="hostName" type="java.lang.String"/>
  50824. <doc>
  50825. <![CDATA[Log finished event of this task.
  50826. @param taskAttemptId task attempt id
  50827. @param shuffleFinished shuffle finish time
  50828. @param sortFinished sort finish time
  50829. @param finishTime finish time of task
  50830. @param hostName host name where task attempt executed
  50831. @deprecated Use
  50832. {@link #logFinished(TaskAttemptID, long, long, long, String, String, String, Counters)}]]>
  50833. </doc>
  50834. </method>
  50835. <method name="logFinished"
  50836. abstract="false" native="false" synchronized="false"
  50837. static="true" final="false" visibility="public"
  50838. deprecated="not deprecated">
  50839. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  50840. <param name="shuffleFinished" type="long"/>
  50841. <param name="sortFinished" type="long"/>
  50842. <param name="finishTime" type="long"/>
  50843. <param name="hostName" type="java.lang.String"/>
  50844. <param name="taskType" type="java.lang.String"/>
  50845. <param name="stateString" type="java.lang.String"/>
  50846. <param name="counter" type="org.apache.hadoop.mapred.Counters"/>
  50847. <doc>
  50848. <![CDATA[Log finished event of this task.
  50849. @param taskAttemptId task attempt id
  50850. @param shuffleFinished shuffle finish time
  50851. @param sortFinished sort finish time
  50852. @param finishTime finish time of task
  50853. @param hostName host name where task attempt executed
  50854. @param taskType Whether the attempt is cleanup or setup or reduce
  50855. @param stateString the state string of the attempt
  50856. @param counter counters of the attempt]]>
  50857. </doc>
  50858. </method>
  50859. <method name="logFailed"
  50860. abstract="false" native="false" synchronized="false"
  50861. static="true" final="false" visibility="public"
  50862. deprecated="Use
  50863. {@link #logFailed(TaskAttemptID, long, String, String, String)}">
  50864. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  50865. <param name="timestamp" type="long"/>
  50866. <param name="hostName" type="java.lang.String"/>
  50867. <param name="error" type="java.lang.String"/>
  50868. <doc>
  50869. <![CDATA[Log failed reduce task attempt.
  50870. @param taskAttemptId task attempt id
  50871. @param timestamp time stamp when task failed
  50872. @param hostName host name of the task attempt.
  50873. @param error error message of the task.
  50874. @deprecated Use
  50875. {@link #logFailed(TaskAttemptID, long, String, String, String)}]]>
  50876. </doc>
  50877. </method>
  50878. <method name="logFailed"
  50879. abstract="false" native="false" synchronized="false"
  50880. static="true" final="false" visibility="public"
  50881. deprecated="not deprecated">
  50882. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  50883. <param name="timestamp" type="long"/>
  50884. <param name="hostName" type="java.lang.String"/>
  50885. <param name="error" type="java.lang.String"/>
  50886. <param name="taskType" 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. @param taskType Whether the attempt is cleanup or setup or reduce]]>
  50894. </doc>
  50895. </method>
  50896. <method name="logKilled"
  50897. abstract="false" native="false" synchronized="false"
  50898. static="true" final="false" visibility="public"
  50899. deprecated="Use
  50900. {@link #logKilled(TaskAttemptID, long, String, String, String)}">
  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. <doc>
  50906. <![CDATA[Log killed reduce task attempt.
  50907. @param taskAttemptId task attempt id
  50908. @param timestamp time stamp when task failed
  50909. @param hostName host name of the task attempt.
  50910. @param error error message of the task.
  50911. @deprecated Use
  50912. {@link #logKilled(TaskAttemptID, long, String, String, String)}]]>
  50913. </doc>
  50914. </method>
  50915. <method name="logKilled"
  50916. abstract="false" native="false" synchronized="false"
  50917. static="true" final="false" visibility="public"
  50918. deprecated="not deprecated">
  50919. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  50920. <param name="timestamp" type="long"/>
  50921. <param name="hostName" type="java.lang.String"/>
  50922. <param name="error" type="java.lang.String"/>
  50923. <param name="taskType" 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. @param taskType Whether the attempt is cleanup or setup or reduce]]>
  50931. </doc>
  50932. </method>
  50933. <doc>
  50934. <![CDATA[Helper class for logging or reading back events related to start, finish or failure of
  50935. a Map Attempt on a node.]]>
  50936. </doc>
  50937. </class>
  50938. <!-- end class org.apache.hadoop.mapred.JobHistory.ReduceAttempt -->
  50939. <!-- start class org.apache.hadoop.mapred.JobHistory.Task -->
  50940. <class name="JobHistory.Task" extends="org.apache.hadoop.mapred.JobHistory.KeyValuePair"
  50941. abstract="false"
  50942. static="true" final="false" visibility="public"
  50943. deprecated="not deprecated">
  50944. <constructor name="JobHistory.Task"
  50945. static="false" final="false" visibility="public"
  50946. deprecated="not deprecated">
  50947. </constructor>
  50948. <method name="logStarted"
  50949. abstract="false" native="false" synchronized="false"
  50950. static="true" final="false" visibility="public"
  50951. deprecated="not deprecated">
  50952. <param name="taskId" type="org.apache.hadoop.mapred.TaskID"/>
  50953. <param name="taskType" type="java.lang.String"/>
  50954. <param name="startTime" type="long"/>
  50955. <param name="splitLocations" type="java.lang.String"/>
  50956. <doc>
  50957. <![CDATA[Log start time of task (TIP).
  50958. @param taskId task id
  50959. @param taskType MAP or REDUCE
  50960. @param startTime startTime of tip.]]>
  50961. </doc>
  50962. </method>
  50963. <method name="logFinished"
  50964. abstract="false" native="false" synchronized="false"
  50965. static="true" final="false" visibility="public"
  50966. deprecated="not deprecated">
  50967. <param name="taskId" type="org.apache.hadoop.mapred.TaskID"/>
  50968. <param name="taskType" type="java.lang.String"/>
  50969. <param name="finishTime" type="long"/>
  50970. <param name="counters" type="org.apache.hadoop.mapred.Counters"/>
  50971. <doc>
  50972. <![CDATA[Log finish time of task.
  50973. @param taskId task id
  50974. @param taskType MAP or REDUCE
  50975. @param finishTime finish timeof task in ms]]>
  50976. </doc>
  50977. </method>
  50978. <method name="logUpdates"
  50979. abstract="false" native="false" synchronized="false"
  50980. static="true" final="false" visibility="public"
  50981. deprecated="not deprecated">
  50982. <param name="taskId" type="org.apache.hadoop.mapred.TaskID"/>
  50983. <param name="finishTime" type="long"/>
  50984. <doc>
  50985. <![CDATA[Update the finish time of task.
  50986. @param taskId task id
  50987. @param finishTime finish time of task in ms]]>
  50988. </doc>
  50989. </method>
  50990. <method name="logFailed"
  50991. abstract="false" native="false" synchronized="false"
  50992. static="true" final="false" visibility="public"
  50993. deprecated="not deprecated">
  50994. <param name="taskId" type="org.apache.hadoop.mapred.TaskID"/>
  50995. <param name="taskType" type="java.lang.String"/>
  50996. <param name="time" type="long"/>
  50997. <param name="error" type="java.lang.String"/>
  50998. <doc>
  50999. <![CDATA[Log job failed event.
  51000. @param taskId task id
  51001. @param taskType MAP or REDUCE.
  51002. @param time timestamp when job failed detected.
  51003. @param error error message for failure.]]>
  51004. </doc>
  51005. </method>
  51006. <method name="logFailed"
  51007. abstract="false" native="false" synchronized="false"
  51008. static="true" final="false" visibility="public"
  51009. deprecated="not deprecated">
  51010. <param name="taskId" type="org.apache.hadoop.mapred.TaskID"/>
  51011. <param name="taskType" type="java.lang.String"/>
  51012. <param name="time" type="long"/>
  51013. <param name="error" type="java.lang.String"/>
  51014. <param name="failedDueToAttempt" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  51015. <doc>
  51016. <![CDATA[@param failedDueToAttempt The attempt that caused the failure, if any]]>
  51017. </doc>
  51018. </method>
  51019. <method name="getTaskAttempts" return="java.util.Map"
  51020. abstract="false" native="false" synchronized="false"
  51021. static="false" final="false" visibility="public"
  51022. deprecated="not deprecated">
  51023. <doc>
  51024. <![CDATA[Returns all task attempts for this task. <task attempt id - TaskAttempt>]]>
  51025. </doc>
  51026. </method>
  51027. <doc>
  51028. <![CDATA[Helper class for logging or reading back events related to Task's start, finish or failure.
  51029. All events logged by this class are logged in a separate file per job in
  51030. job tracker history. These events map to TIPs in jobtracker.]]>
  51031. </doc>
  51032. </class>
  51033. <!-- end class org.apache.hadoop.mapred.JobHistory.Task -->
  51034. <!-- start class org.apache.hadoop.mapred.JobHistory.TaskAttempt -->
  51035. <class name="JobHistory.TaskAttempt" extends="org.apache.hadoop.mapred.JobHistory.Task"
  51036. abstract="false"
  51037. static="true" final="false" visibility="public"
  51038. deprecated="not deprecated">
  51039. <constructor name="JobHistory.TaskAttempt"
  51040. static="false" final="false" visibility="public"
  51041. deprecated="not deprecated">
  51042. </constructor>
  51043. <doc>
  51044. <![CDATA[Base class for Map and Reduce TaskAttempts.]]>
  51045. </doc>
  51046. </class>
  51047. <!-- end class org.apache.hadoop.mapred.JobHistory.TaskAttempt -->
  51048. <!-- start class org.apache.hadoop.mapred.JobHistory.Values -->
  51049. <class name="JobHistory.Values" extends="java.lang.Enum"
  51050. abstract="false"
  51051. static="true" final="true" visibility="public"
  51052. deprecated="not deprecated">
  51053. <method name="values" return="org.apache.hadoop.mapred.JobHistory.Values[]"
  51054. abstract="false" native="false" synchronized="false"
  51055. static="true" final="false" visibility="public"
  51056. deprecated="not deprecated">
  51057. </method>
  51058. <method name="valueOf" return="org.apache.hadoop.mapred.JobHistory.Values"
  51059. abstract="false" native="false" synchronized="false"
  51060. static="true" final="false" visibility="public"
  51061. deprecated="not deprecated">
  51062. <param name="name" type="java.lang.String"/>
  51063. </method>
  51064. <field name="SUCCESS" type="org.apache.hadoop.mapred.JobHistory.Values"
  51065. transient="false" volatile="false"
  51066. static="true" final="true" visibility="public"
  51067. deprecated="not deprecated">
  51068. </field>
  51069. <field name="FAILED" type="org.apache.hadoop.mapred.JobHistory.Values"
  51070. transient="false" volatile="false"
  51071. static="true" final="true" visibility="public"
  51072. deprecated="not deprecated">
  51073. </field>
  51074. <field name="KILLED" type="org.apache.hadoop.mapred.JobHistory.Values"
  51075. transient="false" volatile="false"
  51076. static="true" final="true" visibility="public"
  51077. deprecated="not deprecated">
  51078. </field>
  51079. <field name="MAP" type="org.apache.hadoop.mapred.JobHistory.Values"
  51080. transient="false" volatile="false"
  51081. static="true" final="true" visibility="public"
  51082. deprecated="not deprecated">
  51083. </field>
  51084. <field name="REDUCE" type="org.apache.hadoop.mapred.JobHistory.Values"
  51085. transient="false" volatile="false"
  51086. static="true" final="true" visibility="public"
  51087. deprecated="not deprecated">
  51088. </field>
  51089. <field name="CLEANUP" type="org.apache.hadoop.mapred.JobHistory.Values"
  51090. transient="false" volatile="false"
  51091. static="true" final="true" visibility="public"
  51092. deprecated="not deprecated">
  51093. </field>
  51094. <field name="RUNNING" type="org.apache.hadoop.mapred.JobHistory.Values"
  51095. transient="false" volatile="false"
  51096. static="true" final="true" visibility="public"
  51097. deprecated="not deprecated">
  51098. </field>
  51099. <field name="PREP" type="org.apache.hadoop.mapred.JobHistory.Values"
  51100. transient="false" volatile="false"
  51101. static="true" final="true" visibility="public"
  51102. deprecated="not deprecated">
  51103. </field>
  51104. <field name="SETUP" type="org.apache.hadoop.mapred.JobHistory.Values"
  51105. transient="false" volatile="false"
  51106. static="true" final="true" visibility="public"
  51107. deprecated="not deprecated">
  51108. </field>
  51109. <doc>
  51110. <![CDATA[This enum contains some of the values commonly used by history log events.
  51111. since values in history can only be strings - Values.name() is used in
  51112. most places in history file.]]>
  51113. </doc>
  51114. </class>
  51115. <!-- end class org.apache.hadoop.mapred.JobHistory.Values -->
  51116. <!-- start class org.apache.hadoop.mapred.JobHistoryServer -->
  51117. <class name="JobHistoryServer" extends="java.lang.Object"
  51118. abstract="false"
  51119. static="false" final="false" visibility="public"
  51120. deprecated="not deprecated">
  51121. <constructor name="JobHistoryServer" type="org.apache.hadoop.mapred.JobConf"
  51122. static="false" final="false" visibility="public"
  51123. deprecated="not deprecated">
  51124. <exception name="IOException" type="java.io.IOException"/>
  51125. <doc>
  51126. <![CDATA[Starts job history server as a independent process
  51127. * Initializes ACL Manager
  51128. * Starts a webapp to service history requests
  51129. @param conf - Mr Cluster configuration
  51130. @throws IOException - any exception starting history server]]>
  51131. </doc>
  51132. </constructor>
  51133. <constructor name="JobHistoryServer" type="org.apache.hadoop.mapred.JobConf, org.apache.hadoop.mapred.ACLsManager, org.apache.hadoop.http.HttpServer"
  51134. static="false" final="false" visibility="public"
  51135. deprecated="not deprecated">
  51136. <exception name="IOException" type="java.io.IOException"/>
  51137. <doc>
  51138. <![CDATA[Starts job history server as a embedded server within job tracker
  51139. * Starts a webapp to service history requests
  51140. @param conf - MR Cluster configuration
  51141. @param aclsManager - ACLs Manager for user authentication
  51142. @param httpServer - Http Server instance
  51143. @throws IOException - any exception starting history server]]>
  51144. </doc>
  51145. </constructor>
  51146. <method name="start"
  51147. abstract="false" native="false" synchronized="false"
  51148. static="false" final="false" visibility="public"
  51149. deprecated="not deprecated">
  51150. <exception name="IOException" type="java.io.IOException"/>
  51151. </method>
  51152. <method name="join"
  51153. abstract="false" native="false" synchronized="false"
  51154. static="false" final="false" visibility="public"
  51155. deprecated="not deprecated">
  51156. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  51157. </method>
  51158. <method name="shutdown"
  51159. abstract="false" native="false" synchronized="false"
  51160. static="false" final="false" visibility="public"
  51161. deprecated="not deprecated">
  51162. <exception name="Exception" type="java.lang.Exception"/>
  51163. <doc>
  51164. <![CDATA[Shutsdown the history server if already initialized
  51165. @throws Exception - Any exception during shutdown]]>
  51166. </doc>
  51167. </method>
  51168. <method name="main"
  51169. abstract="false" native="false" synchronized="false"
  51170. static="true" final="false" visibility="public"
  51171. deprecated="not deprecated">
  51172. <param name="args" type="java.lang.String[]"/>
  51173. <doc>
  51174. <![CDATA[Start job history server as an independent process
  51175. @param args - Command line arguments]]>
  51176. </doc>
  51177. </method>
  51178. <field name="MAPRED_HISTORY_SERVER_HTTP_ADDRESS" type="java.lang.String"
  51179. transient="false" volatile="false"
  51180. static="true" final="true" visibility="public"
  51181. deprecated="not deprecated">
  51182. </field>
  51183. <field name="MAPRED_HISTORY_SERVER_EMBEDDED" type="java.lang.String"
  51184. transient="false" volatile="false"
  51185. static="true" final="true" visibility="public"
  51186. deprecated="not deprecated">
  51187. </field>
  51188. <doc>
  51189. <![CDATA[{@link JobHistoryServer} is responsible for servicing all job history
  51190. related requests from client.
  51191. History Server can be initialized in one of two modes
  51192. * Emdedded within {@link JobTracker}
  51193. * External daemon, can either be run on the job tracker node or outside
  51194. Two {@link Configuration} entries in mapred-site.xml govern the functioning
  51195. of the history server
  51196. mapred.job.history.server.http.address is address to which history web
  51197. server is bound to. If operating in embedded mode, the hostname on
  51198. history address has to be same as the job tracker host name
  51199. mapred.job.history.server.embedded (default is true) will cause job tracker
  51200. to init history server, else the server need to be started as a
  51201. separate daemon process]]>
  51202. </doc>
  51203. </class>
  51204. <!-- end class org.apache.hadoop.mapred.JobHistoryServer -->
  51205. <!-- start class org.apache.hadoop.mapred.JobID -->
  51206. <class name="JobID" extends="org.apache.hadoop.mapreduce.JobID"
  51207. abstract="false"
  51208. static="false" final="false" visibility="public"
  51209. deprecated="not deprecated">
  51210. <constructor name="JobID" type="java.lang.String, int"
  51211. static="false" final="false" visibility="public"
  51212. deprecated="not deprecated">
  51213. <doc>
  51214. <![CDATA[Constructs a JobID object
  51215. @param jtIdentifier jobTracker identifier
  51216. @param id job number]]>
  51217. </doc>
  51218. </constructor>
  51219. <constructor name="JobID"
  51220. static="false" final="false" visibility="public"
  51221. deprecated="not deprecated">
  51222. </constructor>
  51223. <method name="downgrade" return="org.apache.hadoop.mapred.JobID"
  51224. abstract="false" native="false" synchronized="false"
  51225. static="true" final="false" visibility="public"
  51226. deprecated="not deprecated">
  51227. <param name="old" type="org.apache.hadoop.mapreduce.JobID"/>
  51228. <doc>
  51229. <![CDATA[Downgrade a new JobID to an old one
  51230. @param old a new or old JobID
  51231. @return either old or a new JobID build to match old]]>
  51232. </doc>
  51233. </method>
  51234. <method name="read" return="org.apache.hadoop.mapred.JobID"
  51235. abstract="false" native="false" synchronized="false"
  51236. static="true" final="false" visibility="public"
  51237. deprecated="not deprecated">
  51238. <param name="in" type="java.io.DataInput"/>
  51239. <exception name="IOException" type="java.io.IOException"/>
  51240. </method>
  51241. <method name="forName" return="org.apache.hadoop.mapred.JobID"
  51242. abstract="false" native="false" synchronized="false"
  51243. static="true" final="false" visibility="public"
  51244. deprecated="not deprecated">
  51245. <param name="str" type="java.lang.String"/>
  51246. <exception name="IllegalArgumentException" type="java.lang.IllegalArgumentException"/>
  51247. <doc>
  51248. <![CDATA[Construct a JobId object from given string
  51249. @return constructed JobId object or null if the given String is null
  51250. @throws IllegalArgumentException if the given string is malformed]]>
  51251. </doc>
  51252. </method>
  51253. <method name="getJobIDsPattern" return="java.lang.String"
  51254. abstract="false" native="false" synchronized="false"
  51255. static="true" final="false" visibility="public"
  51256. deprecated="not deprecated">
  51257. <param name="jtIdentifier" type="java.lang.String"/>
  51258. <param name="jobId" type="java.lang.Integer"/>
  51259. <doc>
  51260. <![CDATA[Returns a regex pattern which matches task IDs. Arguments can
  51261. be given null, in which case that part of the regex will be generic.
  51262. For example to obtain a regex matching <i>any job</i>
  51263. run on the jobtracker started at <i>200707121733</i>, we would use :
  51264. <pre>
  51265. JobID.getTaskIDsPattern("200707121733", null);
  51266. </pre>
  51267. which will return :
  51268. <pre> "job_200707121733_[0-9]*" </pre>
  51269. @param jtIdentifier jobTracker identifier, or null
  51270. @param jobId job number, or null
  51271. @return a regex pattern matching JobIDs]]>
  51272. </doc>
  51273. </method>
  51274. <doc>
  51275. <![CDATA[JobID represents the immutable and unique identifier for
  51276. the job. JobID consists of two parts. First part
  51277. represents the jobtracker identifier, so that jobID to jobtracker map
  51278. is defined. For cluster setup this string is the jobtracker
  51279. start time, for local setting, it is "local".
  51280. Second part of the JobID is the job number. <br>
  51281. An example JobID is :
  51282. <code>job_200707121733_0003</code> , which represents the third job
  51283. running at the jobtracker started at <code>200707121733</code>.
  51284. <p>
  51285. Applications should never construct or parse JobID strings, but rather
  51286. use appropriate constructors or {@link #forName(String)} method.
  51287. @see TaskID
  51288. @see TaskAttemptID]]>
  51289. </doc>
  51290. </class>
  51291. <!-- end class org.apache.hadoop.mapred.JobID -->
  51292. <!-- start class org.apache.hadoop.mapred.JobInProgress -->
  51293. <class name="JobInProgress" extends="java.lang.Object"
  51294. abstract="false"
  51295. static="false" final="false" visibility="public"
  51296. deprecated="not deprecated">
  51297. <constructor name="JobInProgress" type="org.apache.hadoop.mapred.JobID, org.apache.hadoop.mapred.JobConf, org.apache.hadoop.mapred.JobTracker"
  51298. static="false" final="false" visibility="protected"
  51299. deprecated="not deprecated">
  51300. <exception name="IOException" type="java.io.IOException"/>
  51301. <doc>
  51302. <![CDATA[Create an almost empty JobInProgress, which can be used only for tests]]>
  51303. </doc>
  51304. </constructor>
  51305. <method name="getQueueMetrics" return="org.apache.hadoop.mapred.QueueMetrics"
  51306. abstract="false" native="false" synchronized="false"
  51307. static="false" final="false" visibility="public"
  51308. deprecated="not deprecated">
  51309. <doc>
  51310. <![CDATA[Get the QueueMetrics object associated with this job
  51311. @return QueueMetrics]]>
  51312. </doc>
  51313. </method>
  51314. <method name="cleanUpMetrics"
  51315. abstract="false" native="false" synchronized="false"
  51316. static="false" final="false" visibility="public"
  51317. deprecated="not deprecated">
  51318. <doc>
  51319. <![CDATA[Called when the job is complete]]>
  51320. </doc>
  51321. </method>
  51322. <method name="inited" return="boolean"
  51323. abstract="false" native="false" synchronized="false"
  51324. static="false" final="false" visibility="public"
  51325. deprecated="not deprecated">
  51326. <doc>
  51327. <![CDATA[Check if the job has been initialized.
  51328. @return <code>true</code> if the job has been initialized,
  51329. <code>false</code> otherwise]]>
  51330. </doc>
  51331. </method>
  51332. <method name="getUser" return="java.lang.String"
  51333. abstract="false" native="false" synchronized="false"
  51334. static="false" final="false" visibility="public"
  51335. deprecated="not deprecated">
  51336. <doc>
  51337. <![CDATA[Get the user for the job]]>
  51338. </doc>
  51339. </method>
  51340. <method name="initTasks"
  51341. abstract="false" native="false" synchronized="true"
  51342. static="false" final="false" visibility="public"
  51343. deprecated="not deprecated">
  51344. <exception name="IOException" type="java.io.IOException"/>
  51345. <exception name="JobInProgress.KillInterruptedException" type="org.apache.hadoop.mapred.JobInProgress.KillInterruptedException"/>
  51346. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  51347. <doc>
  51348. <![CDATA[Construct the splits, etc. This is invoked from an async
  51349. thread so that split-computation doesn't block anyone.]]>
  51350. </doc>
  51351. </method>
  51352. <method name="getProfile" return="org.apache.hadoop.mapred.JobProfile"
  51353. abstract="false" native="false" synchronized="false"
  51354. static="false" final="false" visibility="public"
  51355. deprecated="not deprecated">
  51356. </method>
  51357. <method name="getStatus" return="org.apache.hadoop.mapred.JobStatus"
  51358. abstract="false" native="false" synchronized="false"
  51359. static="false" final="false" visibility="public"
  51360. deprecated="not deprecated">
  51361. </method>
  51362. <method name="getLaunchTime" return="long"
  51363. abstract="false" native="false" synchronized="true"
  51364. static="false" final="false" visibility="public"
  51365. deprecated="not deprecated">
  51366. </method>
  51367. <method name="getStartTime" return="long"
  51368. abstract="false" native="false" synchronized="false"
  51369. static="false" final="false" visibility="public"
  51370. deprecated="not deprecated">
  51371. </method>
  51372. <method name="getFinishTime" return="long"
  51373. abstract="false" native="false" synchronized="false"
  51374. static="false" final="false" visibility="public"
  51375. deprecated="not deprecated">
  51376. </method>
  51377. <method name="desiredMaps" return="int"
  51378. abstract="false" native="false" synchronized="false"
  51379. static="false" final="false" visibility="public"
  51380. deprecated="not deprecated">
  51381. </method>
  51382. <method name="finishedMaps" return="int"
  51383. abstract="false" native="false" synchronized="true"
  51384. static="false" final="false" visibility="public"
  51385. deprecated="not deprecated">
  51386. </method>
  51387. <method name="desiredReduces" return="int"
  51388. abstract="false" native="false" synchronized="false"
  51389. static="false" final="false" visibility="public"
  51390. deprecated="not deprecated">
  51391. </method>
  51392. <method name="runningMaps" return="int"
  51393. abstract="false" native="false" synchronized="true"
  51394. static="false" final="false" visibility="public"
  51395. deprecated="not deprecated">
  51396. </method>
  51397. <method name="runningReduces" return="int"
  51398. abstract="false" native="false" synchronized="true"
  51399. static="false" final="false" visibility="public"
  51400. deprecated="not deprecated">
  51401. </method>
  51402. <method name="finishedReduces" return="int"
  51403. abstract="false" native="false" synchronized="true"
  51404. static="false" final="false" visibility="public"
  51405. deprecated="not deprecated">
  51406. </method>
  51407. <method name="pendingMaps" return="int"
  51408. abstract="false" native="false" synchronized="true"
  51409. static="false" final="false" visibility="public"
  51410. deprecated="not deprecated">
  51411. </method>
  51412. <method name="pendingReduces" return="int"
  51413. abstract="false" native="false" synchronized="true"
  51414. static="false" final="false" visibility="public"
  51415. deprecated="not deprecated">
  51416. </method>
  51417. <method name="desiredTasks" return="int"
  51418. abstract="false" native="false" synchronized="false"
  51419. static="false" final="false" visibility="public"
  51420. deprecated="not deprecated">
  51421. <doc>
  51422. <![CDATA[Return total number of map and reduce tasks desired by the job.
  51423. @return total number of map and reduce tasks desired by the job]]>
  51424. </doc>
  51425. </method>
  51426. <method name="getNumSlotsPerTask" return="int"
  51427. abstract="false" native="false" synchronized="false"
  51428. static="false" final="false" visibility="public"
  51429. deprecated="not deprecated">
  51430. <param name="taskType" type="org.apache.hadoop.mapreduce.TaskType"/>
  51431. </method>
  51432. <method name="getPriority" return="org.apache.hadoop.mapred.JobPriority"
  51433. abstract="false" native="false" synchronized="false"
  51434. static="false" final="false" visibility="public"
  51435. deprecated="not deprecated">
  51436. </method>
  51437. <method name="setPriority"
  51438. abstract="false" native="false" synchronized="false"
  51439. static="false" final="false" visibility="public"
  51440. deprecated="not deprecated">
  51441. <param name="priority" type="org.apache.hadoop.mapred.JobPriority"/>
  51442. </method>
  51443. <method name="reportTasksInProgress" return="java.util.Vector"
  51444. abstract="false" native="false" synchronized="true"
  51445. static="false" final="false" visibility="public"
  51446. deprecated="not deprecated">
  51447. <param name="shouldBeMap" type="boolean"/>
  51448. <param name="shouldBeComplete" type="boolean"/>
  51449. <doc>
  51450. <![CDATA[Return a vector of completed TaskInProgress objects]]>
  51451. </doc>
  51452. </method>
  51453. <method name="reportCleanupTIPs" return="java.util.Vector"
  51454. abstract="false" native="false" synchronized="true"
  51455. static="false" final="false" visibility="public"
  51456. deprecated="not deprecated">
  51457. <param name="shouldBeComplete" type="boolean"/>
  51458. <doc>
  51459. <![CDATA[Return a vector of cleanup TaskInProgress objects]]>
  51460. </doc>
  51461. </method>
  51462. <method name="reportSetupTIPs" 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="shouldBeComplete" type="boolean"/>
  51467. <doc>
  51468. <![CDATA[Return a vector of setup TaskInProgress objects]]>
  51469. </doc>
  51470. </method>
  51471. <method name="updateTaskStatus"
  51472. abstract="false" native="false" synchronized="true"
  51473. static="false" final="false" visibility="public"
  51474. deprecated="not deprecated">
  51475. <param name="tip" type="org.apache.hadoop.mapred.TaskInProgress"/>
  51476. <param name="status" type="org.apache.hadoop.mapred.TaskStatus"/>
  51477. <doc>
  51478. <![CDATA[Assuming {@link JobTracker} is locked on entry.]]>
  51479. </doc>
  51480. </method>
  51481. <method name="getJobCounters" return="org.apache.hadoop.mapred.Counters"
  51482. abstract="false" native="false" synchronized="true"
  51483. static="false" final="false" visibility="public"
  51484. deprecated="not deprecated">
  51485. <doc>
  51486. <![CDATA[Returns the job-level counters.
  51487. @return the job-level counters.]]>
  51488. </doc>
  51489. </method>
  51490. <method name="getMapCounters" return="boolean"
  51491. abstract="false" native="false" synchronized="true"
  51492. static="false" final="false" visibility="public"
  51493. deprecated="not deprecated">
  51494. <param name="counters" type="org.apache.hadoop.mapred.Counters"/>
  51495. <doc>
  51496. <![CDATA[Returns map phase counters by summing over all map tasks in progress.
  51497. This method returns true if counters are within limit or false.]]>
  51498. </doc>
  51499. </method>
  51500. <method name="getReduceCounters" return="boolean"
  51501. abstract="false" native="false" synchronized="true"
  51502. static="false" final="false" visibility="public"
  51503. deprecated="not deprecated">
  51504. <param name="counters" type="org.apache.hadoop.mapred.Counters"/>
  51505. <doc>
  51506. <![CDATA[Returns map phase counters by summing over all map tasks in progress.
  51507. This method returns true if counters are within limits and false otherwise.]]>
  51508. </doc>
  51509. </method>
  51510. <method name="getCounters" return="boolean"
  51511. abstract="false" native="false" synchronized="true"
  51512. static="false" final="false" visibility="public"
  51513. deprecated="not deprecated">
  51514. <param name="result" type="org.apache.hadoop.mapred.Counters"/>
  51515. <doc>
  51516. <![CDATA[Returns the total job counters, by adding together the job,
  51517. the map and the reduce counters. This method returns true if
  51518. counters are within limits and false otherwise.]]>
  51519. </doc>
  51520. </method>
  51521. <method name="obtainNewMapTask" return="org.apache.hadoop.mapred.Task"
  51522. abstract="false" native="false" synchronized="true"
  51523. static="false" final="false" visibility="public"
  51524. deprecated="not deprecated">
  51525. <param name="tts" type="org.apache.hadoop.mapred.TaskTrackerStatus"/>
  51526. <param name="clusterSize" type="int"/>
  51527. <param name="numUniqueHosts" type="int"/>
  51528. <exception name="IOException" type="java.io.IOException"/>
  51529. <doc>
  51530. <![CDATA[Return a MapTask, if appropriate, to run on the given tasktracker]]>
  51531. </doc>
  51532. </method>
  51533. <method name="obtainNewMapTaskCommon" return="org.apache.hadoop.mapred.Task"
  51534. abstract="false" native="false" synchronized="true"
  51535. static="false" final="false" visibility="public"
  51536. deprecated="not deprecated">
  51537. <param name="tts" type="org.apache.hadoop.mapred.TaskTrackerStatus"/>
  51538. <param name="clusterSize" type="int"/>
  51539. <param name="numUniqueHosts" type="int"/>
  51540. <param name="maxCacheLevel" type="int"/>
  51541. <exception name="IOException" type="java.io.IOException"/>
  51542. <doc>
  51543. <![CDATA[Return a MapTask with locality level that smaller or equal than a given
  51544. locality level to tasktracker.
  51545. @param tts The task tracker that is asking for a task
  51546. @param clusterSize The number of task trackers in the cluster
  51547. @param numUniqueHosts The number of hosts that run task trackers
  51548. @param avgProgress The average progress of this kind of task in this job
  51549. @param maxCacheLevel The maximum topology level until which to schedule
  51550. maps.
  51551. @return the index in tasks of the selected task (or -1 for no task)
  51552. @throws IOException]]>
  51553. </doc>
  51554. </method>
  51555. <method name="obtainTaskCleanupTask" return="org.apache.hadoop.mapred.Task"
  51556. abstract="false" native="false" synchronized="false"
  51557. static="false" final="false" visibility="public"
  51558. deprecated="not deprecated">
  51559. <param name="tts" type="org.apache.hadoop.mapred.TaskTrackerStatus"/>
  51560. <param name="isMapSlot" type="boolean"/>
  51561. <exception name="IOException" type="java.io.IOException"/>
  51562. </method>
  51563. <method name="obtainNewNodeLocalMapTask" return="org.apache.hadoop.mapred.Task"
  51564. abstract="false" native="false" synchronized="true"
  51565. static="false" final="false" visibility="public"
  51566. deprecated="not deprecated">
  51567. <param name="tts" type="org.apache.hadoop.mapred.TaskTrackerStatus"/>
  51568. <param name="clusterSize" type="int"/>
  51569. <param name="numUniqueHosts" type="int"/>
  51570. <exception name="IOException" type="java.io.IOException"/>
  51571. </method>
  51572. <method name="obtainNewNodeOrRackLocalMapTask" return="org.apache.hadoop.mapred.Task"
  51573. abstract="false" native="false" synchronized="true"
  51574. static="false" final="false" visibility="public"
  51575. deprecated="not deprecated">
  51576. <param name="tts" type="org.apache.hadoop.mapred.TaskTrackerStatus"/>
  51577. <param name="clusterSize" type="int"/>
  51578. <param name="numUniqueHosts" type="int"/>
  51579. <exception name="IOException" type="java.io.IOException"/>
  51580. </method>
  51581. <method name="obtainNewNonLocalMapTask" return="org.apache.hadoop.mapred.Task"
  51582. abstract="false" native="false" synchronized="true"
  51583. static="false" final="false" visibility="public"
  51584. deprecated="not deprecated">
  51585. <param name="tts" type="org.apache.hadoop.mapred.TaskTrackerStatus"/>
  51586. <param name="clusterSize" type="int"/>
  51587. <param name="numUniqueHosts" type="int"/>
  51588. <exception name="IOException" type="java.io.IOException"/>
  51589. </method>
  51590. <method name="schedulingOpportunity"
  51591. abstract="false" native="false" synchronized="false"
  51592. static="false" final="false" visibility="public"
  51593. deprecated="not deprecated">
  51594. </method>
  51595. <method name="resetSchedulingOpportunities"
  51596. abstract="false" native="false" synchronized="false"
  51597. static="false" final="false" visibility="public"
  51598. deprecated="not deprecated">
  51599. </method>
  51600. <method name="getNumSchedulingOpportunities" return="long"
  51601. abstract="false" native="false" synchronized="false"
  51602. static="false" final="false" visibility="public"
  51603. deprecated="not deprecated">
  51604. </method>
  51605. <method name="overrideSchedulingOpportunities"
  51606. abstract="false" native="false" synchronized="false"
  51607. static="false" final="false" visibility="public"
  51608. deprecated="not deprecated">
  51609. </method>
  51610. <method name="scheduleOffSwitch" return="boolean"
  51611. abstract="false" native="false" synchronized="false"
  51612. static="false" final="false" visibility="public"
  51613. deprecated="not deprecated">
  51614. <param name="numTaskTrackers" type="int"/>
  51615. <doc>
  51616. <![CDATA[Check if we can schedule an off-switch task for this job.
  51617. @param numTaskTrackers number of tasktrackers
  51618. @return <code>true</code> if we can schedule off-switch,
  51619. <code>false</code> otherwise
  51620. We check the number of missed opportunities for the job.
  51621. If it has 'waited' long enough we go ahead and schedule.]]>
  51622. </doc>
  51623. </method>
  51624. <method name="obtainJobCleanupTask" return="org.apache.hadoop.mapred.Task"
  51625. abstract="false" native="false" synchronized="false"
  51626. static="false" final="false" visibility="public"
  51627. deprecated="not deprecated">
  51628. <param name="tts" type="org.apache.hadoop.mapred.TaskTrackerStatus"/>
  51629. <param name="clusterSize" type="int"/>
  51630. <param name="numUniqueHosts" type="int"/>
  51631. <param name="isMapSlot" type="boolean"/>
  51632. <exception name="IOException" type="java.io.IOException"/>
  51633. <doc>
  51634. <![CDATA[Return a CleanupTask, if appropriate, to run on the given tasktracker]]>
  51635. </doc>
  51636. </method>
  51637. <method name="obtainJobSetupTask" return="org.apache.hadoop.mapred.Task"
  51638. abstract="false" native="false" synchronized="false"
  51639. static="false" final="false" visibility="public"
  51640. deprecated="not deprecated">
  51641. <param name="tts" type="org.apache.hadoop.mapred.TaskTrackerStatus"/>
  51642. <param name="clusterSize" type="int"/>
  51643. <param name="numUniqueHosts" type="int"/>
  51644. <param name="isMapSlot" type="boolean"/>
  51645. <exception name="IOException" type="java.io.IOException"/>
  51646. <doc>
  51647. <![CDATA[Return a SetupTask, if appropriate, to run on the given tasktracker]]>
  51648. </doc>
  51649. </method>
  51650. <method name="scheduleReduces" return="boolean"
  51651. abstract="false" native="false" synchronized="true"
  51652. static="false" final="false" visibility="public"
  51653. deprecated="not deprecated">
  51654. </method>
  51655. <method name="obtainNewReduceTask" return="org.apache.hadoop.mapred.Task"
  51656. abstract="false" native="false" synchronized="true"
  51657. static="false" final="false" visibility="public"
  51658. deprecated="not deprecated">
  51659. <param name="tts" type="org.apache.hadoop.mapred.TaskTrackerStatus"/>
  51660. <param name="clusterSize" type="int"/>
  51661. <param name="numUniqueHosts" type="int"/>
  51662. <exception name="IOException" type="java.io.IOException"/>
  51663. <doc>
  51664. <![CDATA[Return a ReduceTask, if appropriate, to run on the given tasktracker.
  51665. We don't have cache-sensitivity for reduce tasks, as they
  51666. work on temporary MapRed files.]]>
  51667. </doc>
  51668. </method>
  51669. <method name="reserveTaskTracker"
  51670. abstract="false" native="false" synchronized="true"
  51671. static="false" final="false" visibility="public"
  51672. deprecated="not deprecated">
  51673. <param name="taskTracker" type="org.apache.hadoop.mapreduce.server.jobtracker.TaskTracker"/>
  51674. <param name="type" type="org.apache.hadoop.mapreduce.TaskType"/>
  51675. <param name="numSlots" type="int"/>
  51676. </method>
  51677. <method name="unreserveTaskTracker"
  51678. abstract="false" native="false" synchronized="true"
  51679. static="false" final="false" visibility="public"
  51680. deprecated="not deprecated">
  51681. <param name="taskTracker" type="org.apache.hadoop.mapreduce.server.jobtracker.TaskTracker"/>
  51682. <param name="type" type="org.apache.hadoop.mapreduce.TaskType"/>
  51683. </method>
  51684. <method name="getNumReservedTaskTrackersForMaps" return="int"
  51685. abstract="false" native="false" synchronized="false"
  51686. static="false" final="false" visibility="public"
  51687. deprecated="not deprecated">
  51688. </method>
  51689. <method name="getNumReservedTaskTrackersForReduces" return="int"
  51690. abstract="false" native="false" synchronized="false"
  51691. static="false" final="false" visibility="public"
  51692. deprecated="not deprecated">
  51693. </method>
  51694. <method name="scheduleMap"
  51695. abstract="false" native="false" synchronized="true"
  51696. static="false" final="false" visibility="protected"
  51697. deprecated="not deprecated">
  51698. <param name="tip" type="org.apache.hadoop.mapred.TaskInProgress"/>
  51699. <doc>
  51700. <![CDATA[Adds a map tip to the list of running maps.
  51701. @param tip the tip that needs to be scheduled as running]]>
  51702. </doc>
  51703. </method>
  51704. <method name="scheduleReduce"
  51705. abstract="false" native="false" synchronized="true"
  51706. static="false" final="false" visibility="protected"
  51707. deprecated="not deprecated">
  51708. <param name="tip" type="org.apache.hadoop.mapred.TaskInProgress"/>
  51709. <doc>
  51710. <![CDATA[Adds a reduce tip to the list of running reduces
  51711. @param tip the tip that needs to be scheduled as running]]>
  51712. </doc>
  51713. </method>
  51714. <method name="findSpeculativeTask" return="org.apache.hadoop.mapred.TaskInProgress"
  51715. abstract="false" native="false" synchronized="true"
  51716. static="false" final="false" visibility="protected"
  51717. deprecated="not deprecated">
  51718. <param name="list" type="java.util.Collection"/>
  51719. <param name="ttStatus" type="org.apache.hadoop.mapred.TaskTrackerStatus"/>
  51720. <param name="avgProgress" type="double"/>
  51721. <param name="currentTime" type="long"/>
  51722. <param name="shouldRemove" type="boolean"/>
  51723. <doc>
  51724. <![CDATA[Find a speculative task
  51725. @param list a list of tips
  51726. @param ttStatus status of the tracker that has requested a tip
  51727. @param avgProgress the average progress for speculation
  51728. @param currentTime current time in milliseconds
  51729. @param shouldRemove whether to remove the tips
  51730. @return a tip that can be speculated on the tracker]]>
  51731. </doc>
  51732. </method>
  51733. <method name="completedTask" return="boolean"
  51734. abstract="false" native="false" synchronized="true"
  51735. static="false" final="false" visibility="public"
  51736. deprecated="not deprecated">
  51737. <param name="tip" type="org.apache.hadoop.mapred.TaskInProgress"/>
  51738. <param name="status" type="org.apache.hadoop.mapred.TaskStatus"/>
  51739. <doc>
  51740. <![CDATA[A taskid assigned to this JobInProgress has reported in successfully.]]>
  51741. </doc>
  51742. </method>
  51743. <method name="kill"
  51744. abstract="false" native="false" synchronized="false"
  51745. static="false" final="false" visibility="public"
  51746. deprecated="not deprecated">
  51747. <doc>
  51748. <![CDATA[Kill the job and all its component tasks. This method should be called from
  51749. jobtracker and should return fast as it locks the jobtracker.]]>
  51750. </doc>
  51751. </method>
  51752. <method name="failedTask"
  51753. abstract="false" native="false" synchronized="false"
  51754. static="false" final="false" visibility="public"
  51755. deprecated="not deprecated">
  51756. <param name="tip" type="org.apache.hadoop.mapred.TaskInProgress"/>
  51757. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  51758. <param name="reason" type="java.lang.String"/>
  51759. <param name="phase" type="org.apache.hadoop.mapred.TaskStatus.Phase"/>
  51760. <param name="state" type="org.apache.hadoop.mapred.TaskStatus.State"/>
  51761. <param name="trackerName" type="java.lang.String"/>
  51762. <doc>
  51763. <![CDATA[Fail a task with a given reason, but without a status object.
  51764. Assuming {@link JobTracker} is locked on entry.
  51765. @param tip The task's tip
  51766. @param taskid The task id
  51767. @param reason The reason that the task failed
  51768. @param trackerName The task tracker the task failed on]]>
  51769. </doc>
  51770. </method>
  51771. <method name="getTaskInProgress" return="org.apache.hadoop.mapred.TaskInProgress"
  51772. abstract="false" native="false" synchronized="true"
  51773. static="false" final="false" visibility="public"
  51774. deprecated="not deprecated">
  51775. <param name="tipid" type="org.apache.hadoop.mapred.TaskID"/>
  51776. <doc>
  51777. <![CDATA[Return the TaskInProgress that matches the tipid.]]>
  51778. </doc>
  51779. </method>
  51780. <method name="findFinishedMap" return="org.apache.hadoop.mapred.TaskStatus"
  51781. abstract="false" native="false" synchronized="true"
  51782. static="false" final="false" visibility="public"
  51783. deprecated="not deprecated">
  51784. <param name="mapId" type="int"/>
  51785. <doc>
  51786. <![CDATA[Find the details of someplace where a map has finished
  51787. @param mapId the id of the map
  51788. @return the task status of the completed task]]>
  51789. </doc>
  51790. </method>
  51791. <method name="getTaskCompletionEvents" return="org.apache.hadoop.mapred.TaskCompletionEvent[]"
  51792. abstract="false" native="false" synchronized="true"
  51793. static="false" final="false" visibility="public"
  51794. deprecated="not deprecated">
  51795. <param name="fromEventId" type="int"/>
  51796. <param name="maxEvents" type="int"/>
  51797. </method>
  51798. <method name="getJobID" return="org.apache.hadoop.mapred.JobID"
  51799. abstract="false" native="false" synchronized="false"
  51800. static="false" final="false" visibility="public"
  51801. deprecated="not deprecated">
  51802. <doc>
  51803. <![CDATA[@return The JobID of this JobInProgress.]]>
  51804. </doc>
  51805. </method>
  51806. <method name="getJobSubmitHostName" return="java.lang.String"
  51807. abstract="false" native="false" synchronized="false"
  51808. static="false" final="false" visibility="public"
  51809. deprecated="not deprecated">
  51810. <doc>
  51811. <![CDATA[@return submitHostName of this JobInProgress.]]>
  51812. </doc>
  51813. </method>
  51814. <method name="getJobSubmitHostAddress" return="java.lang.String"
  51815. abstract="false" native="false" synchronized="false"
  51816. static="false" final="false" visibility="public"
  51817. deprecated="not deprecated">
  51818. <doc>
  51819. <![CDATA[@return submitHostAddress of this JobInProgress.]]>
  51820. </doc>
  51821. </method>
  51822. <method name="getSchedulingInfo" return="java.lang.Object"
  51823. abstract="false" native="false" synchronized="true"
  51824. static="false" final="false" visibility="public"
  51825. deprecated="not deprecated">
  51826. </method>
  51827. <method name="setSchedulingInfo"
  51828. abstract="false" native="false" synchronized="true"
  51829. static="false" final="false" visibility="public"
  51830. deprecated="not deprecated">
  51831. <param name="schedulingInfo" type="java.lang.Object"/>
  51832. </method>
  51833. <field name="tokenStorage" type="org.apache.hadoop.security.Credentials"
  51834. transient="false" volatile="false"
  51835. static="false" final="false" visibility="protected"
  51836. deprecated="not deprecated">
  51837. </field>
  51838. <doc>
  51839. <![CDATA[JobInProgress maintains all the info for keeping
  51840. a Job on the straight and narrow. It keeps its JobProfile
  51841. and its latest JobStatus, plus a set of tables for
  51842. doing bookkeeping of its Tasks.
  51843. ***********************************************************]]>
  51844. </doc>
  51845. </class>
  51846. <!-- end class org.apache.hadoop.mapred.JobInProgress -->
  51847. <!-- start class org.apache.hadoop.mapred.JobInProgress.Counter -->
  51848. <class name="JobInProgress.Counter" extends="java.lang.Enum"
  51849. abstract="false"
  51850. static="true" final="true" visibility="public"
  51851. deprecated="not deprecated">
  51852. <method name="values" return="org.apache.hadoop.mapred.JobInProgress.Counter[]"
  51853. abstract="false" native="false" synchronized="false"
  51854. static="true" final="false" visibility="public"
  51855. deprecated="not deprecated">
  51856. </method>
  51857. <method name="valueOf" return="org.apache.hadoop.mapred.JobInProgress.Counter"
  51858. abstract="false" native="false" synchronized="false"
  51859. static="true" final="false" visibility="public"
  51860. deprecated="not deprecated">
  51861. <param name="name" type="java.lang.String"/>
  51862. </method>
  51863. <field name="NUM_FAILED_MAPS" type="org.apache.hadoop.mapred.JobInProgress.Counter"
  51864. transient="false" volatile="false"
  51865. static="true" final="true" visibility="public"
  51866. deprecated="not deprecated">
  51867. </field>
  51868. <field name="NUM_FAILED_REDUCES" type="org.apache.hadoop.mapred.JobInProgress.Counter"
  51869. transient="false" volatile="false"
  51870. static="true" final="true" visibility="public"
  51871. deprecated="not deprecated">
  51872. </field>
  51873. <field name="TOTAL_LAUNCHED_MAPS" type="org.apache.hadoop.mapred.JobInProgress.Counter"
  51874. transient="false" volatile="false"
  51875. static="true" final="true" visibility="public"
  51876. deprecated="not deprecated">
  51877. </field>
  51878. <field name="TOTAL_LAUNCHED_REDUCES" type="org.apache.hadoop.mapred.JobInProgress.Counter"
  51879. transient="false" volatile="false"
  51880. static="true" final="true" visibility="public"
  51881. deprecated="not deprecated">
  51882. </field>
  51883. <field name="OTHER_LOCAL_MAPS" type="org.apache.hadoop.mapred.JobInProgress.Counter"
  51884. transient="false" volatile="false"
  51885. static="true" final="true" visibility="public"
  51886. deprecated="not deprecated">
  51887. </field>
  51888. <field name="DATA_LOCAL_MAPS" type="org.apache.hadoop.mapred.JobInProgress.Counter"
  51889. transient="false" volatile="false"
  51890. static="true" final="true" visibility="public"
  51891. deprecated="not deprecated">
  51892. </field>
  51893. <field name="NODEGROUP_LOCAL_MAPS" type="org.apache.hadoop.mapred.JobInProgress.Counter"
  51894. transient="false" volatile="false"
  51895. static="true" final="true" visibility="public"
  51896. deprecated="not deprecated">
  51897. </field>
  51898. <field name="RACK_LOCAL_MAPS" type="org.apache.hadoop.mapred.JobInProgress.Counter"
  51899. transient="false" volatile="false"
  51900. static="true" final="true" visibility="public"
  51901. deprecated="not deprecated">
  51902. </field>
  51903. <field name="SLOTS_MILLIS_MAPS" type="org.apache.hadoop.mapred.JobInProgress.Counter"
  51904. transient="false" volatile="false"
  51905. static="true" final="true" visibility="public"
  51906. deprecated="not deprecated">
  51907. </field>
  51908. <field name="SLOTS_MILLIS_REDUCES" type="org.apache.hadoop.mapred.JobInProgress.Counter"
  51909. transient="false" volatile="false"
  51910. static="true" final="true" visibility="public"
  51911. deprecated="not deprecated">
  51912. </field>
  51913. <field name="FALLOW_SLOTS_MILLIS_MAPS" type="org.apache.hadoop.mapred.JobInProgress.Counter"
  51914. transient="false" volatile="false"
  51915. static="true" final="true" visibility="public"
  51916. deprecated="not deprecated">
  51917. </field>
  51918. <field name="FALLOW_SLOTS_MILLIS_REDUCES" type="org.apache.hadoop.mapred.JobInProgress.Counter"
  51919. transient="false" volatile="false"
  51920. static="true" final="true" visibility="public"
  51921. deprecated="not deprecated">
  51922. </field>
  51923. </class>
  51924. <!-- end class org.apache.hadoop.mapred.JobInProgress.Counter -->
  51925. <!-- start class org.apache.hadoop.mapred.JobLocalizer -->
  51926. <class name="JobLocalizer" extends="java.lang.Object"
  51927. abstract="false"
  51928. static="false" final="false" visibility="public"
  51929. deprecated="not deprecated">
  51930. <constructor name="JobLocalizer" type="org.apache.hadoop.mapred.JobConf, java.lang.String, java.lang.String"
  51931. static="false" final="false" visibility="public"
  51932. deprecated="not deprecated">
  51933. <exception name="IOException" type="java.io.IOException"/>
  51934. </constructor>
  51935. <constructor name="JobLocalizer" type="org.apache.hadoop.mapred.JobConf, java.lang.String, java.lang.String, java.lang.String[]"
  51936. static="false" final="false" visibility="public"
  51937. deprecated="not deprecated">
  51938. <exception name="IOException" type="java.io.IOException"/>
  51939. </constructor>
  51940. <method name="createLocalDirs"
  51941. abstract="false" native="false" synchronized="false"
  51942. static="false" final="false" visibility="public"
  51943. deprecated="not deprecated">
  51944. <exception name="IOException" type="java.io.IOException"/>
  51945. </method>
  51946. <method name="createUserDirs"
  51947. abstract="false" native="false" synchronized="false"
  51948. static="false" final="false" visibility="public"
  51949. deprecated="not deprecated">
  51950. <exception name="IOException" type="java.io.IOException"/>
  51951. <doc>
  51952. <![CDATA[Initialize the local directories for a particular user on this TT. This
  51953. involves creation and setting permissions of the following directories
  51954. <ul>
  51955. <li>$mapred.local.dir/taskTracker/$user</li>
  51956. <li>$mapred.local.dir/taskTracker/$user/jobcache</li>
  51957. <li>$mapred.local.dir/taskTracker/$user/distcache</li>
  51958. </ul>]]>
  51959. </doc>
  51960. </method>
  51961. <method name="createJobDirs"
  51962. abstract="false" native="false" synchronized="false"
  51963. static="false" final="false" visibility="public"
  51964. deprecated="not deprecated">
  51965. <exception name="IOException" type="java.io.IOException"/>
  51966. <doc>
  51967. <![CDATA[Prepare the job directories for a given job. To be called by the job
  51968. localization code, only if the job is not already localized.
  51969. <br>
  51970. Here, we set 700 permissions on the job directories created on all disks.
  51971. This we do so as to avoid any misuse by other users till the time
  51972. {@link TaskController#initializeJob} is run at a
  51973. later time to set proper private permissions on the job directories. <br>]]>
  51974. </doc>
  51975. </method>
  51976. <method name="initializeJobLogDir"
  51977. abstract="false" native="false" synchronized="false"
  51978. static="false" final="false" visibility="public"
  51979. deprecated="not deprecated">
  51980. <exception name="IOException" type="java.io.IOException"/>
  51981. <doc>
  51982. <![CDATA[Create job log directory and set appropriate permissions for the directory.]]>
  51983. </doc>
  51984. </method>
  51985. <method name="downloadPrivateCache" return="long[]"
  51986. abstract="false" native="false" synchronized="false"
  51987. static="true" final="false" visibility="public"
  51988. deprecated="not deprecated">
  51989. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  51990. <exception name="IOException" type="java.io.IOException"/>
  51991. <doc>
  51992. <![CDATA[Download the parts of the distributed cache that are private.
  51993. @param conf the job's configuration
  51994. @throws IOException
  51995. @return the size of the archive objects]]>
  51996. </doc>
  51997. </method>
  51998. <method name="localizeJobFiles"
  51999. abstract="false" native="false" synchronized="false"
  52000. static="false" final="false" visibility="public"
  52001. deprecated="not deprecated">
  52002. <param name="jobid" type="org.apache.hadoop.mapreduce.JobID"/>
  52003. <param name="jConf" type="org.apache.hadoop.mapred.JobConf"/>
  52004. <param name="localJobTokenFile" type="org.apache.hadoop.fs.Path"/>
  52005. <param name="taskTracker" type="org.apache.hadoop.mapred.TaskUmbilicalProtocol"/>
  52006. <exception name="IOException" type="java.io.IOException"/>
  52007. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  52008. </method>
  52009. <method name="localizeJobFiles"
  52010. abstract="false" native="false" synchronized="false"
  52011. static="false" final="false" visibility="public"
  52012. deprecated="not deprecated">
  52013. <param name="jobid" type="org.apache.hadoop.mapreduce.JobID"/>
  52014. <param name="jConf" type="org.apache.hadoop.mapred.JobConf"/>
  52015. <param name="localJobFile" type="org.apache.hadoop.fs.Path"/>
  52016. <param name="localJobTokenFile" type="org.apache.hadoop.fs.Path"/>
  52017. <param name="taskTracker" type="org.apache.hadoop.mapred.TaskUmbilicalProtocol"/>
  52018. <exception name="IOException" type="java.io.IOException"/>
  52019. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  52020. </method>
  52021. <method name="createWorkDir"
  52022. abstract="false" native="false" synchronized="false"
  52023. static="false" final="false" visibility="public"
  52024. deprecated="not deprecated">
  52025. <param name="jConf" type="org.apache.hadoop.mapred.JobConf"/>
  52026. <exception name="IOException" type="java.io.IOException"/>
  52027. </method>
  52028. <method name="findCredentials" return="org.apache.hadoop.fs.Path"
  52029. abstract="false" native="false" synchronized="false"
  52030. static="false" final="false" visibility="public"
  52031. deprecated="not deprecated">
  52032. <exception name="IOException" type="java.io.IOException"/>
  52033. </method>
  52034. <method name="runSetup" return="int"
  52035. abstract="false" native="false" synchronized="false"
  52036. static="false" final="false" visibility="public"
  52037. deprecated="not deprecated">
  52038. <param name="user" type="java.lang.String"/>
  52039. <param name="jobid" type="java.lang.String"/>
  52040. <param name="localJobTokenFile" type="org.apache.hadoop.fs.Path"/>
  52041. <param name="taskTracker" type="org.apache.hadoop.mapred.TaskUmbilicalProtocol"/>
  52042. <exception name="IOException" type="java.io.IOException"/>
  52043. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  52044. </method>
  52045. <method name="main"
  52046. abstract="false" native="false" synchronized="false"
  52047. static="true" final="false" visibility="public"
  52048. deprecated="not deprecated">
  52049. <param name="argv" type="java.lang.String[]"/>
  52050. <exception name="IOException" type="java.io.IOException"/>
  52051. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  52052. </method>
  52053. <method name="writeLocalJobFile"
  52054. abstract="false" native="false" synchronized="false"
  52055. static="true" final="false" visibility="public"
  52056. deprecated="not deprecated">
  52057. <param name="jobFile" type="org.apache.hadoop.fs.Path"/>
  52058. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  52059. <exception name="IOException" type="java.io.IOException"/>
  52060. <doc>
  52061. <![CDATA[Write the task specific job-configuration file.
  52062. @throws IOException]]>
  52063. </doc>
  52064. </method>
  52065. <field name="ttConf" type="org.apache.hadoop.mapred.JobConf"
  52066. transient="false" volatile="false"
  52067. static="false" final="true" visibility="protected"
  52068. deprecated="not deprecated">
  52069. </field>
  52070. <field name="JOB_LOCAL_CTXT" type="java.lang.String"
  52071. transient="false" volatile="false"
  52072. static="true" final="true" visibility="protected"
  52073. deprecated="not deprecated">
  52074. </field>
  52075. <doc>
  52076. <![CDATA[Internal class responsible for initializing the job, not intended for users.
  52077. Creates the following hierarchy:
  52078. <li>$mapred.local.dir/taskTracker/$user</li>
  52079. <li>$mapred.local.dir/taskTracker/$user/jobcache</li>
  52080. <li>$mapred.local.dir/taskTracker/$user/jobcache/$jobid/work</li>
  52081. <li>$mapred.local.dir/taskTracker/$user/jobcache/$jobid/jars</li>
  52082. <li>$mapred.local.dir/taskTracker/$user/jobcache/$jobid/jars/job.jar</li>
  52083. <li>$mapred.local.dir/taskTracker/$user/jobcache/$jobid/job.xml</li>
  52084. <li>$mapred.local.dir/taskTracker/$user/jobcache/$jobid/jobToken</li>
  52085. <li>$mapred.local.dir/taskTracker/$user/distcache</li>]]>
  52086. </doc>
  52087. </class>
  52088. <!-- end class org.apache.hadoop.mapred.JobLocalizer -->
  52089. <!-- start class org.apache.hadoop.mapred.JobPriority -->
  52090. <class name="JobPriority" extends="java.lang.Enum"
  52091. abstract="false"
  52092. static="false" final="true" visibility="public"
  52093. deprecated="not deprecated">
  52094. <method name="values" return="org.apache.hadoop.mapred.JobPriority[]"
  52095. abstract="false" native="false" synchronized="false"
  52096. static="true" final="false" visibility="public"
  52097. deprecated="not deprecated">
  52098. </method>
  52099. <method name="valueOf" return="org.apache.hadoop.mapred.JobPriority"
  52100. abstract="false" native="false" synchronized="false"
  52101. static="true" final="false" visibility="public"
  52102. deprecated="not deprecated">
  52103. <param name="name" type="java.lang.String"/>
  52104. </method>
  52105. <field name="VERY_HIGH" type="org.apache.hadoop.mapred.JobPriority"
  52106. transient="false" volatile="false"
  52107. static="true" final="true" visibility="public"
  52108. deprecated="not deprecated">
  52109. </field>
  52110. <field name="HIGH" type="org.apache.hadoop.mapred.JobPriority"
  52111. transient="false" volatile="false"
  52112. static="true" final="true" visibility="public"
  52113. deprecated="not deprecated">
  52114. </field>
  52115. <field name="NORMAL" type="org.apache.hadoop.mapred.JobPriority"
  52116. transient="false" volatile="false"
  52117. static="true" final="true" visibility="public"
  52118. deprecated="not deprecated">
  52119. </field>
  52120. <field name="LOW" type="org.apache.hadoop.mapred.JobPriority"
  52121. transient="false" volatile="false"
  52122. static="true" final="true" visibility="public"
  52123. deprecated="not deprecated">
  52124. </field>
  52125. <field name="VERY_LOW" type="org.apache.hadoop.mapred.JobPriority"
  52126. transient="false" volatile="false"
  52127. static="true" final="true" visibility="public"
  52128. deprecated="not deprecated">
  52129. </field>
  52130. <doc>
  52131. <![CDATA[Used to describe the priority of the running job.]]>
  52132. </doc>
  52133. </class>
  52134. <!-- end class org.apache.hadoop.mapred.JobPriority -->
  52135. <!-- start class org.apache.hadoop.mapred.JobProfile -->
  52136. <class name="JobProfile" extends="java.lang.Object"
  52137. abstract="false"
  52138. static="false" final="false" visibility="public"
  52139. deprecated="not deprecated">
  52140. <implements name="org.apache.hadoop.io.Writable"/>
  52141. <constructor name="JobProfile"
  52142. static="false" final="false" visibility="public"
  52143. deprecated="not deprecated">
  52144. <doc>
  52145. <![CDATA[Construct an empty {@link JobProfile}.]]>
  52146. </doc>
  52147. </constructor>
  52148. <constructor name="JobProfile" type="java.lang.String, org.apache.hadoop.mapreduce.JobID, java.lang.String, java.lang.String, java.lang.String"
  52149. static="false" final="false" visibility="public"
  52150. deprecated="not deprecated">
  52151. <doc>
  52152. <![CDATA[Construct a {@link JobProfile} the userid, jobid,
  52153. job config-file, job-details url and job name.
  52154. @param user userid of the person who submitted the job.
  52155. @param jobid id of the job.
  52156. @param jobFile job configuration file.
  52157. @param url link to the web-ui for details of the job.
  52158. @param name user-specified job name.]]>
  52159. </doc>
  52160. </constructor>
  52161. <constructor name="JobProfile" type="java.lang.String, org.apache.hadoop.mapreduce.JobID, java.lang.String, java.lang.String, java.lang.String, java.lang.String"
  52162. static="false" final="false" visibility="public"
  52163. deprecated="not deprecated">
  52164. <doc>
  52165. <![CDATA[Construct a {@link JobProfile} the userid, jobid,
  52166. job config-file, job-details url and job name.
  52167. @param user userid of the person who submitted the job.
  52168. @param jobid id of the job.
  52169. @param jobFile job configuration file.
  52170. @param url link to the web-ui for details of the job.
  52171. @param name user-specified job name.
  52172. @param queueName name of the queue to which the job is submitted]]>
  52173. </doc>
  52174. </constructor>
  52175. <constructor name="JobProfile" type="java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String"
  52176. static="false" final="false" visibility="public"
  52177. deprecated="use JobProfile(String, JobID, String, String, String) instead">
  52178. <doc>
  52179. <![CDATA[@deprecated use JobProfile(String, JobID, String, String, String) instead]]>
  52180. </doc>
  52181. </constructor>
  52182. <method name="getUser" return="java.lang.String"
  52183. abstract="false" native="false" synchronized="false"
  52184. static="false" final="false" visibility="public"
  52185. deprecated="not deprecated">
  52186. <doc>
  52187. <![CDATA[Get the user id.]]>
  52188. </doc>
  52189. </method>
  52190. <method name="getJobID" return="org.apache.hadoop.mapred.JobID"
  52191. abstract="false" native="false" synchronized="false"
  52192. static="false" final="false" visibility="public"
  52193. deprecated="not deprecated">
  52194. <doc>
  52195. <![CDATA[Get the job id.]]>
  52196. </doc>
  52197. </method>
  52198. <method name="getJobId" return="java.lang.String"
  52199. abstract="false" native="false" synchronized="false"
  52200. static="false" final="false" visibility="public"
  52201. deprecated="use getJobID() instead">
  52202. <doc>
  52203. <![CDATA[@deprecated use getJobID() instead]]>
  52204. </doc>
  52205. </method>
  52206. <method name="getJobFile" return="java.lang.String"
  52207. abstract="false" native="false" synchronized="false"
  52208. static="false" final="false" visibility="public"
  52209. deprecated="not deprecated">
  52210. <doc>
  52211. <![CDATA[Get the configuration file for the job.]]>
  52212. </doc>
  52213. </method>
  52214. <method name="getURL" return="java.net.URL"
  52215. abstract="false" native="false" synchronized="false"
  52216. static="false" final="false" visibility="public"
  52217. deprecated="not deprecated">
  52218. <doc>
  52219. <![CDATA[Get the link to the web-ui for details of the job.]]>
  52220. </doc>
  52221. </method>
  52222. <method name="getJobName" return="java.lang.String"
  52223. abstract="false" native="false" synchronized="false"
  52224. static="false" final="false" visibility="public"
  52225. deprecated="not deprecated">
  52226. <doc>
  52227. <![CDATA[Get the user-specified job name.]]>
  52228. </doc>
  52229. </method>
  52230. <method name="getQueueName" return="java.lang.String"
  52231. abstract="false" native="false" synchronized="false"
  52232. static="false" final="false" visibility="public"
  52233. deprecated="not deprecated">
  52234. <doc>
  52235. <![CDATA[Get the name of the queue to which the job is submitted.
  52236. @return name of the queue.]]>
  52237. </doc>
  52238. </method>
  52239. <method name="write"
  52240. abstract="false" native="false" synchronized="false"
  52241. static="false" final="false" visibility="public"
  52242. deprecated="not deprecated">
  52243. <param name="out" type="java.io.DataOutput"/>
  52244. <exception name="IOException" type="java.io.IOException"/>
  52245. </method>
  52246. <method name="readFields"
  52247. abstract="false" native="false" synchronized="false"
  52248. static="false" final="false" visibility="public"
  52249. deprecated="not deprecated">
  52250. <param name="in" type="java.io.DataInput"/>
  52251. <exception name="IOException" type="java.io.IOException"/>
  52252. </method>
  52253. <doc>
  52254. <![CDATA[A JobProfile is a MapReduce primitive. Tracks a job,
  52255. whether living or dead.]]>
  52256. </doc>
  52257. </class>
  52258. <!-- end class org.apache.hadoop.mapred.JobProfile -->
  52259. <!-- start class org.apache.hadoop.mapred.JobQueueInfo -->
  52260. <class name="JobQueueInfo" extends="java.lang.Object"
  52261. abstract="false"
  52262. static="false" final="false" visibility="public"
  52263. deprecated="not deprecated">
  52264. <implements name="org.apache.hadoop.io.Writable"/>
  52265. <constructor name="JobQueueInfo"
  52266. static="false" final="false" visibility="public"
  52267. deprecated="not deprecated">
  52268. </constructor>
  52269. <constructor name="JobQueueInfo" type="java.lang.String, java.lang.String"
  52270. static="false" final="false" visibility="public"
  52271. deprecated="not deprecated">
  52272. <doc>
  52273. <![CDATA[Construct a new JobQueueInfo object using the queue name and the
  52274. scheduling information passed.
  52275. @param queueName Name of the job queue
  52276. @param schedulingInfo Scheduling Information associated with the job
  52277. queue]]>
  52278. </doc>
  52279. </constructor>
  52280. <method name="setQueueName"
  52281. abstract="false" native="false" synchronized="false"
  52282. static="false" final="false" visibility="public"
  52283. deprecated="not deprecated">
  52284. <param name="queueName" type="java.lang.String"/>
  52285. <doc>
  52286. <![CDATA[Set the queue name of the JobQueueInfo
  52287. @param queueName Name of the job queue.]]>
  52288. </doc>
  52289. </method>
  52290. <method name="getQueueName" return="java.lang.String"
  52291. abstract="false" native="false" synchronized="false"
  52292. static="false" final="false" visibility="public"
  52293. deprecated="not deprecated">
  52294. <doc>
  52295. <![CDATA[Get the queue name from JobQueueInfo
  52296. @return queue name]]>
  52297. </doc>
  52298. </method>
  52299. <method name="setSchedulingInfo"
  52300. abstract="false" native="false" synchronized="false"
  52301. static="false" final="false" visibility="public"
  52302. deprecated="not deprecated">
  52303. <param name="schedulingInfo" type="java.lang.String"/>
  52304. <doc>
  52305. <![CDATA[Set the scheduling information associated to particular job queue
  52306. @param schedulingInfo]]>
  52307. </doc>
  52308. </method>
  52309. <method name="getSchedulingInfo" 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[Gets the scheduling information associated to particular job queue.
  52315. If nothing is set would return <b>"N/A"</b>
  52316. @return Scheduling information associated to particular Job Queue]]>
  52317. </doc>
  52318. </method>
  52319. <method name="setQueueState"
  52320. abstract="false" native="false" synchronized="false"
  52321. static="false" final="false" visibility="public"
  52322. deprecated="not deprecated">
  52323. <param name="state" type="java.lang.String"/>
  52324. <doc>
  52325. <![CDATA[Set the state of the queue
  52326. @param state state of the queue.]]>
  52327. </doc>
  52328. </method>
  52329. <method name="getQueueState" return="java.lang.String"
  52330. abstract="false" native="false" synchronized="false"
  52331. static="false" final="false" visibility="public"
  52332. deprecated="not deprecated">
  52333. <doc>
  52334. <![CDATA[Return the queue state
  52335. @return the queue state.]]>
  52336. </doc>
  52337. </method>
  52338. <method name="readFields"
  52339. abstract="false" native="false" synchronized="false"
  52340. static="false" final="false" visibility="public"
  52341. deprecated="not deprecated">
  52342. <param name="in" type="java.io.DataInput"/>
  52343. <exception name="IOException" type="java.io.IOException"/>
  52344. </method>
  52345. <method name="write"
  52346. abstract="false" native="false" synchronized="false"
  52347. static="false" final="false" visibility="public"
  52348. deprecated="not deprecated">
  52349. <param name="out" type="java.io.DataOutput"/>
  52350. <exception name="IOException" type="java.io.IOException"/>
  52351. </method>
  52352. <doc>
  52353. <![CDATA[Class that contains the information regarding the Job Queues which are
  52354. maintained by the Hadoop Map/Reduce framework.]]>
  52355. </doc>
  52356. </class>
  52357. <!-- end class org.apache.hadoop.mapred.JobQueueInfo -->
  52358. <!-- start class org.apache.hadoop.mapred.JobStatus -->
  52359. <class name="JobStatus" extends="java.lang.Object"
  52360. abstract="false"
  52361. static="false" final="false" visibility="public"
  52362. deprecated="not deprecated">
  52363. <implements name="org.apache.hadoop.io.Writable"/>
  52364. <implements name="java.lang.Cloneable"/>
  52365. <constructor name="JobStatus"
  52366. static="false" final="false" visibility="public"
  52367. deprecated="not deprecated">
  52368. </constructor>
  52369. <constructor name="JobStatus" type="org.apache.hadoop.mapred.JobID, float, float, float, int"
  52370. static="false" final="false" visibility="public"
  52371. deprecated="not deprecated">
  52372. <doc>
  52373. <![CDATA[Create a job status object for a given jobid.
  52374. @param jobid The jobid of the job
  52375. @param mapProgress The progress made on the maps
  52376. @param reduceProgress The progress made on the reduces
  52377. @param cleanupProgress The progress made on cleanup
  52378. @param runState The current state of the job]]>
  52379. </doc>
  52380. </constructor>
  52381. <constructor name="JobStatus" type="org.apache.hadoop.mapred.JobID, float, float, int"
  52382. static="false" final="false" visibility="public"
  52383. deprecated="not deprecated">
  52384. <doc>
  52385. <![CDATA[Create a job status object for a given jobid.
  52386. @param jobid The jobid of the job
  52387. @param mapProgress The progress made on the maps
  52388. @param reduceProgress The progress made on the reduces
  52389. @param runState The current state of the job]]>
  52390. </doc>
  52391. </constructor>
  52392. <constructor name="JobStatus" type="org.apache.hadoop.mapred.JobID, float, float, float, int, org.apache.hadoop.mapred.JobPriority"
  52393. static="false" final="false" visibility="public"
  52394. deprecated="not deprecated">
  52395. <doc>
  52396. <![CDATA[Create a job status object for a given jobid.
  52397. @param jobid The jobid of the job
  52398. @param mapProgress The progress made on the maps
  52399. @param reduceProgress The progress made on the reduces
  52400. @param runState The current state of the job
  52401. @param jp Priority of the job.]]>
  52402. </doc>
  52403. </constructor>
  52404. <constructor name="JobStatus" type="org.apache.hadoop.mapred.JobID, float, float, float, float, int, org.apache.hadoop.mapred.JobPriority"
  52405. static="false" final="false" visibility="public"
  52406. deprecated="not deprecated">
  52407. <doc>
  52408. <![CDATA[Create a job status object for a given jobid.
  52409. @param jobid The jobid of the job
  52410. @param setupProgress The progress made on the setup
  52411. @param mapProgress The progress made on the maps
  52412. @param reduceProgress The progress made on the reduces
  52413. @param cleanupProgress The progress made on the cleanup
  52414. @param runState The current state of the job
  52415. @param jp Priority of the job.]]>
  52416. </doc>
  52417. </constructor>
  52418. <method name="getJobRunState" return="java.lang.String"
  52419. abstract="false" native="false" synchronized="false"
  52420. static="true" final="false" visibility="public"
  52421. deprecated="not deprecated">
  52422. <param name="state" type="int"/>
  52423. <doc>
  52424. <![CDATA[Helper method to get human-readable state of the job.
  52425. @param state job state
  52426. @return human-readable state of the job]]>
  52427. </doc>
  52428. </method>
  52429. <method name="getJobId" return="java.lang.String"
  52430. abstract="false" native="false" synchronized="false"
  52431. static="false" final="false" visibility="public"
  52432. deprecated="use getJobID instead">
  52433. <doc>
  52434. <![CDATA[@deprecated use getJobID instead]]>
  52435. </doc>
  52436. </method>
  52437. <method name="getJobID" return="org.apache.hadoop.mapred.JobID"
  52438. abstract="false" native="false" synchronized="false"
  52439. static="false" final="false" visibility="public"
  52440. deprecated="not deprecated">
  52441. <doc>
  52442. <![CDATA[@return The jobid of the Job]]>
  52443. </doc>
  52444. </method>
  52445. <method name="mapProgress" return="float"
  52446. abstract="false" native="false" synchronized="true"
  52447. static="false" final="false" visibility="public"
  52448. deprecated="not deprecated">
  52449. <doc>
  52450. <![CDATA[@return Percentage of progress in maps]]>
  52451. </doc>
  52452. </method>
  52453. <method name="setJobACLs"
  52454. abstract="false" native="false" synchronized="true"
  52455. static="false" final="false" visibility="protected"
  52456. deprecated="not deprecated">
  52457. <param name="acls" type="java.util.Map"/>
  52458. <doc>
  52459. <![CDATA[Set the job acls
  52460. @param acls {@link Map} from {@link JobACL} to {@link AccessControlList}]]>
  52461. </doc>
  52462. </method>
  52463. <method name="cleanupProgress" return="float"
  52464. abstract="false" native="false" synchronized="true"
  52465. static="false" final="false" visibility="public"
  52466. deprecated="not deprecated">
  52467. <doc>
  52468. <![CDATA[@return Percentage of progress in cleanup]]>
  52469. </doc>
  52470. </method>
  52471. <method name="setupProgress" return="float"
  52472. abstract="false" native="false" synchronized="true"
  52473. static="false" final="false" visibility="public"
  52474. deprecated="not deprecated">
  52475. <doc>
  52476. <![CDATA[@return Percentage of progress in setup]]>
  52477. </doc>
  52478. </method>
  52479. <method name="reduceProgress" return="float"
  52480. abstract="false" native="false" synchronized="true"
  52481. static="false" final="false" visibility="public"
  52482. deprecated="not deprecated">
  52483. <doc>
  52484. <![CDATA[@return Percentage of progress in reduce]]>
  52485. </doc>
  52486. </method>
  52487. <method name="getRunState" return="int"
  52488. abstract="false" native="false" synchronized="true"
  52489. static="false" final="false" visibility="public"
  52490. deprecated="not deprecated">
  52491. <doc>
  52492. <![CDATA[@return running state of the job]]>
  52493. </doc>
  52494. </method>
  52495. <method name="setRunState"
  52496. abstract="false" native="false" synchronized="true"
  52497. static="false" final="false" visibility="public"
  52498. deprecated="not deprecated">
  52499. <param name="state" type="int"/>
  52500. <doc>
  52501. <![CDATA[Change the current run state of the job.]]>
  52502. </doc>
  52503. </method>
  52504. <method name="getStartTime" return="long"
  52505. abstract="false" native="false" synchronized="true"
  52506. static="false" final="false" visibility="public"
  52507. deprecated="not deprecated">
  52508. <doc>
  52509. <![CDATA[@return start time of the job]]>
  52510. </doc>
  52511. </method>
  52512. <method name="clone" return="java.lang.Object"
  52513. abstract="false" native="false" synchronized="false"
  52514. static="false" final="false" visibility="public"
  52515. deprecated="not deprecated">
  52516. </method>
  52517. <method name="getUsername" return="java.lang.String"
  52518. abstract="false" native="false" synchronized="true"
  52519. static="false" final="false" visibility="public"
  52520. deprecated="not deprecated">
  52521. <doc>
  52522. <![CDATA[@return the username of the job]]>
  52523. </doc>
  52524. </method>
  52525. <method name="getSchedulingInfo" return="java.lang.String"
  52526. abstract="false" native="false" synchronized="true"
  52527. static="false" final="false" visibility="public"
  52528. deprecated="not deprecated">
  52529. <doc>
  52530. <![CDATA[Gets the Scheduling information associated to a particular Job.
  52531. @return the scheduling information of the job]]>
  52532. </doc>
  52533. </method>
  52534. <method name="getFailureInfo" return="java.lang.String"
  52535. abstract="false" native="false" synchronized="true"
  52536. static="false" final="false" visibility="public"
  52537. deprecated="not deprecated">
  52538. <doc>
  52539. <![CDATA[gets any available info on the reason of failure of the job.
  52540. @return diagnostic information on why a job might have failed.]]>
  52541. </doc>
  52542. </method>
  52543. <method name="setFailureInfo"
  52544. abstract="false" native="false" synchronized="true"
  52545. static="false" final="false" visibility="public"
  52546. deprecated="not deprecated">
  52547. <param name="failureInfo" type="java.lang.String"/>
  52548. <doc>
  52549. <![CDATA[set the reason for failuire of this job
  52550. @param failureInfo the reason for failure of this job.]]>
  52551. </doc>
  52552. </method>
  52553. <method name="setSchedulingInfo"
  52554. abstract="false" native="false" synchronized="true"
  52555. static="false" final="false" visibility="public"
  52556. deprecated="not deprecated">
  52557. <param name="schedulingInfo" type="java.lang.String"/>
  52558. <doc>
  52559. <![CDATA[Used to set the scheduling information associated to a particular Job.
  52560. @param schedulingInfo Scheduling information of the job]]>
  52561. </doc>
  52562. </method>
  52563. <method name="getJobACLs" return="java.util.Map"
  52564. abstract="false" native="false" synchronized="true"
  52565. static="false" final="false" visibility="public"
  52566. deprecated="not deprecated">
  52567. <doc>
  52568. <![CDATA[Get the acls for Job.
  52569. @return a {@link Map} from {@link JobACL} to {@link AccessControlList}]]>
  52570. </doc>
  52571. </method>
  52572. <method name="getJobPriority" return="org.apache.hadoop.mapred.JobPriority"
  52573. abstract="false" native="false" synchronized="true"
  52574. static="false" final="false" visibility="public"
  52575. deprecated="not deprecated">
  52576. <doc>
  52577. <![CDATA[Return the priority of the job
  52578. @return job priority]]>
  52579. </doc>
  52580. </method>
  52581. <method name="setJobPriority"
  52582. abstract="false" native="false" synchronized="true"
  52583. static="false" final="false" visibility="public"
  52584. deprecated="not deprecated">
  52585. <param name="jp" type="org.apache.hadoop.mapred.JobPriority"/>
  52586. <doc>
  52587. <![CDATA[Set the priority of the job, defaulting to NORMAL.
  52588. @param jp new job priority]]>
  52589. </doc>
  52590. </method>
  52591. <method name="isJobComplete" return="boolean"
  52592. abstract="false" native="false" synchronized="true"
  52593. static="false" final="false" visibility="public"
  52594. deprecated="not deprecated">
  52595. <doc>
  52596. <![CDATA[Returns true if the status is for a completed job.]]>
  52597. </doc>
  52598. </method>
  52599. <method name="write"
  52600. abstract="false" native="false" synchronized="true"
  52601. static="false" final="false" visibility="public"
  52602. deprecated="not deprecated">
  52603. <param name="out" type="java.io.DataOutput"/>
  52604. <exception name="IOException" type="java.io.IOException"/>
  52605. </method>
  52606. <method name="readFields"
  52607. abstract="false" native="false" synchronized="true"
  52608. static="false" final="false" visibility="public"
  52609. deprecated="not deprecated">
  52610. <param name="in" type="java.io.DataInput"/>
  52611. <exception name="IOException" type="java.io.IOException"/>
  52612. </method>
  52613. <field name="RUNNING" type="int"
  52614. transient="false" volatile="false"
  52615. static="true" final="true" visibility="public"
  52616. deprecated="not deprecated">
  52617. </field>
  52618. <field name="SUCCEEDED" type="int"
  52619. transient="false" volatile="false"
  52620. static="true" final="true" visibility="public"
  52621. deprecated="not deprecated">
  52622. </field>
  52623. <field name="FAILED" type="int"
  52624. transient="false" volatile="false"
  52625. static="true" final="true" visibility="public"
  52626. deprecated="not deprecated">
  52627. </field>
  52628. <field name="PREP" type="int"
  52629. transient="false" volatile="false"
  52630. static="true" final="true" visibility="public"
  52631. deprecated="not deprecated">
  52632. </field>
  52633. <field name="KILLED" type="int"
  52634. transient="false" volatile="false"
  52635. static="true" final="true" visibility="public"
  52636. deprecated="not deprecated">
  52637. </field>
  52638. <doc>
  52639. <![CDATA[Describes the current status of a job.
  52640. @see JobProfile for some more information.]]>
  52641. </doc>
  52642. </class>
  52643. <!-- end class org.apache.hadoop.mapred.JobStatus -->
  52644. <!-- start class org.apache.hadoop.mapred.JobTracker -->
  52645. <class name="JobTracker" extends="java.lang.Object"
  52646. abstract="false"
  52647. static="false" final="false" visibility="public"
  52648. deprecated="not deprecated">
  52649. <implements name="org.apache.hadoop.mapred.MRConstants"/>
  52650. <implements name="org.apache.hadoop.mapred.InterTrackerProtocol"/>
  52651. <implements name="org.apache.hadoop.mapred.JobSubmissionProtocol"/>
  52652. <implements name="org.apache.hadoop.mapred.TaskTrackerManager"/>
  52653. <implements name="org.apache.hadoop.security.RefreshUserMappingsProtocol"/>
  52654. <implements name="org.apache.hadoop.security.authorize.RefreshAuthorizationPolicyProtocol"/>
  52655. <implements name="org.apache.hadoop.mapred.AdminOperationsProtocol"/>
  52656. <implements name="org.apache.hadoop.mapred.JobTrackerMXBean"/>
  52657. <method name="getClock" return="org.apache.hadoop.mapred.Clock"
  52658. abstract="false" native="false" synchronized="false"
  52659. static="false" final="false" visibility="public"
  52660. deprecated="not deprecated">
  52661. </method>
  52662. <method name="startTracker" return="org.apache.hadoop.mapred.JobTracker"
  52663. abstract="false" native="false" synchronized="false"
  52664. static="true" final="false" visibility="public"
  52665. deprecated="not deprecated">
  52666. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  52667. <exception name="IOException" type="java.io.IOException"/>
  52668. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  52669. <doc>
  52670. <![CDATA[Start the JobTracker with given configuration.
  52671. The conf will be modified to reflect the actual ports on which
  52672. the JobTracker is up and running if the user passes the port as
  52673. <code>zero</code>.
  52674. @param conf configuration for the JobTracker.
  52675. @throws IOException]]>
  52676. </doc>
  52677. </method>
  52678. <method name="startTracker" return="org.apache.hadoop.mapred.JobTracker"
  52679. abstract="false" native="false" synchronized="false"
  52680. static="true" final="false" visibility="public"
  52681. deprecated="not deprecated">
  52682. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  52683. <param name="identifier" type="java.lang.String"/>
  52684. <exception name="IOException" type="java.io.IOException"/>
  52685. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  52686. </method>
  52687. <method name="startTracker" return="org.apache.hadoop.mapred.JobTracker"
  52688. abstract="false" native="false" synchronized="false"
  52689. static="true" final="false" visibility="public"
  52690. deprecated="not deprecated">
  52691. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  52692. <param name="identifier" type="java.lang.String"/>
  52693. <param name="initialize" type="boolean"/>
  52694. <exception name="IOException" type="java.io.IOException"/>
  52695. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  52696. </method>
  52697. <method name="stopTracker"
  52698. abstract="false" native="false" synchronized="false"
  52699. static="false" final="false" visibility="public"
  52700. deprecated="not deprecated">
  52701. <exception name="IOException" type="java.io.IOException"/>
  52702. </method>
  52703. <method name="getProtocolVersion" return="long"
  52704. abstract="false" native="false" synchronized="false"
  52705. static="false" final="false" visibility="public"
  52706. deprecated="not deprecated">
  52707. <param name="protocol" type="java.lang.String"/>
  52708. <param name="clientVersion" type="long"/>
  52709. <exception name="IOException" type="java.io.IOException"/>
  52710. </method>
  52711. <method name="getDelegationTokenSecretManager" return="org.apache.hadoop.mapreduce.security.token.delegation.DelegationTokenSecretManager"
  52712. abstract="false" native="false" synchronized="false"
  52713. static="false" final="false" visibility="public"
  52714. deprecated="not deprecated">
  52715. </method>
  52716. <method name="hasRestarted" return="boolean"
  52717. abstract="false" native="false" synchronized="false"
  52718. static="false" final="false" visibility="public"
  52719. deprecated="not deprecated">
  52720. <doc>
  52721. <![CDATA[Whether the JT has restarted]]>
  52722. </doc>
  52723. </method>
  52724. <method name="hasRecovered" return="boolean"
  52725. abstract="false" native="false" synchronized="false"
  52726. static="false" final="false" visibility="public"
  52727. deprecated="not deprecated">
  52728. <doc>
  52729. <![CDATA[Whether the JT has recovered upon restart]]>
  52730. </doc>
  52731. </method>
  52732. <method name="getRecoveryDuration" return="long"
  52733. abstract="false" native="false" synchronized="false"
  52734. static="false" final="false" visibility="public"
  52735. deprecated="not deprecated">
  52736. <doc>
  52737. <![CDATA[How long the jobtracker took to recover from restart.]]>
  52738. </doc>
  52739. </method>
  52740. <method name="getAddress" return="java.net.InetSocketAddress"
  52741. abstract="false" native="false" synchronized="false"
  52742. static="true" final="false" visibility="public"
  52743. deprecated="not deprecated">
  52744. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  52745. </method>
  52746. <method name="offerService"
  52747. abstract="false" native="false" synchronized="false"
  52748. static="false" final="false" visibility="public"
  52749. deprecated="not deprecated">
  52750. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  52751. <exception name="IOException" type="java.io.IOException"/>
  52752. <doc>
  52753. <![CDATA[Run forever]]>
  52754. </doc>
  52755. </method>
  52756. <method name="getTotalSubmissions" return="int"
  52757. abstract="false" native="false" synchronized="false"
  52758. static="false" final="false" visibility="public"
  52759. deprecated="not deprecated">
  52760. </method>
  52761. <method name="getJobTrackerMachine" return="java.lang.String"
  52762. abstract="false" native="false" synchronized="false"
  52763. static="false" final="false" visibility="public"
  52764. deprecated="not deprecated">
  52765. </method>
  52766. <method name="getTrackerIdentifier" return="java.lang.String"
  52767. abstract="false" native="false" synchronized="false"
  52768. static="false" final="false" visibility="public"
  52769. deprecated="not deprecated">
  52770. <doc>
  52771. <![CDATA[Get the unique identifier (ie. timestamp) of this job tracker start.
  52772. @return a string with a unique identifier]]>
  52773. </doc>
  52774. </method>
  52775. <method name="getTrackerPort" 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="getInfoPort" return="int"
  52781. abstract="false" native="false" synchronized="false"
  52782. static="false" final="false" visibility="public"
  52783. deprecated="not deprecated">
  52784. </method>
  52785. <method name="getStartTime" return="long"
  52786. abstract="false" native="false" synchronized="false"
  52787. static="false" final="false" visibility="public"
  52788. deprecated="not deprecated">
  52789. </method>
  52790. <method name="runningJobs" return="java.util.Vector"
  52791. abstract="false" native="false" synchronized="false"
  52792. static="false" final="false" visibility="public"
  52793. deprecated="not deprecated">
  52794. </method>
  52795. <method name="getRunningJobs" return="java.util.List"
  52796. abstract="false" native="false" synchronized="true"
  52797. static="false" final="false" visibility="public"
  52798. deprecated="not deprecated">
  52799. <doc>
  52800. <![CDATA[Version that is called from a timer thread, and therefore needs to be
  52801. careful to synchronize.]]>
  52802. </doc>
  52803. </method>
  52804. <method name="failedJobs" return="java.util.Vector"
  52805. abstract="false" native="false" synchronized="false"
  52806. static="false" final="false" visibility="public"
  52807. deprecated="not deprecated">
  52808. </method>
  52809. <method name="completedJobs" 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="taskTrackers" return="java.util.Collection"
  52815. abstract="false" native="false" synchronized="true"
  52816. static="false" final="false" visibility="public"
  52817. deprecated="not deprecated">
  52818. <doc>
  52819. <![CDATA[Get all the task trackers in the cluster
  52820. @return {@link Collection} of {@link TaskTrackerStatus}]]>
  52821. </doc>
  52822. </method>
  52823. <method name="activeTaskTrackers" return="java.util.Collection"
  52824. abstract="false" native="false" synchronized="true"
  52825. static="false" final="false" visibility="public"
  52826. deprecated="not deprecated">
  52827. <doc>
  52828. <![CDATA[Get the active task tracker statuses in the cluster
  52829. @return {@link Collection} of active {@link TaskTrackerStatus}]]>
  52830. </doc>
  52831. </method>
  52832. <method name="taskTrackerNames" return="java.util.List"
  52833. abstract="false" native="false" synchronized="true"
  52834. static="false" final="false" visibility="public"
  52835. deprecated="not deprecated">
  52836. <doc>
  52837. <![CDATA[Get the active, blacklisted, and graylisted task tracker names in the
  52838. cluster. The first element in the returned list contains the list of
  52839. active tracker names; the second element in the returned list contains
  52840. the list of blacklisted tracker names; and the third contains the list
  52841. of graylisted tracker names. Note that the blacklist is disjoint
  52842. from the active list, but the graylist is not: initially, graylisted
  52843. trackers are still active and therefore will appear in both lists.
  52844. (Graylisted trackers can later be blacklisted, in which case they'll
  52845. be removed from the active list and added to the blacklist, but they
  52846. remain on the graylist in this case. Blacklisting comes about via the
  52847. health-check script, while graylisting is heuristically based on the
  52848. number of per-job blacklistings in a specified time interval.)]]>
  52849. </doc>
  52850. </method>
  52851. <method name="blacklistedTaskTrackers" return="java.util.Collection"
  52852. abstract="false" native="false" synchronized="false"
  52853. static="false" final="false" visibility="public"
  52854. deprecated="not deprecated">
  52855. <doc>
  52856. <![CDATA[Get the statuses of the blacklisted task trackers in the cluster.
  52857. @return {@link Collection} of blacklisted {@link TaskTrackerStatus}]]>
  52858. </doc>
  52859. </method>
  52860. <method name="graylistedTaskTrackers" return="java.util.Collection"
  52861. abstract="false" native="false" synchronized="false"
  52862. static="false" final="false" visibility="public"
  52863. deprecated="not deprecated">
  52864. <doc>
  52865. <![CDATA[Get the statuses of the graylisted task trackers in the cluster.
  52866. @return {@link Collection} of graylisted {@link TaskTrackerStatus}]]>
  52867. </doc>
  52868. </method>
  52869. <method name="isBlacklisted" return="boolean"
  52870. abstract="false" native="false" synchronized="true"
  52871. static="false" final="false" visibility="public"
  52872. deprecated="not deprecated">
  52873. <param name="trackerID" type="java.lang.String"/>
  52874. <doc>
  52875. <![CDATA[Whether the tracker is blacklisted or not
  52876. @param trackerID
  52877. @return true if blacklisted, false otherwise]]>
  52878. </doc>
  52879. </method>
  52880. <method name="isGraylisted" return="boolean"
  52881. abstract="false" native="false" synchronized="true"
  52882. static="false" final="false" visibility="public"
  52883. deprecated="not deprecated">
  52884. <param name="trackerID" type="java.lang.String"/>
  52885. <doc>
  52886. <![CDATA[Whether the tracker is graylisted or not
  52887. @param trackerID
  52888. @return true if graylisted, false otherwise]]>
  52889. </doc>
  52890. </method>
  52891. <method name="getTaskTrackerStatus" return="org.apache.hadoop.mapred.TaskTrackerStatus"
  52892. abstract="false" native="false" synchronized="true"
  52893. static="false" final="false" visibility="public"
  52894. deprecated="not deprecated">
  52895. <param name="trackerID" type="java.lang.String"/>
  52896. </method>
  52897. <method name="getTaskTracker" return="org.apache.hadoop.mapreduce.server.jobtracker.TaskTracker"
  52898. abstract="false" native="false" synchronized="true"
  52899. static="false" final="false" visibility="public"
  52900. deprecated="not deprecated">
  52901. <param name="trackerID" type="java.lang.String"/>
  52902. </method>
  52903. <method name="resolveAndAddToTopology" return="org.apache.hadoop.net.Node"
  52904. abstract="false" native="false" synchronized="false"
  52905. static="false" final="false" visibility="public"
  52906. deprecated="not deprecated">
  52907. <param name="name" type="java.lang.String"/>
  52908. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  52909. </method>
  52910. <method name="getNodesAtMaxLevel" return="java.util.Collection"
  52911. abstract="false" native="false" synchronized="false"
  52912. static="false" final="false" visibility="public"
  52913. deprecated="not deprecated">
  52914. <doc>
  52915. <![CDATA[Returns a collection of nodes at the max level]]>
  52916. </doc>
  52917. </method>
  52918. <method name="getParentNode" return="org.apache.hadoop.net.Node"
  52919. abstract="false" native="false" synchronized="false"
  52920. static="true" final="false" visibility="public"
  52921. deprecated="not deprecated">
  52922. <param name="node" type="org.apache.hadoop.net.Node"/>
  52923. <param name="level" type="int"/>
  52924. </method>
  52925. <method name="getNode" return="org.apache.hadoop.net.Node"
  52926. abstract="false" native="false" synchronized="false"
  52927. static="false" final="false" visibility="public"
  52928. deprecated="not deprecated">
  52929. <param name="name" type="java.lang.String"/>
  52930. <doc>
  52931. <![CDATA[Return the Node in the network topology that corresponds to the hostname]]>
  52932. </doc>
  52933. </method>
  52934. <method name="getNumTaskCacheLevels" return="int"
  52935. abstract="false" native="false" synchronized="false"
  52936. static="false" final="false" visibility="public"
  52937. deprecated="not deprecated">
  52938. </method>
  52939. <method name="getNumResolvedTaskTrackers" return="int"
  52940. abstract="false" native="false" synchronized="false"
  52941. static="false" final="false" visibility="public"
  52942. deprecated="not deprecated">
  52943. </method>
  52944. <method name="getNumberOfUniqueHosts" return="int"
  52945. abstract="false" native="false" synchronized="false"
  52946. static="false" final="false" visibility="public"
  52947. deprecated="not deprecated">
  52948. </method>
  52949. <method name="isNodeGroupAware" return="boolean"
  52950. abstract="false" native="false" synchronized="false"
  52951. static="false" final="false" visibility="public"
  52952. deprecated="not deprecated">
  52953. </method>
  52954. <method name="addJobInProgressListener"
  52955. abstract="false" native="false" synchronized="false"
  52956. static="false" final="false" visibility="public"
  52957. deprecated="not deprecated">
  52958. <param name="listener" type="org.apache.hadoop.mapred.JobInProgressListener"/>
  52959. </method>
  52960. <method name="removeJobInProgressListener"
  52961. abstract="false" native="false" synchronized="false"
  52962. static="false" final="false" visibility="public"
  52963. deprecated="not deprecated">
  52964. <param name="listener" type="org.apache.hadoop.mapred.JobInProgressListener"/>
  52965. </method>
  52966. <method name="getQueueManager" return="org.apache.hadoop.mapred.QueueManager"
  52967. abstract="false" native="false" synchronized="false"
  52968. static="false" final="false" visibility="public"
  52969. deprecated="not deprecated">
  52970. <doc>
  52971. <![CDATA[Return the {@link QueueManager} associated with the JobTracker.]]>
  52972. </doc>
  52973. </method>
  52974. <method name="getVIVersion" return="java.lang.String"
  52975. abstract="false" native="false" synchronized="false"
  52976. static="false" final="false" visibility="public"
  52977. deprecated="not deprecated">
  52978. <exception name="IOException" type="java.io.IOException"/>
  52979. </method>
  52980. <method name="getBuildVersion" return="java.lang.String"
  52981. abstract="false" native="false" synchronized="false"
  52982. static="false" final="false" visibility="public"
  52983. deprecated="not deprecated">
  52984. <exception name="IOException" type="java.io.IOException"/>
  52985. </method>
  52986. <method name="heartbeat" return="org.apache.hadoop.mapred.HeartbeatResponse"
  52987. abstract="false" native="false" synchronized="true"
  52988. static="false" final="false" visibility="public"
  52989. deprecated="not deprecated">
  52990. <param name="status" type="org.apache.hadoop.mapred.TaskTrackerStatus"/>
  52991. <param name="restarted" type="boolean"/>
  52992. <param name="initialContact" type="boolean"/>
  52993. <param name="acceptNewTasks" type="boolean"/>
  52994. <param name="responseId" type="short"/>
  52995. <exception name="IOException" type="java.io.IOException"/>
  52996. <doc>
  52997. <![CDATA[The periodic heartbeat mechanism between the {@link TaskTracker} and
  52998. the {@link JobTracker}.
  52999. The {@link JobTracker} processes the status information sent by the
  53000. {@link TaskTracker} and responds with instructions to start/stop
  53001. tasks or jobs, and also 'reset' instructions during contingencies.]]>
  53002. </doc>
  53003. </method>
  53004. <method name="getNextHeartbeatInterval" return="int"
  53005. abstract="false" native="false" synchronized="false"
  53006. static="false" final="false" visibility="public"
  53007. deprecated="not deprecated">
  53008. <doc>
  53009. <![CDATA[Calculates next heartbeat interval using cluster size.
  53010. Heartbeat interval is incremented by 1 second for every 100 nodes by default.
  53011. @return next heartbeat interval.]]>
  53012. </doc>
  53013. </method>
  53014. <method name="getFilesystemName" return="java.lang.String"
  53015. abstract="false" native="false" synchronized="true"
  53016. static="false" final="false" visibility="public"
  53017. deprecated="not deprecated">
  53018. <exception name="IOException" type="java.io.IOException"/>
  53019. <doc>
  53020. <![CDATA[Grab the local fs name]]>
  53021. </doc>
  53022. </method>
  53023. <method name="getConf" return="org.apache.hadoop.mapred.JobConf"
  53024. abstract="false" native="false" synchronized="false"
  53025. static="false" final="false" visibility="public"
  53026. deprecated="not deprecated">
  53027. <doc>
  53028. <![CDATA[Returns a handle to the JobTracker's Configuration]]>
  53029. </doc>
  53030. </method>
  53031. <method name="reportTaskTrackerError"
  53032. abstract="false" native="false" synchronized="false"
  53033. static="false" final="false" visibility="public"
  53034. deprecated="not deprecated">
  53035. <param name="taskTracker" type="java.lang.String"/>
  53036. <param name="errorClass" type="java.lang.String"/>
  53037. <param name="errorMessage" type="java.lang.String"/>
  53038. <exception name="IOException" type="java.io.IOException"/>
  53039. </method>
  53040. <method name="getNewJobId" return="org.apache.hadoop.mapred.JobID"
  53041. abstract="false" native="false" synchronized="true"
  53042. static="false" final="false" visibility="public"
  53043. deprecated="not deprecated">
  53044. <exception name="IOException" type="java.io.IOException"/>
  53045. <doc>
  53046. <![CDATA[Allocates a new JobId string.]]>
  53047. </doc>
  53048. </method>
  53049. <method name="submitJob" return="org.apache.hadoop.mapred.JobStatus"
  53050. abstract="false" native="false" synchronized="false"
  53051. static="false" final="false" visibility="public"
  53052. deprecated="not deprecated">
  53053. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  53054. <param name="jobSubmitDir" type="java.lang.String"/>
  53055. <param name="ts" type="org.apache.hadoop.security.Credentials"/>
  53056. <exception name="IOException" type="java.io.IOException"/>
  53057. <doc>
  53058. <![CDATA[JobTracker.submitJob() kicks off a new job.
  53059. Create a 'JobInProgress' object, which contains both JobProfile
  53060. and JobStatus. Those two sub-objects are sometimes shipped outside
  53061. of the JobTracker. But JobInProgress adds info that's useful for
  53062. the JobTracker alone.]]>
  53063. </doc>
  53064. </method>
  53065. <method name="getStagingAreaDir" return="java.lang.String"
  53066. abstract="false" native="false" synchronized="false"
  53067. static="false" final="false" visibility="public"
  53068. deprecated="not deprecated">
  53069. <exception name="IOException" type="java.io.IOException"/>
  53070. <doc>
  53071. <![CDATA[@see org.apache.hadoop.mapred.JobSubmissionProtocol#getStagingAreaDir()]]>
  53072. </doc>
  53073. </method>
  53074. <method name="getClusterStatus" return="org.apache.hadoop.mapred.ClusterStatus"
  53075. abstract="false" native="false" synchronized="true"
  53076. static="false" final="false" visibility="public"
  53077. deprecated="use {@link #getClusterStatus(boolean)}">
  53078. <doc>
  53079. <![CDATA[@deprecated use {@link #getClusterStatus(boolean)}]]>
  53080. </doc>
  53081. </method>
  53082. <method name="getClusterStatus" return="org.apache.hadoop.mapred.ClusterStatus"
  53083. abstract="false" native="false" synchronized="true"
  53084. static="false" final="false" visibility="public"
  53085. deprecated="not deprecated">
  53086. <param name="detailed" type="boolean"/>
  53087. </method>
  53088. <method name="getClusterMetrics" return="org.apache.hadoop.mapreduce.ClusterMetrics"
  53089. abstract="false" native="false" synchronized="true"
  53090. static="false" final="false" visibility="public"
  53091. deprecated="not deprecated">
  53092. </method>
  53093. <method name="killJob"
  53094. abstract="false" native="false" synchronized="true"
  53095. static="false" final="false" visibility="public"
  53096. deprecated="not deprecated">
  53097. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  53098. <exception name="IOException" type="java.io.IOException"/>
  53099. <doc>
  53100. <![CDATA[@see JobSubmissionProtocol#killJob]]>
  53101. </doc>
  53102. </method>
  53103. <method name="cancelDelegationToken"
  53104. abstract="false" native="false" synchronized="false"
  53105. static="false" final="false" visibility="public"
  53106. deprecated="not deprecated">
  53107. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  53108. <exception name="IOException" type="java.io.IOException"/>
  53109. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  53110. <doc>
  53111. <![CDATA[Discard a current delegation token.]]>
  53112. </doc>
  53113. </method>
  53114. <method name="getDelegationToken" return="org.apache.hadoop.security.token.Token"
  53115. abstract="false" native="false" synchronized="false"
  53116. static="false" final="false" visibility="public"
  53117. deprecated="not deprecated">
  53118. <param name="renewer" type="org.apache.hadoop.io.Text"/>
  53119. <exception name="IOException" type="java.io.IOException"/>
  53120. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  53121. <doc>
  53122. <![CDATA[Get a new delegation token.]]>
  53123. </doc>
  53124. </method>
  53125. <method name="renewDelegationToken" return="long"
  53126. abstract="false" native="false" synchronized="false"
  53127. static="false" final="false" visibility="public"
  53128. deprecated="not deprecated">
  53129. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  53130. <exception name="IOException" type="java.io.IOException"/>
  53131. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  53132. <doc>
  53133. <![CDATA[Renew a delegation token to extend its lifetime.]]>
  53134. </doc>
  53135. </method>
  53136. <method name="initJob"
  53137. abstract="false" native="false" synchronized="false"
  53138. static="false" final="false" visibility="public"
  53139. deprecated="not deprecated">
  53140. <param name="job" type="org.apache.hadoop.mapred.JobInProgress"/>
  53141. </method>
  53142. <method name="failJob"
  53143. abstract="false" native="false" synchronized="true"
  53144. static="false" final="false" visibility="public"
  53145. deprecated="not deprecated">
  53146. <param name="job" type="org.apache.hadoop.mapred.JobInProgress"/>
  53147. <doc>
  53148. <![CDATA[Fail a job and inform the listeners. Other components in the framework
  53149. should use this to fail a job.]]>
  53150. </doc>
  53151. </method>
  53152. <method name="setJobPriority"
  53153. abstract="false" native="false" synchronized="true"
  53154. static="false" final="false" visibility="public"
  53155. deprecated="not deprecated">
  53156. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  53157. <param name="priority" type="java.lang.String"/>
  53158. <exception name="IOException" type="java.io.IOException"/>
  53159. </method>
  53160. <method name="getJobProfile" return="org.apache.hadoop.mapred.JobProfile"
  53161. abstract="false" native="false" synchronized="false"
  53162. static="false" final="false" visibility="public"
  53163. deprecated="not deprecated">
  53164. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  53165. <exception name="IOException" type="java.io.IOException"/>
  53166. </method>
  53167. <method name="getJobStatus" return="org.apache.hadoop.mapred.JobStatus"
  53168. abstract="false" native="false" synchronized="false"
  53169. static="false" final="false" visibility="public"
  53170. deprecated="not deprecated">
  53171. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  53172. <exception name="IOException" type="java.io.IOException"/>
  53173. </method>
  53174. <method name="getJobCounters" return="org.apache.hadoop.mapred.Counters"
  53175. abstract="false" native="false" synchronized="false"
  53176. static="false" final="false" visibility="public"
  53177. deprecated="not deprecated">
  53178. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  53179. <exception name="IOException" type="java.io.IOException"/>
  53180. </method>
  53181. <method name="getMapTaskReports" return="org.apache.hadoop.mapred.TaskReport[]"
  53182. abstract="false" native="false" synchronized="true"
  53183. static="false" final="false" visibility="public"
  53184. deprecated="not deprecated">
  53185. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  53186. <exception name="IOException" type="java.io.IOException"/>
  53187. </method>
  53188. <method name="getReduceTaskReports" return="org.apache.hadoop.mapred.TaskReport[]"
  53189. abstract="false" native="false" synchronized="true"
  53190. static="false" final="false" visibility="public"
  53191. deprecated="not deprecated">
  53192. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  53193. <exception name="IOException" type="java.io.IOException"/>
  53194. </method>
  53195. <method name="getCleanupTaskReports" return="org.apache.hadoop.mapred.TaskReport[]"
  53196. abstract="false" native="false" synchronized="true"
  53197. static="false" final="false" visibility="public"
  53198. deprecated="not deprecated">
  53199. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  53200. <exception name="IOException" type="java.io.IOException"/>
  53201. </method>
  53202. <method name="getSetupTaskReports" return="org.apache.hadoop.mapred.TaskReport[]"
  53203. abstract="false" native="false" synchronized="true"
  53204. static="false" final="false" visibility="public"
  53205. deprecated="not deprecated">
  53206. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  53207. <exception name="IOException" type="java.io.IOException"/>
  53208. </method>
  53209. <method name="getTaskCompletionEvents" return="org.apache.hadoop.mapred.TaskCompletionEvent[]"
  53210. abstract="false" native="false" synchronized="false"
  53211. static="false" final="false" visibility="public"
  53212. deprecated="not deprecated">
  53213. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  53214. <param name="fromEventId" type="int"/>
  53215. <param name="maxEvents" type="int"/>
  53216. <exception name="IOException" type="java.io.IOException"/>
  53217. </method>
  53218. <method name="getTaskDiagnostics" return="java.lang.String[]"
  53219. abstract="false" native="false" synchronized="true"
  53220. static="false" final="false" visibility="public"
  53221. deprecated="not deprecated">
  53222. <param name="taskId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  53223. <exception name="IOException" type="java.io.IOException"/>
  53224. <doc>
  53225. <![CDATA[Get the diagnostics for a given task
  53226. @param taskId the id of the task
  53227. @return an array of the diagnostic messages]]>
  53228. </doc>
  53229. </method>
  53230. <method name="getTip" return="org.apache.hadoop.mapred.TaskInProgress"
  53231. abstract="false" native="false" synchronized="false"
  53232. static="false" final="false" visibility="public"
  53233. deprecated="not deprecated">
  53234. <param name="tipid" type="org.apache.hadoop.mapred.TaskID"/>
  53235. <doc>
  53236. <![CDATA[Returns specified TaskInProgress, or null.]]>
  53237. </doc>
  53238. </method>
  53239. <method name="killTask" return="boolean"
  53240. abstract="false" native="false" synchronized="true"
  53241. static="false" final="false" visibility="public"
  53242. deprecated="not deprecated">
  53243. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  53244. <param name="shouldFail" type="boolean"/>
  53245. <exception name="IOException" type="java.io.IOException"/>
  53246. <doc>
  53247. <![CDATA[@see JobSubmissionProtocol#killTask(TaskAttemptID, boolean)]]>
  53248. </doc>
  53249. </method>
  53250. <method name="getAssignedTracker" return="java.lang.String"
  53251. abstract="false" native="false" synchronized="true"
  53252. static="false" final="false" visibility="public"
  53253. deprecated="not deprecated">
  53254. <param name="taskId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  53255. <doc>
  53256. <![CDATA[Get tracker name for a given task id.
  53257. @param taskId the name of the task
  53258. @return The name of the task tracker]]>
  53259. </doc>
  53260. </method>
  53261. <method name="jobsToComplete" return="org.apache.hadoop.mapred.JobStatus[]"
  53262. abstract="false" native="false" synchronized="false"
  53263. static="false" final="false" visibility="public"
  53264. deprecated="not deprecated">
  53265. </method>
  53266. <method name="getAllJobs" return="org.apache.hadoop.mapred.JobStatus[]"
  53267. abstract="false" native="false" synchronized="false"
  53268. static="false" final="false" visibility="public"
  53269. deprecated="not deprecated">
  53270. <doc>
  53271. <![CDATA[@see JobSubmissionProtocol#getAllJobs()]]>
  53272. </doc>
  53273. </method>
  53274. <method name="getSystemDir" return="java.lang.String"
  53275. abstract="false" native="false" synchronized="false"
  53276. static="false" final="false" visibility="public"
  53277. deprecated="not deprecated">
  53278. <doc>
  53279. <![CDATA[@see org.apache.hadoop.mapred.JobSubmissionProtocol#getSystemDir()]]>
  53280. </doc>
  53281. </method>
  53282. <method name="getQueueAdmins" return="org.apache.hadoop.security.authorize.AccessControlList"
  53283. abstract="false" native="false" synchronized="false"
  53284. static="false" final="false" visibility="public"
  53285. deprecated="not deprecated">
  53286. <param name="queueName" type="java.lang.String"/>
  53287. <exception name="IOException" type="java.io.IOException"/>
  53288. <doc>
  53289. <![CDATA[@see org.apache.hadoop.mapred.JobSubmissionProtocol#getQueueAdmins(String)]]>
  53290. </doc>
  53291. </method>
  53292. <method name="getJob" return="org.apache.hadoop.mapred.JobInProgress"
  53293. abstract="false" native="false" synchronized="false"
  53294. static="false" final="false" visibility="public"
  53295. deprecated="not deprecated">
  53296. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  53297. </method>
  53298. <method name="refreshNodes"
  53299. abstract="false" native="false" synchronized="true"
  53300. static="false" final="false" visibility="public"
  53301. deprecated="not deprecated">
  53302. <exception name="IOException" type="java.io.IOException"/>
  53303. <doc>
  53304. <![CDATA[Rereads the config to get hosts and exclude list file names.
  53305. Rereads the files to update the hosts and exclude lists.]]>
  53306. </doc>
  53307. </method>
  53308. <method name="getLocalJobFilePath" return="java.lang.String"
  53309. abstract="false" native="false" synchronized="false"
  53310. static="true" final="false" visibility="public"
  53311. deprecated="not deprecated">
  53312. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  53313. <doc>
  53314. <![CDATA[Get the localized job file path on the job trackers local file system
  53315. @param jobId id of the job
  53316. @return the path of the job conf file on the local file system]]>
  53317. </doc>
  53318. </method>
  53319. <method name="main"
  53320. abstract="false" native="false" synchronized="false"
  53321. static="true" final="false" visibility="public"
  53322. deprecated="not deprecated">
  53323. <param name="argv" type="java.lang.String[]"/>
  53324. <exception name="IOException" type="java.io.IOException"/>
  53325. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  53326. <doc>
  53327. <![CDATA[Start the JobTracker process. This is used only for debugging. As a rule,
  53328. JobTracker should be run as part of the DFS Namenode process.]]>
  53329. </doc>
  53330. </method>
  53331. <method name="getQueues" return="org.apache.hadoop.mapred.JobQueueInfo[]"
  53332. abstract="false" native="false" synchronized="false"
  53333. static="false" final="false" visibility="public"
  53334. deprecated="not deprecated">
  53335. <exception name="IOException" type="java.io.IOException"/>
  53336. </method>
  53337. <method name="getQueueInfo" return="org.apache.hadoop.mapred.JobQueueInfo"
  53338. abstract="false" native="false" synchronized="false"
  53339. static="false" final="false" visibility="public"
  53340. deprecated="not deprecated">
  53341. <param name="queue" type="java.lang.String"/>
  53342. <exception name="IOException" type="java.io.IOException"/>
  53343. </method>
  53344. <method name="getJobsFromQueue" return="org.apache.hadoop.mapred.JobStatus[]"
  53345. abstract="false" native="false" synchronized="false"
  53346. static="false" final="false" visibility="public"
  53347. deprecated="not deprecated">
  53348. <param name="queue" type="java.lang.String"/>
  53349. <exception name="IOException" type="java.io.IOException"/>
  53350. </method>
  53351. <method name="getQueueAclsForCurrentUser" return="org.apache.hadoop.mapred.QueueAclsInfo[]"
  53352. abstract="false" native="false" synchronized="false"
  53353. static="false" final="false" visibility="public"
  53354. deprecated="not deprecated">
  53355. <exception name="IOException" type="java.io.IOException"/>
  53356. </method>
  53357. <method name="refreshServiceAcl"
  53358. abstract="false" native="false" synchronized="false"
  53359. static="false" final="false" visibility="public"
  53360. deprecated="not deprecated">
  53361. <exception name="IOException" type="java.io.IOException"/>
  53362. </method>
  53363. <method name="refreshSuperUserGroupsConfiguration"
  53364. abstract="false" native="false" synchronized="false"
  53365. static="false" final="false" visibility="public"
  53366. deprecated="not deprecated">
  53367. </method>
  53368. <method name="refreshUserToGroupsMappings"
  53369. abstract="false" native="false" synchronized="false"
  53370. static="false" final="false" visibility="public"
  53371. deprecated="not deprecated">
  53372. <exception name="IOException" type="java.io.IOException"/>
  53373. </method>
  53374. <method name="refreshQueues"
  53375. abstract="false" native="false" synchronized="false"
  53376. static="false" final="false" visibility="public"
  53377. deprecated="not deprecated">
  53378. <exception name="IOException" type="java.io.IOException"/>
  53379. </method>
  53380. <method name="getReasonsForBlacklisting" return="java.lang.String"
  53381. abstract="false" native="false" synchronized="false"
  53382. static="false" final="false" visibility="public"
  53383. deprecated="not deprecated">
  53384. <param name="host" type="java.lang.String"/>
  53385. </method>
  53386. <method name="getReasonsForGraylisting" return="java.lang.String"
  53387. abstract="false" native="false" synchronized="false"
  53388. static="false" final="false" visibility="public"
  53389. deprecated="not deprecated">
  53390. <param name="host" type="java.lang.String"/>
  53391. </method>
  53392. <method name="getHostname" return="java.lang.String"
  53393. abstract="false" native="false" synchronized="false"
  53394. static="false" final="false" visibility="public"
  53395. deprecated="not deprecated">
  53396. </method>
  53397. <method name="getVersion" return="java.lang.String"
  53398. abstract="false" native="false" synchronized="false"
  53399. static="false" final="false" visibility="public"
  53400. deprecated="not deprecated">
  53401. </method>
  53402. <method name="getConfigVersion" return="java.lang.String"
  53403. abstract="false" native="false" synchronized="false"
  53404. static="false" final="false" visibility="public"
  53405. deprecated="not deprecated">
  53406. </method>
  53407. <method name="getThreadCount" return="int"
  53408. abstract="false" native="false" synchronized="false"
  53409. static="false" final="false" visibility="public"
  53410. deprecated="not deprecated">
  53411. </method>
  53412. <method name="getSummaryJson" return="java.lang.String"
  53413. abstract="false" native="false" synchronized="false"
  53414. static="false" final="false" visibility="public"
  53415. deprecated="not deprecated">
  53416. </method>
  53417. <method name="getAliveNodesInfoJson" return="java.lang.String"
  53418. abstract="false" native="false" synchronized="false"
  53419. static="false" final="false" visibility="public"
  53420. deprecated="not deprecated">
  53421. </method>
  53422. <method name="getBlacklistedNodesInfoJson" return="java.lang.String"
  53423. abstract="false" native="false" synchronized="false"
  53424. static="false" final="false" visibility="public"
  53425. deprecated="not deprecated">
  53426. </method>
  53427. <method name="getGraylistedNodesInfoJson" return="java.lang.String"
  53428. abstract="false" native="false" synchronized="false"
  53429. static="false" final="false" visibility="public"
  53430. deprecated="not deprecated">
  53431. </method>
  53432. <method name="getQueueInfoJson" return="java.lang.String"
  53433. abstract="false" native="false" synchronized="false"
  53434. static="false" final="false" visibility="public"
  53435. deprecated="not deprecated">
  53436. </method>
  53437. <method name="setSafeMode" return="boolean"
  53438. abstract="false" native="false" synchronized="false"
  53439. static="false" final="false" visibility="public"
  53440. deprecated="not deprecated">
  53441. <param name="safeModeAction" type="org.apache.hadoop.mapred.JobTracker.SafeModeAction"/>
  53442. <exception name="IOException" type="java.io.IOException"/>
  53443. </method>
  53444. <method name="isInSafeMode" return="boolean"
  53445. abstract="false" native="false" synchronized="false"
  53446. static="false" final="false" visibility="public"
  53447. deprecated="not deprecated">
  53448. </method>
  53449. <field name="MAX_USER_JOBCONF_SIZE_KEY" type="java.lang.String"
  53450. transient="false" volatile="false"
  53451. static="true" final="true" visibility="public"
  53452. deprecated="not deprecated">
  53453. <doc>
  53454. <![CDATA[the config key for max user jobconf size]]>
  53455. </doc>
  53456. </field>
  53457. <field name="DELEGATION_KEY_UPDATE_INTERVAL_KEY" type="java.lang.String"
  53458. transient="false" volatile="false"
  53459. static="true" final="true" visibility="public"
  53460. deprecated="not deprecated">
  53461. </field>
  53462. <field name="DELEGATION_KEY_UPDATE_INTERVAL_DEFAULT" type="long"
  53463. transient="false" volatile="false"
  53464. static="true" final="true" visibility="public"
  53465. deprecated="not deprecated">
  53466. </field>
  53467. <field name="DELEGATION_TOKEN_RENEW_INTERVAL_KEY" type="java.lang.String"
  53468. transient="false" volatile="false"
  53469. static="true" final="true" visibility="public"
  53470. deprecated="not deprecated">
  53471. </field>
  53472. <field name="DELEGATION_TOKEN_RENEW_INTERVAL_DEFAULT" type="long"
  53473. transient="false" volatile="false"
  53474. static="true" final="true" visibility="public"
  53475. deprecated="not deprecated">
  53476. </field>
  53477. <field name="DELEGATION_TOKEN_MAX_LIFETIME_KEY" type="java.lang.String"
  53478. transient="false" volatile="false"
  53479. static="true" final="true" visibility="public"
  53480. deprecated="not deprecated">
  53481. </field>
  53482. <field name="DELEGATION_TOKEN_MAX_LIFETIME_DEFAULT" type="long"
  53483. transient="false" volatile="false"
  53484. static="true" final="true" visibility="public"
  53485. deprecated="not deprecated">
  53486. </field>
  53487. <field name="LOG" type="org.apache.commons.logging.Log"
  53488. transient="false" volatile="false"
  53489. static="true" final="true" visibility="public"
  53490. deprecated="not deprecated">
  53491. </field>
  53492. <field name="JT_USER_NAME" type="java.lang.String"
  53493. transient="false" volatile="false"
  53494. static="true" final="true" visibility="public"
  53495. deprecated="not deprecated">
  53496. </field>
  53497. <field name="JT_KEYTAB_FILE" type="java.lang.String"
  53498. transient="false" volatile="false"
  53499. static="true" final="true" visibility="public"
  53500. deprecated="not deprecated">
  53501. </field>
  53502. <field name="MAPRED_CLUSTER_MAP_MEMORY_MB_PROPERTY" type="java.lang.String"
  53503. transient="false" volatile="false"
  53504. static="true" final="true" visibility="public"
  53505. deprecated="not deprecated">
  53506. </field>
  53507. <field name="MAPRED_CLUSTER_REDUCE_MEMORY_MB_PROPERTY" type="java.lang.String"
  53508. transient="false" volatile="false"
  53509. static="true" final="true" visibility="public"
  53510. deprecated="not deprecated">
  53511. </field>
  53512. <field name="MAPRED_CLUSTER_MAX_MAP_MEMORY_MB_PROPERTY" type="java.lang.String"
  53513. transient="false" volatile="false"
  53514. static="true" final="true" visibility="public"
  53515. deprecated="not deprecated">
  53516. </field>
  53517. <field name="MAPRED_CLUSTER_MAX_REDUCE_MEMORY_MB_PROPERTY" type="java.lang.String"
  53518. transient="false" volatile="false"
  53519. static="true" final="true" visibility="public"
  53520. deprecated="not deprecated">
  53521. </field>
  53522. <doc>
  53523. <![CDATA[JobTracker is the central location for submitting and
  53524. tracking MR jobs in a network environment.]]>
  53525. </doc>
  53526. </class>
  53527. <!-- end class org.apache.hadoop.mapred.JobTracker -->
  53528. <!-- start class org.apache.hadoop.mapred.JobTracker.IllegalStateException -->
  53529. <class name="JobTracker.IllegalStateException" extends="java.io.IOException"
  53530. abstract="false"
  53531. static="true" final="false" visibility="public"
  53532. deprecated="not deprecated">
  53533. <constructor name="JobTracker.IllegalStateException" type="java.lang.String"
  53534. static="false" final="false" visibility="public"
  53535. deprecated="not deprecated">
  53536. </constructor>
  53537. <doc>
  53538. <![CDATA[A client tried to submit a job before the Job Tracker was ready.]]>
  53539. </doc>
  53540. </class>
  53541. <!-- end class org.apache.hadoop.mapred.JobTracker.IllegalStateException -->
  53542. <!-- start class org.apache.hadoop.mapred.JobTracker.SafeModeAction -->
  53543. <class name="JobTracker.SafeModeAction" extends="java.lang.Enum"
  53544. abstract="false"
  53545. static="true" final="true" visibility="public"
  53546. deprecated="not deprecated">
  53547. <method name="values" return="org.apache.hadoop.mapred.JobTracker.SafeModeAction[]"
  53548. abstract="false" native="false" synchronized="false"
  53549. static="true" final="false" visibility="public"
  53550. deprecated="not deprecated">
  53551. </method>
  53552. <method name="valueOf" return="org.apache.hadoop.mapred.JobTracker.SafeModeAction"
  53553. abstract="false" native="false" synchronized="false"
  53554. static="true" final="false" visibility="public"
  53555. deprecated="not deprecated">
  53556. <param name="name" type="java.lang.String"/>
  53557. </method>
  53558. <field name="SAFEMODE_LEAVE" type="org.apache.hadoop.mapred.JobTracker.SafeModeAction"
  53559. transient="false" volatile="false"
  53560. static="true" final="true" visibility="public"
  53561. deprecated="not deprecated">
  53562. </field>
  53563. <field name="SAFEMODE_ENTER" type="org.apache.hadoop.mapred.JobTracker.SafeModeAction"
  53564. transient="false" volatile="false"
  53565. static="true" final="true" visibility="public"
  53566. deprecated="not deprecated">
  53567. </field>
  53568. <field name="SAFEMODE_GET" type="org.apache.hadoop.mapred.JobTracker.SafeModeAction"
  53569. transient="false" volatile="false"
  53570. static="true" final="true" visibility="public"
  53571. deprecated="not deprecated">
  53572. </field>
  53573. <doc>
  53574. <![CDATA[JobTracker SafeMode]]>
  53575. </doc>
  53576. </class>
  53577. <!-- end class org.apache.hadoop.mapred.JobTracker.SafeModeAction -->
  53578. <!-- start class org.apache.hadoop.mapred.JobTracker.State -->
  53579. <class name="JobTracker.State" extends="java.lang.Enum"
  53580. abstract="false"
  53581. static="true" final="true" visibility="public"
  53582. deprecated="not deprecated">
  53583. <method name="values" return="org.apache.hadoop.mapred.JobTracker.State[]"
  53584. abstract="false" native="false" synchronized="false"
  53585. static="true" final="false" visibility="public"
  53586. deprecated="not deprecated">
  53587. </method>
  53588. <method name="valueOf" return="org.apache.hadoop.mapred.JobTracker.State"
  53589. abstract="false" native="false" synchronized="false"
  53590. static="true" final="false" visibility="public"
  53591. deprecated="not deprecated">
  53592. <param name="name" type="java.lang.String"/>
  53593. </method>
  53594. <field name="INITIALIZING" type="org.apache.hadoop.mapred.JobTracker.State"
  53595. transient="false" volatile="false"
  53596. static="true" final="true" visibility="public"
  53597. deprecated="not deprecated">
  53598. </field>
  53599. <field name="RUNNING" type="org.apache.hadoop.mapred.JobTracker.State"
  53600. transient="false" volatile="false"
  53601. static="true" final="true" visibility="public"
  53602. deprecated="not deprecated">
  53603. </field>
  53604. </class>
  53605. <!-- end class org.apache.hadoop.mapred.JobTracker.State -->
  53606. <!-- start interface org.apache.hadoop.mapred.JobTrackerMXBean -->
  53607. <interface name="JobTrackerMXBean" abstract="true"
  53608. static="false" final="false" visibility="public"
  53609. deprecated="not deprecated">
  53610. <method name="getHostname" return="java.lang.String"
  53611. abstract="false" native="false" synchronized="false"
  53612. static="false" final="false" visibility="public"
  53613. deprecated="not deprecated">
  53614. <doc>
  53615. <![CDATA[@return hostname of the jobtracker]]>
  53616. </doc>
  53617. </method>
  53618. <method name="getVersion" return="java.lang.String"
  53619. abstract="false" native="false" synchronized="false"
  53620. static="false" final="false" visibility="public"
  53621. deprecated="not deprecated">
  53622. <doc>
  53623. <![CDATA[@return version of the code base]]>
  53624. </doc>
  53625. </method>
  53626. <method name="getConfigVersion" return="java.lang.String"
  53627. abstract="false" native="false" synchronized="false"
  53628. static="false" final="false" visibility="public"
  53629. deprecated="not deprecated">
  53630. <doc>
  53631. <![CDATA[@return the config version (from a config property)]]>
  53632. </doc>
  53633. </method>
  53634. <method name="getThreadCount" return="int"
  53635. abstract="false" native="false" synchronized="false"
  53636. static="false" final="false" visibility="public"
  53637. deprecated="not deprecated">
  53638. <doc>
  53639. <![CDATA[@return number of threads of the jobtracker jvm]]>
  53640. </doc>
  53641. </method>
  53642. <method name="getSummaryJson" return="java.lang.String"
  53643. abstract="false" native="false" synchronized="false"
  53644. static="false" final="false" visibility="public"
  53645. deprecated="not deprecated">
  53646. <doc>
  53647. <![CDATA[@return the summary info in json]]>
  53648. </doc>
  53649. </method>
  53650. <method name="getAliveNodesInfoJson" return="java.lang.String"
  53651. abstract="false" native="false" synchronized="false"
  53652. static="false" final="false" visibility="public"
  53653. deprecated="not deprecated">
  53654. <doc>
  53655. <![CDATA[@return the alive nodes info in json]]>
  53656. </doc>
  53657. </method>
  53658. <method name="getBlacklistedNodesInfoJson" return="java.lang.String"
  53659. abstract="false" native="false" synchronized="false"
  53660. static="false" final="false" visibility="public"
  53661. deprecated="not deprecated">
  53662. <doc>
  53663. <![CDATA[@return the blacklisted nodes info in json]]>
  53664. </doc>
  53665. </method>
  53666. <method name="getGraylistedNodesInfoJson" return="java.lang.String"
  53667. abstract="false" native="false" synchronized="false"
  53668. static="false" final="false" visibility="public"
  53669. deprecated="not deprecated">
  53670. <doc>
  53671. <![CDATA[@return the graylisted nodes info in json]]>
  53672. </doc>
  53673. </method>
  53674. <method name="getQueueInfoJson" return="java.lang.String"
  53675. abstract="false" native="false" synchronized="false"
  53676. static="false" final="false" visibility="public"
  53677. deprecated="not deprecated">
  53678. <doc>
  53679. <![CDATA[@return the queue info json]]>
  53680. </doc>
  53681. </method>
  53682. <doc>
  53683. <![CDATA[The MXBean interface for JobTrackerInfo]]>
  53684. </doc>
  53685. </interface>
  53686. <!-- end interface org.apache.hadoop.mapred.JobTrackerMXBean -->
  53687. <!-- start class org.apache.hadoop.mapred.JobTrackerNotYetInitializedException -->
  53688. <class name="JobTrackerNotYetInitializedException" extends="java.io.IOException"
  53689. abstract="false"
  53690. static="false" final="false" visibility="public"
  53691. deprecated="not deprecated">
  53692. <constructor name="JobTrackerNotYetInitializedException"
  53693. static="false" final="false" visibility="public"
  53694. deprecated="not deprecated">
  53695. </constructor>
  53696. <doc>
  53697. <![CDATA[This exception is thrown when the JobTracker is still initializing and
  53698. not yet operational.]]>
  53699. </doc>
  53700. </class>
  53701. <!-- end class org.apache.hadoop.mapred.JobTrackerNotYetInitializedException -->
  53702. <!-- start class org.apache.hadoop.mapred.JvmTask -->
  53703. <class name="JvmTask" extends="java.lang.Object"
  53704. abstract="false"
  53705. static="false" final="false" visibility="public"
  53706. deprecated="not deprecated">
  53707. <implements name="org.apache.hadoop.io.Writable"/>
  53708. <constructor name="JvmTask" type="org.apache.hadoop.mapred.Task, boolean"
  53709. static="false" final="false" visibility="public"
  53710. deprecated="not deprecated">
  53711. </constructor>
  53712. <constructor name="JvmTask"
  53713. static="false" final="false" visibility="public"
  53714. deprecated="not deprecated">
  53715. </constructor>
  53716. <method name="getTask" return="org.apache.hadoop.mapred.Task"
  53717. abstract="false" native="false" synchronized="false"
  53718. static="false" final="false" visibility="public"
  53719. deprecated="not deprecated">
  53720. </method>
  53721. <method name="shouldDie" return="boolean"
  53722. abstract="false" native="false" synchronized="false"
  53723. static="false" final="false" visibility="public"
  53724. deprecated="not deprecated">
  53725. </method>
  53726. <method name="write"
  53727. abstract="false" native="false" synchronized="false"
  53728. static="false" final="false" visibility="public"
  53729. deprecated="not deprecated">
  53730. <param name="out" type="java.io.DataOutput"/>
  53731. <exception name="IOException" type="java.io.IOException"/>
  53732. </method>
  53733. <method name="readFields"
  53734. abstract="false" native="false" synchronized="false"
  53735. static="false" final="false" visibility="public"
  53736. deprecated="not deprecated">
  53737. <param name="in" type="java.io.DataInput"/>
  53738. <exception name="IOException" type="java.io.IOException"/>
  53739. </method>
  53740. </class>
  53741. <!-- end class org.apache.hadoop.mapred.JvmTask -->
  53742. <!-- start class org.apache.hadoop.mapred.KeyValueLineRecordReader -->
  53743. <class name="KeyValueLineRecordReader" extends="java.lang.Object"
  53744. abstract="false"
  53745. static="false" final="false" visibility="public"
  53746. deprecated="not deprecated">
  53747. <implements name="org.apache.hadoop.mapred.RecordReader"/>
  53748. <constructor name="KeyValueLineRecordReader" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.mapred.FileSplit"
  53749. static="false" final="false" visibility="public"
  53750. deprecated="not deprecated">
  53751. <exception name="IOException" type="java.io.IOException"/>
  53752. </constructor>
  53753. <method name="getKeyClass" return="java.lang.Class"
  53754. abstract="false" native="false" synchronized="false"
  53755. static="false" final="false" visibility="public"
  53756. deprecated="not deprecated">
  53757. </method>
  53758. <method name="createKey" return="org.apache.hadoop.io.Text"
  53759. abstract="false" native="false" synchronized="false"
  53760. static="false" final="false" visibility="public"
  53761. deprecated="not deprecated">
  53762. </method>
  53763. <method name="createValue" return="org.apache.hadoop.io.Text"
  53764. abstract="false" native="false" synchronized="false"
  53765. static="false" final="false" visibility="public"
  53766. deprecated="not deprecated">
  53767. </method>
  53768. <method name="findSeparator" return="int"
  53769. abstract="false" native="false" synchronized="false"
  53770. static="true" final="false" visibility="public"
  53771. deprecated="not deprecated">
  53772. <param name="utf" type="byte[]"/>
  53773. <param name="start" type="int"/>
  53774. <param name="length" type="int"/>
  53775. <param name="sep" type="byte"/>
  53776. </method>
  53777. <method name="next" return="boolean"
  53778. abstract="false" native="false" synchronized="true"
  53779. static="false" final="false" visibility="public"
  53780. deprecated="not deprecated">
  53781. <param name="key" type="org.apache.hadoop.io.Text"/>
  53782. <param name="value" type="org.apache.hadoop.io.Text"/>
  53783. <exception name="IOException" type="java.io.IOException"/>
  53784. <doc>
  53785. <![CDATA[Read key/value pair in a line.]]>
  53786. </doc>
  53787. </method>
  53788. <method name="getProgress" return="float"
  53789. abstract="false" native="false" synchronized="false"
  53790. static="false" final="false" visibility="public"
  53791. deprecated="not deprecated">
  53792. <exception name="IOException" type="java.io.IOException"/>
  53793. </method>
  53794. <method name="getPos" return="long"
  53795. abstract="false" native="false" synchronized="true"
  53796. static="false" final="false" visibility="public"
  53797. deprecated="not deprecated">
  53798. <exception name="IOException" type="java.io.IOException"/>
  53799. </method>
  53800. <method name="close"
  53801. abstract="false" native="false" synchronized="true"
  53802. static="false" final="false" visibility="public"
  53803. deprecated="not deprecated">
  53804. <exception name="IOException" type="java.io.IOException"/>
  53805. </method>
  53806. <doc>
  53807. <![CDATA[This class treats a line in the input as a key/value pair separated by a
  53808. separator character. The separator can be specified in config file
  53809. under the attribute name key.value.separator.in.input.line. The default
  53810. separator is the tab character ('\t').]]>
  53811. </doc>
  53812. </class>
  53813. <!-- end class org.apache.hadoop.mapred.KeyValueLineRecordReader -->
  53814. <!-- start class org.apache.hadoop.mapred.KeyValueTextInputFormat -->
  53815. <class name="KeyValueTextInputFormat" extends="org.apache.hadoop.mapred.FileInputFormat"
  53816. abstract="false"
  53817. static="false" final="false" visibility="public"
  53818. deprecated="not deprecated">
  53819. <implements name="org.apache.hadoop.mapred.JobConfigurable"/>
  53820. <constructor name="KeyValueTextInputFormat"
  53821. static="false" final="false" visibility="public"
  53822. deprecated="not deprecated">
  53823. </constructor>
  53824. <method name="configure"
  53825. abstract="false" native="false" synchronized="false"
  53826. static="false" final="false" visibility="public"
  53827. deprecated="not deprecated">
  53828. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  53829. </method>
  53830. <method name="isSplitable" return="boolean"
  53831. abstract="false" native="false" synchronized="false"
  53832. static="false" final="false" visibility="protected"
  53833. deprecated="not deprecated">
  53834. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  53835. <param name="file" type="org.apache.hadoop.fs.Path"/>
  53836. </method>
  53837. <method name="getRecordReader" return="org.apache.hadoop.mapred.RecordReader"
  53838. abstract="false" native="false" synchronized="false"
  53839. static="false" final="false" visibility="public"
  53840. deprecated="not deprecated">
  53841. <param name="genericSplit" type="org.apache.hadoop.mapred.InputSplit"/>
  53842. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  53843. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  53844. <exception name="IOException" type="java.io.IOException"/>
  53845. </method>
  53846. <doc>
  53847. <![CDATA[An {@link InputFormat} for plain text files. Files are broken into lines.
  53848. Either linefeed or carriage-return are used to signal end of line. Each line
  53849. is divided into key and value parts by a separator byte. If no such a byte
  53850. exists, the key will be the entire line and value will be empty.]]>
  53851. </doc>
  53852. </class>
  53853. <!-- end class org.apache.hadoop.mapred.KeyValueTextInputFormat -->
  53854. <!-- start class org.apache.hadoop.mapred.LineRecordReader -->
  53855. <class name="LineRecordReader" extends="java.lang.Object"
  53856. abstract="false"
  53857. static="false" final="false" visibility="public"
  53858. deprecated="not deprecated">
  53859. <implements name="org.apache.hadoop.mapred.RecordReader"/>
  53860. <constructor name="LineRecordReader" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.mapred.FileSplit"
  53861. static="false" final="false" visibility="public"
  53862. deprecated="not deprecated">
  53863. <exception name="IOException" type="java.io.IOException"/>
  53864. </constructor>
  53865. <constructor name="LineRecordReader" type="java.io.InputStream, long, long, int"
  53866. static="false" final="false" visibility="public"
  53867. deprecated="not deprecated">
  53868. </constructor>
  53869. <constructor name="LineRecordReader" type="java.io.InputStream, long, long, org.apache.hadoop.conf.Configuration"
  53870. static="false" final="false" visibility="public"
  53871. deprecated="not deprecated">
  53872. <exception name="IOException" type="java.io.IOException"/>
  53873. </constructor>
  53874. <method name="createKey" return="org.apache.hadoop.io.LongWritable"
  53875. abstract="false" native="false" synchronized="false"
  53876. static="false" final="false" visibility="public"
  53877. deprecated="not deprecated">
  53878. </method>
  53879. <method name="createValue" return="org.apache.hadoop.io.Text"
  53880. abstract="false" native="false" synchronized="false"
  53881. static="false" final="false" visibility="public"
  53882. deprecated="not deprecated">
  53883. </method>
  53884. <method name="next" return="boolean"
  53885. abstract="false" native="false" synchronized="true"
  53886. static="false" final="false" visibility="public"
  53887. deprecated="not deprecated">
  53888. <param name="key" type="org.apache.hadoop.io.LongWritable"/>
  53889. <param name="value" type="org.apache.hadoop.io.Text"/>
  53890. <exception name="IOException" type="java.io.IOException"/>
  53891. <doc>
  53892. <![CDATA[Read a line.]]>
  53893. </doc>
  53894. </method>
  53895. <method name="getProgress" return="float"
  53896. abstract="false" native="false" synchronized="false"
  53897. static="false" final="false" visibility="public"
  53898. deprecated="not deprecated">
  53899. <exception name="IOException" type="java.io.IOException"/>
  53900. <doc>
  53901. <![CDATA[Get the progress within the split]]>
  53902. </doc>
  53903. </method>
  53904. <method name="getPos" return="long"
  53905. abstract="false" native="false" synchronized="true"
  53906. static="false" final="false" visibility="public"
  53907. deprecated="not deprecated">
  53908. <exception name="IOException" type="java.io.IOException"/>
  53909. </method>
  53910. <method name="close"
  53911. abstract="false" native="false" synchronized="true"
  53912. static="false" final="false" visibility="public"
  53913. deprecated="not deprecated">
  53914. <exception name="IOException" type="java.io.IOException"/>
  53915. </method>
  53916. <doc>
  53917. <![CDATA[Treats keys as offset in file and value as line.]]>
  53918. </doc>
  53919. </class>
  53920. <!-- end class org.apache.hadoop.mapred.LineRecordReader -->
  53921. <!-- start class org.apache.hadoop.mapred.LineRecordReader.LineReader -->
  53922. <class name="LineRecordReader.LineReader" extends="org.apache.hadoop.util.LineReader"
  53923. abstract="false"
  53924. static="true" final="false" visibility="public"
  53925. deprecated="Use {@link org.apache.hadoop.util.LineReader} instead.">
  53926. <constructor name="LineRecordReader.LineReader" type="java.io.InputStream, org.apache.hadoop.conf.Configuration"
  53927. static="false" final="false" visibility="public"
  53928. deprecated="not deprecated">
  53929. <exception name="IOException" type="java.io.IOException"/>
  53930. </constructor>
  53931. <doc>
  53932. <![CDATA[A class that provides a line reader from an input stream.
  53933. @deprecated Use {@link org.apache.hadoop.util.LineReader} instead.]]>
  53934. </doc>
  53935. </class>
  53936. <!-- end class org.apache.hadoop.mapred.LineRecordReader.LineReader -->
  53937. <!-- start class org.apache.hadoop.mapred.LocalJobRunner -->
  53938. <class name="LocalJobRunner" extends="java.lang.Object"
  53939. abstract="false"
  53940. static="false" final="false" visibility="public"
  53941. deprecated="not deprecated">
  53942. <implements name="org.apache.hadoop.mapred.JobSubmissionProtocol"/>
  53943. <constructor name="LocalJobRunner" type="org.apache.hadoop.mapred.JobConf"
  53944. static="false" final="false" visibility="public"
  53945. deprecated="not deprecated">
  53946. <exception name="IOException" type="java.io.IOException"/>
  53947. </constructor>
  53948. <method name="getProtocolVersion" return="long"
  53949. abstract="false" native="false" synchronized="false"
  53950. static="false" final="false" visibility="public"
  53951. deprecated="not deprecated">
  53952. <param name="protocol" type="java.lang.String"/>
  53953. <param name="clientVersion" type="long"/>
  53954. </method>
  53955. <method name="getNewJobId" return="org.apache.hadoop.mapred.JobID"
  53956. abstract="false" native="false" synchronized="true"
  53957. static="false" final="false" visibility="public"
  53958. deprecated="not deprecated">
  53959. </method>
  53960. <method name="submitJob" return="org.apache.hadoop.mapred.JobStatus"
  53961. abstract="false" native="false" synchronized="false"
  53962. static="false" final="false" visibility="public"
  53963. deprecated="not deprecated">
  53964. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  53965. <param name="jobSubmitDir" type="java.lang.String"/>
  53966. <param name="credentials" type="org.apache.hadoop.security.Credentials"/>
  53967. <exception name="IOException" type="java.io.IOException"/>
  53968. </method>
  53969. <method name="killJob"
  53970. abstract="false" native="false" synchronized="false"
  53971. static="false" final="false" visibility="public"
  53972. deprecated="not deprecated">
  53973. <param name="id" type="org.apache.hadoop.mapred.JobID"/>
  53974. </method>
  53975. <method name="setJobPriority"
  53976. abstract="false" native="false" synchronized="false"
  53977. static="false" final="false" visibility="public"
  53978. deprecated="not deprecated">
  53979. <param name="id" type="org.apache.hadoop.mapred.JobID"/>
  53980. <param name="jp" type="java.lang.String"/>
  53981. <exception name="IOException" type="java.io.IOException"/>
  53982. </method>
  53983. <method name="killTask" return="boolean"
  53984. abstract="false" native="false" synchronized="false"
  53985. static="false" final="false" visibility="public"
  53986. deprecated="not deprecated">
  53987. <param name="taskId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  53988. <param name="shouldFail" type="boolean"/>
  53989. <exception name="IOException" type="java.io.IOException"/>
  53990. <doc>
  53991. <![CDATA[Throws {@link UnsupportedOperationException}]]>
  53992. </doc>
  53993. </method>
  53994. <method name="getJobProfile" return="org.apache.hadoop.mapred.JobProfile"
  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. </method>
  54000. <method name="getMapTaskReports" return="org.apache.hadoop.mapred.TaskReport[]"
  54001. abstract="false" native="false" synchronized="false"
  54002. static="false" final="false" visibility="public"
  54003. deprecated="not deprecated">
  54004. <param name="id" type="org.apache.hadoop.mapred.JobID"/>
  54005. </method>
  54006. <method name="getReduceTaskReports" return="org.apache.hadoop.mapred.TaskReport[]"
  54007. abstract="false" native="false" synchronized="false"
  54008. static="false" final="false" visibility="public"
  54009. deprecated="not deprecated">
  54010. <param name="id" type="org.apache.hadoop.mapred.JobID"/>
  54011. </method>
  54012. <method name="getCleanupTaskReports" return="org.apache.hadoop.mapred.TaskReport[]"
  54013. abstract="false" native="false" synchronized="false"
  54014. static="false" final="false" visibility="public"
  54015. deprecated="not deprecated">
  54016. <param name="id" type="org.apache.hadoop.mapred.JobID"/>
  54017. </method>
  54018. <method name="getSetupTaskReports" return="org.apache.hadoop.mapred.TaskReport[]"
  54019. abstract="false" native="false" synchronized="false"
  54020. static="false" final="false" visibility="public"
  54021. deprecated="not deprecated">
  54022. <param name="id" type="org.apache.hadoop.mapred.JobID"/>
  54023. </method>
  54024. <method name="getJobStatus" return="org.apache.hadoop.mapred.JobStatus"
  54025. abstract="false" native="false" synchronized="false"
  54026. static="false" final="false" visibility="public"
  54027. deprecated="not deprecated">
  54028. <param name="id" type="org.apache.hadoop.mapred.JobID"/>
  54029. </method>
  54030. <method name="getJobCounters" return="org.apache.hadoop.mapred.Counters"
  54031. abstract="false" native="false" synchronized="false"
  54032. static="false" final="false" visibility="public"
  54033. deprecated="not deprecated">
  54034. <param name="id" type="org.apache.hadoop.mapred.JobID"/>
  54035. </method>
  54036. <method name="getFilesystemName" return="java.lang.String"
  54037. abstract="false" native="false" synchronized="false"
  54038. static="false" final="false" visibility="public"
  54039. deprecated="not deprecated">
  54040. <exception name="IOException" type="java.io.IOException"/>
  54041. </method>
  54042. <method name="getClusterStatus" return="org.apache.hadoop.mapred.ClusterStatus"
  54043. abstract="false" native="false" synchronized="false"
  54044. static="false" final="false" visibility="public"
  54045. deprecated="not deprecated">
  54046. <param name="detailed" type="boolean"/>
  54047. </method>
  54048. <method name="jobsToComplete" return="org.apache.hadoop.mapred.JobStatus[]"
  54049. abstract="false" native="false" synchronized="false"
  54050. static="false" final="false" visibility="public"
  54051. deprecated="not deprecated">
  54052. </method>
  54053. <method name="getTaskCompletionEvents" return="org.apache.hadoop.mapred.TaskCompletionEvent[]"
  54054. abstract="false" native="false" synchronized="false"
  54055. static="false" final="false" visibility="public"
  54056. deprecated="not deprecated">
  54057. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  54058. <param name="fromEventId" type="int"/>
  54059. <param name="maxEvents" type="int"/>
  54060. <exception name="IOException" type="java.io.IOException"/>
  54061. </method>
  54062. <method name="getAllJobs" return="org.apache.hadoop.mapred.JobStatus[]"
  54063. abstract="false" native="false" synchronized="false"
  54064. static="false" final="false" visibility="public"
  54065. deprecated="not deprecated">
  54066. </method>
  54067. <method name="getTaskDiagnostics" return="java.lang.String[]"
  54068. abstract="false" native="false" synchronized="false"
  54069. static="false" final="false" visibility="public"
  54070. deprecated="not deprecated">
  54071. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  54072. <exception name="IOException" type="java.io.IOException"/>
  54073. <doc>
  54074. <![CDATA[Returns the diagnostic information for a particular task in the given job.
  54075. To be implemented]]>
  54076. </doc>
  54077. </method>
  54078. <method name="getSystemDir" return="java.lang.String"
  54079. abstract="false" native="false" synchronized="false"
  54080. static="false" final="false" visibility="public"
  54081. deprecated="not deprecated">
  54082. <doc>
  54083. <![CDATA[@see org.apache.hadoop.mapred.JobSubmissionProtocol#getSystemDir()]]>
  54084. </doc>
  54085. </method>
  54086. <method name="getQueueAdmins" return="org.apache.hadoop.security.authorize.AccessControlList"
  54087. abstract="false" native="false" synchronized="false"
  54088. static="false" final="false" visibility="public"
  54089. deprecated="not deprecated">
  54090. <param name="queueName" type="java.lang.String"/>
  54091. <exception name="IOException" type="java.io.IOException"/>
  54092. <doc>
  54093. <![CDATA[@see org.apache.hadoop.mapred.JobSubmissionProtocol#getQueueAdmins()]]>
  54094. </doc>
  54095. </method>
  54096. <method name="getStagingAreaDir" return="java.lang.String"
  54097. abstract="false" native="false" synchronized="false"
  54098. static="false" final="false" visibility="public"
  54099. deprecated="not deprecated">
  54100. <exception name="IOException" type="java.io.IOException"/>
  54101. <doc>
  54102. <![CDATA[@see org.apache.hadoop.mapred.JobSubmissionProtocol#getStagingAreaDir()]]>
  54103. </doc>
  54104. </method>
  54105. <method name="getJobsFromQueue" return="org.apache.hadoop.mapred.JobStatus[]"
  54106. abstract="false" native="false" synchronized="false"
  54107. static="false" final="false" visibility="public"
  54108. deprecated="not deprecated">
  54109. <param name="queue" type="java.lang.String"/>
  54110. <exception name="IOException" type="java.io.IOException"/>
  54111. </method>
  54112. <method name="getQueues" return="org.apache.hadoop.mapred.JobQueueInfo[]"
  54113. abstract="false" native="false" synchronized="false"
  54114. static="false" final="false" visibility="public"
  54115. deprecated="not deprecated">
  54116. <exception name="IOException" type="java.io.IOException"/>
  54117. </method>
  54118. <method name="getQueueInfo" return="org.apache.hadoop.mapred.JobQueueInfo"
  54119. abstract="false" native="false" synchronized="false"
  54120. static="false" final="false" visibility="public"
  54121. deprecated="not deprecated">
  54122. <param name="queue" type="java.lang.String"/>
  54123. <exception name="IOException" type="java.io.IOException"/>
  54124. </method>
  54125. <method name="getQueueAclsForCurrentUser" return="org.apache.hadoop.mapred.QueueAclsInfo[]"
  54126. abstract="false" native="false" synchronized="false"
  54127. static="false" final="false" visibility="public"
  54128. deprecated="not deprecated">
  54129. <exception name="IOException" type="java.io.IOException"/>
  54130. </method>
  54131. <method name="setLocalMaxRunningMaps"
  54132. abstract="false" native="false" synchronized="false"
  54133. static="true" final="false" visibility="public"
  54134. deprecated="not deprecated">
  54135. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  54136. <param name="maxMaps" type="int"/>
  54137. <doc>
  54138. <![CDATA[Set the max number of map tasks to run concurrently in the LocalJobRunner.
  54139. @param job the job to configure
  54140. @param maxMaps the maximum number of map tasks to allow.]]>
  54141. </doc>
  54142. </method>
  54143. <method name="getLocalMaxRunningMaps" return="int"
  54144. abstract="false" native="false" synchronized="false"
  54145. static="true" final="false" visibility="public"
  54146. deprecated="not deprecated">
  54147. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  54148. <doc>
  54149. <![CDATA[@return the max number of map tasks to run concurrently in the
  54150. LocalJobRunner.]]>
  54151. </doc>
  54152. </method>
  54153. <method name="cancelDelegationToken"
  54154. abstract="false" native="false" synchronized="false"
  54155. static="false" final="false" visibility="public"
  54156. deprecated="not deprecated">
  54157. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  54158. <exception name="IOException" type="java.io.IOException"/>
  54159. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  54160. </method>
  54161. <method name="getDelegationToken" return="org.apache.hadoop.security.token.Token"
  54162. abstract="false" native="false" synchronized="false"
  54163. static="false" final="false" visibility="public"
  54164. deprecated="not deprecated">
  54165. <param name="renewer" type="org.apache.hadoop.io.Text"/>
  54166. <exception name="IOException" type="java.io.IOException"/>
  54167. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  54168. </method>
  54169. <method name="renewDelegationToken" return="long"
  54170. abstract="false" native="false" synchronized="false"
  54171. static="false" final="false" visibility="public"
  54172. deprecated="not deprecated">
  54173. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  54174. <exception name="IOException" type="java.io.IOException"/>
  54175. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  54176. </method>
  54177. <field name="LOG" type="org.apache.commons.logging.Log"
  54178. transient="false" volatile="false"
  54179. static="true" final="true" visibility="public"
  54180. deprecated="not deprecated">
  54181. </field>
  54182. <field name="LOCAL_MAX_MAPS" type="java.lang.String"
  54183. transient="false" volatile="false"
  54184. static="true" final="true" visibility="public"
  54185. deprecated="not deprecated">
  54186. </field>
  54187. <doc>
  54188. <![CDATA[Implements MapReduce locally, in-process, for debugging.]]>
  54189. </doc>
  54190. </class>
  54191. <!-- end class org.apache.hadoop.mapred.LocalJobRunner -->
  54192. <!-- start class org.apache.hadoop.mapred.MapFileOutputFormat -->
  54193. <class name="MapFileOutputFormat" extends="org.apache.hadoop.mapred.FileOutputFormat"
  54194. abstract="false"
  54195. static="false" final="false" visibility="public"
  54196. deprecated="not deprecated">
  54197. <constructor name="MapFileOutputFormat"
  54198. static="false" final="false" visibility="public"
  54199. deprecated="not deprecated">
  54200. </constructor>
  54201. <method name="getRecordWriter" return="org.apache.hadoop.mapred.RecordWriter"
  54202. abstract="false" native="false" synchronized="false"
  54203. static="false" final="false" visibility="public"
  54204. deprecated="not deprecated">
  54205. <param name="ignored" type="org.apache.hadoop.fs.FileSystem"/>
  54206. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  54207. <param name="name" type="java.lang.String"/>
  54208. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  54209. <exception name="IOException" type="java.io.IOException"/>
  54210. </method>
  54211. <method name="getReaders" return="org.apache.hadoop.io.MapFile.Reader[]"
  54212. abstract="false" native="false" synchronized="false"
  54213. static="true" final="false" visibility="public"
  54214. deprecated="not deprecated">
  54215. <param name="ignored" type="org.apache.hadoop.fs.FileSystem"/>
  54216. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  54217. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  54218. <exception name="IOException" type="java.io.IOException"/>
  54219. <doc>
  54220. <![CDATA[Open the output generated by this format.]]>
  54221. </doc>
  54222. </method>
  54223. <method name="getEntry" return="org.apache.hadoop.io.Writable"
  54224. abstract="false" native="false" synchronized="false"
  54225. static="true" final="false" visibility="public"
  54226. deprecated="not deprecated">
  54227. <param name="readers" type="org.apache.hadoop.io.MapFile.Reader[]"/>
  54228. <param name="partitioner" type="org.apache.hadoop.mapred.Partitioner"/>
  54229. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  54230. <param name="value" type="org.apache.hadoop.io.Writable"/>
  54231. <exception name="IOException" type="java.io.IOException"/>
  54232. <doc>
  54233. <![CDATA[Get an entry from output generated by this class.]]>
  54234. </doc>
  54235. </method>
  54236. <doc>
  54237. <![CDATA[An {@link OutputFormat} that writes {@link MapFile}s.]]>
  54238. </doc>
  54239. </class>
  54240. <!-- end class org.apache.hadoop.mapred.MapFileOutputFormat -->
  54241. <!-- start interface org.apache.hadoop.mapred.Mapper -->
  54242. <interface name="Mapper" abstract="true"
  54243. static="false" final="false" visibility="public"
  54244. deprecated="not deprecated">
  54245. <implements name="org.apache.hadoop.mapred.JobConfigurable"/>
  54246. <implements name="org.apache.hadoop.io.Closeable"/>
  54247. <method name="map"
  54248. abstract="false" native="false" synchronized="false"
  54249. static="false" final="false" visibility="public"
  54250. deprecated="not deprecated">
  54251. <param name="key" type="java.lang.Object"/>
  54252. <param name="value" type="java.lang.Object"/>
  54253. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  54254. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  54255. <exception name="IOException" type="java.io.IOException"/>
  54256. <doc>
  54257. <![CDATA[Maps a single input key/value pair into an intermediate key/value pair.
  54258. <p>Output pairs need not be of the same types as input pairs. A given
  54259. input pair may map to zero or many output pairs. Output pairs are
  54260. collected with calls to
  54261. {@link OutputCollector#collect(Object,Object)}.</p>
  54262. <p>Applications can use the {@link Reporter} provided to report progress
  54263. or just indicate that they are alive. In scenarios where the application
  54264. takes an insignificant amount of time to process individual key/value
  54265. pairs, this is crucial since the framework might assume that the task has
  54266. timed-out and kill that task. The other way of avoiding this is to set
  54267. <a href="{@docRoot}/../mapred-default.html#mapred.task.timeout">
  54268. mapred.task.timeout</a> to a high-enough value (or even zero for no
  54269. time-outs).</p>
  54270. @param key the input key.
  54271. @param value the input value.
  54272. @param output collects mapped keys and values.
  54273. @param reporter facility to report progress.]]>
  54274. </doc>
  54275. </method>
  54276. <doc>
  54277. <![CDATA[Maps input key/value pairs to a set of intermediate key/value pairs.
  54278. <p>Maps are the individual tasks which transform input records into a
  54279. intermediate records. The transformed intermediate records need not be of
  54280. the same type as the input records. A given input pair may map to zero or
  54281. many output pairs.</p>
  54282. <p>The Hadoop Map-Reduce framework spawns one map task for each
  54283. {@link InputSplit} generated by the {@link InputFormat} for the job.
  54284. <code>Mapper</code> implementations can access the {@link JobConf} for the
  54285. job via the {@link JobConfigurable#configure(JobConf)} and initialize
  54286. themselves. Similarly they can use the {@link Closeable#close()} method for
  54287. de-initialization.</p>
  54288. <p>The framework then calls
  54289. {@link #map(Object, Object, OutputCollector, Reporter)}
  54290. for each key/value pair in the <code>InputSplit</code> for that task.</p>
  54291. <p>All intermediate values associated with a given output key are
  54292. subsequently grouped by the framework, and passed to a {@link Reducer} to
  54293. determine the final output. Users can control the grouping by specifying
  54294. a <code>Comparator</code> via
  54295. {@link JobConf#setOutputKeyComparatorClass(Class)}.</p>
  54296. <p>The grouped <code>Mapper</code> outputs are partitioned per
  54297. <code>Reducer</code>. Users can control which keys (and hence records) go to
  54298. which <code>Reducer</code> by implementing a custom {@link Partitioner}.
  54299. <p>Users can optionally specify a <code>combiner</code>, via
  54300. {@link JobConf#setCombinerClass(Class)}, to perform local aggregation of the
  54301. intermediate outputs, which helps to cut down the amount of data transferred
  54302. from the <code>Mapper</code> to the <code>Reducer</code>.
  54303. <p>The intermediate, grouped outputs are always stored in
  54304. {@link SequenceFile}s. Applications can specify if and how the intermediate
  54305. outputs are to be compressed and which {@link CompressionCodec}s are to be
  54306. used via the <code>JobConf</code>.</p>
  54307. <p>If the job has
  54308. <a href="{@docRoot}/org/apache/hadoop/mapred/JobConf.html#ReducerNone">zero
  54309. reduces</a> then the output of the <code>Mapper</code> is directly written
  54310. to the {@link FileSystem} without grouping by keys.</p>
  54311. <p>Example:</p>
  54312. <p><blockquote><pre>
  54313. public class MyMapper&lt;K extends WritableComparable, V extends Writable&gt;
  54314. extends MapReduceBase implements Mapper&lt;K, V, K, V&gt; {
  54315. static enum MyCounters { NUM_RECORDS }
  54316. private String mapTaskId;
  54317. private String inputFile;
  54318. private int noRecords = 0;
  54319. public void configure(JobConf job) {
  54320. mapTaskId = job.get("mapred.task.id");
  54321. inputFile = job.get("map.input.file");
  54322. }
  54323. public void map(K key, V val,
  54324. OutputCollector&lt;K, V&gt; output, Reporter reporter)
  54325. throws IOException {
  54326. // Process the &lt;key, value&gt; pair (assume this takes a while)
  54327. // ...
  54328. // ...
  54329. // Let the framework know that we are alive, and kicking!
  54330. // reporter.progress();
  54331. // Process some more
  54332. // ...
  54333. // ...
  54334. // Increment the no. of &lt;key, value&gt; pairs processed
  54335. ++noRecords;
  54336. // Increment counters
  54337. reporter.incrCounter(NUM_RECORDS, 1);
  54338. // Every 100 records update application-level status
  54339. if ((noRecords%100) == 0) {
  54340. reporter.setStatus(mapTaskId + " processed " + noRecords +
  54341. " from input-file: " + inputFile);
  54342. }
  54343. // Output the result
  54344. output.collect(key, val);
  54345. }
  54346. }
  54347. </pre></blockquote></p>
  54348. <p>Applications may write a custom {@link MapRunnable} to exert greater
  54349. control on map processing e.g. multi-threaded <code>Mapper</code>s etc.</p>
  54350. @see JobConf
  54351. @see InputFormat
  54352. @see Partitioner
  54353. @see Reducer
  54354. @see MapReduceBase
  54355. @see MapRunnable
  54356. @see SequenceFile]]>
  54357. </doc>
  54358. </interface>
  54359. <!-- end interface org.apache.hadoop.mapred.Mapper -->
  54360. <!-- start class org.apache.hadoop.mapred.MapReduceBase -->
  54361. <class name="MapReduceBase" extends="java.lang.Object"
  54362. abstract="false"
  54363. static="false" final="false" visibility="public"
  54364. deprecated="not deprecated">
  54365. <implements name="org.apache.hadoop.io.Closeable"/>
  54366. <implements name="org.apache.hadoop.mapred.JobConfigurable"/>
  54367. <constructor name="MapReduceBase"
  54368. static="false" final="false" visibility="public"
  54369. deprecated="not deprecated">
  54370. </constructor>
  54371. <method name="close"
  54372. abstract="false" native="false" synchronized="false"
  54373. static="false" final="false" visibility="public"
  54374. deprecated="not deprecated">
  54375. <exception name="IOException" type="java.io.IOException"/>
  54376. <doc>
  54377. <![CDATA[Default implementation that does nothing.]]>
  54378. </doc>
  54379. </method>
  54380. <method name="configure"
  54381. abstract="false" native="false" synchronized="false"
  54382. static="false" final="false" visibility="public"
  54383. deprecated="not deprecated">
  54384. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  54385. <doc>
  54386. <![CDATA[Default implementation that does nothing.]]>
  54387. </doc>
  54388. </method>
  54389. <doc>
  54390. <![CDATA[Base class for {@link Mapper} and {@link Reducer} implementations.
  54391. <p>Provides default no-op implementations for a few methods, most non-trivial
  54392. applications need to override some of them.</p>]]>
  54393. </doc>
  54394. </class>
  54395. <!-- end class org.apache.hadoop.mapred.MapReduceBase -->
  54396. <!-- start class org.apache.hadoop.mapred.MapReducePolicyProvider -->
  54397. <class name="MapReducePolicyProvider" extends="org.apache.hadoop.security.authorize.PolicyProvider"
  54398. abstract="false"
  54399. static="false" final="false" visibility="public"
  54400. deprecated="not deprecated">
  54401. <constructor name="MapReducePolicyProvider"
  54402. static="false" final="false" visibility="public"
  54403. deprecated="not deprecated">
  54404. </constructor>
  54405. <method name="getServices" return="org.apache.hadoop.security.authorize.Service[]"
  54406. abstract="false" native="false" synchronized="false"
  54407. static="false" final="false" visibility="public"
  54408. deprecated="not deprecated">
  54409. </method>
  54410. <doc>
  54411. <![CDATA[{@link PolicyProvider} for Map-Reduce protocols.]]>
  54412. </doc>
  54413. </class>
  54414. <!-- end class org.apache.hadoop.mapred.MapReducePolicyProvider -->
  54415. <!-- start interface org.apache.hadoop.mapred.MapRunnable -->
  54416. <interface name="MapRunnable" abstract="true"
  54417. static="false" final="false" visibility="public"
  54418. deprecated="not deprecated">
  54419. <implements name="org.apache.hadoop.mapred.JobConfigurable"/>
  54420. <method name="run"
  54421. abstract="false" native="false" synchronized="false"
  54422. static="false" final="false" visibility="public"
  54423. deprecated="not deprecated">
  54424. <param name="input" type="org.apache.hadoop.mapred.RecordReader"/>
  54425. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  54426. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  54427. <exception name="IOException" type="java.io.IOException"/>
  54428. <doc>
  54429. <![CDATA[Start mapping input <tt>&lt;key, value&gt;</tt> pairs.
  54430. <p>Mapping of input records to output records is complete when this method
  54431. returns.</p>
  54432. @param input the {@link RecordReader} to read the input records.
  54433. @param output the {@link OutputCollector} to collect the outputrecords.
  54434. @param reporter {@link Reporter} to report progress, status-updates etc.
  54435. @throws IOException]]>
  54436. </doc>
  54437. </method>
  54438. <doc>
  54439. <![CDATA[Expert: Generic interface for {@link Mapper}s.
  54440. <p>Custom implementations of <code>MapRunnable</code> can exert greater
  54441. control on map processing e.g. multi-threaded, asynchronous mappers etc.</p>
  54442. @see Mapper]]>
  54443. </doc>
  54444. </interface>
  54445. <!-- end interface org.apache.hadoop.mapred.MapRunnable -->
  54446. <!-- start class org.apache.hadoop.mapred.MapRunner -->
  54447. <class name="MapRunner" extends="java.lang.Object"
  54448. abstract="false"
  54449. static="false" final="false" visibility="public"
  54450. deprecated="not deprecated">
  54451. <implements name="org.apache.hadoop.mapred.MapRunnable"/>
  54452. <constructor name="MapRunner"
  54453. static="false" final="false" visibility="public"
  54454. deprecated="not deprecated">
  54455. </constructor>
  54456. <method name="configure"
  54457. abstract="false" native="false" synchronized="false"
  54458. static="false" final="false" visibility="public"
  54459. deprecated="not deprecated">
  54460. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  54461. </method>
  54462. <method name="run"
  54463. abstract="false" native="false" synchronized="false"
  54464. static="false" final="false" visibility="public"
  54465. deprecated="not deprecated">
  54466. <param name="input" type="org.apache.hadoop.mapred.RecordReader"/>
  54467. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  54468. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  54469. <exception name="IOException" type="java.io.IOException"/>
  54470. </method>
  54471. <method name="getMapper" return="org.apache.hadoop.mapred.Mapper"
  54472. abstract="false" native="false" synchronized="false"
  54473. static="false" final="false" visibility="protected"
  54474. deprecated="not deprecated">
  54475. </method>
  54476. <doc>
  54477. <![CDATA[Default {@link MapRunnable} implementation.]]>
  54478. </doc>
  54479. </class>
  54480. <!-- end class org.apache.hadoop.mapred.MapRunner -->
  54481. <!-- start class org.apache.hadoop.mapred.MapTaskCompletionEventsUpdate -->
  54482. <class name="MapTaskCompletionEventsUpdate" extends="java.lang.Object"
  54483. abstract="false"
  54484. static="false" final="false" visibility="public"
  54485. deprecated="not deprecated">
  54486. <implements name="org.apache.hadoop.io.Writable"/>
  54487. <constructor name="MapTaskCompletionEventsUpdate"
  54488. static="false" final="false" visibility="public"
  54489. deprecated="not deprecated">
  54490. </constructor>
  54491. <constructor name="MapTaskCompletionEventsUpdate" type="org.apache.hadoop.mapred.TaskCompletionEvent[], boolean"
  54492. static="false" final="false" visibility="public"
  54493. deprecated="not deprecated">
  54494. </constructor>
  54495. <method name="shouldReset" return="boolean"
  54496. abstract="false" native="false" synchronized="false"
  54497. static="false" final="false" visibility="public"
  54498. deprecated="not deprecated">
  54499. </method>
  54500. <method name="getMapTaskCompletionEvents" return="org.apache.hadoop.mapred.TaskCompletionEvent[]"
  54501. abstract="false" native="false" synchronized="false"
  54502. static="false" final="false" visibility="public"
  54503. deprecated="not deprecated">
  54504. </method>
  54505. <method name="write"
  54506. abstract="false" native="false" synchronized="false"
  54507. static="false" final="false" visibility="public"
  54508. deprecated="not deprecated">
  54509. <param name="out" type="java.io.DataOutput"/>
  54510. <exception name="IOException" type="java.io.IOException"/>
  54511. </method>
  54512. <method name="readFields"
  54513. abstract="false" native="false" synchronized="false"
  54514. static="false" final="false" visibility="public"
  54515. deprecated="not deprecated">
  54516. <param name="in" type="java.io.DataInput"/>
  54517. <exception name="IOException" type="java.io.IOException"/>
  54518. </method>
  54519. <doc>
  54520. <![CDATA[A class that represents the communication between the tasktracker and child
  54521. tasks w.r.t the map task completion events. It also indicates whether the
  54522. child task should reset its events index.]]>
  54523. </doc>
  54524. </class>
  54525. <!-- end class org.apache.hadoop.mapred.MapTaskCompletionEventsUpdate -->
  54526. <!-- start class org.apache.hadoop.mapred.MultiFileInputFormat -->
  54527. <class name="MultiFileInputFormat" extends="org.apache.hadoop.mapred.FileInputFormat"
  54528. abstract="true"
  54529. static="false" final="false" visibility="public"
  54530. deprecated="Use {@link org.apache.hadoop.mapred.lib.CombineFileInputFormat} instead">
  54531. <constructor name="MultiFileInputFormat"
  54532. static="false" final="false" visibility="public"
  54533. deprecated="not deprecated">
  54534. </constructor>
  54535. <method name="getSplits" return="org.apache.hadoop.mapred.InputSplit[]"
  54536. abstract="false" native="false" synchronized="false"
  54537. static="false" final="false" visibility="public"
  54538. deprecated="not deprecated">
  54539. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  54540. <param name="numSplits" type="int"/>
  54541. <exception name="IOException" type="java.io.IOException"/>
  54542. </method>
  54543. <method name="getRecordReader" return="org.apache.hadoop.mapred.RecordReader"
  54544. abstract="true" native="false" synchronized="false"
  54545. static="false" final="false" visibility="public"
  54546. deprecated="not deprecated">
  54547. <param name="split" type="org.apache.hadoop.mapred.InputSplit"/>
  54548. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  54549. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  54550. <exception name="IOException" type="java.io.IOException"/>
  54551. </method>
  54552. <doc>
  54553. <![CDATA[An abstract {@link InputFormat} that returns {@link MultiFileSplit}'s
  54554. in {@link #getSplits(JobConf, int)} method. Splits are constructed from
  54555. the files under the input paths. Each split returned contains <i>nearly</i>
  54556. equal content length. <br>
  54557. Subclasses implement {@link #getRecordReader(InputSplit, JobConf, Reporter)}
  54558. to construct <code>RecordReader</code>'s for <code>MultiFileSplit</code>'s.
  54559. @see MultiFileSplit
  54560. @deprecated Use {@link org.apache.hadoop.mapred.lib.CombineFileInputFormat} instead]]>
  54561. </doc>
  54562. </class>
  54563. <!-- end class org.apache.hadoop.mapred.MultiFileInputFormat -->
  54564. <!-- start class org.apache.hadoop.mapred.MultiFileSplit -->
  54565. <class name="MultiFileSplit" extends="org.apache.hadoop.mapred.lib.CombineFileSplit"
  54566. abstract="false"
  54567. static="false" final="false" visibility="public"
  54568. deprecated="Use {@link org.apache.hadoop.mapred.lib.CombineFileSplit} instead">
  54569. <constructor name="MultiFileSplit" type="org.apache.hadoop.mapred.JobConf, org.apache.hadoop.fs.Path[], long[]"
  54570. static="false" final="false" visibility="public"
  54571. deprecated="not deprecated">
  54572. </constructor>
  54573. <method name="getLocations" return="java.lang.String[]"
  54574. abstract="false" native="false" synchronized="false"
  54575. static="false" final="false" visibility="public"
  54576. deprecated="not deprecated">
  54577. <exception name="IOException" type="java.io.IOException"/>
  54578. </method>
  54579. <method name="toString" return="java.lang.String"
  54580. abstract="false" native="false" synchronized="false"
  54581. static="false" final="false" visibility="public"
  54582. deprecated="not deprecated">
  54583. </method>
  54584. <doc>
  54585. <![CDATA[A sub-collection of input files. Unlike {@link FileSplit}, MultiFileSplit
  54586. class does not represent a split of a file, but a split of input files
  54587. into smaller sets. The atomic unit of split is a file. <br>
  54588. MultiFileSplit can be used to implement {@link RecordReader}'s, with
  54589. reading one record per file.
  54590. @see FileSplit
  54591. @see MultiFileInputFormat
  54592. @deprecated Use {@link org.apache.hadoop.mapred.lib.CombineFileSplit} instead]]>
  54593. </doc>
  54594. </class>
  54595. <!-- end class org.apache.hadoop.mapred.MultiFileSplit -->
  54596. <!-- start class org.apache.hadoop.mapred.Operation -->
  54597. <class name="Operation" extends="java.lang.Enum"
  54598. abstract="false"
  54599. static="false" final="true" visibility="public"
  54600. deprecated="not deprecated">
  54601. <method name="values" return="org.apache.hadoop.mapred.Operation[]"
  54602. abstract="false" native="false" synchronized="false"
  54603. static="true" final="false" visibility="public"
  54604. deprecated="not deprecated">
  54605. </method>
  54606. <method name="valueOf" return="org.apache.hadoop.mapred.Operation"
  54607. abstract="false" native="false" synchronized="false"
  54608. static="true" final="false" visibility="public"
  54609. deprecated="not deprecated">
  54610. <param name="name" type="java.lang.String"/>
  54611. </method>
  54612. <field name="VIEW_JOB_COUNTERS" type="org.apache.hadoop.mapred.Operation"
  54613. transient="false" volatile="false"
  54614. static="true" final="true" visibility="public"
  54615. deprecated="not deprecated">
  54616. </field>
  54617. <field name="VIEW_JOB_DETAILS" type="org.apache.hadoop.mapred.Operation"
  54618. transient="false" volatile="false"
  54619. static="true" final="true" visibility="public"
  54620. deprecated="not deprecated">
  54621. </field>
  54622. <field name="VIEW_TASK_LOGS" type="org.apache.hadoop.mapred.Operation"
  54623. transient="false" volatile="false"
  54624. static="true" final="true" visibility="public"
  54625. deprecated="not deprecated">
  54626. </field>
  54627. <field name="KILL_JOB" type="org.apache.hadoop.mapred.Operation"
  54628. transient="false" volatile="false"
  54629. static="true" final="true" visibility="public"
  54630. deprecated="not deprecated">
  54631. </field>
  54632. <field name="FAIL_TASK" type="org.apache.hadoop.mapred.Operation"
  54633. transient="false" volatile="false"
  54634. static="true" final="true" visibility="public"
  54635. deprecated="not deprecated">
  54636. </field>
  54637. <field name="KILL_TASK" type="org.apache.hadoop.mapred.Operation"
  54638. transient="false" volatile="false"
  54639. static="true" final="true" visibility="public"
  54640. deprecated="not deprecated">
  54641. </field>
  54642. <field name="SET_JOB_PRIORITY" type="org.apache.hadoop.mapred.Operation"
  54643. transient="false" volatile="false"
  54644. static="true" final="true" visibility="public"
  54645. deprecated="not deprecated">
  54646. </field>
  54647. <field name="SUBMIT_JOB" type="org.apache.hadoop.mapred.Operation"
  54648. transient="false" volatile="false"
  54649. static="true" final="true" visibility="public"
  54650. deprecated="not deprecated">
  54651. </field>
  54652. <field name="qACLNeeded" type="org.apache.hadoop.mapred.QueueManager.QueueACL"
  54653. transient="false" volatile="false"
  54654. static="false" final="false" visibility="public"
  54655. deprecated="not deprecated">
  54656. </field>
  54657. <field name="jobACLNeeded" type="org.apache.hadoop.mapreduce.JobACL"
  54658. transient="false" volatile="false"
  54659. static="false" final="false" visibility="public"
  54660. deprecated="not deprecated">
  54661. </field>
  54662. <doc>
  54663. <![CDATA[Generic operation that maps to the dependent set of ACLs that drive the
  54664. authorization of the operation.]]>
  54665. </doc>
  54666. </class>
  54667. <!-- end class org.apache.hadoop.mapred.Operation -->
  54668. <!-- start interface org.apache.hadoop.mapred.OutputCollector -->
  54669. <interface name="OutputCollector" abstract="true"
  54670. static="false" final="false" visibility="public"
  54671. deprecated="not deprecated">
  54672. <method name="collect"
  54673. abstract="false" native="false" synchronized="false"
  54674. static="false" final="false" visibility="public"
  54675. deprecated="not deprecated">
  54676. <param name="key" type="java.lang.Object"/>
  54677. <param name="value" type="java.lang.Object"/>
  54678. <exception name="IOException" type="java.io.IOException"/>
  54679. <doc>
  54680. <![CDATA[Adds a key/value pair to the output.
  54681. @param key the key to collect.
  54682. @param value to value to collect.
  54683. @throws IOException]]>
  54684. </doc>
  54685. </method>
  54686. <doc>
  54687. <![CDATA[Collects the <code>&lt;key, value&gt;</code> pairs output by {@link Mapper}s
  54688. and {@link Reducer}s.
  54689. <p><code>OutputCollector</code> is the generalization of the facility
  54690. provided by the Map-Reduce framework to collect data output by either the
  54691. <code>Mapper</code> or the <code>Reducer</code> i.e. intermediate outputs
  54692. or the output of the job.</p>]]>
  54693. </doc>
  54694. </interface>
  54695. <!-- end interface org.apache.hadoop.mapred.OutputCollector -->
  54696. <!-- start class org.apache.hadoop.mapred.OutputCommitter -->
  54697. <class name="OutputCommitter" extends="org.apache.hadoop.mapreduce.OutputCommitter"
  54698. abstract="true"
  54699. static="false" final="false" visibility="public"
  54700. deprecated="not deprecated">
  54701. <constructor name="OutputCommitter"
  54702. static="false" final="false" visibility="public"
  54703. deprecated="not deprecated">
  54704. </constructor>
  54705. <method name="setupJob"
  54706. abstract="true" native="false" synchronized="false"
  54707. static="false" final="false" visibility="public"
  54708. deprecated="not deprecated">
  54709. <param name="jobContext" type="org.apache.hadoop.mapred.JobContext"/>
  54710. <exception name="IOException" type="java.io.IOException"/>
  54711. <doc>
  54712. <![CDATA[For the framework to setup the job output during initialization
  54713. @param jobContext Context of the job whose output is being written.
  54714. @throws IOException if temporary output could not be created]]>
  54715. </doc>
  54716. </method>
  54717. <method name="cleanupJob"
  54718. abstract="false" native="false" synchronized="false"
  54719. static="false" final="false" visibility="public"
  54720. deprecated="use {@link #commitJob(JobContext)} or
  54721. {@link #abortJob(JobContext, int)} instead">
  54722. <param name="jobContext" type="org.apache.hadoop.mapred.JobContext"/>
  54723. <exception name="IOException" type="java.io.IOException"/>
  54724. <doc>
  54725. <![CDATA[For cleaning up the job's output after job completion
  54726. @deprecated use {@link #commitJob(JobContext)} or
  54727. {@link #abortJob(JobContext, int)} instead]]>
  54728. </doc>
  54729. </method>
  54730. <method name="commitJob"
  54731. abstract="false" native="false" synchronized="false"
  54732. static="false" final="false" visibility="public"
  54733. deprecated="not deprecated">
  54734. <param name="jobContext" type="org.apache.hadoop.mapred.JobContext"/>
  54735. <exception name="IOException" type="java.io.IOException"/>
  54736. <doc>
  54737. <![CDATA[For committing job's output after successful job completion. Note that this
  54738. is invoked for jobs with final run state as {@link JobStatus#SUCCEEDED}.
  54739. @param jobContext Context of the job whose output is being written.
  54740. @throws IOException]]>
  54741. </doc>
  54742. </method>
  54743. <method name="abortJob"
  54744. abstract="false" native="false" synchronized="false"
  54745. static="false" final="false" visibility="public"
  54746. deprecated="not deprecated">
  54747. <param name="jobContext" type="org.apache.hadoop.mapred.JobContext"/>
  54748. <param name="status" type="int"/>
  54749. <exception name="IOException" type="java.io.IOException"/>
  54750. <doc>
  54751. <![CDATA[For cleaning up the job's output after job failure.
  54752. @param jobContext Context of the job whose output is being written.
  54753. @param status Final run state of the job, should be
  54754. {@link JobStatus#KILLED} or {@link JobStatus#FAILED}
  54755. @throws IOException]]>
  54756. </doc>
  54757. </method>
  54758. <method name="setupTask"
  54759. abstract="true" native="false" synchronized="false"
  54760. static="false" final="false" visibility="public"
  54761. deprecated="not deprecated">
  54762. <param name="taskContext" type="org.apache.hadoop.mapred.TaskAttemptContext"/>
  54763. <exception name="IOException" type="java.io.IOException"/>
  54764. <doc>
  54765. <![CDATA[Sets up output for the task.
  54766. @param taskContext Context of the task whose output is being written.
  54767. @throws IOException]]>
  54768. </doc>
  54769. </method>
  54770. <method name="needsTaskCommit" return="boolean"
  54771. abstract="true" native="false" synchronized="false"
  54772. static="false" final="false" visibility="public"
  54773. deprecated="not deprecated">
  54774. <param name="taskContext" type="org.apache.hadoop.mapred.TaskAttemptContext"/>
  54775. <exception name="IOException" type="java.io.IOException"/>
  54776. <doc>
  54777. <![CDATA[Check whether task needs a commit
  54778. @param taskContext
  54779. @return true/false
  54780. @throws IOException]]>
  54781. </doc>
  54782. </method>
  54783. <method name="commitTask"
  54784. abstract="true" native="false" synchronized="false"
  54785. static="false" final="false" visibility="public"
  54786. deprecated="not deprecated">
  54787. <param name="taskContext" type="org.apache.hadoop.mapred.TaskAttemptContext"/>
  54788. <exception name="IOException" type="java.io.IOException"/>
  54789. <doc>
  54790. <![CDATA[To promote the task's temporary output to final output location
  54791. The task's output is moved to the job's output directory.
  54792. @param taskContext Context of the task whose output is being written.
  54793. @throws IOException if commit is not]]>
  54794. </doc>
  54795. </method>
  54796. <method name="abortTask"
  54797. abstract="true" native="false" synchronized="false"
  54798. static="false" final="false" visibility="public"
  54799. deprecated="not deprecated">
  54800. <param name="taskContext" type="org.apache.hadoop.mapred.TaskAttemptContext"/>
  54801. <exception name="IOException" type="java.io.IOException"/>
  54802. <doc>
  54803. <![CDATA[Discard the task output
  54804. @param taskContext
  54805. @throws IOException]]>
  54806. </doc>
  54807. </method>
  54808. <method name="setupJob"
  54809. abstract="false" native="false" synchronized="false"
  54810. static="false" final="true" visibility="public"
  54811. deprecated="not deprecated">
  54812. <param name="jobContext" type="org.apache.hadoop.mapreduce.JobContext"/>
  54813. <exception name="IOException" type="java.io.IOException"/>
  54814. <doc>
  54815. <![CDATA[This method implements the new interface by calling the old method. Note
  54816. that the input types are different between the new and old apis and this
  54817. is a bridge between the two.]]>
  54818. </doc>
  54819. </method>
  54820. <method name="cleanupJob"
  54821. abstract="false" native="false" synchronized="false"
  54822. static="false" final="true" visibility="public"
  54823. deprecated="not deprecated">
  54824. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  54825. <exception name="IOException" type="java.io.IOException"/>
  54826. <doc>
  54827. <![CDATA[This method implements the new interface by calling the old method. Note
  54828. that the input types are different between the new and old apis and this
  54829. is a bridge between the two.]]>
  54830. </doc>
  54831. </method>
  54832. <method name="commitJob"
  54833. abstract="false" native="false" synchronized="false"
  54834. static="false" final="true" visibility="public"
  54835. deprecated="not deprecated">
  54836. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  54837. <exception name="IOException" type="java.io.IOException"/>
  54838. <doc>
  54839. <![CDATA[This method implements the new interface by calling the old method. Note
  54840. that the input types are different between the new and old apis and this
  54841. is a bridge between the two.]]>
  54842. </doc>
  54843. </method>
  54844. <method name="abortJob"
  54845. abstract="false" native="false" synchronized="false"
  54846. static="false" final="true" visibility="public"
  54847. deprecated="not deprecated">
  54848. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  54849. <param name="runState" type="org.apache.hadoop.mapreduce.JobStatus.State"/>
  54850. <exception name="IOException" type="java.io.IOException"/>
  54851. <doc>
  54852. <![CDATA[This method implements the new interface by calling the old method. Note
  54853. that the input types are different between the new and old apis and this
  54854. is a bridge between the two.]]>
  54855. </doc>
  54856. </method>
  54857. <method name="setupTask"
  54858. abstract="false" native="false" synchronized="false"
  54859. static="false" final="true" visibility="public"
  54860. deprecated="not deprecated">
  54861. <param name="taskContext" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  54862. <exception name="IOException" type="java.io.IOException"/>
  54863. <doc>
  54864. <![CDATA[This method implements the new interface by calling the old method. Note
  54865. that the input types are different between the new and old apis and this
  54866. is a bridge between the two.]]>
  54867. </doc>
  54868. </method>
  54869. <method name="needsTaskCommit" return="boolean"
  54870. abstract="false" native="false" synchronized="false"
  54871. static="false" final="true" visibility="public"
  54872. deprecated="not deprecated">
  54873. <param name="taskContext" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  54874. <exception name="IOException" type="java.io.IOException"/>
  54875. <doc>
  54876. <![CDATA[This method implements the new interface by calling the old method. Note
  54877. that the input types are different between the new and old apis and this
  54878. is a bridge between the two.]]>
  54879. </doc>
  54880. </method>
  54881. <method name="commitTask"
  54882. abstract="false" native="false" synchronized="false"
  54883. static="false" final="true" visibility="public"
  54884. deprecated="not deprecated">
  54885. <param name="taskContext" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  54886. <exception name="IOException" type="java.io.IOException"/>
  54887. <doc>
  54888. <![CDATA[This method implements the new interface by calling the old method. Note
  54889. that the input types are different between the new and old apis and this
  54890. is a bridge between the two.]]>
  54891. </doc>
  54892. </method>
  54893. <method name="abortTask"
  54894. abstract="false" native="false" synchronized="false"
  54895. static="false" final="true" visibility="public"
  54896. deprecated="not deprecated">
  54897. <param name="taskContext" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  54898. <exception name="IOException" type="java.io.IOException"/>
  54899. <doc>
  54900. <![CDATA[This method implements the new interface by calling the old method. Note
  54901. that the input types are different between the new and old apis and this
  54902. is a bridge between the two.]]>
  54903. </doc>
  54904. </method>
  54905. <doc>
  54906. <![CDATA[<code>OutputCommitter</code> describes the commit of task output for a
  54907. Map-Reduce job.
  54908. <p>The Map-Reduce framework relies on the <code>OutputCommitter</code> of
  54909. the job to:<p>
  54910. <ol>
  54911. <li>
  54912. Setup the job during initialization. For example, create the temporary
  54913. output directory for the job during the initialization of the job.
  54914. </li>
  54915. <li>
  54916. Cleanup the job after the job completion. For example, remove the
  54917. temporary output directory after the job completion.
  54918. </li>
  54919. <li>
  54920. Setup the task temporary output.
  54921. </li>
  54922. <li>
  54923. Check whether a task needs a commit. This is to avoid the commit
  54924. procedure if a task does not need commit.
  54925. </li>
  54926. <li>
  54927. Commit of the task output.
  54928. </li>
  54929. <li>
  54930. Discard the task commit.
  54931. </li>
  54932. </ol>
  54933. @see FileOutputCommitter
  54934. @see JobContext
  54935. @see TaskAttemptContext]]>
  54936. </doc>
  54937. </class>
  54938. <!-- end class org.apache.hadoop.mapred.OutputCommitter -->
  54939. <!-- start interface org.apache.hadoop.mapred.OutputFormat -->
  54940. <interface name="OutputFormat" abstract="true"
  54941. static="false" final="false" visibility="public"
  54942. deprecated="not deprecated">
  54943. <method name="getRecordWriter" return="org.apache.hadoop.mapred.RecordWriter"
  54944. abstract="false" native="false" synchronized="false"
  54945. static="false" final="false" visibility="public"
  54946. deprecated="not deprecated">
  54947. <param name="ignored" type="org.apache.hadoop.fs.FileSystem"/>
  54948. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  54949. <param name="name" type="java.lang.String"/>
  54950. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  54951. <exception name="IOException" type="java.io.IOException"/>
  54952. <doc>
  54953. <![CDATA[Get the {@link RecordWriter} for the given job.
  54954. @param ignored
  54955. @param job configuration for the job whose output is being written.
  54956. @param name the unique name for this part of the output.
  54957. @param progress mechanism for reporting progress while writing to file.
  54958. @return a {@link RecordWriter} to write the output for the job.
  54959. @throws IOException]]>
  54960. </doc>
  54961. </method>
  54962. <method name="checkOutputSpecs"
  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. <exception name="IOException" type="java.io.IOException"/>
  54969. <doc>
  54970. <![CDATA[Check for validity of the output-specification for the job.
  54971. <p>This is to validate the output specification for the job when it is
  54972. a job is submitted. Typically checks that it does not already exist,
  54973. throwing an exception when it already exists, so that output is not
  54974. overwritten.</p>
  54975. @param ignored
  54976. @param job job configuration.
  54977. @throws IOException when output should not be attempted]]>
  54978. </doc>
  54979. </method>
  54980. <doc>
  54981. <![CDATA[<code>OutputFormat</code> describes the output-specification for a
  54982. Map-Reduce job.
  54983. <p>The Map-Reduce framework relies on the <code>OutputFormat</code> of the
  54984. job to:<p>
  54985. <ol>
  54986. <li>
  54987. Validate the output-specification of the job. For e.g. check that the
  54988. output directory doesn't already exist.
  54989. <li>
  54990. Provide the {@link RecordWriter} implementation to be used to write out
  54991. the output files of the job. Output files are stored in a
  54992. {@link FileSystem}.
  54993. </li>
  54994. </ol>
  54995. @see RecordWriter
  54996. @see JobConf]]>
  54997. </doc>
  54998. </interface>
  54999. <!-- end interface org.apache.hadoop.mapred.OutputFormat -->
  55000. <!-- start class org.apache.hadoop.mapred.OutputLogFilter -->
  55001. <class name="OutputLogFilter" extends="java.lang.Object"
  55002. abstract="false"
  55003. static="false" final="false" visibility="public"
  55004. deprecated="Use
  55005. {@link org.apache.hadoop.mapred.Utils.OutputFileUtils.OutputLogFilter}
  55006. instead.">
  55007. <implements name="org.apache.hadoop.fs.PathFilter"/>
  55008. <constructor name="OutputLogFilter"
  55009. static="false" final="false" visibility="public"
  55010. deprecated="not deprecated">
  55011. </constructor>
  55012. <method name="accept" return="boolean"
  55013. abstract="false" native="false" synchronized="false"
  55014. static="false" final="false" visibility="public"
  55015. deprecated="not deprecated">
  55016. <param name="path" type="org.apache.hadoop.fs.Path"/>
  55017. </method>
  55018. <doc>
  55019. <![CDATA[This class filters log files from directory given
  55020. It doesnt accept paths having _logs.
  55021. This can be used to list paths of output directory as follows:
  55022. Path[] fileList = FileUtil.stat2Paths(fs.listStatus(outDir,
  55023. new OutputLogFilter()));
  55024. @deprecated Use
  55025. {@link org.apache.hadoop.mapred.Utils.OutputFileUtils.OutputLogFilter}
  55026. instead.]]>
  55027. </doc>
  55028. </class>
  55029. <!-- end class org.apache.hadoop.mapred.OutputLogFilter -->
  55030. <!-- start interface org.apache.hadoop.mapred.Partitioner -->
  55031. <interface name="Partitioner" abstract="true"
  55032. static="false" final="false" visibility="public"
  55033. deprecated="not deprecated">
  55034. <implements name="org.apache.hadoop.mapred.JobConfigurable"/>
  55035. <method name="getPartition" return="int"
  55036. abstract="false" native="false" synchronized="false"
  55037. static="false" final="false" visibility="public"
  55038. deprecated="not deprecated">
  55039. <param name="key" type="java.lang.Object"/>
  55040. <param name="value" type="java.lang.Object"/>
  55041. <param name="numPartitions" type="int"/>
  55042. <doc>
  55043. <![CDATA[Get the paritition number for a given key (hence record) given the total
  55044. number of partitions i.e. number of reduce-tasks for the job.
  55045. <p>Typically a hash function on a all or a subset of the key.</p>
  55046. @param key the key to be paritioned.
  55047. @param value the entry value.
  55048. @param numPartitions the total number of partitions.
  55049. @return the partition number for the <code>key</code>.]]>
  55050. </doc>
  55051. </method>
  55052. <doc>
  55053. <![CDATA[Partitions the key space.
  55054. <p><code>Partitioner</code> controls the partitioning of the keys of the
  55055. intermediate map-outputs. The key (or a subset of the key) is used to derive
  55056. the partition, typically by a hash function. The total number of partitions
  55057. is the same as the number of reduce tasks for the job. Hence this controls
  55058. which of the <code>m</code> reduce tasks the intermediate key (and hence the
  55059. record) is sent for reduction.</p>
  55060. @see Reducer]]>
  55061. </doc>
  55062. </interface>
  55063. <!-- end interface org.apache.hadoop.mapred.Partitioner -->
  55064. <!-- start class org.apache.hadoop.mapred.QueueAclsInfo -->
  55065. <class name="QueueAclsInfo" extends="java.lang.Object"
  55066. abstract="false"
  55067. static="false" final="false" visibility="public"
  55068. deprecated="not deprecated">
  55069. <implements name="org.apache.hadoop.io.Writable"/>
  55070. <constructor name="QueueAclsInfo"
  55071. static="false" final="false" visibility="public"
  55072. deprecated="not deprecated">
  55073. <doc>
  55074. <![CDATA[Default constructor for QueueAclsInfo.]]>
  55075. </doc>
  55076. </constructor>
  55077. <constructor name="QueueAclsInfo" type="java.lang.String, java.lang.String[]"
  55078. static="false" final="false" visibility="public"
  55079. deprecated="not deprecated">
  55080. <doc>
  55081. <![CDATA[Construct a new QueueAclsInfo object using the queue name and the
  55082. queue operations array
  55083. @param queueName Name of the job queue
  55084. @param operations queue operations]]>
  55085. </doc>
  55086. </constructor>
  55087. <method name="getQueueName" return="java.lang.String"
  55088. abstract="false" native="false" synchronized="false"
  55089. static="false" final="false" visibility="public"
  55090. deprecated="not deprecated">
  55091. </method>
  55092. <method name="setQueueName"
  55093. abstract="false" native="false" synchronized="false"
  55094. static="false" final="false" visibility="protected"
  55095. deprecated="not deprecated">
  55096. <param name="queueName" type="java.lang.String"/>
  55097. </method>
  55098. <method name="getOperations" return="java.lang.String[]"
  55099. abstract="false" native="false" synchronized="false"
  55100. static="false" final="false" visibility="public"
  55101. deprecated="not deprecated">
  55102. </method>
  55103. <method name="readFields"
  55104. abstract="false" native="false" synchronized="false"
  55105. static="false" final="false" visibility="public"
  55106. deprecated="not deprecated">
  55107. <param name="in" type="java.io.DataInput"/>
  55108. <exception name="IOException" type="java.io.IOException"/>
  55109. </method>
  55110. <method name="write"
  55111. abstract="false" native="false" synchronized="false"
  55112. static="false" final="false" visibility="public"
  55113. deprecated="not deprecated">
  55114. <param name="out" type="java.io.DataOutput"/>
  55115. <exception name="IOException" type="java.io.IOException"/>
  55116. </method>
  55117. <doc>
  55118. <![CDATA[Class to encapsulate Queue ACLs for a particular
  55119. user.]]>
  55120. </doc>
  55121. </class>
  55122. <!-- end class org.apache.hadoop.mapred.QueueAclsInfo -->
  55123. <!-- start class org.apache.hadoop.mapred.RawHistoryFileServlet -->
  55124. <class name="RawHistoryFileServlet" extends="javax.servlet.http.HttpServlet"
  55125. abstract="false"
  55126. static="false" final="false" visibility="public"
  55127. deprecated="not deprecated">
  55128. <constructor name="RawHistoryFileServlet"
  55129. static="false" final="false" visibility="public"
  55130. deprecated="not deprecated">
  55131. </constructor>
  55132. <method name="init"
  55133. abstract="false" native="false" synchronized="false"
  55134. static="false" final="false" visibility="public"
  55135. deprecated="not deprecated">
  55136. <param name="servletConfig" type="javax.servlet.ServletConfig"/>
  55137. <exception name="ServletException" type="javax.servlet.ServletException"/>
  55138. </method>
  55139. <method name="doGet"
  55140. abstract="false" native="false" synchronized="false"
  55141. static="false" final="false" visibility="protected"
  55142. deprecated="not deprecated">
  55143. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  55144. <param name="response" type="javax.servlet.http.HttpServletResponse"/>
  55145. <exception name="ServletException" type="javax.servlet.ServletException"/>
  55146. <exception name="IOException" type="java.io.IOException"/>
  55147. </method>
  55148. </class>
  55149. <!-- end class org.apache.hadoop.mapred.RawHistoryFileServlet -->
  55150. <!-- start interface org.apache.hadoop.mapred.RawKeyValueIterator -->
  55151. <interface name="RawKeyValueIterator" abstract="true"
  55152. static="false" final="false" visibility="public"
  55153. deprecated="not deprecated">
  55154. <method name="getKey" return="org.apache.hadoop.io.DataInputBuffer"
  55155. abstract="false" native="false" synchronized="false"
  55156. static="false" final="false" visibility="public"
  55157. deprecated="not deprecated">
  55158. <exception name="IOException" type="java.io.IOException"/>
  55159. <doc>
  55160. <![CDATA[Gets the current raw key.
  55161. @return Gets the current raw key as a DataInputBuffer
  55162. @throws IOException]]>
  55163. </doc>
  55164. </method>
  55165. <method name="getValue" return="org.apache.hadoop.io.DataInputBuffer"
  55166. abstract="false" native="false" synchronized="false"
  55167. static="false" final="false" visibility="public"
  55168. deprecated="not deprecated">
  55169. <exception name="IOException" type="java.io.IOException"/>
  55170. <doc>
  55171. <![CDATA[Gets the current raw value.
  55172. @return Gets the current raw value as a DataInputBuffer
  55173. @throws IOException]]>
  55174. </doc>
  55175. </method>
  55176. <method name="next" return="boolean"
  55177. abstract="false" native="false" synchronized="false"
  55178. static="false" final="false" visibility="public"
  55179. deprecated="not deprecated">
  55180. <exception name="IOException" type="java.io.IOException"/>
  55181. <doc>
  55182. <![CDATA[Sets up the current key and value (for getKey and getValue).
  55183. @return <code>true</code> if there exists a key/value,
  55184. <code>false</code> otherwise.
  55185. @throws IOException]]>
  55186. </doc>
  55187. </method>
  55188. <method name="close"
  55189. abstract="false" native="false" synchronized="false"
  55190. static="false" final="false" visibility="public"
  55191. deprecated="not deprecated">
  55192. <exception name="IOException" type="java.io.IOException"/>
  55193. <doc>
  55194. <![CDATA[Closes the iterator so that the underlying streams can be closed.
  55195. @throws IOException]]>
  55196. </doc>
  55197. </method>
  55198. <method name="getProgress" return="org.apache.hadoop.util.Progress"
  55199. abstract="false" native="false" synchronized="false"
  55200. static="false" final="false" visibility="public"
  55201. deprecated="not deprecated">
  55202. <doc>
  55203. <![CDATA[Gets the Progress object; this has a float (0.0 - 1.0)
  55204. indicating the bytes processed by the iterator so far]]>
  55205. </doc>
  55206. </method>
  55207. <doc>
  55208. <![CDATA[<code>RawKeyValueIterator</code> is an iterator used to iterate over
  55209. the raw keys and values during sort/merge of intermediate data.]]>
  55210. </doc>
  55211. </interface>
  55212. <!-- end interface org.apache.hadoop.mapred.RawKeyValueIterator -->
  55213. <!-- start interface org.apache.hadoop.mapred.RecordReader -->
  55214. <interface name="RecordReader" abstract="true"
  55215. static="false" final="false" visibility="public"
  55216. deprecated="not deprecated">
  55217. <method name="next" return="boolean"
  55218. abstract="false" native="false" synchronized="false"
  55219. static="false" final="false" visibility="public"
  55220. deprecated="not deprecated">
  55221. <param name="key" type="java.lang.Object"/>
  55222. <param name="value" type="java.lang.Object"/>
  55223. <exception name="IOException" type="java.io.IOException"/>
  55224. <doc>
  55225. <![CDATA[Reads the next key/value pair from the input for processing.
  55226. @param key the key to read data into
  55227. @param value the value to read data into
  55228. @return true iff a key/value was read, false if at EOF]]>
  55229. </doc>
  55230. </method>
  55231. <method name="createKey" return="java.lang.Object"
  55232. abstract="false" native="false" synchronized="false"
  55233. static="false" final="false" visibility="public"
  55234. deprecated="not deprecated">
  55235. <doc>
  55236. <![CDATA[Create an object of the appropriate type to be used as a key.
  55237. @return a new key object.]]>
  55238. </doc>
  55239. </method>
  55240. <method name="createValue" return="java.lang.Object"
  55241. abstract="false" native="false" synchronized="false"
  55242. static="false" final="false" visibility="public"
  55243. deprecated="not deprecated">
  55244. <doc>
  55245. <![CDATA[Create an object of the appropriate type to be used as a value.
  55246. @return a new value object.]]>
  55247. </doc>
  55248. </method>
  55249. <method name="getPos" return="long"
  55250. abstract="false" native="false" synchronized="false"
  55251. static="false" final="false" visibility="public"
  55252. deprecated="not deprecated">
  55253. <exception name="IOException" type="java.io.IOException"/>
  55254. <doc>
  55255. <![CDATA[Returns the current position in the input.
  55256. @return the current position in the input.
  55257. @throws IOException]]>
  55258. </doc>
  55259. </method>
  55260. <method name="close"
  55261. abstract="false" native="false" synchronized="false"
  55262. static="false" final="false" visibility="public"
  55263. deprecated="not deprecated">
  55264. <exception name="IOException" type="java.io.IOException"/>
  55265. <doc>
  55266. <![CDATA[Close this {@link InputSplit} to future operations.
  55267. @throws IOException]]>
  55268. </doc>
  55269. </method>
  55270. <method name="getProgress" return="float"
  55271. abstract="false" native="false" synchronized="false"
  55272. static="false" final="false" visibility="public"
  55273. deprecated="not deprecated">
  55274. <exception name="IOException" type="java.io.IOException"/>
  55275. <doc>
  55276. <![CDATA[How much of the input has the {@link RecordReader} consumed i.e.
  55277. has been processed by?
  55278. @return progress from <code>0.0</code> to <code>1.0</code>.
  55279. @throws IOException]]>
  55280. </doc>
  55281. </method>
  55282. <doc>
  55283. <![CDATA[<code>RecordReader</code> reads &lt;key, value&gt; pairs from an
  55284. {@link InputSplit}.
  55285. <p><code>RecordReader</code>, typically, converts the byte-oriented view of
  55286. the input, provided by the <code>InputSplit</code>, and presents a
  55287. record-oriented view for the {@link Mapper} & {@link Reducer} tasks for
  55288. processing. It thus assumes the responsibility of processing record
  55289. boundaries and presenting the tasks with keys and values.</p>
  55290. @see InputSplit
  55291. @see InputFormat]]>
  55292. </doc>
  55293. </interface>
  55294. <!-- end interface org.apache.hadoop.mapred.RecordReader -->
  55295. <!-- start interface org.apache.hadoop.mapred.RecordWriter -->
  55296. <interface name="RecordWriter" abstract="true"
  55297. static="false" final="false" visibility="public"
  55298. deprecated="not deprecated">
  55299. <method name="write"
  55300. abstract="false" native="false" synchronized="false"
  55301. static="false" final="false" visibility="public"
  55302. deprecated="not deprecated">
  55303. <param name="key" type="java.lang.Object"/>
  55304. <param name="value" type="java.lang.Object"/>
  55305. <exception name="IOException" type="java.io.IOException"/>
  55306. <doc>
  55307. <![CDATA[Writes a key/value pair.
  55308. @param key the key to write.
  55309. @param value the value to write.
  55310. @throws IOException]]>
  55311. </doc>
  55312. </method>
  55313. <method name="close"
  55314. abstract="false" native="false" synchronized="false"
  55315. static="false" final="false" visibility="public"
  55316. deprecated="not deprecated">
  55317. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  55318. <exception name="IOException" type="java.io.IOException"/>
  55319. <doc>
  55320. <![CDATA[Close this <code>RecordWriter</code> to future operations.
  55321. @param reporter facility to report progress.
  55322. @throws IOException]]>
  55323. </doc>
  55324. </method>
  55325. <doc>
  55326. <![CDATA[<code>RecordWriter</code> writes the output &lt;key, value&gt; pairs
  55327. to an output file.
  55328. <p><code>RecordWriter</code> implementations write the job outputs to the
  55329. {@link FileSystem}.
  55330. @see OutputFormat]]>
  55331. </doc>
  55332. </interface>
  55333. <!-- end interface org.apache.hadoop.mapred.RecordWriter -->
  55334. <!-- start interface org.apache.hadoop.mapred.Reducer -->
  55335. <interface name="Reducer" abstract="true"
  55336. static="false" final="false" visibility="public"
  55337. deprecated="not deprecated">
  55338. <implements name="org.apache.hadoop.mapred.JobConfigurable"/>
  55339. <implements name="org.apache.hadoop.io.Closeable"/>
  55340. <method name="reduce"
  55341. abstract="false" native="false" synchronized="false"
  55342. static="false" final="false" visibility="public"
  55343. deprecated="not deprecated">
  55344. <param name="key" type="java.lang.Object"/>
  55345. <param name="values" type="java.util.Iterator"/>
  55346. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  55347. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  55348. <exception name="IOException" type="java.io.IOException"/>
  55349. <doc>
  55350. <![CDATA[<i>Reduces</i> values for a given key.
  55351. <p>The framework calls this method for each
  55352. <code>&lt;key, (list of values)></code> pair in the grouped inputs.
  55353. Output values must be of the same type as input values. Input keys must
  55354. not be altered. The framework will <b>reuse</b> the key and value objects
  55355. that are passed into the reduce, therefore the application should clone
  55356. the objects they want to keep a copy of. In many cases, all values are
  55357. combined into zero or one value.
  55358. </p>
  55359. <p>Output pairs are collected with calls to
  55360. {@link OutputCollector#collect(Object,Object)}.</p>
  55361. <p>Applications can use the {@link Reporter} provided to report progress
  55362. or just indicate that they are alive. In scenarios where the application
  55363. takes an insignificant amount of time to process individual key/value
  55364. pairs, this is crucial since the framework might assume that the task has
  55365. timed-out and kill that task. The other way of avoiding this is to set
  55366. <a href="{@docRoot}/../mapred-default.html#mapred.task.timeout">
  55367. mapred.task.timeout</a> to a high-enough value (or even zero for no
  55368. time-outs).</p>
  55369. @param key the key.
  55370. @param values the list of values to reduce.
  55371. @param output to collect keys and combined values.
  55372. @param reporter facility to report progress.]]>
  55373. </doc>
  55374. </method>
  55375. <doc>
  55376. <![CDATA[Reduces a set of intermediate values which share a key to a smaller set of
  55377. values.
  55378. <p>The number of <code>Reducer</code>s for the job is set by the user via
  55379. {@link JobConf#setNumReduceTasks(int)}. <code>Reducer</code> implementations
  55380. can access the {@link JobConf} for the job via the
  55381. {@link JobConfigurable#configure(JobConf)} method and initialize themselves.
  55382. Similarly they can use the {@link Closeable#close()} method for
  55383. de-initialization.</p>
  55384. <p><code>Reducer</code> has 3 primary phases:</p>
  55385. <ol>
  55386. <li>
  55387. <h4 id="Shuffle">Shuffle</h4>
  55388. <p><code>Reducer</code> is input the grouped output of a {@link Mapper}.
  55389. In the phase the framework, for each <code>Reducer</code>, fetches the
  55390. relevant partition of the output of all the <code>Mapper</code>s, via HTTP.
  55391. </p>
  55392. </li>
  55393. <li>
  55394. <h4 id="Sort">Sort</h4>
  55395. <p>The framework groups <code>Reducer</code> inputs by <code>key</code>s
  55396. (since different <code>Mapper</code>s may have output the same key) in this
  55397. stage.</p>
  55398. <p>The shuffle and sort phases occur simultaneously i.e. while outputs are
  55399. being fetched they are merged.</p>
  55400. <h5 id="SecondarySort">SecondarySort</h5>
  55401. <p>If equivalence rules for keys while grouping the intermediates are
  55402. different from those for grouping keys before reduction, then one may
  55403. specify a <code>Comparator</code> via
  55404. {@link JobConf#setOutputValueGroupingComparator(Class)}.Since
  55405. {@link JobConf#setOutputKeyComparatorClass(Class)} can be used to
  55406. control how intermediate keys are grouped, these can be used in conjunction
  55407. to simulate <i>secondary sort on values</i>.</p>
  55408. For example, say that you want to find duplicate web pages and tag them
  55409. all with the url of the "best" known example. You would set up the job
  55410. like:
  55411. <ul>
  55412. <li>Map Input Key: url</li>
  55413. <li>Map Input Value: document</li>
  55414. <li>Map Output Key: document checksum, url pagerank</li>
  55415. <li>Map Output Value: url</li>
  55416. <li>Partitioner: by checksum</li>
  55417. <li>OutputKeyComparator: by checksum and then decreasing pagerank</li>
  55418. <li>OutputValueGroupingComparator: by checksum</li>
  55419. </ul>
  55420. </li>
  55421. <li>
  55422. <h4 id="Reduce">Reduce</h4>
  55423. <p>In this phase the
  55424. {@link #reduce(Object, Iterator, OutputCollector, Reporter)}
  55425. method is called for each <code>&lt;key, (list of values)></code> pair in
  55426. the grouped inputs.</p>
  55427. <p>The output of the reduce task is typically written to the
  55428. {@link FileSystem} via
  55429. {@link OutputCollector#collect(Object, Object)}.</p>
  55430. </li>
  55431. </ol>
  55432. <p>The output of the <code>Reducer</code> is <b>not re-sorted</b>.</p>
  55433. <p>Example:</p>
  55434. <p><blockquote><pre>
  55435. public class MyReducer&lt;K extends WritableComparable, V extends Writable&gt;
  55436. extends MapReduceBase implements Reducer&lt;K, V, K, V&gt; {
  55437. static enum MyCounters { NUM_RECORDS }
  55438. private String reduceTaskId;
  55439. private int noKeys = 0;
  55440. public void configure(JobConf job) {
  55441. reduceTaskId = job.get("mapred.task.id");
  55442. }
  55443. public void reduce(K key, Iterator&lt;V&gt; values,
  55444. OutputCollector&lt;K, V&gt; output,
  55445. Reporter reporter)
  55446. throws IOException {
  55447. // Process
  55448. int noValues = 0;
  55449. while (values.hasNext()) {
  55450. V value = values.next();
  55451. // Increment the no. of values for this key
  55452. ++noValues;
  55453. // Process the &lt;key, value&gt; pair (assume this takes a while)
  55454. // ...
  55455. // ...
  55456. // Let the framework know that we are alive, and kicking!
  55457. if ((noValues%10) == 0) {
  55458. reporter.progress();
  55459. }
  55460. // Process some more
  55461. // ...
  55462. // ...
  55463. // Output the &lt;key, value&gt;
  55464. output.collect(key, value);
  55465. }
  55466. // Increment the no. of &lt;key, list of values&gt; pairs processed
  55467. ++noKeys;
  55468. // Increment counters
  55469. reporter.incrCounter(NUM_RECORDS, 1);
  55470. // Every 100 keys update application-level status
  55471. if ((noKeys%100) == 0) {
  55472. reporter.setStatus(reduceTaskId + " processed " + noKeys);
  55473. }
  55474. }
  55475. }
  55476. </pre></blockquote></p>
  55477. @see Mapper
  55478. @see Partitioner
  55479. @see Reporter
  55480. @see MapReduceBase]]>
  55481. </doc>
  55482. </interface>
  55483. <!-- end interface org.apache.hadoop.mapred.Reducer -->
  55484. <!-- start interface org.apache.hadoop.mapred.Reporter -->
  55485. <interface name="Reporter" abstract="true"
  55486. static="false" final="false" visibility="public"
  55487. deprecated="not deprecated">
  55488. <implements name="org.apache.hadoop.util.Progressable"/>
  55489. <method name="setStatus"
  55490. abstract="false" native="false" synchronized="false"
  55491. static="false" final="false" visibility="public"
  55492. deprecated="not deprecated">
  55493. <param name="status" type="java.lang.String"/>
  55494. <doc>
  55495. <![CDATA[Set the status description for the task.
  55496. @param status brief description of the current status.]]>
  55497. </doc>
  55498. </method>
  55499. <method name="getCounter" return="org.apache.hadoop.mapred.Counters.Counter"
  55500. abstract="false" native="false" synchronized="false"
  55501. static="false" final="false" visibility="public"
  55502. deprecated="not deprecated">
  55503. <param name="name" type="java.lang.Enum"/>
  55504. <doc>
  55505. <![CDATA[Get the {@link Counter} of the given group with the given name.
  55506. @param name counter name
  55507. @return the <code>Counter</code> of the given group/name.]]>
  55508. </doc>
  55509. </method>
  55510. <method name="getCounter" return="org.apache.hadoop.mapred.Counters.Counter"
  55511. abstract="false" native="false" synchronized="false"
  55512. static="false" final="false" visibility="public"
  55513. deprecated="not deprecated">
  55514. <param name="group" type="java.lang.String"/>
  55515. <param name="name" type="java.lang.String"/>
  55516. <doc>
  55517. <![CDATA[Get the {@link Counter} of the given group with the given name.
  55518. @param group counter group
  55519. @param name counter name
  55520. @return the <code>Counter</code> of the given group/name.]]>
  55521. </doc>
  55522. </method>
  55523. <method name="incrCounter"
  55524. abstract="false" native="false" synchronized="false"
  55525. static="false" final="false" visibility="public"
  55526. deprecated="not deprecated">
  55527. <param name="key" type="java.lang.Enum"/>
  55528. <param name="amount" type="long"/>
  55529. <doc>
  55530. <![CDATA[Increments the counter identified by the key, which can be of
  55531. any {@link Enum} type, by the specified amount.
  55532. @param key key to identify the counter to be incremented. The key can be
  55533. be any <code>Enum</code>.
  55534. @param amount A non-negative amount by which the counter is to
  55535. be incremented.]]>
  55536. </doc>
  55537. </method>
  55538. <method name="incrCounter"
  55539. abstract="false" native="false" synchronized="false"
  55540. static="false" final="false" visibility="public"
  55541. deprecated="not deprecated">
  55542. <param name="group" type="java.lang.String"/>
  55543. <param name="counter" type="java.lang.String"/>
  55544. <param name="amount" type="long"/>
  55545. <doc>
  55546. <![CDATA[Increments the counter identified by the group and counter name
  55547. by the specified amount.
  55548. @param group name to identify the group of the counter to be incremented.
  55549. @param counter name to identify the counter within the group.
  55550. @param amount A non-negative amount by which the counter is to
  55551. be incremented.]]>
  55552. </doc>
  55553. </method>
  55554. <method name="getInputSplit" return="org.apache.hadoop.mapred.InputSplit"
  55555. abstract="false" native="false" synchronized="false"
  55556. static="false" final="false" visibility="public"
  55557. deprecated="not deprecated">
  55558. <exception name="UnsupportedOperationException" type="java.lang.UnsupportedOperationException"/>
  55559. <doc>
  55560. <![CDATA[Get the {@link InputSplit} object for a map.
  55561. @return the <code>InputSplit</code> that the map is reading from.
  55562. @throws UnsupportedOperationException if called outside a mapper]]>
  55563. </doc>
  55564. </method>
  55565. <method name="getProgress" return="float"
  55566. abstract="false" native="false" synchronized="false"
  55567. static="false" final="false" visibility="public"
  55568. deprecated="not deprecated">
  55569. <doc>
  55570. <![CDATA[Get the progress of the task. Progress is represented as a number between
  55571. 0 and 1 (inclusive).]]>
  55572. </doc>
  55573. </method>
  55574. <field name="NULL" type="org.apache.hadoop.mapred.Reporter"
  55575. transient="false" volatile="false"
  55576. static="true" final="true" visibility="public"
  55577. deprecated="not deprecated">
  55578. <doc>
  55579. <![CDATA[A constant of Reporter type that does nothing.]]>
  55580. </doc>
  55581. </field>
  55582. <doc>
  55583. <![CDATA[A facility for Map-Reduce applications to report progress and update
  55584. counters, status information etc.
  55585. <p>{@link Mapper} and {@link Reducer} can use the <code>Reporter</code>
  55586. provided to report progress or just indicate that they are alive. In
  55587. scenarios where the application takes an insignificant amount of time to
  55588. process individual key/value pairs, this is crucial since the framework
  55589. might assume that the task has timed-out and kill that task.
  55590. <p>Applications can also update {@link Counters} via the provided
  55591. <code>Reporter</code> .</p>
  55592. @see Progressable
  55593. @see Counters]]>
  55594. </doc>
  55595. </interface>
  55596. <!-- end interface org.apache.hadoop.mapred.Reporter -->
  55597. <!-- start interface org.apache.hadoop.mapred.RunningJob -->
  55598. <interface name="RunningJob" abstract="true"
  55599. static="false" final="false" visibility="public"
  55600. deprecated="not deprecated">
  55601. <method name="getID" return="org.apache.hadoop.mapred.JobID"
  55602. abstract="false" native="false" synchronized="false"
  55603. static="false" final="false" visibility="public"
  55604. deprecated="not deprecated">
  55605. <doc>
  55606. <![CDATA[Get the job identifier.
  55607. @return the job identifier.]]>
  55608. </doc>
  55609. </method>
  55610. <method name="getJobID" return="java.lang.String"
  55611. abstract="false" native="false" synchronized="false"
  55612. static="false" final="false" visibility="public"
  55613. deprecated="This method is deprecated and will be removed. Applications should
  55614. rather use {@link #getID()}.">
  55615. <doc>
  55616. <![CDATA[@deprecated This method is deprecated and will be removed. Applications should
  55617. rather use {@link #getID()}.]]>
  55618. </doc>
  55619. </method>
  55620. <method name="getJobName" return="java.lang.String"
  55621. abstract="false" native="false" synchronized="false"
  55622. static="false" final="false" visibility="public"
  55623. deprecated="not deprecated">
  55624. <doc>
  55625. <![CDATA[Get the name of the job.
  55626. @return the name of the job.]]>
  55627. </doc>
  55628. </method>
  55629. <method name="getJobFile" return="java.lang.String"
  55630. abstract="false" native="false" synchronized="false"
  55631. static="false" final="false" visibility="public"
  55632. deprecated="not deprecated">
  55633. <doc>
  55634. <![CDATA[Get the path of the submitted job configuration.
  55635. @return the path of the submitted job configuration.]]>
  55636. </doc>
  55637. </method>
  55638. <method name="getTrackingURL" return="java.lang.String"
  55639. abstract="false" native="false" synchronized="false"
  55640. static="false" final="false" visibility="public"
  55641. deprecated="not deprecated">
  55642. <doc>
  55643. <![CDATA[Get the URL where some job progress information will be displayed.
  55644. @return the URL where some job progress information will be displayed.]]>
  55645. </doc>
  55646. </method>
  55647. <method name="mapProgress" return="float"
  55648. abstract="false" native="false" synchronized="false"
  55649. static="false" final="false" visibility="public"
  55650. deprecated="not deprecated">
  55651. <exception name="IOException" type="java.io.IOException"/>
  55652. <doc>
  55653. <![CDATA[Get the <i>progress</i> of the job's map-tasks, as a float between 0.0
  55654. and 1.0. When all map tasks have completed, the function returns 1.0.
  55655. @return the progress of the job's map-tasks.
  55656. @throws IOException]]>
  55657. </doc>
  55658. </method>
  55659. <method name="reduceProgress" return="float"
  55660. abstract="false" native="false" synchronized="false"
  55661. static="false" final="false" visibility="public"
  55662. deprecated="not deprecated">
  55663. <exception name="IOException" type="java.io.IOException"/>
  55664. <doc>
  55665. <![CDATA[Get the <i>progress</i> of the job's reduce-tasks, as a float between 0.0
  55666. and 1.0. When all reduce tasks have completed, the function returns 1.0.
  55667. @return the progress of the job's reduce-tasks.
  55668. @throws IOException]]>
  55669. </doc>
  55670. </method>
  55671. <method name="cleanupProgress" return="float"
  55672. abstract="false" native="false" synchronized="false"
  55673. static="false" final="false" visibility="public"
  55674. deprecated="not deprecated">
  55675. <exception name="IOException" type="java.io.IOException"/>
  55676. <doc>
  55677. <![CDATA[Get the <i>progress</i> of the job's cleanup-tasks, as a float between 0.0
  55678. and 1.0. When all cleanup tasks have completed, the function returns 1.0.
  55679. @return the progress of the job's cleanup-tasks.
  55680. @throws IOException]]>
  55681. </doc>
  55682. </method>
  55683. <method name="setupProgress" return="float"
  55684. abstract="false" native="false" synchronized="false"
  55685. static="false" final="false" visibility="public"
  55686. deprecated="not deprecated">
  55687. <exception name="IOException" type="java.io.IOException"/>
  55688. <doc>
  55689. <![CDATA[Get the <i>progress</i> of the job's setup-tasks, as a float between 0.0
  55690. and 1.0. When all setup tasks have completed, the function returns 1.0.
  55691. @return the progress of the job's setup-tasks.
  55692. @throws IOException]]>
  55693. </doc>
  55694. </method>
  55695. <method name="isComplete" return="boolean"
  55696. abstract="false" native="false" synchronized="false"
  55697. static="false" final="false" visibility="public"
  55698. deprecated="not deprecated">
  55699. <exception name="IOException" type="java.io.IOException"/>
  55700. <doc>
  55701. <![CDATA[Check if the job is finished or not.
  55702. This is a non-blocking call.
  55703. @return <code>true</code> if the job is complete, else <code>false</code>.
  55704. @throws IOException]]>
  55705. </doc>
  55706. </method>
  55707. <method name="isSuccessful" return="boolean"
  55708. abstract="false" native="false" synchronized="false"
  55709. static="false" final="false" visibility="public"
  55710. deprecated="not deprecated">
  55711. <exception name="IOException" type="java.io.IOException"/>
  55712. <doc>
  55713. <![CDATA[Check if the job completed successfully.
  55714. @return <code>true</code> if the job succeeded, else <code>false</code>.
  55715. @throws IOException]]>
  55716. </doc>
  55717. </method>
  55718. <method name="waitForCompletion"
  55719. abstract="false" native="false" synchronized="false"
  55720. static="false" final="false" visibility="public"
  55721. deprecated="not deprecated">
  55722. <exception name="IOException" type="java.io.IOException"/>
  55723. <doc>
  55724. <![CDATA[Blocks until the job is complete.
  55725. @throws IOException]]>
  55726. </doc>
  55727. </method>
  55728. <method name="getJobState" return="int"
  55729. abstract="false" native="false" synchronized="false"
  55730. static="false" final="false" visibility="public"
  55731. deprecated="not deprecated">
  55732. <exception name="IOException" type="java.io.IOException"/>
  55733. <doc>
  55734. <![CDATA[Returns the current state of the Job.
  55735. @throws IOException]]>
  55736. </doc>
  55737. </method>
  55738. <method name="getJobStatus" return="org.apache.hadoop.mapred.JobStatus"
  55739. abstract="false" native="false" synchronized="false"
  55740. static="false" final="false" visibility="public"
  55741. deprecated="not deprecated">
  55742. <exception name="IOException" type="java.io.IOException"/>
  55743. <doc>
  55744. <![CDATA[Returns a snapshot of the current status, {@link JobStatus}, of the Job.
  55745. Need to call again for latest information.
  55746. @throws IOException]]>
  55747. </doc>
  55748. </method>
  55749. <method name="killJob"
  55750. abstract="false" native="false" synchronized="false"
  55751. static="false" final="false" visibility="public"
  55752. deprecated="not deprecated">
  55753. <exception name="IOException" type="java.io.IOException"/>
  55754. <doc>
  55755. <![CDATA[Kill the running job. Blocks until all job tasks have been killed as well.
  55756. If the job is no longer running, it simply returns.
  55757. @throws IOException]]>
  55758. </doc>
  55759. </method>
  55760. <method name="setJobPriority"
  55761. abstract="false" native="false" synchronized="false"
  55762. static="false" final="false" visibility="public"
  55763. deprecated="not deprecated">
  55764. <param name="priority" type="java.lang.String"/>
  55765. <exception name="IOException" type="java.io.IOException"/>
  55766. <doc>
  55767. <![CDATA[Set the priority of a running job.
  55768. @param priority the new priority for the job.
  55769. @throws IOException]]>
  55770. </doc>
  55771. </method>
  55772. <method name="getTaskCompletionEvents" return="org.apache.hadoop.mapred.TaskCompletionEvent[]"
  55773. abstract="false" native="false" synchronized="false"
  55774. static="false" final="false" visibility="public"
  55775. deprecated="not deprecated">
  55776. <param name="startFrom" type="int"/>
  55777. <exception name="IOException" type="java.io.IOException"/>
  55778. <doc>
  55779. <![CDATA[Get events indicating completion (success/failure) of component tasks.
  55780. @param startFrom index to start fetching events from
  55781. @return an array of {@link TaskCompletionEvent}s
  55782. @throws IOException]]>
  55783. </doc>
  55784. </method>
  55785. <method name="killTask"
  55786. abstract="false" native="false" synchronized="false"
  55787. static="false" final="false" visibility="public"
  55788. deprecated="not deprecated">
  55789. <param name="taskId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  55790. <param name="shouldFail" type="boolean"/>
  55791. <exception name="IOException" type="java.io.IOException"/>
  55792. <doc>
  55793. <![CDATA[Kill indicated task attempt.
  55794. @param taskId the id of the task to be terminated.
  55795. @param shouldFail if true the task is failed and added to failed tasks
  55796. list, otherwise it is just killed, w/o affecting
  55797. job failure status.
  55798. @throws IOException]]>
  55799. </doc>
  55800. </method>
  55801. <method name="killTask"
  55802. abstract="false" native="false" synchronized="false"
  55803. static="false" final="false" visibility="public"
  55804. deprecated="Applications should rather use {@link #killTask(TaskAttemptID, boolean)}">
  55805. <param name="taskId" type="java.lang.String"/>
  55806. <param name="shouldFail" type="boolean"/>
  55807. <exception name="IOException" type="java.io.IOException"/>
  55808. <doc>
  55809. <![CDATA[@deprecated Applications should rather use {@link #killTask(TaskAttemptID, boolean)}]]>
  55810. </doc>
  55811. </method>
  55812. <method name="getCounters" return="org.apache.hadoop.mapred.Counters"
  55813. abstract="false" native="false" synchronized="false"
  55814. static="false" final="false" visibility="public"
  55815. deprecated="not deprecated">
  55816. <exception name="IOException" type="java.io.IOException"/>
  55817. <doc>
  55818. <![CDATA[Gets the counters for this job.
  55819. @return the counters for this job.
  55820. @throws IOException]]>
  55821. </doc>
  55822. </method>
  55823. <method name="getFailureInfo" return="java.lang.String"
  55824. abstract="false" native="false" synchronized="false"
  55825. static="false" final="false" visibility="public"
  55826. deprecated="not deprecated">
  55827. <exception name="IOException" type="java.io.IOException"/>
  55828. <doc>
  55829. <![CDATA[Get failure info for the job.
  55830. @return the failure info for the job.
  55831. @throws IOException]]>
  55832. </doc>
  55833. </method>
  55834. <method name="getTaskDiagnostics" return="java.lang.String[]"
  55835. abstract="false" native="false" synchronized="false"
  55836. static="false" final="false" visibility="public"
  55837. deprecated="not deprecated">
  55838. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  55839. <exception name="IOException" type="java.io.IOException"/>
  55840. <doc>
  55841. <![CDATA[Gets the diagnostic messages for a given task attempt.
  55842. @param taskid
  55843. @return the list of diagnostic messages for the task
  55844. @throws IOException]]>
  55845. </doc>
  55846. </method>
  55847. <doc>
  55848. <![CDATA[<code>RunningJob</code> is the user-interface to query for details on a
  55849. running Map-Reduce job.
  55850. <p>Clients can get hold of <code>RunningJob</code> via the {@link JobClient}
  55851. and then query the running-job for details such as name, configuration,
  55852. progress etc.</p>
  55853. @see JobClient]]>
  55854. </doc>
  55855. </interface>
  55856. <!-- end interface org.apache.hadoop.mapred.RunningJob -->
  55857. <!-- start class org.apache.hadoop.mapred.SafeModeException -->
  55858. <class name="SafeModeException" extends="java.io.IOException"
  55859. abstract="false"
  55860. static="false" final="false" visibility="public"
  55861. deprecated="not deprecated">
  55862. <constructor name="SafeModeException" type="java.lang.String"
  55863. static="false" final="false" visibility="public"
  55864. deprecated="not deprecated">
  55865. <doc>
  55866. <![CDATA[SafeModeException
  55867. @param adminUser admin who put JobTracker in safe-mode,
  55868. <code>null</code> if it was automatic]]>
  55869. </doc>
  55870. </constructor>
  55871. <doc>
  55872. <![CDATA[This exception is thrown when the JobTracker is in safe mode.]]>
  55873. </doc>
  55874. </class>
  55875. <!-- end class org.apache.hadoop.mapred.SafeModeException -->
  55876. <!-- start class org.apache.hadoop.mapred.SequenceFileAsBinaryInputFormat -->
  55877. <class name="SequenceFileAsBinaryInputFormat" extends="org.apache.hadoop.mapred.SequenceFileInputFormat"
  55878. abstract="false"
  55879. static="false" final="false" visibility="public"
  55880. deprecated="not deprecated">
  55881. <constructor name="SequenceFileAsBinaryInputFormat"
  55882. static="false" final="false" visibility="public"
  55883. deprecated="not deprecated">
  55884. </constructor>
  55885. <method name="getRecordReader" return="org.apache.hadoop.mapred.RecordReader"
  55886. abstract="false" native="false" synchronized="false"
  55887. static="false" final="false" visibility="public"
  55888. deprecated="not deprecated">
  55889. <param name="split" type="org.apache.hadoop.mapred.InputSplit"/>
  55890. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  55891. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  55892. <exception name="IOException" type="java.io.IOException"/>
  55893. </method>
  55894. <doc>
  55895. <![CDATA[InputFormat reading keys, values from SequenceFiles in binary (raw)
  55896. format.]]>
  55897. </doc>
  55898. </class>
  55899. <!-- end class org.apache.hadoop.mapred.SequenceFileAsBinaryInputFormat -->
  55900. <!-- start class org.apache.hadoop.mapred.SequenceFileAsBinaryInputFormat.SequenceFileAsBinaryRecordReader -->
  55901. <class name="SequenceFileAsBinaryInputFormat.SequenceFileAsBinaryRecordReader" extends="java.lang.Object"
  55902. abstract="false"
  55903. static="true" final="false" visibility="public"
  55904. deprecated="not deprecated">
  55905. <implements name="org.apache.hadoop.mapred.RecordReader"/>
  55906. <constructor name="SequenceFileAsBinaryInputFormat.SequenceFileAsBinaryRecordReader" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.mapred.FileSplit"
  55907. static="false" final="false" visibility="public"
  55908. deprecated="not deprecated">
  55909. <exception name="IOException" type="java.io.IOException"/>
  55910. </constructor>
  55911. <method name="createKey" return="org.apache.hadoop.io.BytesWritable"
  55912. abstract="false" native="false" synchronized="false"
  55913. static="false" final="false" visibility="public"
  55914. deprecated="not deprecated">
  55915. </method>
  55916. <method name="createValue" return="org.apache.hadoop.io.BytesWritable"
  55917. abstract="false" native="false" synchronized="false"
  55918. static="false" final="false" visibility="public"
  55919. deprecated="not deprecated">
  55920. </method>
  55921. <method name="getKeyClassName" return="java.lang.String"
  55922. abstract="false" native="false" synchronized="false"
  55923. static="false" final="false" visibility="public"
  55924. deprecated="not deprecated">
  55925. <doc>
  55926. <![CDATA[Retrieve the name of the key class for this SequenceFile.
  55927. @see org.apache.hadoop.io.SequenceFile.Reader#getKeyClassName]]>
  55928. </doc>
  55929. </method>
  55930. <method name="getValueClassName" return="java.lang.String"
  55931. abstract="false" native="false" synchronized="false"
  55932. static="false" final="false" visibility="public"
  55933. deprecated="not deprecated">
  55934. <doc>
  55935. <![CDATA[Retrieve the name of the value class for this SequenceFile.
  55936. @see org.apache.hadoop.io.SequenceFile.Reader#getValueClassName]]>
  55937. </doc>
  55938. </method>
  55939. <method name="next" return="boolean"
  55940. abstract="false" native="false" synchronized="true"
  55941. static="false" final="false" visibility="public"
  55942. deprecated="not deprecated">
  55943. <param name="key" type="org.apache.hadoop.io.BytesWritable"/>
  55944. <param name="val" type="org.apache.hadoop.io.BytesWritable"/>
  55945. <exception name="IOException" type="java.io.IOException"/>
  55946. <doc>
  55947. <![CDATA[Read raw bytes from a SequenceFile.]]>
  55948. </doc>
  55949. </method>
  55950. <method name="getPos" return="long"
  55951. abstract="false" native="false" synchronized="false"
  55952. static="false" final="false" visibility="public"
  55953. deprecated="not deprecated">
  55954. <exception name="IOException" type="java.io.IOException"/>
  55955. </method>
  55956. <method name="close"
  55957. abstract="false" native="false" synchronized="false"
  55958. static="false" final="false" visibility="public"
  55959. deprecated="not deprecated">
  55960. <exception name="IOException" type="java.io.IOException"/>
  55961. </method>
  55962. <method name="getProgress" return="float"
  55963. abstract="false" native="false" synchronized="false"
  55964. static="false" final="false" visibility="public"
  55965. deprecated="not deprecated">
  55966. <exception name="IOException" type="java.io.IOException"/>
  55967. <doc>
  55968. <![CDATA[Return the progress within the input split
  55969. @return 0.0 to 1.0 of the input byte range]]>
  55970. </doc>
  55971. </method>
  55972. <doc>
  55973. <![CDATA[Read records from a SequenceFile as binary (raw) bytes.]]>
  55974. </doc>
  55975. </class>
  55976. <!-- end class org.apache.hadoop.mapred.SequenceFileAsBinaryInputFormat.SequenceFileAsBinaryRecordReader -->
  55977. <!-- start class org.apache.hadoop.mapred.SequenceFileAsBinaryOutputFormat -->
  55978. <class name="SequenceFileAsBinaryOutputFormat" extends="org.apache.hadoop.mapred.SequenceFileOutputFormat"
  55979. abstract="false"
  55980. static="false" final="false" visibility="public"
  55981. deprecated="not deprecated">
  55982. <constructor name="SequenceFileAsBinaryOutputFormat"
  55983. static="false" final="false" visibility="public"
  55984. deprecated="not deprecated">
  55985. </constructor>
  55986. <method name="setSequenceFileOutputKeyClass"
  55987. abstract="false" native="false" synchronized="false"
  55988. static="true" final="false" visibility="public"
  55989. deprecated="not deprecated">
  55990. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  55991. <param name="theClass" type="java.lang.Class"/>
  55992. <doc>
  55993. <![CDATA[Set the key class for the {@link SequenceFile}
  55994. <p>This allows the user to specify the key class to be different
  55995. from the actual class ({@link BytesWritable}) used for writing </p>
  55996. @param conf the {@link JobConf} to modify
  55997. @param theClass the SequenceFile output key class.]]>
  55998. </doc>
  55999. </method>
  56000. <method name="setSequenceFileOutputValueClass"
  56001. abstract="false" native="false" synchronized="false"
  56002. static="true" final="false" visibility="public"
  56003. deprecated="not deprecated">
  56004. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  56005. <param name="theClass" type="java.lang.Class"/>
  56006. <doc>
  56007. <![CDATA[Set the value class for the {@link SequenceFile}
  56008. <p>This allows the user to specify the value class to be different
  56009. from the actual class ({@link BytesWritable}) used for writing </p>
  56010. @param conf the {@link JobConf} to modify
  56011. @param theClass the SequenceFile output key class.]]>
  56012. </doc>
  56013. </method>
  56014. <method name="getSequenceFileOutputKeyClass" return="java.lang.Class"
  56015. abstract="false" native="false" synchronized="false"
  56016. static="true" final="false" visibility="public"
  56017. deprecated="not deprecated">
  56018. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  56019. <doc>
  56020. <![CDATA[Get the key class for the {@link SequenceFile}
  56021. @return the key class of the {@link SequenceFile}]]>
  56022. </doc>
  56023. </method>
  56024. <method name="getSequenceFileOutputValueClass" return="java.lang.Class"
  56025. abstract="false" native="false" synchronized="false"
  56026. static="true" final="false" visibility="public"
  56027. deprecated="not deprecated">
  56028. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  56029. <doc>
  56030. <![CDATA[Get the value class for the {@link SequenceFile}
  56031. @return the value class of the {@link SequenceFile}]]>
  56032. </doc>
  56033. </method>
  56034. <method name="getRecordWriter" return="org.apache.hadoop.mapred.RecordWriter"
  56035. abstract="false" native="false" synchronized="false"
  56036. static="false" final="false" visibility="public"
  56037. deprecated="not deprecated">
  56038. <param name="ignored" type="org.apache.hadoop.fs.FileSystem"/>
  56039. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  56040. <param name="name" type="java.lang.String"/>
  56041. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  56042. <exception name="IOException" type="java.io.IOException"/>
  56043. </method>
  56044. <method name="checkOutputSpecs"
  56045. abstract="false" native="false" synchronized="false"
  56046. static="false" final="false" visibility="public"
  56047. deprecated="not deprecated">
  56048. <param name="ignored" type="org.apache.hadoop.fs.FileSystem"/>
  56049. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  56050. <exception name="IOException" type="java.io.IOException"/>
  56051. </method>
  56052. <doc>
  56053. <![CDATA[An {@link OutputFormat} that writes keys, values to
  56054. {@link SequenceFile}s in binary(raw) format]]>
  56055. </doc>
  56056. </class>
  56057. <!-- end class org.apache.hadoop.mapred.SequenceFileAsBinaryOutputFormat -->
  56058. <!-- start class org.apache.hadoop.mapred.SequenceFileAsBinaryOutputFormat.WritableValueBytes -->
  56059. <class name="SequenceFileAsBinaryOutputFormat.WritableValueBytes" extends="java.lang.Object"
  56060. abstract="false"
  56061. static="true" final="false" visibility="protected"
  56062. deprecated="not deprecated">
  56063. <implements name="org.apache.hadoop.io.SequenceFile.ValueBytes"/>
  56064. <constructor name="SequenceFileAsBinaryOutputFormat.WritableValueBytes"
  56065. static="false" final="false" visibility="public"
  56066. deprecated="not deprecated">
  56067. </constructor>
  56068. <constructor name="SequenceFileAsBinaryOutputFormat.WritableValueBytes" type="org.apache.hadoop.io.BytesWritable"
  56069. static="false" final="false" visibility="public"
  56070. deprecated="not deprecated">
  56071. </constructor>
  56072. <method name="reset"
  56073. abstract="false" native="false" synchronized="false"
  56074. static="false" final="false" visibility="public"
  56075. deprecated="not deprecated">
  56076. <param name="value" type="org.apache.hadoop.io.BytesWritable"/>
  56077. </method>
  56078. <method name="writeUncompressedBytes"
  56079. abstract="false" native="false" synchronized="false"
  56080. static="false" final="false" visibility="public"
  56081. deprecated="not deprecated">
  56082. <param name="outStream" type="java.io.DataOutputStream"/>
  56083. <exception name="IOException" type="java.io.IOException"/>
  56084. </method>
  56085. <method name="writeCompressedBytes"
  56086. abstract="false" native="false" synchronized="false"
  56087. static="false" final="false" visibility="public"
  56088. deprecated="not deprecated">
  56089. <param name="outStream" type="java.io.DataOutputStream"/>
  56090. <exception name="IllegalArgumentException" type="java.lang.IllegalArgumentException"/>
  56091. <exception name="IOException" type="java.io.IOException"/>
  56092. </method>
  56093. <method name="getSize" return="int"
  56094. abstract="false" native="false" synchronized="false"
  56095. static="false" final="false" visibility="public"
  56096. deprecated="not deprecated">
  56097. </method>
  56098. <doc>
  56099. <![CDATA[Inner class used for appendRaw]]>
  56100. </doc>
  56101. </class>
  56102. <!-- end class org.apache.hadoop.mapred.SequenceFileAsBinaryOutputFormat.WritableValueBytes -->
  56103. <!-- start class org.apache.hadoop.mapred.SequenceFileAsTextInputFormat -->
  56104. <class name="SequenceFileAsTextInputFormat" extends="org.apache.hadoop.mapred.SequenceFileInputFormat"
  56105. abstract="false"
  56106. static="false" final="false" visibility="public"
  56107. deprecated="not deprecated">
  56108. <constructor name="SequenceFileAsTextInputFormat"
  56109. static="false" final="false" visibility="public"
  56110. deprecated="not deprecated">
  56111. </constructor>
  56112. <method name="getRecordReader" return="org.apache.hadoop.mapred.RecordReader"
  56113. abstract="false" native="false" synchronized="false"
  56114. static="false" final="false" visibility="public"
  56115. deprecated="not deprecated">
  56116. <param name="split" type="org.apache.hadoop.mapred.InputSplit"/>
  56117. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  56118. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  56119. <exception name="IOException" type="java.io.IOException"/>
  56120. </method>
  56121. <doc>
  56122. <![CDATA[This class is similar to SequenceFileInputFormat, except it generates SequenceFileAsTextRecordReader
  56123. which converts the input keys and values to their String forms by calling toString() method.]]>
  56124. </doc>
  56125. </class>
  56126. <!-- end class org.apache.hadoop.mapred.SequenceFileAsTextInputFormat -->
  56127. <!-- start class org.apache.hadoop.mapred.SequenceFileAsTextRecordReader -->
  56128. <class name="SequenceFileAsTextRecordReader" extends="java.lang.Object"
  56129. abstract="false"
  56130. static="false" final="false" visibility="public"
  56131. deprecated="not deprecated">
  56132. <implements name="org.apache.hadoop.mapred.RecordReader"/>
  56133. <constructor name="SequenceFileAsTextRecordReader" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.mapred.FileSplit"
  56134. static="false" final="false" visibility="public"
  56135. deprecated="not deprecated">
  56136. <exception name="IOException" type="java.io.IOException"/>
  56137. </constructor>
  56138. <method name="createKey" return="org.apache.hadoop.io.Text"
  56139. abstract="false" native="false" synchronized="false"
  56140. static="false" final="false" visibility="public"
  56141. deprecated="not deprecated">
  56142. </method>
  56143. <method name="createValue" return="org.apache.hadoop.io.Text"
  56144. abstract="false" native="false" synchronized="false"
  56145. static="false" final="false" visibility="public"
  56146. deprecated="not deprecated">
  56147. </method>
  56148. <method name="next" return="boolean"
  56149. abstract="false" native="false" synchronized="true"
  56150. static="false" final="false" visibility="public"
  56151. deprecated="not deprecated">
  56152. <param name="key" type="org.apache.hadoop.io.Text"/>
  56153. <param name="value" type="org.apache.hadoop.io.Text"/>
  56154. <exception name="IOException" type="java.io.IOException"/>
  56155. <doc>
  56156. <![CDATA[Read key/value pair in a line.]]>
  56157. </doc>
  56158. </method>
  56159. <method name="getProgress" return="float"
  56160. abstract="false" native="false" synchronized="false"
  56161. static="false" final="false" visibility="public"
  56162. deprecated="not deprecated">
  56163. <exception name="IOException" type="java.io.IOException"/>
  56164. </method>
  56165. <method name="getPos" return="long"
  56166. abstract="false" native="false" synchronized="true"
  56167. static="false" final="false" visibility="public"
  56168. deprecated="not deprecated">
  56169. <exception name="IOException" type="java.io.IOException"/>
  56170. </method>
  56171. <method name="close"
  56172. abstract="false" native="false" synchronized="true"
  56173. static="false" final="false" visibility="public"
  56174. deprecated="not deprecated">
  56175. <exception name="IOException" type="java.io.IOException"/>
  56176. </method>
  56177. <doc>
  56178. <![CDATA[This class converts the input keys and values to their String forms by calling toString()
  56179. method. This class to SequenceFileAsTextInputFormat class is as LineRecordReader
  56180. class to TextInputFormat class.]]>
  56181. </doc>
  56182. </class>
  56183. <!-- end class org.apache.hadoop.mapred.SequenceFileAsTextRecordReader -->
  56184. <!-- start class org.apache.hadoop.mapred.SequenceFileInputFilter -->
  56185. <class name="SequenceFileInputFilter" extends="org.apache.hadoop.mapred.SequenceFileInputFormat"
  56186. abstract="false"
  56187. static="false" final="false" visibility="public"
  56188. deprecated="not deprecated">
  56189. <constructor name="SequenceFileInputFilter"
  56190. static="false" final="false" visibility="public"
  56191. deprecated="not deprecated">
  56192. </constructor>
  56193. <method name="getRecordReader" return="org.apache.hadoop.mapred.RecordReader"
  56194. abstract="false" native="false" synchronized="false"
  56195. static="false" final="false" visibility="public"
  56196. deprecated="not deprecated">
  56197. <param name="split" type="org.apache.hadoop.mapred.InputSplit"/>
  56198. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  56199. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  56200. <exception name="IOException" type="java.io.IOException"/>
  56201. <doc>
  56202. <![CDATA[Create a record reader for the given split
  56203. @param split file split
  56204. @param job job configuration
  56205. @param reporter reporter who sends report to task tracker
  56206. @return RecordReader]]>
  56207. </doc>
  56208. </method>
  56209. <method name="setFilterClass"
  56210. abstract="false" native="false" synchronized="false"
  56211. static="true" final="false" visibility="public"
  56212. deprecated="not deprecated">
  56213. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  56214. <param name="filterClass" type="java.lang.Class"/>
  56215. <doc>
  56216. <![CDATA[set the filter class
  56217. @param conf application configuration
  56218. @param filterClass filter class]]>
  56219. </doc>
  56220. </method>
  56221. <doc>
  56222. <![CDATA[A class that allows a map/red job to work on a sample of sequence files.
  56223. The sample is decided by the filter class set by the job.]]>
  56224. </doc>
  56225. </class>
  56226. <!-- end class org.apache.hadoop.mapred.SequenceFileInputFilter -->
  56227. <!-- start interface org.apache.hadoop.mapred.SequenceFileInputFilter.Filter -->
  56228. <interface name="SequenceFileInputFilter.Filter" abstract="true"
  56229. static="true" final="false" visibility="public"
  56230. deprecated="not deprecated">
  56231. <implements name="org.apache.hadoop.conf.Configurable"/>
  56232. <method name="accept" return="boolean"
  56233. abstract="false" native="false" synchronized="false"
  56234. static="false" final="false" visibility="public"
  56235. deprecated="not deprecated">
  56236. <param name="key" type="java.lang.Object"/>
  56237. <doc>
  56238. <![CDATA[filter function
  56239. Decide if a record should be filtered or not
  56240. @param key record key
  56241. @return true if a record is accepted; return false otherwise]]>
  56242. </doc>
  56243. </method>
  56244. <doc>
  56245. <![CDATA[filter interface]]>
  56246. </doc>
  56247. </interface>
  56248. <!-- end interface org.apache.hadoop.mapred.SequenceFileInputFilter.Filter -->
  56249. <!-- start class org.apache.hadoop.mapred.SequenceFileInputFilter.FilterBase -->
  56250. <class name="SequenceFileInputFilter.FilterBase" extends="java.lang.Object"
  56251. abstract="true"
  56252. static="true" final="false" visibility="public"
  56253. deprecated="not deprecated">
  56254. <implements name="org.apache.hadoop.mapred.SequenceFileInputFilter.Filter"/>
  56255. <constructor name="SequenceFileInputFilter.FilterBase"
  56256. static="false" final="false" visibility="public"
  56257. deprecated="not deprecated">
  56258. </constructor>
  56259. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  56260. abstract="false" native="false" synchronized="false"
  56261. static="false" final="false" visibility="public"
  56262. deprecated="not deprecated">
  56263. </method>
  56264. <doc>
  56265. <![CDATA[base class for Filters]]>
  56266. </doc>
  56267. </class>
  56268. <!-- end class org.apache.hadoop.mapred.SequenceFileInputFilter.FilterBase -->
  56269. <!-- start class org.apache.hadoop.mapred.SequenceFileInputFilter.MD5Filter -->
  56270. <class name="SequenceFileInputFilter.MD5Filter" extends="org.apache.hadoop.mapred.SequenceFileInputFilter.FilterBase"
  56271. abstract="false"
  56272. static="true" final="false" visibility="public"
  56273. deprecated="not deprecated">
  56274. <constructor name="SequenceFileInputFilter.MD5Filter"
  56275. static="false" final="false" visibility="public"
  56276. deprecated="not deprecated">
  56277. </constructor>
  56278. <method name="setFrequency"
  56279. abstract="false" native="false" synchronized="false"
  56280. static="true" final="false" visibility="public"
  56281. deprecated="not deprecated">
  56282. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  56283. <param name="frequency" type="int"/>
  56284. <doc>
  56285. <![CDATA[set the filtering frequency in configuration
  56286. @param conf configuration
  56287. @param frequency filtering frequency]]>
  56288. </doc>
  56289. </method>
  56290. <method name="setConf"
  56291. abstract="false" native="false" synchronized="false"
  56292. static="false" final="false" visibility="public"
  56293. deprecated="not deprecated">
  56294. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  56295. <doc>
  56296. <![CDATA[configure the filter according to configuration
  56297. @param conf configuration]]>
  56298. </doc>
  56299. </method>
  56300. <method name="accept" return="boolean"
  56301. abstract="false" native="false" synchronized="false"
  56302. static="false" final="false" visibility="public"
  56303. deprecated="not deprecated">
  56304. <param name="key" type="java.lang.Object"/>
  56305. <doc>
  56306. <![CDATA[Filtering method
  56307. If MD5(key) % frequency==0, return true; otherwise return false
  56308. @see org.apache.hadoop.mapred.SequenceFileInputFilter.Filter#accept(Object)]]>
  56309. </doc>
  56310. </method>
  56311. <field name="MD5_LEN" type="int"
  56312. transient="false" volatile="false"
  56313. static="true" final="true" visibility="public"
  56314. deprecated="not deprecated">
  56315. </field>
  56316. <doc>
  56317. <![CDATA[This class returns a set of records by examing the MD5 digest of its
  56318. key against a filtering frequency <i>f</i>. The filtering criteria is
  56319. MD5(key) % f == 0.]]>
  56320. </doc>
  56321. </class>
  56322. <!-- end class org.apache.hadoop.mapred.SequenceFileInputFilter.MD5Filter -->
  56323. <!-- start class org.apache.hadoop.mapred.SequenceFileInputFilter.PercentFilter -->
  56324. <class name="SequenceFileInputFilter.PercentFilter" extends="org.apache.hadoop.mapred.SequenceFileInputFilter.FilterBase"
  56325. abstract="false"
  56326. static="true" final="false" visibility="public"
  56327. deprecated="not deprecated">
  56328. <constructor name="SequenceFileInputFilter.PercentFilter"
  56329. static="false" final="false" visibility="public"
  56330. deprecated="not deprecated">
  56331. </constructor>
  56332. <method name="setFrequency"
  56333. abstract="false" native="false" synchronized="false"
  56334. static="true" final="false" visibility="public"
  56335. deprecated="not deprecated">
  56336. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  56337. <param name="frequency" type="int"/>
  56338. <doc>
  56339. <![CDATA[set the frequency and stores it in conf
  56340. @param conf configuration
  56341. @param frequency filtering frequencey]]>
  56342. </doc>
  56343. </method>
  56344. <method name="setConf"
  56345. abstract="false" native="false" synchronized="false"
  56346. static="false" final="false" visibility="public"
  56347. deprecated="not deprecated">
  56348. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  56349. <doc>
  56350. <![CDATA[configure the filter by checking the configuration
  56351. @param conf configuration]]>
  56352. </doc>
  56353. </method>
  56354. <method name="accept" return="boolean"
  56355. abstract="false" native="false" synchronized="false"
  56356. static="false" final="false" visibility="public"
  56357. deprecated="not deprecated">
  56358. <param name="key" type="java.lang.Object"/>
  56359. <doc>
  56360. <![CDATA[Filtering method
  56361. If record# % frequency==0, return true; otherwise return false
  56362. @see org.apache.hadoop.mapred.SequenceFileInputFilter.Filter#accept(Object)]]>
  56363. </doc>
  56364. </method>
  56365. <doc>
  56366. <![CDATA[This class returns a percentage of records
  56367. The percentage is determined by a filtering frequency <i>f</i> using
  56368. the criteria record# % f == 0.
  56369. For example, if the frequency is 10, one out of 10 records is returned.]]>
  56370. </doc>
  56371. </class>
  56372. <!-- end class org.apache.hadoop.mapred.SequenceFileInputFilter.PercentFilter -->
  56373. <!-- start class org.apache.hadoop.mapred.SequenceFileInputFilter.RegexFilter -->
  56374. <class name="SequenceFileInputFilter.RegexFilter" extends="org.apache.hadoop.mapred.SequenceFileInputFilter.FilterBase"
  56375. abstract="false"
  56376. static="true" final="false" visibility="public"
  56377. deprecated="not deprecated">
  56378. <constructor name="SequenceFileInputFilter.RegexFilter"
  56379. static="false" final="false" visibility="public"
  56380. deprecated="not deprecated">
  56381. </constructor>
  56382. <method name="setPattern"
  56383. abstract="false" native="false" synchronized="false"
  56384. static="true" final="false" visibility="public"
  56385. deprecated="not deprecated">
  56386. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  56387. <param name="regex" type="java.lang.String"/>
  56388. <exception name="PatternSyntaxException" type="java.util.regex.PatternSyntaxException"/>
  56389. <doc>
  56390. <![CDATA[Define the filtering regex and stores it in conf
  56391. @param conf where the regex is set
  56392. @param regex regex used as a filter]]>
  56393. </doc>
  56394. </method>
  56395. <method name="setConf"
  56396. abstract="false" native="false" synchronized="false"
  56397. static="false" final="false" visibility="public"
  56398. deprecated="not deprecated">
  56399. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  56400. <doc>
  56401. <![CDATA[configure the Filter by checking the configuration]]>
  56402. </doc>
  56403. </method>
  56404. <method name="accept" return="boolean"
  56405. abstract="false" native="false" synchronized="false"
  56406. static="false" final="false" visibility="public"
  56407. deprecated="not deprecated">
  56408. <param name="key" type="java.lang.Object"/>
  56409. <doc>
  56410. <![CDATA[Filtering method
  56411. If key matches the regex, return true; otherwise return false
  56412. @see org.apache.hadoop.mapred.SequenceFileInputFilter.Filter#accept(Object)]]>
  56413. </doc>
  56414. </method>
  56415. <doc>
  56416. <![CDATA[Records filter by matching key to regex]]>
  56417. </doc>
  56418. </class>
  56419. <!-- end class org.apache.hadoop.mapred.SequenceFileInputFilter.RegexFilter -->
  56420. <!-- start class org.apache.hadoop.mapred.SequenceFileInputFormat -->
  56421. <class name="SequenceFileInputFormat" extends="org.apache.hadoop.mapred.FileInputFormat"
  56422. abstract="false"
  56423. static="false" final="false" visibility="public"
  56424. deprecated="not deprecated">
  56425. <constructor name="SequenceFileInputFormat"
  56426. static="false" final="false" visibility="public"
  56427. deprecated="not deprecated">
  56428. </constructor>
  56429. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  56430. abstract="false" native="false" synchronized="false"
  56431. static="false" final="false" visibility="protected"
  56432. deprecated="not deprecated">
  56433. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  56434. <exception name="IOException" type="java.io.IOException"/>
  56435. </method>
  56436. <method name="getRecordReader" return="org.apache.hadoop.mapred.RecordReader"
  56437. abstract="false" native="false" synchronized="false"
  56438. static="false" final="false" visibility="public"
  56439. deprecated="not deprecated">
  56440. <param name="split" type="org.apache.hadoop.mapred.InputSplit"/>
  56441. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  56442. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  56443. <exception name="IOException" type="java.io.IOException"/>
  56444. </method>
  56445. <doc>
  56446. <![CDATA[An {@link InputFormat} for {@link SequenceFile}s.]]>
  56447. </doc>
  56448. </class>
  56449. <!-- end class org.apache.hadoop.mapred.SequenceFileInputFormat -->
  56450. <!-- start class org.apache.hadoop.mapred.SequenceFileOutputFormat -->
  56451. <class name="SequenceFileOutputFormat" extends="org.apache.hadoop.mapred.FileOutputFormat"
  56452. abstract="false"
  56453. static="false" final="false" visibility="public"
  56454. deprecated="not deprecated">
  56455. <constructor name="SequenceFileOutputFormat"
  56456. static="false" final="false" visibility="public"
  56457. deprecated="not deprecated">
  56458. </constructor>
  56459. <method name="getRecordWriter" return="org.apache.hadoop.mapred.RecordWriter"
  56460. abstract="false" native="false" synchronized="false"
  56461. static="false" final="false" visibility="public"
  56462. deprecated="not deprecated">
  56463. <param name="ignored" type="org.apache.hadoop.fs.FileSystem"/>
  56464. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  56465. <param name="name" type="java.lang.String"/>
  56466. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  56467. <exception name="IOException" type="java.io.IOException"/>
  56468. </method>
  56469. <method name="getReaders" return="org.apache.hadoop.io.SequenceFile.Reader[]"
  56470. abstract="false" native="false" synchronized="false"
  56471. static="true" final="false" visibility="public"
  56472. deprecated="not deprecated">
  56473. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  56474. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  56475. <exception name="IOException" type="java.io.IOException"/>
  56476. <doc>
  56477. <![CDATA[Open the output generated by this format.]]>
  56478. </doc>
  56479. </method>
  56480. <method name="getOutputCompressionType" return="org.apache.hadoop.io.SequenceFile.CompressionType"
  56481. abstract="false" native="false" synchronized="false"
  56482. static="true" final="false" visibility="public"
  56483. deprecated="not deprecated">
  56484. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  56485. <doc>
  56486. <![CDATA[Get the {@link CompressionType} for the output {@link SequenceFile}.
  56487. @param conf the {@link JobConf}
  56488. @return the {@link CompressionType} for the output {@link SequenceFile},
  56489. defaulting to {@link CompressionType#RECORD}]]>
  56490. </doc>
  56491. </method>
  56492. <method name="setOutputCompressionType"
  56493. abstract="false" native="false" synchronized="false"
  56494. static="true" final="false" visibility="public"
  56495. deprecated="not deprecated">
  56496. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  56497. <param name="style" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  56498. <doc>
  56499. <![CDATA[Set the {@link CompressionType} for the output {@link SequenceFile}.
  56500. @param conf the {@link JobConf} to modify
  56501. @param style the {@link CompressionType} for the output
  56502. {@link SequenceFile}]]>
  56503. </doc>
  56504. </method>
  56505. <doc>
  56506. <![CDATA[An {@link OutputFormat} that writes {@link SequenceFile}s.]]>
  56507. </doc>
  56508. </class>
  56509. <!-- end class org.apache.hadoop.mapred.SequenceFileOutputFormat -->
  56510. <!-- start class org.apache.hadoop.mapred.SequenceFileRecordReader -->
  56511. <class name="SequenceFileRecordReader" extends="java.lang.Object"
  56512. abstract="false"
  56513. static="false" final="false" visibility="public"
  56514. deprecated="not deprecated">
  56515. <implements name="org.apache.hadoop.mapred.RecordReader"/>
  56516. <constructor name="SequenceFileRecordReader" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.mapred.FileSplit"
  56517. static="false" final="false" visibility="public"
  56518. deprecated="not deprecated">
  56519. <exception name="IOException" type="java.io.IOException"/>
  56520. </constructor>
  56521. <method name="getKeyClass" return="java.lang.Class"
  56522. abstract="false" native="false" synchronized="false"
  56523. static="false" final="false" visibility="public"
  56524. deprecated="not deprecated">
  56525. <doc>
  56526. <![CDATA[The class of key that must be passed to {@link
  56527. #next(Object, Object)}..]]>
  56528. </doc>
  56529. </method>
  56530. <method name="getValueClass" return="java.lang.Class"
  56531. abstract="false" native="false" synchronized="false"
  56532. static="false" final="false" visibility="public"
  56533. deprecated="not deprecated">
  56534. <doc>
  56535. <![CDATA[The class of value that must be passed to {@link
  56536. #next(Object, Object)}..]]>
  56537. </doc>
  56538. </method>
  56539. <method name="createKey" return="java.lang.Object"
  56540. abstract="false" native="false" synchronized="false"
  56541. static="false" final="false" visibility="public"
  56542. deprecated="not deprecated">
  56543. </method>
  56544. <method name="createValue" return="java.lang.Object"
  56545. abstract="false" native="false" synchronized="false"
  56546. static="false" final="false" visibility="public"
  56547. deprecated="not deprecated">
  56548. </method>
  56549. <method name="next" return="boolean"
  56550. abstract="false" native="false" synchronized="true"
  56551. static="false" final="false" visibility="public"
  56552. deprecated="not deprecated">
  56553. <param name="key" type="java.lang.Object"/>
  56554. <param name="value" type="java.lang.Object"/>
  56555. <exception name="IOException" type="java.io.IOException"/>
  56556. </method>
  56557. <method name="next" return="boolean"
  56558. abstract="false" native="false" synchronized="true"
  56559. static="false" final="false" visibility="protected"
  56560. deprecated="not deprecated">
  56561. <param name="key" type="java.lang.Object"/>
  56562. <exception name="IOException" type="java.io.IOException"/>
  56563. </method>
  56564. <method name="getCurrentValue"
  56565. abstract="false" native="false" synchronized="true"
  56566. static="false" final="false" visibility="protected"
  56567. deprecated="not deprecated">
  56568. <param name="value" type="java.lang.Object"/>
  56569. <exception name="IOException" type="java.io.IOException"/>
  56570. </method>
  56571. <method name="getProgress" return="float"
  56572. abstract="false" native="false" synchronized="false"
  56573. static="false" final="false" visibility="public"
  56574. deprecated="not deprecated">
  56575. <exception name="IOException" type="java.io.IOException"/>
  56576. <doc>
  56577. <![CDATA[Return the progress within the input split
  56578. @return 0.0 to 1.0 of the input byte range]]>
  56579. </doc>
  56580. </method>
  56581. <method name="getPos" return="long"
  56582. abstract="false" native="false" synchronized="true"
  56583. static="false" final="false" visibility="public"
  56584. deprecated="not deprecated">
  56585. <exception name="IOException" type="java.io.IOException"/>
  56586. </method>
  56587. <method name="seek"
  56588. abstract="false" native="false" synchronized="true"
  56589. static="false" final="false" visibility="protected"
  56590. deprecated="not deprecated">
  56591. <param name="pos" type="long"/>
  56592. <exception name="IOException" type="java.io.IOException"/>
  56593. </method>
  56594. <method name="close"
  56595. abstract="false" native="false" synchronized="true"
  56596. static="false" final="false" visibility="public"
  56597. deprecated="not deprecated">
  56598. <exception name="IOException" type="java.io.IOException"/>
  56599. </method>
  56600. <field name="conf" type="org.apache.hadoop.conf.Configuration"
  56601. transient="false" volatile="false"
  56602. static="false" final="false" visibility="protected"
  56603. deprecated="not deprecated">
  56604. </field>
  56605. <doc>
  56606. <![CDATA[An {@link RecordReader} for {@link SequenceFile}s.]]>
  56607. </doc>
  56608. </class>
  56609. <!-- end class org.apache.hadoop.mapred.SequenceFileRecordReader -->
  56610. <!-- start class org.apache.hadoop.mapred.ShuffleExceptionTracker -->
  56611. <class name="ShuffleExceptionTracker" extends="java.lang.Object"
  56612. abstract="false"
  56613. static="false" final="false" visibility="public"
  56614. deprecated="not deprecated">
  56615. <method name="getNumRequests" return="int"
  56616. abstract="false" native="false" synchronized="false"
  56617. static="false" final="false" visibility="public"
  56618. deprecated="not deprecated">
  56619. <doc>
  56620. <![CDATA[Gets the number of requests we are tracking
  56621. @return number of requests]]>
  56622. </doc>
  56623. </method>
  56624. <method name="getPercentExceptions" return="float"
  56625. abstract="false" native="false" synchronized="true"
  56626. static="false" final="false" visibility="public"
  56627. deprecated="not deprecated">
  56628. <doc>
  56629. <![CDATA[Gets the percent of the requests that had exceptions occur.
  56630. @return percent failures as float]]>
  56631. </doc>
  56632. </method>
  56633. <method name="success"
  56634. abstract="false" native="false" synchronized="true"
  56635. static="false" final="false" visibility="public"
  56636. deprecated="not deprecated">
  56637. <doc>
  56638. <![CDATA[Mark the request as success.]]>
  56639. </doc>
  56640. </method>
  56641. <method name="exception"
  56642. abstract="false" native="false" synchronized="true"
  56643. static="false" final="false" visibility="public"
  56644. deprecated="not deprecated">
  56645. <doc>
  56646. <![CDATA[Mark the request as an exception occurred.]]>
  56647. </doc>
  56648. </method>
  56649. <method name="checkException" return="boolean"
  56650. abstract="false" native="false" synchronized="false"
  56651. static="false" final="false" visibility="public"
  56652. deprecated="not deprecated">
  56653. <param name="ie" type="java.io.IOException"/>
  56654. <doc>
  56655. <![CDATA[Parse the exception to see if it matches the regular expression you
  56656. configured. If both msgRegex and StackRegex are set then make sure both
  56657. match, otherwise only one has to match. Abort if the limit is hit.
  56658. @param ie - the shuffle exception that occurred
  56659. @return true if the exception matches, false otherwise]]>
  56660. </doc>
  56661. </method>
  56662. <method name="doAbort"
  56663. abstract="false" native="false" synchronized="false"
  56664. static="false" final="false" visibility="protected"
  56665. deprecated="not deprecated">
  56666. </method>
  56667. <field name="LOG" type="org.apache.commons.logging.Log"
  56668. transient="false" volatile="false"
  56669. static="true" final="true" visibility="public"
  56670. deprecated="not deprecated">
  56671. </field>
  56672. <doc>
  56673. <![CDATA[This class is used to track shuffle exceptions. It contains routines
  56674. to check an exception that occurred while fetching the Map output to see if it
  56675. matches what was configured. It also provides functions to keep track of
  56676. the number of exceptions that occurred and if a limit is set, it will
  56677. abort the TT. The limit is a percent of exceptions of the last X number of
  56678. requests.]]>
  56679. </doc>
  56680. </class>
  56681. <!-- end class org.apache.hadoop.mapred.ShuffleExceptionTracker -->
  56682. <!-- start class org.apache.hadoop.mapred.SkipBadRecords -->
  56683. <class name="SkipBadRecords" extends="java.lang.Object"
  56684. abstract="false"
  56685. static="false" final="false" visibility="public"
  56686. deprecated="not deprecated">
  56687. <constructor name="SkipBadRecords"
  56688. static="false" final="false" visibility="public"
  56689. deprecated="not deprecated">
  56690. </constructor>
  56691. <method name="getAttemptsToStartSkipping" return="int"
  56692. abstract="false" native="false" synchronized="false"
  56693. static="true" final="false" visibility="public"
  56694. deprecated="not deprecated">
  56695. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  56696. <doc>
  56697. <![CDATA[Get the number of Task attempts AFTER which skip mode
  56698. will be kicked off. When skip mode is kicked off, the
  56699. tasks reports the range of records which it will process
  56700. next to the TaskTracker. So that on failures, TT knows which
  56701. ones are possibly the bad records. On further executions,
  56702. those are skipped.
  56703. Default value is 2.
  56704. @param conf the configuration
  56705. @return attemptsToStartSkipping no of task attempts]]>
  56706. </doc>
  56707. </method>
  56708. <method name="setAttemptsToStartSkipping"
  56709. abstract="false" native="false" synchronized="false"
  56710. static="true" final="false" visibility="public"
  56711. deprecated="not deprecated">
  56712. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  56713. <param name="attemptsToStartSkipping" type="int"/>
  56714. <doc>
  56715. <![CDATA[Set the number of Task attempts AFTER which skip mode
  56716. will be kicked off. When skip mode is kicked off, the
  56717. tasks reports the range of records which it will process
  56718. next to the TaskTracker. So that on failures, TT knows which
  56719. ones are possibly the bad records. On further executions,
  56720. those are skipped.
  56721. Default value is 2.
  56722. @param conf the configuration
  56723. @param attemptsToStartSkipping no of task attempts]]>
  56724. </doc>
  56725. </method>
  56726. <method name="getAutoIncrMapperProcCount" return="boolean"
  56727. abstract="false" native="false" synchronized="false"
  56728. static="true" final="false" visibility="public"
  56729. deprecated="not deprecated">
  56730. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  56731. <doc>
  56732. <![CDATA[Get the flag which if set to true,
  56733. {@link SkipBadRecords#COUNTER_MAP_PROCESSED_RECORDS} is incremented
  56734. by MapRunner after invoking the map function. This value must be set to
  56735. false for applications which process the records asynchronously
  56736. or buffer the input records. For example streaming.
  56737. In such cases applications should increment this counter on their own.
  56738. Default value is true.
  56739. @param conf the configuration
  56740. @return <code>true</code> if auto increment
  56741. {@link SkipBadRecords#COUNTER_MAP_PROCESSED_RECORDS}.
  56742. <code>false</code> otherwise.]]>
  56743. </doc>
  56744. </method>
  56745. <method name="setAutoIncrMapperProcCount"
  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. <param name="autoIncr" type="boolean"/>
  56751. <doc>
  56752. <![CDATA[Set the flag which if set to true,
  56753. {@link SkipBadRecords#COUNTER_MAP_PROCESSED_RECORDS} is incremented
  56754. by MapRunner after invoking the map function. This value must be set to
  56755. false for applications which process the records asynchronously
  56756. or buffer the input records. For example streaming.
  56757. In such cases applications should increment this counter on their own.
  56758. Default value is true.
  56759. @param conf the configuration
  56760. @param autoIncr whether to auto increment
  56761. {@link SkipBadRecords#COUNTER_MAP_PROCESSED_RECORDS}.]]>
  56762. </doc>
  56763. </method>
  56764. <method name="getAutoIncrReducerProcCount" return="boolean"
  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. <doc>
  56770. <![CDATA[Get the flag which if set to true,
  56771. {@link SkipBadRecords#COUNTER_REDUCE_PROCESSED_GROUPS} is incremented
  56772. by framework after invoking the reduce function. This value must be set to
  56773. false for applications which process the records asynchronously
  56774. or buffer the input records. For example streaming.
  56775. In such cases applications should increment this counter on their own.
  56776. Default value is true.
  56777. @param conf the configuration
  56778. @return <code>true</code> if auto increment
  56779. {@link SkipBadRecords#COUNTER_REDUCE_PROCESSED_GROUPS}.
  56780. <code>false</code> otherwise.]]>
  56781. </doc>
  56782. </method>
  56783. <method name="setAutoIncrReducerProcCount"
  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. <param name="autoIncr" type="boolean"/>
  56789. <doc>
  56790. <![CDATA[Set the flag which if set to true,
  56791. {@link SkipBadRecords#COUNTER_REDUCE_PROCESSED_GROUPS} is incremented
  56792. by framework after invoking the reduce function. This value must be set to
  56793. false for applications which process the records asynchronously
  56794. or buffer the input records. For example streaming.
  56795. In such cases applications should increment this counter on their own.
  56796. Default value is true.
  56797. @param conf the configuration
  56798. @param autoIncr whether to auto increment
  56799. {@link SkipBadRecords#COUNTER_REDUCE_PROCESSED_GROUPS}.]]>
  56800. </doc>
  56801. </method>
  56802. <method name="getSkipOutputPath" return="org.apache.hadoop.fs.Path"
  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. <doc>
  56808. <![CDATA[Get the directory to which skipped records are written. By default it is
  56809. the sub directory of the output _logs directory.
  56810. User can stop writing skipped records by setting the value null.
  56811. @param conf the configuration.
  56812. @return path skip output directory. Null is returned if this is not set
  56813. and output directory is also not set.]]>
  56814. </doc>
  56815. </method>
  56816. <method name="setSkipOutputPath"
  56817. abstract="false" native="false" synchronized="false"
  56818. static="true" final="false" visibility="public"
  56819. deprecated="not deprecated">
  56820. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  56821. <param name="path" type="org.apache.hadoop.fs.Path"/>
  56822. <doc>
  56823. <![CDATA[Set the directory to which skipped records are written. By default it is
  56824. the sub directory of the output _logs directory.
  56825. User can stop writing skipped records by setting the value null.
  56826. @param conf the configuration.
  56827. @param path skip output directory path]]>
  56828. </doc>
  56829. </method>
  56830. <method name="getMapperMaxSkipRecords" return="long"
  56831. abstract="false" native="false" synchronized="false"
  56832. static="true" final="false" visibility="public"
  56833. deprecated="not deprecated">
  56834. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  56835. <doc>
  56836. <![CDATA[Get the number of acceptable skip records surrounding the bad record PER
  56837. bad record in mapper. The number includes the bad record as well.
  56838. To turn the feature of detection/skipping of bad records off, set the
  56839. value to 0.
  56840. The framework tries to narrow down the skipped range by retrying
  56841. until this threshold is met OR all attempts get exhausted for this task.
  56842. Set the value to Long.MAX_VALUE to indicate that framework need not try to
  56843. narrow down. Whatever records(depends on application) get skipped are
  56844. acceptable.
  56845. Default value is 0.
  56846. @param conf the configuration
  56847. @return maxSkipRecs acceptable skip records.]]>
  56848. </doc>
  56849. </method>
  56850. <method name="setMapperMaxSkipRecords"
  56851. abstract="false" native="false" synchronized="false"
  56852. static="true" final="false" visibility="public"
  56853. deprecated="not deprecated">
  56854. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  56855. <param name="maxSkipRecs" type="long"/>
  56856. <doc>
  56857. <![CDATA[Set the number of acceptable skip records surrounding the bad record PER
  56858. bad record in mapper. The number includes the bad record as well.
  56859. To turn the feature of detection/skipping of bad records off, set the
  56860. value to 0.
  56861. The framework tries to narrow down the skipped range by retrying
  56862. until this threshold is met OR all attempts get exhausted for this task.
  56863. Set the value to Long.MAX_VALUE to indicate that framework need not try to
  56864. narrow down. Whatever records(depends on application) get skipped are
  56865. acceptable.
  56866. Default value is 0.
  56867. @param conf the configuration
  56868. @param maxSkipRecs acceptable skip records.]]>
  56869. </doc>
  56870. </method>
  56871. <method name="getReducerMaxSkipGroups" return="long"
  56872. abstract="false" native="false" synchronized="false"
  56873. static="true" final="false" visibility="public"
  56874. deprecated="not deprecated">
  56875. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  56876. <doc>
  56877. <![CDATA[Get the number of acceptable skip groups surrounding the bad group PER
  56878. bad group in reducer. The number includes the bad group as well.
  56879. To turn the feature of detection/skipping of bad groups off, set the
  56880. value to 0.
  56881. The framework tries to narrow down the skipped range by retrying
  56882. until this threshold is met OR all attempts get exhausted for this task.
  56883. Set the value to Long.MAX_VALUE to indicate that framework need not try to
  56884. narrow down. Whatever groups(depends on application) get skipped are
  56885. acceptable.
  56886. Default value is 0.
  56887. @param conf the configuration
  56888. @return maxSkipGrps acceptable skip groups.]]>
  56889. </doc>
  56890. </method>
  56891. <method name="setReducerMaxSkipGroups"
  56892. abstract="false" native="false" synchronized="false"
  56893. static="true" final="false" visibility="public"
  56894. deprecated="not deprecated">
  56895. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  56896. <param name="maxSkipGrps" type="long"/>
  56897. <doc>
  56898. <![CDATA[Set the number of acceptable skip groups surrounding the bad group PER
  56899. bad group in reducer. The number includes the bad group as well.
  56900. To turn the feature of detection/skipping of bad groups off, set the
  56901. value to 0.
  56902. The framework tries to narrow down the skipped range by retrying
  56903. until this threshold is met OR all attempts get exhausted for this task.
  56904. Set the value to Long.MAX_VALUE to indicate that framework need not try to
  56905. narrow down. Whatever groups(depends on application) get skipped are
  56906. acceptable.
  56907. Default value is 0.
  56908. @param conf the configuration
  56909. @param maxSkipGrps acceptable skip groups.]]>
  56910. </doc>
  56911. </method>
  56912. <field name="COUNTER_GROUP" type="java.lang.String"
  56913. transient="false" volatile="false"
  56914. static="true" final="true" visibility="public"
  56915. deprecated="not deprecated">
  56916. <doc>
  56917. <![CDATA[Special counters which are written by the application and are
  56918. used by the framework for detecting bad records. For detecting bad records
  56919. these counters must be incremented by the application.]]>
  56920. </doc>
  56921. </field>
  56922. <field name="COUNTER_MAP_PROCESSED_RECORDS" type="java.lang.String"
  56923. transient="false" volatile="false"
  56924. static="true" final="true" visibility="public"
  56925. deprecated="not deprecated">
  56926. <doc>
  56927. <![CDATA[Number of processed map records.
  56928. @see SkipBadRecords#getAutoIncrMapperProcCount(Configuration)]]>
  56929. </doc>
  56930. </field>
  56931. <field name="COUNTER_REDUCE_PROCESSED_GROUPS" type="java.lang.String"
  56932. transient="false" volatile="false"
  56933. static="true" final="true" visibility="public"
  56934. deprecated="not deprecated">
  56935. <doc>
  56936. <![CDATA[Number of processed reduce groups.
  56937. @see SkipBadRecords#getAutoIncrReducerProcCount(Configuration)]]>
  56938. </doc>
  56939. </field>
  56940. <doc>
  56941. <![CDATA[Utility class for skip bad records functionality. It contains various
  56942. settings related to skipping of bad records.
  56943. <p>Hadoop provides an optional mode of execution in which the bad records
  56944. are detected and skipped in further attempts.
  56945. <p>This feature can be used when map/reduce tasks crashes deterministically on
  56946. certain input. This happens due to bugs in the map/reduce function. The usual
  56947. course would be to fix these bugs. But sometimes this is not possible;
  56948. perhaps the bug is in third party libraries for which the source code is
  56949. not available. Due to this, the task never reaches to completion even with
  56950. multiple attempts and complete data for that task is lost.</p>
  56951. <p>With this feature, only a small portion of data is lost surrounding
  56952. the bad record, which may be acceptable for some user applications.
  56953. see {@link SkipBadRecords#setMapperMaxSkipRecords(Configuration, long)}</p>
  56954. <p>The skipping mode gets kicked off after certain no of failures
  56955. see {@link SkipBadRecords#setAttemptsToStartSkipping(Configuration, int)}</p>
  56956. <p>In the skipping mode, the map/reduce task maintains the record range which
  56957. is getting processed at all times. Before giving the input to the
  56958. map/reduce function, it sends this record range to the Task tracker.
  56959. If task crashes, the Task tracker knows which one was the last reported
  56960. range. On further attempts that range get skipped.</p>]]>
  56961. </doc>
  56962. </class>
  56963. <!-- end class org.apache.hadoop.mapred.SkipBadRecords -->
  56964. <!-- start class org.apache.hadoop.mapred.Task -->
  56965. <class name="Task" extends="java.lang.Object"
  56966. abstract="true"
  56967. static="false" final="false" visibility="public"
  56968. deprecated="not deprecated">
  56969. <implements name="org.apache.hadoop.io.Writable"/>
  56970. <implements name="org.apache.hadoop.conf.Configurable"/>
  56971. <constructor name="Task"
  56972. static="false" final="false" visibility="public"
  56973. deprecated="not deprecated">
  56974. </constructor>
  56975. <constructor name="Task" type="java.lang.String, org.apache.hadoop.mapred.TaskAttemptID, int, int"
  56976. static="false" final="false" visibility="public"
  56977. deprecated="not deprecated">
  56978. </constructor>
  56979. <method name="getFileSystemCounterNames" return="java.lang.String[]"
  56980. abstract="false" native="false" synchronized="false"
  56981. static="true" final="false" visibility="protected"
  56982. deprecated="not deprecated">
  56983. <param name="uriScheme" type="java.lang.String"/>
  56984. <doc>
  56985. <![CDATA[Counters to measure the usage of the different file systems.
  56986. Always return the String array with two elements. First one is the name of
  56987. BYTES_READ counter and second one is of the BYTES_WRITTEN counter.]]>
  56988. </doc>
  56989. </method>
  56990. <method name="setJobFile"
  56991. abstract="false" native="false" synchronized="false"
  56992. static="false" final="false" visibility="public"
  56993. deprecated="not deprecated">
  56994. <param name="jobFile" type="java.lang.String"/>
  56995. </method>
  56996. <method name="getJobFile" return="java.lang.String"
  56997. abstract="false" native="false" synchronized="false"
  56998. static="false" final="false" visibility="public"
  56999. deprecated="not deprecated">
  57000. </method>
  57001. <method name="getTaskID" return="org.apache.hadoop.mapred.TaskAttemptID"
  57002. abstract="false" native="false" synchronized="false"
  57003. static="false" final="false" visibility="public"
  57004. deprecated="not deprecated">
  57005. </method>
  57006. <method name="getNumSlotsRequired" return="int"
  57007. abstract="false" native="false" synchronized="false"
  57008. static="false" final="false" visibility="public"
  57009. deprecated="not deprecated">
  57010. </method>
  57011. <method name="getJobID" return="org.apache.hadoop.mapred.JobID"
  57012. abstract="false" native="false" synchronized="false"
  57013. static="false" final="false" visibility="public"
  57014. deprecated="not deprecated">
  57015. <doc>
  57016. <![CDATA[Get the job name for this task.
  57017. @return the job name]]>
  57018. </doc>
  57019. </method>
  57020. <method name="setJobTokenSecret"
  57021. abstract="false" native="false" synchronized="false"
  57022. static="false" final="false" visibility="public"
  57023. deprecated="not deprecated">
  57024. <param name="tokenSecret" type="javax.crypto.SecretKey"/>
  57025. <doc>
  57026. <![CDATA[Set the job token secret
  57027. @param tokenSecret the secret]]>
  57028. </doc>
  57029. </method>
  57030. <method name="getJobTokenSecret" return="javax.crypto.SecretKey"
  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 token secret
  57036. @return the token secret]]>
  57037. </doc>
  57038. </method>
  57039. <method name="setJvmContext"
  57040. abstract="false" native="false" synchronized="false"
  57041. static="false" final="false" visibility="public"
  57042. deprecated="not deprecated">
  57043. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  57044. <doc>
  57045. <![CDATA[Set the task JvmContext
  57046. @param jvmContext]]>
  57047. </doc>
  57048. </method>
  57049. <method name="getJvmContext" return="org.apache.hadoop.mapred.JvmContext"
  57050. abstract="false" native="false" synchronized="false"
  57051. static="false" final="false" visibility="public"
  57052. deprecated="not deprecated">
  57053. <doc>
  57054. <![CDATA[Gets the task JvmContext
  57055. @return the jvm context]]>
  57056. </doc>
  57057. </method>
  57058. <method name="getPartition" return="int"
  57059. abstract="false" native="false" synchronized="false"
  57060. static="false" final="false" visibility="public"
  57061. deprecated="not deprecated">
  57062. <doc>
  57063. <![CDATA[Get the index of this task within the job.
  57064. @return the integer part of the task id]]>
  57065. </doc>
  57066. </method>
  57067. <method name="getPhase" return="org.apache.hadoop.mapred.TaskStatus.Phase"
  57068. abstract="false" native="false" synchronized="true"
  57069. static="false" final="false" visibility="public"
  57070. deprecated="not deprecated">
  57071. <doc>
  57072. <![CDATA[Return current phase of the task.
  57073. needs to be synchronized as communication thread sends the phase every second
  57074. @return the curent phase of the task]]>
  57075. </doc>
  57076. </method>
  57077. <method name="setPhase"
  57078. abstract="false" native="false" synchronized="true"
  57079. static="false" final="false" visibility="protected"
  57080. deprecated="not deprecated">
  57081. <param name="phase" type="org.apache.hadoop.mapred.TaskStatus.Phase"/>
  57082. <doc>
  57083. <![CDATA[Set current phase of the task.
  57084. @param phase task phase]]>
  57085. </doc>
  57086. </method>
  57087. <method name="toWriteSkipRecs" return="boolean"
  57088. abstract="false" native="false" synchronized="false"
  57089. static="false" final="false" visibility="protected"
  57090. deprecated="not deprecated">
  57091. <doc>
  57092. <![CDATA[Get whether to write skip records.]]>
  57093. </doc>
  57094. </method>
  57095. <method name="setWriteSkipRecs"
  57096. abstract="false" native="false" synchronized="false"
  57097. static="false" final="false" visibility="protected"
  57098. deprecated="not deprecated">
  57099. <param name="writeSkipRecs" type="boolean"/>
  57100. <doc>
  57101. <![CDATA[Set whether to write skip records.]]>
  57102. </doc>
  57103. </method>
  57104. <method name="reportFatalError"
  57105. abstract="false" native="false" synchronized="false"
  57106. static="false" final="false" visibility="protected"
  57107. deprecated="not deprecated">
  57108. <param name="id" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  57109. <param name="throwable" type="java.lang.Throwable"/>
  57110. <param name="logMsg" type="java.lang.String"/>
  57111. <doc>
  57112. <![CDATA[Report a fatal error to the parent (task) tracker.]]>
  57113. </doc>
  57114. </method>
  57115. <method name="getSkipRanges" return="org.apache.hadoop.mapred.SortedRanges"
  57116. abstract="false" native="false" synchronized="false"
  57117. static="false" final="false" visibility="public"
  57118. deprecated="not deprecated">
  57119. <doc>
  57120. <![CDATA[Get skipRanges.]]>
  57121. </doc>
  57122. </method>
  57123. <method name="setSkipRanges"
  57124. abstract="false" native="false" synchronized="false"
  57125. static="false" final="false" visibility="public"
  57126. deprecated="not deprecated">
  57127. <param name="skipRanges" type="org.apache.hadoop.mapred.SortedRanges"/>
  57128. <doc>
  57129. <![CDATA[Set skipRanges.]]>
  57130. </doc>
  57131. </method>
  57132. <method name="isSkipping" return="boolean"
  57133. abstract="false" native="false" synchronized="false"
  57134. static="false" final="false" visibility="public"
  57135. deprecated="not deprecated">
  57136. <doc>
  57137. <![CDATA[Is Task in skipping mode.]]>
  57138. </doc>
  57139. </method>
  57140. <method name="setSkipping"
  57141. abstract="false" native="false" synchronized="false"
  57142. static="false" final="false" visibility="public"
  57143. deprecated="not deprecated">
  57144. <param name="skipping" type="boolean"/>
  57145. <doc>
  57146. <![CDATA[Sets whether to run Task in skipping mode.
  57147. @param skipping]]>
  57148. </doc>
  57149. </method>
  57150. <method name="getUser" return="java.lang.String"
  57151. abstract="false" native="false" synchronized="false"
  57152. static="false" final="false" visibility="public"
  57153. deprecated="not deprecated">
  57154. <doc>
  57155. <![CDATA[Get the name of the user running the job/task. TaskTracker needs task's
  57156. user name even before it's JobConf is localized. So we explicitly serialize
  57157. the user name.
  57158. @return user]]>
  57159. </doc>
  57160. </method>
  57161. <method name="write"
  57162. abstract="false" native="false" synchronized="false"
  57163. static="false" final="false" visibility="public"
  57164. deprecated="not deprecated">
  57165. <param name="out" type="java.io.DataOutput"/>
  57166. <exception name="IOException" type="java.io.IOException"/>
  57167. </method>
  57168. <method name="readFields"
  57169. abstract="false" native="false" synchronized="false"
  57170. static="false" final="false" visibility="public"
  57171. deprecated="not deprecated">
  57172. <param name="in" type="java.io.DataInput"/>
  57173. <exception name="IOException" type="java.io.IOException"/>
  57174. </method>
  57175. <method name="toString" return="java.lang.String"
  57176. abstract="false" native="false" synchronized="false"
  57177. static="false" final="false" visibility="public"
  57178. deprecated="not deprecated">
  57179. </method>
  57180. <method name="localizeConfiguration"
  57181. abstract="false" native="false" synchronized="false"
  57182. static="false" final="false" visibility="public"
  57183. deprecated="not deprecated">
  57184. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  57185. <exception name="IOException" type="java.io.IOException"/>
  57186. <doc>
  57187. <![CDATA[Localize the given JobConf to be specific for this task.]]>
  57188. </doc>
  57189. </method>
  57190. <method name="run"
  57191. abstract="true" native="false" synchronized="false"
  57192. static="false" final="false" visibility="public"
  57193. deprecated="not deprecated">
  57194. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  57195. <param name="umbilical" type="org.apache.hadoop.mapred.TaskUmbilicalProtocol"/>
  57196. <exception name="IOException" type="java.io.IOException"/>
  57197. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  57198. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  57199. <doc>
  57200. <![CDATA[Run this task as a part of the named job. This method is executed in the
  57201. child process and is what invokes user-supplied map, reduce, etc. methods.
  57202. @param umbilical for progress reports]]>
  57203. </doc>
  57204. </method>
  57205. <method name="createRunner" return="org.apache.hadoop.mapred.TaskRunner"
  57206. abstract="true" native="false" synchronized="false"
  57207. static="false" final="false" visibility="public"
  57208. deprecated="not deprecated">
  57209. <param name="tracker" type="org.apache.hadoop.mapred.TaskTracker"/>
  57210. <param name="tip" type="org.apache.hadoop.mapred.TaskTracker.TaskInProgress"/>
  57211. <param name="rjob" type="org.apache.hadoop.mapred.TaskTracker.RunningJob"/>
  57212. <exception name="IOException" type="java.io.IOException"/>
  57213. <doc>
  57214. <![CDATA[Return an approprate thread runner for this task.
  57215. @param tip TODO]]>
  57216. </doc>
  57217. </method>
  57218. <method name="isMapTask" return="boolean"
  57219. abstract="true" native="false" synchronized="false"
  57220. static="false" final="false" visibility="public"
  57221. deprecated="not deprecated">
  57222. </method>
  57223. <method name="getProgress" return="org.apache.hadoop.util.Progress"
  57224. abstract="false" native="false" synchronized="false"
  57225. static="false" final="false" visibility="public"
  57226. deprecated="not deprecated">
  57227. </method>
  57228. <method name="initialize"
  57229. abstract="false" native="false" synchronized="false"
  57230. static="false" final="false" visibility="public"
  57231. deprecated="not deprecated">
  57232. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  57233. <param name="id" type="org.apache.hadoop.mapred.JobID"/>
  57234. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  57235. <param name="useNewApi" type="boolean"/>
  57236. <exception name="IOException" type="java.io.IOException"/>
  57237. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  57238. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  57239. </method>
  57240. <method name="reportNextRecordRange"
  57241. abstract="false" native="false" synchronized="false"
  57242. static="false" final="false" visibility="protected"
  57243. deprecated="not deprecated">
  57244. <param name="umbilical" type="org.apache.hadoop.mapred.TaskUmbilicalProtocol"/>
  57245. <param name="nextRecIndex" type="long"/>
  57246. <exception name="IOException" type="java.io.IOException"/>
  57247. <doc>
  57248. <![CDATA[Reports the next executing record range to TaskTracker.
  57249. @param umbilical
  57250. @param nextRecIndex the record index which would be fed next.
  57251. @throws IOException]]>
  57252. </doc>
  57253. </method>
  57254. <method name="done"
  57255. abstract="false" native="false" synchronized="false"
  57256. static="false" final="false" visibility="public"
  57257. deprecated="not deprecated">
  57258. <param name="umbilical" type="org.apache.hadoop.mapred.TaskUmbilicalProtocol"/>
  57259. <param name="reporter" type="org.apache.hadoop.mapred.Task.TaskReporter"/>
  57260. <exception name="IOException" type="java.io.IOException"/>
  57261. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  57262. </method>
  57263. <method name="statusUpdate"
  57264. abstract="false" native="false" synchronized="false"
  57265. static="false" final="false" visibility="protected"
  57266. deprecated="not deprecated">
  57267. <param name="umbilical" type="org.apache.hadoop.mapred.TaskUmbilicalProtocol"/>
  57268. <exception name="IOException" type="java.io.IOException"/>
  57269. </method>
  57270. <method name="runTaskCleanupTask"
  57271. abstract="false" native="false" synchronized="false"
  57272. static="false" final="false" visibility="protected"
  57273. deprecated="not deprecated">
  57274. <param name="umbilical" type="org.apache.hadoop.mapred.TaskUmbilicalProtocol"/>
  57275. <param name="reporter" type="org.apache.hadoop.mapred.Task.TaskReporter"/>
  57276. <exception name="IOException" type="java.io.IOException"/>
  57277. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  57278. </method>
  57279. <method name="runJobCleanupTask"
  57280. abstract="false" native="false" synchronized="false"
  57281. static="false" final="false" visibility="protected"
  57282. deprecated="not deprecated">
  57283. <param name="umbilical" type="org.apache.hadoop.mapred.TaskUmbilicalProtocol"/>
  57284. <param name="reporter" type="org.apache.hadoop.mapred.Task.TaskReporter"/>
  57285. <exception name="IOException" type="java.io.IOException"/>
  57286. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  57287. </method>
  57288. <method name="supportIsolationRunner" return="boolean"
  57289. abstract="false" native="false" synchronized="false"
  57290. static="false" final="false" visibility="protected"
  57291. deprecated="not deprecated">
  57292. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  57293. </method>
  57294. <method name="runJobSetupTask"
  57295. abstract="false" native="false" synchronized="false"
  57296. static="false" final="false" visibility="protected"
  57297. deprecated="not deprecated">
  57298. <param name="umbilical" type="org.apache.hadoop.mapred.TaskUmbilicalProtocol"/>
  57299. <param name="reporter" type="org.apache.hadoop.mapred.Task.TaskReporter"/>
  57300. <exception name="IOException" type="java.io.IOException"/>
  57301. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  57302. </method>
  57303. <method name="getFsStatistics" return="org.apache.hadoop.fs.FileSystem.Statistics"
  57304. abstract="false" native="false" synchronized="false"
  57305. static="true" final="false" visibility="protected"
  57306. deprecated="not deprecated">
  57307. <param name="path" type="org.apache.hadoop.fs.Path"/>
  57308. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  57309. <exception name="IOException" type="java.io.IOException"/>
  57310. <doc>
  57311. <![CDATA[Gets a handle to the Statistics instance based on the scheme associated
  57312. with path.
  57313. @param path
  57314. the path.
  57315. @return a Statistics instance, or null if none is found for the scheme.]]>
  57316. </doc>
  57317. </method>
  57318. <method name="setConf"
  57319. abstract="false" native="false" synchronized="false"
  57320. static="false" final="false" visibility="public"
  57321. deprecated="not deprecated">
  57322. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  57323. </method>
  57324. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  57325. abstract="false" native="false" synchronized="false"
  57326. static="false" final="false" visibility="public"
  57327. deprecated="not deprecated">
  57328. </method>
  57329. <method name="createReduceContext" return="org.apache.hadoop.mapreduce.Reducer.Context"
  57330. abstract="false" native="false" synchronized="false"
  57331. static="true" final="false" visibility="protected"
  57332. deprecated="not deprecated">
  57333. <param name="reducer" type="org.apache.hadoop.mapreduce.Reducer"/>
  57334. <param name="job" type="org.apache.hadoop.conf.Configuration"/>
  57335. <param name="taskId" type="org.apache.hadoop.mapreduce.TaskAttemptID"/>
  57336. <param name="rIter" type="org.apache.hadoop.mapred.RawKeyValueIterator"/>
  57337. <param name="inputKeyCounter" type="org.apache.hadoop.mapreduce.Counter"/>
  57338. <param name="inputValueCounter" type="org.apache.hadoop.mapreduce.Counter"/>
  57339. <param name="output" type="org.apache.hadoop.mapreduce.RecordWriter"/>
  57340. <param name="committer" type="org.apache.hadoop.mapreduce.OutputCommitter"/>
  57341. <param name="reporter" type="org.apache.hadoop.mapreduce.StatusReporter"/>
  57342. <param name="comparator" type="org.apache.hadoop.io.RawComparator"/>
  57343. <param name="keyClass" type="java.lang.Class"/>
  57344. <param name="valueClass" type="java.lang.Class"/>
  57345. <exception name="IOException" type="java.io.IOException"/>
  57346. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  57347. </method>
  57348. <field name="MR_COMBINE_RECORDS_BEFORE_PROGRESS" type="java.lang.String"
  57349. transient="false" volatile="false"
  57350. static="true" final="true" visibility="public"
  57351. deprecated="not deprecated">
  57352. </field>
  57353. <field name="DEFAULT_MR_COMBINE_RECORDS_BEFORE_PROGRESS" type="long"
  57354. transient="false" volatile="false"
  57355. static="true" final="true" visibility="public"
  57356. deprecated="not deprecated">
  57357. </field>
  57358. <field name="FILESYSTEM_COUNTER_GROUP" type="java.lang.String"
  57359. transient="false" volatile="false"
  57360. static="true" final="true" visibility="protected"
  57361. deprecated="not deprecated">
  57362. <doc>
  57363. <![CDATA[Name of the FileSystem counters' group]]>
  57364. </doc>
  57365. </field>
  57366. <field name="jobRunStateForCleanup" type="org.apache.hadoop.mapreduce.JobStatus.State"
  57367. transient="false" volatile="false"
  57368. static="false" final="false" visibility="protected"
  57369. deprecated="not deprecated">
  57370. </field>
  57371. <field name="jobCleanup" type="boolean"
  57372. transient="false" volatile="false"
  57373. static="false" final="false" visibility="protected"
  57374. deprecated="not deprecated">
  57375. </field>
  57376. <field name="jobSetup" type="boolean"
  57377. transient="false" volatile="false"
  57378. static="false" final="false" visibility="protected"
  57379. deprecated="not deprecated">
  57380. </field>
  57381. <field name="taskCleanup" type="boolean"
  57382. transient="false" volatile="false"
  57383. static="false" final="false" visibility="protected"
  57384. deprecated="not deprecated">
  57385. </field>
  57386. <field name="conf" type="org.apache.hadoop.mapred.JobConf"
  57387. transient="false" volatile="false"
  57388. static="false" final="false" visibility="protected"
  57389. deprecated="not deprecated">
  57390. </field>
  57391. <field name="mapOutputFile" type="org.apache.hadoop.mapred.MapOutputFile"
  57392. transient="false" volatile="false"
  57393. static="false" final="false" visibility="protected"
  57394. deprecated="not deprecated">
  57395. </field>
  57396. <field name="lDirAlloc" type="org.apache.hadoop.fs.LocalDirAllocator"
  57397. transient="false" volatile="false"
  57398. static="false" final="false" visibility="protected"
  57399. deprecated="not deprecated">
  57400. </field>
  57401. <field name="jobContext" type="org.apache.hadoop.mapred.JobContext"
  57402. transient="false" volatile="false"
  57403. static="false" final="false" visibility="protected"
  57404. deprecated="not deprecated">
  57405. </field>
  57406. <field name="taskContext" type="org.apache.hadoop.mapred.TaskAttemptContext"
  57407. transient="false" volatile="false"
  57408. static="false" final="false" visibility="protected"
  57409. deprecated="not deprecated">
  57410. </field>
  57411. <field name="outputFormat" type="org.apache.hadoop.mapreduce.OutputFormat"
  57412. transient="false" volatile="false"
  57413. static="false" final="false" visibility="protected"
  57414. deprecated="not deprecated">
  57415. </field>
  57416. <field name="committer" type="org.apache.hadoop.mapreduce.OutputCommitter"
  57417. transient="false" volatile="false"
  57418. static="false" final="false" visibility="protected"
  57419. deprecated="not deprecated">
  57420. </field>
  57421. <field name="spilledRecordsCounter" type="org.apache.hadoop.mapred.Counters.Counter"
  57422. transient="false" volatile="false"
  57423. static="false" final="true" visibility="protected"
  57424. deprecated="not deprecated">
  57425. </field>
  57426. <field name="umbilical" type="org.apache.hadoop.mapred.TaskUmbilicalProtocol"
  57427. transient="false" volatile="false"
  57428. static="false" final="false" visibility="protected"
  57429. deprecated="not deprecated">
  57430. </field>
  57431. <field name="tokenSecret" type="javax.crypto.SecretKey"
  57432. transient="false" volatile="false"
  57433. static="false" final="false" visibility="protected"
  57434. deprecated="not deprecated">
  57435. </field>
  57436. <field name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"
  57437. transient="false" volatile="false"
  57438. static="false" final="false" visibility="protected"
  57439. deprecated="not deprecated">
  57440. </field>
  57441. <field name="PROGRESS_INTERVAL" type="int"
  57442. transient="false" volatile="false"
  57443. static="true" final="true" visibility="public"
  57444. deprecated="not deprecated">
  57445. <doc>
  57446. <![CDATA[The number of milliseconds between progress reports.]]>
  57447. </doc>
  57448. </field>
  57449. <doc>
  57450. <![CDATA[Base class for tasks.
  57451. This is NOT a public interface.]]>
  57452. </doc>
  57453. </class>
  57454. <!-- end class org.apache.hadoop.mapred.Task -->
  57455. <!-- start class org.apache.hadoop.mapred.Task.CombineOutputCollector -->
  57456. <class name="Task.CombineOutputCollector" extends="java.lang.Object"
  57457. abstract="false"
  57458. static="true" final="false" visibility="protected"
  57459. deprecated="not deprecated">
  57460. <implements name="org.apache.hadoop.mapred.OutputCollector"/>
  57461. <constructor name="Task.CombineOutputCollector" type="org.apache.hadoop.mapred.Counters.Counter, org.apache.hadoop.util.Progressable, org.apache.hadoop.conf.Configuration"
  57462. static="false" final="false" visibility="public"
  57463. deprecated="not deprecated">
  57464. </constructor>
  57465. <method name="setWriter"
  57466. abstract="false" native="false" synchronized="true"
  57467. static="false" final="false" visibility="public"
  57468. deprecated="not deprecated">
  57469. <param name="writer" type="org.apache.hadoop.mapred.IFile.Writer"/>
  57470. </method>
  57471. <method name="collect"
  57472. abstract="false" native="false" synchronized="true"
  57473. static="false" final="false" visibility="public"
  57474. deprecated="not deprecated">
  57475. <param name="key" type="java.lang.Object"/>
  57476. <param name="value" type="java.lang.Object"/>
  57477. <exception name="IOException" type="java.io.IOException"/>
  57478. </method>
  57479. <doc>
  57480. <![CDATA[OutputCollector for the combiner.]]>
  57481. </doc>
  57482. </class>
  57483. <!-- end class org.apache.hadoop.mapred.Task.CombineOutputCollector -->
  57484. <!-- start class org.apache.hadoop.mapred.Task.CombinerRunner -->
  57485. <class name="Task.CombinerRunner" extends="java.lang.Object"
  57486. abstract="true"
  57487. static="true" final="false" visibility="protected"
  57488. deprecated="not deprecated">
  57489. <field name="inputCounter" type="org.apache.hadoop.mapred.Counters.Counter"
  57490. transient="false" volatile="false"
  57491. static="false" final="true" visibility="protected"
  57492. deprecated="not deprecated">
  57493. </field>
  57494. <field name="job" type="org.apache.hadoop.mapred.JobConf"
  57495. transient="false" volatile="false"
  57496. static="false" final="true" visibility="protected"
  57497. deprecated="not deprecated">
  57498. </field>
  57499. <field name="reporter" type="org.apache.hadoop.mapred.Task.TaskReporter"
  57500. transient="false" volatile="false"
  57501. static="false" final="true" visibility="protected"
  57502. deprecated="not deprecated">
  57503. </field>
  57504. </class>
  57505. <!-- end class org.apache.hadoop.mapred.Task.CombinerRunner -->
  57506. <!-- start class org.apache.hadoop.mapred.Task.CombineValuesIterator -->
  57507. <class name="Task.CombineValuesIterator" extends="org.apache.hadoop.mapred.Task.ValuesIterator"
  57508. abstract="false"
  57509. static="true" final="false" visibility="protected"
  57510. deprecated="not deprecated">
  57511. <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"
  57512. static="false" final="false" visibility="public"
  57513. deprecated="not deprecated">
  57514. <exception name="IOException" type="java.io.IOException"/>
  57515. </constructor>
  57516. <method name="next" return="java.lang.Object"
  57517. abstract="false" native="false" synchronized="false"
  57518. static="false" final="false" visibility="public"
  57519. deprecated="not deprecated">
  57520. </method>
  57521. </class>
  57522. <!-- end class org.apache.hadoop.mapred.Task.CombineValuesIterator -->
  57523. <!-- start class org.apache.hadoop.mapred.Task.Counter -->
  57524. <class name="Task.Counter" extends="java.lang.Enum"
  57525. abstract="false"
  57526. static="true" final="true" visibility="public"
  57527. deprecated="not deprecated">
  57528. <method name="values" return="org.apache.hadoop.mapred.Task.Counter[]"
  57529. abstract="false" native="false" synchronized="false"
  57530. static="true" final="false" visibility="public"
  57531. deprecated="not deprecated">
  57532. </method>
  57533. <method name="valueOf" return="org.apache.hadoop.mapred.Task.Counter"
  57534. abstract="false" native="false" synchronized="false"
  57535. static="true" final="false" visibility="public"
  57536. deprecated="not deprecated">
  57537. <param name="name" type="java.lang.String"/>
  57538. </method>
  57539. <field name="MAP_INPUT_RECORDS" type="org.apache.hadoop.mapred.Task.Counter"
  57540. transient="false" volatile="false"
  57541. static="true" final="true" visibility="public"
  57542. deprecated="not deprecated">
  57543. </field>
  57544. <field name="MAP_OUTPUT_RECORDS" type="org.apache.hadoop.mapred.Task.Counter"
  57545. transient="false" volatile="false"
  57546. static="true" final="true" visibility="public"
  57547. deprecated="not deprecated">
  57548. </field>
  57549. <field name="MAP_SKIPPED_RECORDS" type="org.apache.hadoop.mapred.Task.Counter"
  57550. transient="false" volatile="false"
  57551. static="true" final="true" visibility="public"
  57552. deprecated="not deprecated">
  57553. </field>
  57554. <field name="MAP_INPUT_BYTES" type="org.apache.hadoop.mapred.Task.Counter"
  57555. transient="false" volatile="false"
  57556. static="true" final="true" visibility="public"
  57557. deprecated="not deprecated">
  57558. </field>
  57559. <field name="MAP_OUTPUT_BYTES" type="org.apache.hadoop.mapred.Task.Counter"
  57560. transient="false" volatile="false"
  57561. static="true" final="true" visibility="public"
  57562. deprecated="not deprecated">
  57563. </field>
  57564. <field name="MAP_OUTPUT_MATERIALIZED_BYTES" type="org.apache.hadoop.mapred.Task.Counter"
  57565. transient="false" volatile="false"
  57566. static="true" final="true" visibility="public"
  57567. deprecated="not deprecated">
  57568. </field>
  57569. <field name="COMBINE_INPUT_RECORDS" type="org.apache.hadoop.mapred.Task.Counter"
  57570. transient="false" volatile="false"
  57571. static="true" final="true" visibility="public"
  57572. deprecated="not deprecated">
  57573. </field>
  57574. <field name="COMBINE_OUTPUT_RECORDS" type="org.apache.hadoop.mapred.Task.Counter"
  57575. transient="false" volatile="false"
  57576. static="true" final="true" visibility="public"
  57577. deprecated="not deprecated">
  57578. </field>
  57579. <field name="REDUCE_INPUT_GROUPS" type="org.apache.hadoop.mapred.Task.Counter"
  57580. transient="false" volatile="false"
  57581. static="true" final="true" visibility="public"
  57582. deprecated="not deprecated">
  57583. </field>
  57584. <field name="REDUCE_SHUFFLE_BYTES" type="org.apache.hadoop.mapred.Task.Counter"
  57585. transient="false" volatile="false"
  57586. static="true" final="true" visibility="public"
  57587. deprecated="not deprecated">
  57588. </field>
  57589. <field name="REDUCE_INPUT_RECORDS" type="org.apache.hadoop.mapred.Task.Counter"
  57590. transient="false" volatile="false"
  57591. static="true" final="true" visibility="public"
  57592. deprecated="not deprecated">
  57593. </field>
  57594. <field name="REDUCE_OUTPUT_RECORDS" type="org.apache.hadoop.mapred.Task.Counter"
  57595. transient="false" volatile="false"
  57596. static="true" final="true" visibility="public"
  57597. deprecated="not deprecated">
  57598. </field>
  57599. <field name="REDUCE_SKIPPED_GROUPS" type="org.apache.hadoop.mapred.Task.Counter"
  57600. transient="false" volatile="false"
  57601. static="true" final="true" visibility="public"
  57602. deprecated="not deprecated">
  57603. </field>
  57604. <field name="REDUCE_SKIPPED_RECORDS" type="org.apache.hadoop.mapred.Task.Counter"
  57605. transient="false" volatile="false"
  57606. static="true" final="true" visibility="public"
  57607. deprecated="not deprecated">
  57608. </field>
  57609. <field name="SPILLED_RECORDS" type="org.apache.hadoop.mapred.Task.Counter"
  57610. transient="false" volatile="false"
  57611. static="true" final="true" visibility="public"
  57612. deprecated="not deprecated">
  57613. </field>
  57614. <field name="SPLIT_RAW_BYTES" type="org.apache.hadoop.mapred.Task.Counter"
  57615. transient="false" volatile="false"
  57616. static="true" final="true" visibility="public"
  57617. deprecated="not deprecated">
  57618. </field>
  57619. <field name="CPU_MILLISECONDS" type="org.apache.hadoop.mapred.Task.Counter"
  57620. transient="false" volatile="false"
  57621. static="true" final="true" visibility="public"
  57622. deprecated="not deprecated">
  57623. </field>
  57624. <field name="PHYSICAL_MEMORY_BYTES" type="org.apache.hadoop.mapred.Task.Counter"
  57625. transient="false" volatile="false"
  57626. static="true" final="true" visibility="public"
  57627. deprecated="not deprecated">
  57628. </field>
  57629. <field name="VIRTUAL_MEMORY_BYTES" type="org.apache.hadoop.mapred.Task.Counter"
  57630. transient="false" volatile="false"
  57631. static="true" final="true" visibility="public"
  57632. deprecated="not deprecated">
  57633. </field>
  57634. <field name="COMMITTED_HEAP_BYTES" type="org.apache.hadoop.mapred.Task.Counter"
  57635. transient="false" volatile="false"
  57636. static="true" final="true" visibility="public"
  57637. deprecated="not deprecated">
  57638. </field>
  57639. </class>
  57640. <!-- end class org.apache.hadoop.mapred.Task.Counter -->
  57641. <!-- start class org.apache.hadoop.mapred.Task.NewCombinerRunner -->
  57642. <class name="Task.NewCombinerRunner" extends="org.apache.hadoop.mapred.Task.CombinerRunner"
  57643. abstract="false"
  57644. static="true" final="false" visibility="protected"
  57645. deprecated="not deprecated">
  57646. </class>
  57647. <!-- end class org.apache.hadoop.mapred.Task.NewCombinerRunner -->
  57648. <!-- start class org.apache.hadoop.mapred.Task.OldCombinerRunner -->
  57649. <class name="Task.OldCombinerRunner" extends="org.apache.hadoop.mapred.Task.CombinerRunner"
  57650. abstract="false"
  57651. static="true" final="false" visibility="protected"
  57652. deprecated="not deprecated">
  57653. <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"
  57654. static="false" final="false" visibility="protected"
  57655. deprecated="not deprecated">
  57656. </constructor>
  57657. <method name="combine"
  57658. abstract="false" native="false" synchronized="false"
  57659. static="false" final="false" visibility="protected"
  57660. deprecated="not deprecated">
  57661. <param name="kvIter" type="org.apache.hadoop.mapred.RawKeyValueIterator"/>
  57662. <param name="combineCollector" type="org.apache.hadoop.mapred.OutputCollector"/>
  57663. <exception name="IOException" type="java.io.IOException"/>
  57664. </method>
  57665. </class>
  57666. <!-- end class org.apache.hadoop.mapred.Task.OldCombinerRunner -->
  57667. <!-- start class org.apache.hadoop.mapred.Task.TaskReporter -->
  57668. <class name="Task.TaskReporter" extends="org.apache.hadoop.mapreduce.StatusReporter"
  57669. abstract="false"
  57670. static="false" final="false" visibility="protected"
  57671. deprecated="not deprecated">
  57672. <implements name="java.lang.Runnable"/>
  57673. <implements name="org.apache.hadoop.mapred.Reporter"/>
  57674. <method name="setStatus"
  57675. abstract="false" native="false" synchronized="false"
  57676. static="false" final="false" visibility="public"
  57677. deprecated="not deprecated">
  57678. <param name="status" type="java.lang.String"/>
  57679. </method>
  57680. <method name="setProgress"
  57681. abstract="false" native="false" synchronized="false"
  57682. static="false" final="false" visibility="public"
  57683. deprecated="not deprecated">
  57684. <param name="progress" type="float"/>
  57685. </method>
  57686. <method name="getProgress" return="float"
  57687. abstract="false" native="false" synchronized="false"
  57688. static="false" final="false" visibility="public"
  57689. deprecated="not deprecated">
  57690. </method>
  57691. <method name="progress"
  57692. abstract="false" native="false" synchronized="false"
  57693. static="false" final="false" visibility="public"
  57694. deprecated="not deprecated">
  57695. </method>
  57696. <method name="getCounter" return="org.apache.hadoop.mapred.Counters.Counter"
  57697. abstract="false" native="false" synchronized="false"
  57698. static="false" final="false" visibility="public"
  57699. deprecated="not deprecated">
  57700. <param name="group" type="java.lang.String"/>
  57701. <param name="name" type="java.lang.String"/>
  57702. </method>
  57703. <method name="getCounter" return="org.apache.hadoop.mapred.Counters.Counter"
  57704. abstract="false" native="false" synchronized="false"
  57705. static="false" final="false" visibility="public"
  57706. deprecated="not deprecated">
  57707. <param name="name" type="java.lang.Enum"/>
  57708. </method>
  57709. <method name="incrCounter"
  57710. abstract="false" native="false" synchronized="false"
  57711. static="false" final="false" visibility="public"
  57712. deprecated="not deprecated">
  57713. <param name="key" type="java.lang.Enum"/>
  57714. <param name="amount" type="long"/>
  57715. </method>
  57716. <method name="incrCounter"
  57717. abstract="false" native="false" synchronized="false"
  57718. static="false" final="false" visibility="public"
  57719. deprecated="not deprecated">
  57720. <param name="group" type="java.lang.String"/>
  57721. <param name="counter" type="java.lang.String"/>
  57722. <param name="amount" type="long"/>
  57723. </method>
  57724. <method name="setInputSplit"
  57725. abstract="false" native="false" synchronized="false"
  57726. static="false" final="false" visibility="public"
  57727. deprecated="not deprecated">
  57728. <param name="split" type="org.apache.hadoop.mapred.InputSplit"/>
  57729. </method>
  57730. <method name="getInputSplit" return="org.apache.hadoop.mapred.InputSplit"
  57731. abstract="false" native="false" synchronized="false"
  57732. static="false" final="false" visibility="public"
  57733. deprecated="not deprecated">
  57734. <exception name="UnsupportedOperationException" type="java.lang.UnsupportedOperationException"/>
  57735. </method>
  57736. <method name="run"
  57737. abstract="false" native="false" synchronized="false"
  57738. static="false" final="false" visibility="public"
  57739. deprecated="not deprecated">
  57740. <doc>
  57741. <![CDATA[The communication thread handles communication with the parent (Task Tracker).
  57742. It sends progress updates if progress has been made or if the task needs to
  57743. let the parent know that it's alive. It also pings the parent to see if it's alive.]]>
  57744. </doc>
  57745. </method>
  57746. <method name="startCommunicationThread"
  57747. abstract="false" native="false" synchronized="false"
  57748. static="false" final="false" visibility="public"
  57749. deprecated="not deprecated">
  57750. </method>
  57751. <method name="stopCommunicationThread"
  57752. abstract="false" native="false" synchronized="false"
  57753. static="false" final="false" visibility="public"
  57754. deprecated="not deprecated">
  57755. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  57756. </method>
  57757. </class>
  57758. <!-- end class org.apache.hadoop.mapred.Task.TaskReporter -->
  57759. <!-- start class org.apache.hadoop.mapred.TaskAttemptContext -->
  57760. <class name="TaskAttemptContext" extends="org.apache.hadoop.mapreduce.TaskAttemptContext"
  57761. abstract="false"
  57762. static="false" final="false" visibility="public"
  57763. deprecated="not deprecated">
  57764. <method name="getTaskAttemptID" return="org.apache.hadoop.mapred.TaskAttemptID"
  57765. abstract="false" native="false" synchronized="false"
  57766. static="false" final="false" visibility="public"
  57767. deprecated="not deprecated">
  57768. <doc>
  57769. <![CDATA[Get the taskAttemptID.
  57770. @return TaskAttemptID]]>
  57771. </doc>
  57772. </method>
  57773. <method name="getProgressible" return="org.apache.hadoop.util.Progressable"
  57774. abstract="false" native="false" synchronized="false"
  57775. static="false" final="false" visibility="public"
  57776. deprecated="not deprecated">
  57777. </method>
  57778. <method name="getJobConf" return="org.apache.hadoop.mapred.JobConf"
  57779. abstract="false" native="false" synchronized="false"
  57780. static="false" final="false" visibility="public"
  57781. deprecated="not deprecated">
  57782. </method>
  57783. <method name="progress"
  57784. abstract="false" native="false" synchronized="false"
  57785. static="false" final="false" visibility="public"
  57786. deprecated="not deprecated">
  57787. </method>
  57788. </class>
  57789. <!-- end class org.apache.hadoop.mapred.TaskAttemptContext -->
  57790. <!-- start class org.apache.hadoop.mapred.TaskAttemptID -->
  57791. <class name="TaskAttemptID" extends="org.apache.hadoop.mapreduce.TaskAttemptID"
  57792. abstract="false"
  57793. static="false" final="false" visibility="public"
  57794. deprecated="not deprecated">
  57795. <constructor name="TaskAttemptID" type="org.apache.hadoop.mapred.TaskID, int"
  57796. static="false" final="false" visibility="public"
  57797. deprecated="not deprecated">
  57798. <doc>
  57799. <![CDATA[Constructs a TaskAttemptID object from given {@link TaskID}.
  57800. @param taskId TaskID that this task belongs to
  57801. @param id the task attempt number]]>
  57802. </doc>
  57803. </constructor>
  57804. <constructor name="TaskAttemptID" type="java.lang.String, int, boolean, int, int"
  57805. static="false" final="false" visibility="public"
  57806. deprecated="not deprecated">
  57807. <doc>
  57808. <![CDATA[Constructs a TaskId object from given parts.
  57809. @param jtIdentifier jobTracker identifier
  57810. @param jobId job number
  57811. @param isMap whether the tip is a map
  57812. @param taskId taskId number
  57813. @param id the task attempt number]]>
  57814. </doc>
  57815. </constructor>
  57816. <constructor name="TaskAttemptID"
  57817. static="false" final="false" visibility="public"
  57818. deprecated="not deprecated">
  57819. </constructor>
  57820. <method name="downgrade" return="org.apache.hadoop.mapred.TaskAttemptID"
  57821. abstract="false" native="false" synchronized="false"
  57822. static="true" final="false" visibility="public"
  57823. deprecated="not deprecated">
  57824. <param name="old" type="org.apache.hadoop.mapreduce.TaskAttemptID"/>
  57825. <doc>
  57826. <![CDATA[Downgrade a new TaskAttemptID to an old one
  57827. @param old the new id
  57828. @return either old or a new TaskAttemptID constructed to match old]]>
  57829. </doc>
  57830. </method>
  57831. <method name="getTaskID" return="org.apache.hadoop.mapred.TaskID"
  57832. abstract="false" native="false" synchronized="false"
  57833. static="false" final="false" visibility="public"
  57834. deprecated="not deprecated">
  57835. </method>
  57836. <method name="getJobID" return="org.apache.hadoop.mapred.JobID"
  57837. abstract="false" native="false" synchronized="false"
  57838. static="false" final="false" visibility="public"
  57839. deprecated="not deprecated">
  57840. </method>
  57841. <method name="read" return="org.apache.hadoop.mapred.TaskAttemptID"
  57842. abstract="false" native="false" synchronized="false"
  57843. static="true" final="false" visibility="public"
  57844. deprecated="not deprecated">
  57845. <param name="in" type="java.io.DataInput"/>
  57846. <exception name="IOException" type="java.io.IOException"/>
  57847. </method>
  57848. <method name="forName" return="org.apache.hadoop.mapred.TaskAttemptID"
  57849. abstract="false" native="false" synchronized="false"
  57850. static="true" final="false" visibility="public"
  57851. deprecated="not deprecated">
  57852. <param name="str" type="java.lang.String"/>
  57853. <exception name="IllegalArgumentException" type="java.lang.IllegalArgumentException"/>
  57854. <doc>
  57855. <![CDATA[Construct a TaskAttemptID object from given string
  57856. @return constructed TaskAttemptID object or null if the given String is null
  57857. @throws IllegalArgumentException if the given string is malformed]]>
  57858. </doc>
  57859. </method>
  57860. <method name="getTaskAttemptIDsPattern" return="java.lang.String"
  57861. abstract="false" native="false" synchronized="false"
  57862. static="true" final="false" visibility="public"
  57863. deprecated="not deprecated">
  57864. <param name="jtIdentifier" type="java.lang.String"/>
  57865. <param name="jobId" type="java.lang.Integer"/>
  57866. <param name="isMap" type="java.lang.Boolean"/>
  57867. <param name="taskId" type="java.lang.Integer"/>
  57868. <param name="attemptId" type="java.lang.Integer"/>
  57869. <doc>
  57870. <![CDATA[Returns a regex pattern which matches task attempt IDs. Arguments can
  57871. be given null, in which case that part of the regex will be generic.
  57872. For example to obtain a regex matching <i>all task attempt IDs</i>
  57873. of <i>any jobtracker</i>, in <i>any job</i>, of the <i>first
  57874. map task</i>, we would use :
  57875. <pre>
  57876. TaskAttemptID.getTaskAttemptIDsPattern(null, null, true, 1, null);
  57877. </pre>
  57878. which will return :
  57879. <pre> "attempt_[^_]*_[0-9]*_m_000001_[0-9]*" </pre>
  57880. @param jtIdentifier jobTracker identifier, or null
  57881. @param jobId job number, or null
  57882. @param isMap whether the tip is a map, or null
  57883. @param taskId taskId number, or null
  57884. @param attemptId the task attempt number, or null
  57885. @return a regex pattern matching TaskAttemptIDs]]>
  57886. </doc>
  57887. </method>
  57888. <doc>
  57889. <![CDATA[TaskAttemptID represents the immutable and unique identifier for
  57890. a task attempt. Each task attempt is one particular instance of a Map or
  57891. Reduce Task identified by its TaskID.
  57892. TaskAttemptID consists of 2 parts. First part is the
  57893. {@link TaskID}, that this TaskAttemptID belongs to.
  57894. Second part is the task attempt number. <br>
  57895. An example TaskAttemptID is :
  57896. <code>attempt_200707121733_0003_m_000005_0</code> , which represents the
  57897. zeroth task attempt for the fifth map task in the third job
  57898. running at the jobtracker started at <code>200707121733</code>.
  57899. <p>
  57900. Applications should never construct or parse TaskAttemptID strings
  57901. , but rather use appropriate constructors or {@link #forName(String)}
  57902. method.
  57903. @see JobID
  57904. @see TaskID]]>
  57905. </doc>
  57906. </class>
  57907. <!-- end class org.apache.hadoop.mapred.TaskAttemptID -->
  57908. <!-- start class org.apache.hadoop.mapred.TaskCompletionEvent -->
  57909. <class name="TaskCompletionEvent" extends="java.lang.Object"
  57910. abstract="false"
  57911. static="false" final="false" visibility="public"
  57912. deprecated="not deprecated">
  57913. <implements name="org.apache.hadoop.io.Writable"/>
  57914. <constructor name="TaskCompletionEvent"
  57915. static="false" final="false" visibility="public"
  57916. deprecated="not deprecated">
  57917. <doc>
  57918. <![CDATA[Default constructor for Writable.]]>
  57919. </doc>
  57920. </constructor>
  57921. <constructor name="TaskCompletionEvent" type="int, org.apache.hadoop.mapred.TaskAttemptID, int, boolean, org.apache.hadoop.mapred.TaskCompletionEvent.Status, java.lang.String"
  57922. static="false" final="false" visibility="public"
  57923. deprecated="not deprecated">
  57924. <doc>
  57925. <![CDATA[Constructor. eventId should be created externally and incremented
  57926. per event for each job.
  57927. @param eventId event id, event id should be unique and assigned in
  57928. incrementally, starting from 0.
  57929. @param taskId task id
  57930. @param status task's status
  57931. @param taskTrackerHttp task tracker's host:port for http.]]>
  57932. </doc>
  57933. </constructor>
  57934. <method name="getEventId" return="int"
  57935. abstract="false" native="false" synchronized="false"
  57936. static="false" final="false" visibility="public"
  57937. deprecated="not deprecated">
  57938. <doc>
  57939. <![CDATA[Returns event Id.
  57940. @return event id]]>
  57941. </doc>
  57942. </method>
  57943. <method name="getTaskId" return="java.lang.String"
  57944. abstract="false" native="false" synchronized="false"
  57945. static="false" final="false" visibility="public"
  57946. deprecated="use {@link #getTaskAttemptId()} instead.">
  57947. <doc>
  57948. <![CDATA[Returns task id.
  57949. @return task id
  57950. @deprecated use {@link #getTaskAttemptId()} instead.]]>
  57951. </doc>
  57952. </method>
  57953. <method name="getTaskAttemptId" return="org.apache.hadoop.mapred.TaskAttemptID"
  57954. abstract="false" native="false" synchronized="false"
  57955. static="false" final="false" visibility="public"
  57956. deprecated="not deprecated">
  57957. <doc>
  57958. <![CDATA[Returns task id.
  57959. @return task id]]>
  57960. </doc>
  57961. </method>
  57962. <method name="getTaskStatus" return="org.apache.hadoop.mapred.TaskCompletionEvent.Status"
  57963. abstract="false" native="false" synchronized="false"
  57964. static="false" final="false" visibility="public"
  57965. deprecated="not deprecated">
  57966. <doc>
  57967. <![CDATA[Returns enum Status.SUCESS or Status.FAILURE.
  57968. @return task tracker status]]>
  57969. </doc>
  57970. </method>
  57971. <method name="getTaskTrackerHttp" return="java.lang.String"
  57972. abstract="false" native="false" synchronized="false"
  57973. static="false" final="false" visibility="public"
  57974. deprecated="not deprecated">
  57975. <doc>
  57976. <![CDATA[http location of the tasktracker where this task ran.
  57977. @return http location of tasktracker user logs]]>
  57978. </doc>
  57979. </method>
  57980. <method name="getTaskRunTime" return="int"
  57981. abstract="false" native="false" synchronized="false"
  57982. static="false" final="false" visibility="public"
  57983. deprecated="not deprecated">
  57984. <doc>
  57985. <![CDATA[Returns time (in millisec) the task took to complete.]]>
  57986. </doc>
  57987. </method>
  57988. <method name="setTaskRunTime"
  57989. abstract="false" native="false" synchronized="false"
  57990. static="false" final="false" visibility="public"
  57991. deprecated="not deprecated">
  57992. <param name="taskCompletionTime" type="int"/>
  57993. <doc>
  57994. <![CDATA[Set the task completion time
  57995. @param taskCompletionTime time (in millisec) the task took to complete]]>
  57996. </doc>
  57997. </method>
  57998. <method name="setEventId"
  57999. abstract="false" native="false" synchronized="false"
  58000. static="false" final="false" visibility="public"
  58001. deprecated="not deprecated">
  58002. <param name="eventId" type="int"/>
  58003. <doc>
  58004. <![CDATA[set event Id. should be assigned incrementally starting from 0.
  58005. @param eventId]]>
  58006. </doc>
  58007. </method>
  58008. <method name="setTaskId"
  58009. abstract="false" native="false" synchronized="false"
  58010. static="false" final="false" visibility="public"
  58011. deprecated="use {@link #setTaskID(TaskAttemptID)} instead.">
  58012. <param name="taskId" type="java.lang.String"/>
  58013. <doc>
  58014. <![CDATA[Sets task id.
  58015. @param taskId
  58016. @deprecated use {@link #setTaskID(TaskAttemptID)} instead.]]>
  58017. </doc>
  58018. </method>
  58019. <method name="setTaskID"
  58020. abstract="false" native="false" synchronized="false"
  58021. static="false" final="false" visibility="public"
  58022. deprecated="not deprecated">
  58023. <param name="taskId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  58024. <doc>
  58025. <![CDATA[Sets task id.
  58026. @param taskId]]>
  58027. </doc>
  58028. </method>
  58029. <method name="setTaskStatus"
  58030. abstract="false" native="false" synchronized="false"
  58031. static="false" final="false" visibility="public"
  58032. deprecated="not deprecated">
  58033. <param name="status" type="org.apache.hadoop.mapred.TaskCompletionEvent.Status"/>
  58034. <doc>
  58035. <![CDATA[Set task status.
  58036. @param status]]>
  58037. </doc>
  58038. </method>
  58039. <method name="setTaskTrackerHttp"
  58040. abstract="false" native="false" synchronized="false"
  58041. static="false" final="false" visibility="public"
  58042. deprecated="not deprecated">
  58043. <param name="taskTrackerHttp" type="java.lang.String"/>
  58044. <doc>
  58045. <![CDATA[Set task tracker http location.
  58046. @param taskTrackerHttp]]>
  58047. </doc>
  58048. </method>
  58049. <method name="toString" return="java.lang.String"
  58050. abstract="false" native="false" synchronized="false"
  58051. static="false" final="false" visibility="public"
  58052. deprecated="not deprecated">
  58053. </method>
  58054. <method name="equals" return="boolean"
  58055. abstract="false" native="false" synchronized="false"
  58056. static="false" final="false" visibility="public"
  58057. deprecated="not deprecated">
  58058. <param name="o" type="java.lang.Object"/>
  58059. </method>
  58060. <method name="hashCode" return="int"
  58061. abstract="false" native="false" synchronized="false"
  58062. static="false" final="false" visibility="public"
  58063. deprecated="not deprecated">
  58064. </method>
  58065. <method name="isMapTask" return="boolean"
  58066. abstract="false" native="false" synchronized="false"
  58067. static="false" final="false" visibility="public"
  58068. deprecated="not deprecated">
  58069. </method>
  58070. <method name="idWithinJob" return="int"
  58071. abstract="false" native="false" synchronized="false"
  58072. static="false" final="false" visibility="public"
  58073. deprecated="not deprecated">
  58074. </method>
  58075. <method name="write"
  58076. abstract="false" native="false" synchronized="false"
  58077. static="false" final="false" visibility="public"
  58078. deprecated="not deprecated">
  58079. <param name="out" type="java.io.DataOutput"/>
  58080. <exception name="IOException" type="java.io.IOException"/>
  58081. </method>
  58082. <method name="readFields"
  58083. abstract="false" native="false" synchronized="false"
  58084. static="false" final="false" visibility="public"
  58085. deprecated="not deprecated">
  58086. <param name="in" type="java.io.DataInput"/>
  58087. <exception name="IOException" type="java.io.IOException"/>
  58088. </method>
  58089. <field name="EMPTY_ARRAY" type="org.apache.hadoop.mapred.TaskCompletionEvent[]"
  58090. transient="false" volatile="false"
  58091. static="true" final="true" visibility="public"
  58092. deprecated="not deprecated">
  58093. </field>
  58094. <doc>
  58095. <![CDATA[This is used to track task completion events on
  58096. job tracker.]]>
  58097. </doc>
  58098. </class>
  58099. <!-- end class org.apache.hadoop.mapred.TaskCompletionEvent -->
  58100. <!-- start class org.apache.hadoop.mapred.TaskCompletionEvent.Status -->
  58101. <class name="TaskCompletionEvent.Status" extends="java.lang.Enum"
  58102. abstract="false"
  58103. static="true" final="true" visibility="public"
  58104. deprecated="not deprecated">
  58105. <method name="values" return="org.apache.hadoop.mapred.TaskCompletionEvent.Status[]"
  58106. abstract="false" native="false" synchronized="false"
  58107. static="true" final="false" visibility="public"
  58108. deprecated="not deprecated">
  58109. </method>
  58110. <method name="valueOf" return="org.apache.hadoop.mapred.TaskCompletionEvent.Status"
  58111. abstract="false" native="false" synchronized="false"
  58112. static="true" final="false" visibility="public"
  58113. deprecated="not deprecated">
  58114. <param name="name" type="java.lang.String"/>
  58115. </method>
  58116. <field name="FAILED" type="org.apache.hadoop.mapred.TaskCompletionEvent.Status"
  58117. transient="false" volatile="false"
  58118. static="true" final="true" visibility="public"
  58119. deprecated="not deprecated">
  58120. </field>
  58121. <field name="KILLED" type="org.apache.hadoop.mapred.TaskCompletionEvent.Status"
  58122. transient="false" volatile="false"
  58123. static="true" final="true" visibility="public"
  58124. deprecated="not deprecated">
  58125. </field>
  58126. <field name="SUCCEEDED" type="org.apache.hadoop.mapred.TaskCompletionEvent.Status"
  58127. transient="false" volatile="false"
  58128. static="true" final="true" visibility="public"
  58129. deprecated="not deprecated">
  58130. </field>
  58131. <field name="OBSOLETE" type="org.apache.hadoop.mapred.TaskCompletionEvent.Status"
  58132. transient="false" volatile="false"
  58133. static="true" final="true" visibility="public"
  58134. deprecated="not deprecated">
  58135. </field>
  58136. <field name="TIPFAILED" type="org.apache.hadoop.mapred.TaskCompletionEvent.Status"
  58137. transient="false" volatile="false"
  58138. static="true" final="true" visibility="public"
  58139. deprecated="not deprecated">
  58140. </field>
  58141. </class>
  58142. <!-- end class org.apache.hadoop.mapred.TaskCompletionEvent.Status -->
  58143. <!-- start class org.apache.hadoop.mapred.TaskController -->
  58144. <class name="TaskController" extends="java.lang.Object"
  58145. abstract="true"
  58146. static="false" final="false" visibility="public"
  58147. deprecated="not deprecated">
  58148. <implements name="org.apache.hadoop.conf.Configurable"/>
  58149. <constructor name="TaskController"
  58150. static="false" final="false" visibility="public"
  58151. deprecated="not deprecated">
  58152. </constructor>
  58153. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  58154. abstract="false" native="false" synchronized="false"
  58155. static="false" final="false" visibility="public"
  58156. deprecated="not deprecated">
  58157. </method>
  58158. <method name="getLocalDirs" return="java.lang.String[]"
  58159. abstract="false" native="false" synchronized="false"
  58160. static="false" final="false" visibility="public"
  58161. deprecated="not deprecated">
  58162. </method>
  58163. <method name="setConf"
  58164. abstract="false" native="false" synchronized="false"
  58165. static="false" final="false" visibility="public"
  58166. deprecated="not deprecated">
  58167. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  58168. </method>
  58169. <method name="setup"
  58170. abstract="true" native="false" synchronized="false"
  58171. static="false" final="false" visibility="public"
  58172. deprecated="not deprecated">
  58173. <param name="allocator" type="org.apache.hadoop.fs.LocalDirAllocator"/>
  58174. <param name="localStorage" type="org.apache.hadoop.mapred.TaskTracker.LocalStorage"/>
  58175. <exception name="IOException" type="java.io.IOException"/>
  58176. <doc>
  58177. <![CDATA[Does initialization and setup.
  58178. @param allocator the local dir allocator to use
  58179. @param localStorage local storage to obtain dirs from]]>
  58180. </doc>
  58181. </method>
  58182. <method name="initializeJob"
  58183. abstract="true" native="false" synchronized="false"
  58184. static="false" final="false" visibility="public"
  58185. deprecated="not deprecated">
  58186. <param name="user" type="java.lang.String"/>
  58187. <param name="jobid" type="java.lang.String"/>
  58188. <param name="credentials" type="org.apache.hadoop.fs.Path"/>
  58189. <param name="jobConf" type="org.apache.hadoop.fs.Path"/>
  58190. <param name="taskTracker" type="org.apache.hadoop.mapred.TaskUmbilicalProtocol"/>
  58191. <param name="ttAddr" type="java.net.InetSocketAddress"/>
  58192. <exception name="IOException" type="java.io.IOException"/>
  58193. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  58194. <doc>
  58195. <![CDATA[Create all of the directories necessary for the job to start and download
  58196. all of the job and private distributed cache files.
  58197. Creates both the user directories and the job log directory.
  58198. @param user the user name
  58199. @param jobid the job
  58200. @param credentials a filename containing the job secrets
  58201. @param jobConf the path to the localized configuration file
  58202. @param taskTracker the connection the task tracker
  58203. @param ttAddr the tasktracker's RPC address
  58204. @throws IOException
  58205. @throws InterruptedException]]>
  58206. </doc>
  58207. </method>
  58208. <method name="launchTask" return="int"
  58209. abstract="true" native="false" synchronized="false"
  58210. static="false" final="false" visibility="public"
  58211. deprecated="not deprecated">
  58212. <param name="user" type="java.lang.String"/>
  58213. <param name="jobId" type="java.lang.String"/>
  58214. <param name="attemptId" type="java.lang.String"/>
  58215. <param name="setup" type="java.util.List"/>
  58216. <param name="jvmArguments" type="java.util.List"/>
  58217. <param name="currentWorkDirectory" type="java.io.File"/>
  58218. <param name="stdout" type="java.lang.String"/>
  58219. <param name="stderr" type="java.lang.String"/>
  58220. <exception name="IOException" type="java.io.IOException"/>
  58221. <doc>
  58222. <![CDATA[Create all of the directories for the task and launches the child jvm.
  58223. @param user the user name
  58224. @param jobId the jobId in question
  58225. @param attemptId the attempt id (cleanup attempts have .cleanup suffix)
  58226. @param setup list of shell commands to execute before the jvm
  58227. @param jvmArguments list of jvm arguments
  58228. @param currentWorkDirectory the full path of the cwd for the task
  58229. @param stdout the file to redirect stdout to
  58230. @param stderr the file to redirect stderr to
  58231. @return the exit code for the task
  58232. @throws IOException]]>
  58233. </doc>
  58234. </method>
  58235. <method name="signalTask"
  58236. abstract="true" native="false" synchronized="false"
  58237. static="false" final="false" visibility="public"
  58238. deprecated="not deprecated">
  58239. <param name="user" type="java.lang.String"/>
  58240. <param name="taskPid" type="int"/>
  58241. <param name="signal" type="org.apache.hadoop.util.ProcessTree.Signal"/>
  58242. <exception name="IOException" type="java.io.IOException"/>
  58243. <doc>
  58244. <![CDATA[Send a signal to a task pid as the user.
  58245. @param user the user name
  58246. @param taskPid the pid of the task
  58247. @param signal the id of the signal to send]]>
  58248. </doc>
  58249. </method>
  58250. <method name="deleteAsUser"
  58251. abstract="true" native="false" synchronized="false"
  58252. static="false" final="false" visibility="public"
  58253. deprecated="not deprecated">
  58254. <param name="user" type="java.lang.String"/>
  58255. <param name="subDir" type="java.lang.String"/>
  58256. <exception name="IOException" type="java.io.IOException"/>
  58257. <doc>
  58258. <![CDATA[Delete the user's files under all of the task tracker root directories.
  58259. @param user the user name
  58260. @param subDir the path relative to the user's subdirectory under
  58261. the task tracker root directories.
  58262. @throws IOException]]>
  58263. </doc>
  58264. </method>
  58265. <method name="createLogDir"
  58266. abstract="true" native="false" synchronized="false"
  58267. static="false" final="false" visibility="public"
  58268. deprecated="not deprecated">
  58269. <param name="taskID" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  58270. <param name="isCleanup" type="boolean"/>
  58271. <exception name="IOException" type="java.io.IOException"/>
  58272. <doc>
  58273. <![CDATA[Creates task log dir
  58274. @param taskID ID of the task
  58275. @param isCleanup If the task is cleanup task or not
  58276. @throws IOException]]>
  58277. </doc>
  58278. </method>
  58279. <method name="deleteLogAsUser"
  58280. abstract="true" native="false" synchronized="false"
  58281. static="false" final="false" visibility="public"
  58282. deprecated="not deprecated">
  58283. <param name="user" type="java.lang.String"/>
  58284. <param name="subDir" type="java.lang.String"/>
  58285. <exception name="IOException" type="java.io.IOException"/>
  58286. <doc>
  58287. <![CDATA[Delete the user's files under the userlogs directory.
  58288. @param user the user to work as
  58289. @param subDir the path under the userlogs directory.
  58290. @throws IOException]]>
  58291. </doc>
  58292. </method>
  58293. <method name="truncateLogsAsUser"
  58294. abstract="true" native="false" synchronized="false"
  58295. static="false" final="false" visibility="public"
  58296. deprecated="not deprecated">
  58297. <param name="user" type="java.lang.String"/>
  58298. <param name="allAttempts" type="java.util.List"/>
  58299. <exception name="IOException" type="java.io.IOException"/>
  58300. <doc>
  58301. <![CDATA[Run the passed command as the user
  58302. @param user
  58303. @param allAttempts the list of attempts that the JVM ran
  58304. @throws IOException]]>
  58305. </doc>
  58306. </method>
  58307. <method name="getRunAsUser" return="java.lang.String"
  58308. abstract="false" native="false" synchronized="false"
  58309. static="false" final="false" visibility="public"
  58310. deprecated="not deprecated">
  58311. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  58312. <doc>
  58313. <![CDATA[Returns the local unix user that a given job will run as.]]>
  58314. </doc>
  58315. </method>
  58316. <method name="writeCommand" return="java.lang.String"
  58317. abstract="false" native="false" synchronized="false"
  58318. static="true" final="false" visibility="protected"
  58319. deprecated="not deprecated">
  58320. <param name="cmdLine" type="java.lang.String"/>
  58321. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  58322. <param name="commandFile" type="org.apache.hadoop.fs.Path"/>
  58323. <exception name="IOException" type="java.io.IOException"/>
  58324. </method>
  58325. <method name="logOutput"
  58326. abstract="false" native="false" synchronized="false"
  58327. static="false" final="false" visibility="protected"
  58328. deprecated="not deprecated">
  58329. <param name="output" type="java.lang.String"/>
  58330. </method>
  58331. <field name="LOG" type="org.apache.commons.logging.Log"
  58332. transient="false" volatile="false"
  58333. static="true" final="true" visibility="public"
  58334. deprecated="not deprecated">
  58335. </field>
  58336. <field name="COMMAND_FILE" type="java.lang.String"
  58337. transient="false" volatile="false"
  58338. static="true" final="true" visibility="protected"
  58339. deprecated="not deprecated">
  58340. </field>
  58341. <field name="allocator" type="org.apache.hadoop.fs.LocalDirAllocator"
  58342. transient="false" volatile="false"
  58343. static="false" final="false" visibility="protected"
  58344. deprecated="not deprecated">
  58345. </field>
  58346. <field name="localStorage" type="org.apache.hadoop.mapred.TaskTracker.LocalStorage"
  58347. transient="false" volatile="false"
  58348. static="false" final="false" visibility="protected"
  58349. deprecated="not deprecated">
  58350. </field>
  58351. <field name="TASK_LAUNCH_SCRIPT_PERMISSION" type="org.apache.hadoop.fs.permission.FsPermission"
  58352. transient="false" volatile="false"
  58353. static="true" final="true" visibility="public"
  58354. deprecated="not deprecated">
  58355. </field>
  58356. <doc>
  58357. <![CDATA[Controls initialization, finalization and clean up of tasks, and
  58358. also the launching and killing of task JVMs.
  58359. This class defines the API for initializing, finalizing and cleaning
  58360. up of tasks, as also the launching and killing task JVMs.
  58361. Subclasses of this class will implement the logic required for
  58362. performing the actual actions.
  58363. <br/>
  58364. NOTE: This class is internal only class and not intended for users!!]]>
  58365. </doc>
  58366. </class>
  58367. <!-- end class org.apache.hadoop.mapred.TaskController -->
  58368. <!-- start class org.apache.hadoop.mapred.TaskGraphServlet -->
  58369. <class name="TaskGraphServlet" extends="javax.servlet.http.HttpServlet"
  58370. abstract="false"
  58371. static="false" final="false" visibility="public"
  58372. deprecated="not deprecated">
  58373. <constructor name="TaskGraphServlet"
  58374. static="false" final="false" visibility="public"
  58375. deprecated="not deprecated">
  58376. </constructor>
  58377. <method name="doGet"
  58378. abstract="false" native="false" synchronized="false"
  58379. static="false" final="false" visibility="public"
  58380. deprecated="not deprecated">
  58381. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  58382. <param name="response" type="javax.servlet.http.HttpServletResponse"/>
  58383. <exception name="ServletException" type="javax.servlet.ServletException"/>
  58384. <exception name="IOException" type="java.io.IOException"/>
  58385. </method>
  58386. <field name="width" type="int"
  58387. transient="false" volatile="false"
  58388. static="true" final="true" visibility="public"
  58389. deprecated="not deprecated">
  58390. <doc>
  58391. <![CDATA[height of the graph w/o margins]]>
  58392. </doc>
  58393. </field>
  58394. <field name="height" type="int"
  58395. transient="false" volatile="false"
  58396. static="true" final="true" visibility="public"
  58397. deprecated="not deprecated">
  58398. <doc>
  58399. <![CDATA[height of the graph w/o margins]]>
  58400. </doc>
  58401. </field>
  58402. <field name="ymargin" type="int"
  58403. transient="false" volatile="false"
  58404. static="true" final="true" visibility="public"
  58405. deprecated="not deprecated">
  58406. <doc>
  58407. <![CDATA[margin space on y axis]]>
  58408. </doc>
  58409. </field>
  58410. <field name="xmargin" type="int"
  58411. transient="false" volatile="false"
  58412. static="true" final="true" visibility="public"
  58413. deprecated="not deprecated">
  58414. <doc>
  58415. <![CDATA[margin space on x axis]]>
  58416. </doc>
  58417. </field>
  58418. <doc>
  58419. <![CDATA[The servlet that outputs svg graphics for map / reduce task
  58420. statuses]]>
  58421. </doc>
  58422. </class>
  58423. <!-- end class org.apache.hadoop.mapred.TaskGraphServlet -->
  58424. <!-- start class org.apache.hadoop.mapred.TaskID -->
  58425. <class name="TaskID" extends="org.apache.hadoop.mapreduce.TaskID"
  58426. abstract="false"
  58427. static="false" final="false" visibility="public"
  58428. deprecated="not deprecated">
  58429. <constructor name="TaskID" type="org.apache.hadoop.mapreduce.JobID, boolean, int"
  58430. static="false" final="false" visibility="public"
  58431. deprecated="not deprecated">
  58432. <doc>
  58433. <![CDATA[Constructs a TaskID object from given {@link JobID}.
  58434. @param jobId JobID that this tip belongs to
  58435. @param isMap whether the tip is a map
  58436. @param id the tip number]]>
  58437. </doc>
  58438. </constructor>
  58439. <constructor name="TaskID" type="java.lang.String, int, boolean, int"
  58440. static="false" final="false" visibility="public"
  58441. deprecated="not deprecated">
  58442. <doc>
  58443. <![CDATA[Constructs a TaskInProgressId object from given parts.
  58444. @param jtIdentifier jobTracker identifier
  58445. @param jobId job number
  58446. @param isMap whether the tip is a map
  58447. @param id the tip number]]>
  58448. </doc>
  58449. </constructor>
  58450. <constructor name="TaskID"
  58451. static="false" final="false" visibility="public"
  58452. deprecated="not deprecated">
  58453. </constructor>
  58454. <method name="downgrade" return="org.apache.hadoop.mapred.TaskID"
  58455. abstract="false" native="false" synchronized="false"
  58456. static="true" final="false" visibility="public"
  58457. deprecated="not deprecated">
  58458. <param name="old" type="org.apache.hadoop.mapreduce.TaskID"/>
  58459. <doc>
  58460. <![CDATA[Downgrade a new TaskID to an old one
  58461. @param old a new or old TaskID
  58462. @return either old or a new TaskID build to match old]]>
  58463. </doc>
  58464. </method>
  58465. <method name="read" return="org.apache.hadoop.mapred.TaskID"
  58466. abstract="false" native="false" synchronized="false"
  58467. static="true" final="false" visibility="public"
  58468. deprecated="not deprecated">
  58469. <param name="in" type="java.io.DataInput"/>
  58470. <exception name="IOException" type="java.io.IOException"/>
  58471. </method>
  58472. <method name="getJobID" return="org.apache.hadoop.mapred.JobID"
  58473. abstract="false" native="false" synchronized="false"
  58474. static="false" final="false" visibility="public"
  58475. deprecated="not deprecated">
  58476. </method>
  58477. <method name="getTaskIDsPattern" return="java.lang.String"
  58478. abstract="false" native="false" synchronized="false"
  58479. static="true" final="false" visibility="public"
  58480. deprecated="not deprecated">
  58481. <param name="jtIdentifier" type="java.lang.String"/>
  58482. <param name="jobId" type="java.lang.Integer"/>
  58483. <param name="isMap" type="java.lang.Boolean"/>
  58484. <param name="taskId" type="java.lang.Integer"/>
  58485. <doc>
  58486. <![CDATA[Returns a regex pattern which matches task IDs. Arguments can
  58487. be given null, in which case that part of the regex will be generic.
  58488. For example to obtain a regex matching <i>the first map task</i>
  58489. of <i>any jobtracker</i>, of <i>any job</i>, we would use :
  58490. <pre>
  58491. TaskID.getTaskIDsPattern(null, null, true, 1);
  58492. </pre>
  58493. which will return :
  58494. <pre> "task_[^_]*_[0-9]*_m_000001*" </pre>
  58495. @param jtIdentifier jobTracker identifier, or null
  58496. @param jobId job number, or null
  58497. @param isMap whether the tip is a map, or null
  58498. @param taskId taskId number, or null
  58499. @return a regex pattern matching TaskIDs]]>
  58500. </doc>
  58501. </method>
  58502. <method name="forName" return="org.apache.hadoop.mapred.TaskID"
  58503. abstract="false" native="false" synchronized="false"
  58504. static="true" final="false" visibility="public"
  58505. deprecated="not deprecated">
  58506. <param name="str" type="java.lang.String"/>
  58507. <exception name="IllegalArgumentException" type="java.lang.IllegalArgumentException"/>
  58508. </method>
  58509. <doc>
  58510. <![CDATA[TaskID represents the immutable and unique identifier for
  58511. a Map or Reduce Task. Each TaskID encompasses multiple attempts made to
  58512. execute the Map or Reduce Task, each of which are uniquely indentified by
  58513. their TaskAttemptID.
  58514. TaskID consists of 3 parts. First part is the {@link JobID}, that this
  58515. TaskInProgress belongs to. Second part of the TaskID is either 'm' or 'r'
  58516. representing whether the task is a map task or a reduce task.
  58517. And the third part is the task number. <br>
  58518. An example TaskID is :
  58519. <code>task_200707121733_0003_m_000005</code> , which represents the
  58520. fifth map task in the third job running at the jobtracker
  58521. started at <code>200707121733</code>.
  58522. <p>
  58523. Applications should never construct or parse TaskID strings
  58524. , but rather use appropriate constructors or {@link #forName(String)}
  58525. method.
  58526. @see JobID
  58527. @see TaskAttemptID]]>
  58528. </doc>
  58529. </class>
  58530. <!-- end class org.apache.hadoop.mapred.TaskID -->
  58531. <!-- start class org.apache.hadoop.mapred.TaskLog -->
  58532. <class name="TaskLog" extends="java.lang.Object"
  58533. abstract="false"
  58534. static="false" final="false" visibility="public"
  58535. deprecated="not deprecated">
  58536. <constructor name="TaskLog"
  58537. static="false" final="false" visibility="public"
  58538. deprecated="not deprecated">
  58539. </constructor>
  58540. <method name="createTaskAttemptLogDir"
  58541. abstract="false" native="false" synchronized="false"
  58542. static="true" final="false" visibility="public"
  58543. deprecated="not deprecated">
  58544. <param name="taskID" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  58545. <param name="isCleanup" type="boolean"/>
  58546. <param name="localDirs" type="java.lang.String[]"/>
  58547. <exception name="IOException" type="java.io.IOException"/>
  58548. <doc>
  58549. <![CDATA[Create log directory for the given attempt. This involves creating the
  58550. following and setting proper permissions for the new directories
  58551. <br>{hadoop.log.dir}/userlogs/<jobid>
  58552. <br>{hadoop.log.dir}/userlogs/<jobid>/<attempt-id-as-symlink>
  58553. <br>{one of the mapred-local-dirs}/userlogs/<jobid>
  58554. <br>{one of the mapred-local-dirs}/userlogs/<jobid>/<attempt-id>
  58555. @param taskID attempt-id for which log dir is to be created
  58556. @param isCleanup Is this attempt a cleanup attempt ?
  58557. @param localDirs mapred local directories
  58558. @throws IOException]]>
  58559. </doc>
  58560. </method>
  58561. <method name="getTaskAttemptLogDir" return="java.lang.String"
  58562. abstract="false" native="false" synchronized="false"
  58563. static="true" final="false" visibility="public"
  58564. deprecated="not deprecated">
  58565. <param name="taskID" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  58566. <param name="cleanupSuffix" type="java.lang.String"/>
  58567. <param name="localDirs" type="java.lang.String[]"/>
  58568. <exception name="IOException" type="java.io.IOException"/>
  58569. <doc>
  58570. <![CDATA[Get attempt log directory path for the given attempt-id under randomly
  58571. selected mapred local directory.
  58572. @param taskID attempt-id for which log dir path is needed
  58573. @param cleanupSuffix ".cleanup" if this attempt is a cleanup attempt
  58574. @param localDirs mapred local directories
  58575. @return target task attempt log directory
  58576. @throws IOException]]>
  58577. </doc>
  58578. </method>
  58579. <method name="getTaskLogFile" return="java.io.File"
  58580. abstract="false" native="false" synchronized="false"
  58581. static="true" final="false" visibility="public"
  58582. deprecated="not deprecated">
  58583. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  58584. <param name="isCleanup" type="boolean"/>
  58585. <param name="filter" type="org.apache.hadoop.mapred.TaskLog.LogName"/>
  58586. </method>
  58587. <method name="getBaseLogDir" return="java.lang.String"
  58588. abstract="false" native="false" synchronized="false"
  58589. static="true" final="false" visibility="public"
  58590. deprecated="not deprecated">
  58591. </method>
  58592. <method name="syncLogs"
  58593. abstract="false" native="false" synchronized="true"
  58594. static="true" final="false" visibility="public"
  58595. deprecated="not deprecated">
  58596. <param name="logLocation" type="java.lang.String"/>
  58597. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  58598. <param name="isCleanup" type="boolean"/>
  58599. <param name="segmented" type="boolean"/>
  58600. <exception name="IOException" type="java.io.IOException"/>
  58601. </method>
  58602. <method name="getTaskLogLength" return="long"
  58603. abstract="false" native="false" synchronized="false"
  58604. static="true" final="false" visibility="public"
  58605. deprecated="not deprecated">
  58606. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  58607. <doc>
  58608. <![CDATA[Get the desired maximum length of task's logs.
  58609. @param conf the job to look in
  58610. @return the number of bytes to cap the log files at]]>
  58611. </doc>
  58612. </method>
  58613. <method name="captureOutAndError" return="java.util.List"
  58614. abstract="false" native="false" synchronized="false"
  58615. static="true" final="false" visibility="public"
  58616. deprecated="not deprecated">
  58617. <param name="cmd" type="java.util.List"/>
  58618. <param name="stdoutFilename" type="java.io.File"/>
  58619. <param name="stderrFilename" type="java.io.File"/>
  58620. <param name="tailLength" type="long"/>
  58621. <exception name="IOException" type="java.io.IOException"/>
  58622. <doc>
  58623. <![CDATA[Wrap a command in a shell to capture stdout and stderr to files.
  58624. If the tailLength is 0, the entire output will be saved.
  58625. @param cmd The command and the arguments that should be run
  58626. @param stdoutFilename The filename that stdout should be saved to
  58627. @param stderrFilename The filename that stderr should be saved to
  58628. @param tailLength The length of the tail to be saved.
  58629. @return the modified command that should be run]]>
  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="setup" type="java.util.List"/>
  58637. <param name="cmd" type="java.util.List"/>
  58638. <param name="stdoutFilename" type="java.io.File"/>
  58639. <param name="stderrFilename" type="java.io.File"/>
  58640. <param name="tailLength" type="long"/>
  58641. <exception name="IOException" type="java.io.IOException"/>
  58642. <doc>
  58643. <![CDATA[Wrap a command in a shell to capture stdout and stderr to files.
  58644. Setup commands such as setting memory limit can be passed which
  58645. will be executed before exec.
  58646. If the tailLength is 0, the entire output will be saved.
  58647. @param setup The setup commands for the execed process.
  58648. @param cmd The command and the arguments that should be run
  58649. @param stdoutFilename The filename that stdout should be saved to
  58650. @param stderrFilename The filename that stderr should be saved to
  58651. @param tailLength The length of the tail to be saved.
  58652. @return the modified command that should be run]]>
  58653. </doc>
  58654. </method>
  58655. <method name="captureOutAndError" return="java.util.List"
  58656. abstract="false" native="false" synchronized="false"
  58657. static="true" final="false" visibility="public"
  58658. deprecated="pidFiles are no more used. Instead pid is exported to
  58659. env variable JVM_PID.">
  58660. <param name="setup" type="java.util.List"/>
  58661. <param name="cmd" type="java.util.List"/>
  58662. <param name="stdoutFilename" type="java.io.File"/>
  58663. <param name="stderrFilename" type="java.io.File"/>
  58664. <param name="tailLength" type="long"/>
  58665. <param name="pidFileName" type="java.lang.String"/>
  58666. <exception name="IOException" type="java.io.IOException"/>
  58667. <doc>
  58668. <![CDATA[Wrap a command in a shell to capture stdout and stderr to files.
  58669. Setup commands such as setting memory limit can be passed which
  58670. will be executed before exec.
  58671. If the tailLength is 0, the entire output will be saved.
  58672. @param setup The setup commands for the execed process.
  58673. @param cmd The command and the arguments that should be run
  58674. @param stdoutFilename The filename that stdout should be saved to
  58675. @param stderrFilename The filename that stderr should be saved to
  58676. @param tailLength The length of the tail to be saved.
  58677. @deprecated pidFiles are no more used. Instead pid is exported to
  58678. env variable JVM_PID.
  58679. @return the modified command that should be run]]>
  58680. </doc>
  58681. </method>
  58682. <method name="captureOutAndError" return="java.util.List"
  58683. abstract="false" native="false" synchronized="false"
  58684. static="true" final="false" visibility="public"
  58685. deprecated="pidFiles are no more used. Instead pid is exported to
  58686. env variable JVM_PID.">
  58687. <param name="setup" type="java.util.List"/>
  58688. <param name="cmd" type="java.util.List"/>
  58689. <param name="stdoutFilename" type="java.io.File"/>
  58690. <param name="stderrFilename" type="java.io.File"/>
  58691. <param name="tailLength" type="long"/>
  58692. <param name="useSetsid" type="boolean"/>
  58693. <param name="pidFileName" type="java.lang.String"/>
  58694. <exception name="IOException" type="java.io.IOException"/>
  58695. <doc>
  58696. <![CDATA[Wrap a command in a shell to capture stdout and stderr to files.
  58697. Setup commands such as setting memory limit can be passed which
  58698. will be executed before exec.
  58699. If the tailLength is 0, the entire output will be saved.
  58700. @param setup The setup commands for the execed process.
  58701. @param cmd The command and the arguments that should be run
  58702. @param stdoutFilename The filename that stdout should be saved to
  58703. @param stderrFilename The filename that stderr should be saved to
  58704. @param tailLength The length of the tail to be saved.
  58705. @param useSetsid Should setsid be used in the command or not.
  58706. @deprecated pidFiles are no more used. Instead pid is exported to
  58707. env variable JVM_PID.
  58708. @return the modified command that should be run]]>
  58709. </doc>
  58710. </method>
  58711. <method name="captureOutAndError" return="java.util.List"
  58712. abstract="false" native="false" synchronized="false"
  58713. static="true" final="false" visibility="public"
  58714. deprecated="not deprecated">
  58715. <param name="setup" type="java.util.List"/>
  58716. <param name="cmd" type="java.util.List"/>
  58717. <param name="stdoutFilename" type="java.io.File"/>
  58718. <param name="stderrFilename" type="java.io.File"/>
  58719. <param name="tailLength" type="long"/>
  58720. <param name="useSetsid" type="boolean"/>
  58721. <exception name="IOException" type="java.io.IOException"/>
  58722. <doc>
  58723. <![CDATA[Wrap a command in a shell to capture stdout and stderr to files.
  58724. Setup commands such as setting memory limit can be passed which
  58725. will be executed before exec.
  58726. If the tailLength is 0, the entire output will be saved.
  58727. @param setup The setup commands for the execed process.
  58728. @param cmd The command and the arguments that should be run
  58729. @param stdoutFilename The filename that stdout should be saved to
  58730. @param stderrFilename The filename that stderr should be saved to
  58731. @param tailLength The length of the tail to be saved.
  58732. @param useSetsid Should setsid be used in the command or not.
  58733. @return the modified command that should be run]]>
  58734. </doc>
  58735. </method>
  58736. <method name="addCommand" return="java.lang.String"
  58737. abstract="false" native="false" synchronized="false"
  58738. static="true" final="false" visibility="public"
  58739. deprecated="not deprecated">
  58740. <param name="cmd" type="java.util.List"/>
  58741. <param name="isExecutable" type="boolean"/>
  58742. <exception name="IOException" type="java.io.IOException"/>
  58743. <doc>
  58744. <![CDATA[Add quotes to each of the command strings and
  58745. return as a single string
  58746. @param cmd The command to be quoted
  58747. @param isExecutable makes shell path if the first
  58748. argument is executable
  58749. @return returns The quoted string.
  58750. @throws IOException]]>
  58751. </doc>
  58752. </method>
  58753. <method name="captureDebugOut" return="java.util.List"
  58754. abstract="false" native="false" synchronized="false"
  58755. static="true" final="false" visibility="public"
  58756. deprecated="not deprecated">
  58757. <param name="cmd" type="java.util.List"/>
  58758. <param name="debugoutFilename" type="java.io.File"/>
  58759. <exception name="IOException" type="java.io.IOException"/>
  58760. <doc>
  58761. <![CDATA[Wrap a command in a shell to capture debug script's
  58762. stdout and stderr to debugout.
  58763. @param cmd The command and the arguments that should be run
  58764. @param debugoutFilename The filename that stdout and stderr
  58765. should be saved to.
  58766. @return the modified command that should be run
  58767. @throws IOException]]>
  58768. </doc>
  58769. </method>
  58770. <method name="getUserLogDir" return="java.io.File"
  58771. abstract="false" native="false" synchronized="false"
  58772. static="true" final="false" visibility="public"
  58773. deprecated="not deprecated">
  58774. </method>
  58775. <method name="getJobDir" return="java.io.File"
  58776. abstract="false" native="false" synchronized="false"
  58777. static="true" final="false" visibility="public"
  58778. deprecated="not deprecated">
  58779. <param name="jobid" type="java.lang.String"/>
  58780. <doc>
  58781. <![CDATA[Get the user log directory for the job jobid.
  58782. @param jobid string representation of the jobid
  58783. @return user log directory for the job]]>
  58784. </doc>
  58785. </method>
  58786. <method name="getJobDir" return="java.io.File"
  58787. abstract="false" native="false" synchronized="false"
  58788. static="true" final="false" visibility="public"
  58789. deprecated="not deprecated">
  58790. <param name="jobid" type="org.apache.hadoop.mapreduce.JobID"/>
  58791. <doc>
  58792. <![CDATA[Get the user log directory for the job jobid.
  58793. @param jobid the jobid object
  58794. @return user log directory for the job]]>
  58795. </doc>
  58796. </method>
  58797. <doc>
  58798. <![CDATA[A simple logger to handle the task-specific user logs.
  58799. This class uses the system property <code>hadoop.log.dir</code>.
  58800. This class is for Map/Reduce internal use only.]]>
  58801. </doc>
  58802. </class>
  58803. <!-- end class org.apache.hadoop.mapred.TaskLog -->
  58804. <!-- start class org.apache.hadoop.mapred.TaskLog.LogName -->
  58805. <class name="TaskLog.LogName" extends="java.lang.Enum"
  58806. abstract="false"
  58807. static="true" final="true" visibility="public"
  58808. deprecated="not deprecated">
  58809. <method name="values" return="org.apache.hadoop.mapred.TaskLog.LogName[]"
  58810. abstract="false" native="false" synchronized="false"
  58811. static="true" final="false" visibility="public"
  58812. deprecated="not deprecated">
  58813. </method>
  58814. <method name="valueOf" return="org.apache.hadoop.mapred.TaskLog.LogName"
  58815. abstract="false" native="false" synchronized="false"
  58816. static="true" final="false" visibility="public"
  58817. deprecated="not deprecated">
  58818. <param name="name" type="java.lang.String"/>
  58819. </method>
  58820. <method name="toString" return="java.lang.String"
  58821. abstract="false" native="false" synchronized="false"
  58822. static="false" final="false" visibility="public"
  58823. deprecated="not deprecated">
  58824. </method>
  58825. <field name="STDOUT" type="org.apache.hadoop.mapred.TaskLog.LogName"
  58826. transient="false" volatile="false"
  58827. static="true" final="true" visibility="public"
  58828. deprecated="not deprecated">
  58829. <doc>
  58830. <![CDATA[Log on the stdout of the task.]]>
  58831. </doc>
  58832. </field>
  58833. <field name="STDERR" type="org.apache.hadoop.mapred.TaskLog.LogName"
  58834. transient="false" volatile="false"
  58835. static="true" final="true" visibility="public"
  58836. deprecated="not deprecated">
  58837. <doc>
  58838. <![CDATA[Log on the stderr of the task.]]>
  58839. </doc>
  58840. </field>
  58841. <field name="SYSLOG" type="org.apache.hadoop.mapred.TaskLog.LogName"
  58842. transient="false" volatile="false"
  58843. static="true" final="true" visibility="public"
  58844. deprecated="not deprecated">
  58845. <doc>
  58846. <![CDATA[Log on the map-reduce system logs of the task.]]>
  58847. </doc>
  58848. </field>
  58849. <field name="PROFILE" type="org.apache.hadoop.mapred.TaskLog.LogName"
  58850. transient="false" volatile="false"
  58851. static="true" final="true" visibility="public"
  58852. deprecated="not deprecated">
  58853. <doc>
  58854. <![CDATA[The java profiler information.]]>
  58855. </doc>
  58856. </field>
  58857. <field name="DEBUGOUT" type="org.apache.hadoop.mapred.TaskLog.LogName"
  58858. transient="false" volatile="false"
  58859. static="true" final="true" visibility="public"
  58860. deprecated="not deprecated">
  58861. <doc>
  58862. <![CDATA[Log the debug script's stdout]]>
  58863. </doc>
  58864. </field>
  58865. <doc>
  58866. <![CDATA[The filter for userlogs.]]>
  58867. </doc>
  58868. </class>
  58869. <!-- end class org.apache.hadoop.mapred.TaskLog.LogName -->
  58870. <!-- start class org.apache.hadoop.mapred.TaskLogAppender -->
  58871. <class name="TaskLogAppender" extends="org.apache.log4j.FileAppender"
  58872. abstract="false"
  58873. static="false" final="false" visibility="public"
  58874. deprecated="not deprecated">
  58875. <constructor name="TaskLogAppender"
  58876. static="false" final="false" visibility="public"
  58877. deprecated="not deprecated">
  58878. </constructor>
  58879. <method name="activateOptions"
  58880. abstract="false" native="false" synchronized="false"
  58881. static="false" final="false" visibility="public"
  58882. deprecated="not deprecated">
  58883. </method>
  58884. <method name="append"
  58885. abstract="false" native="false" synchronized="false"
  58886. static="false" final="false" visibility="public"
  58887. deprecated="not deprecated">
  58888. <param name="event" type="org.apache.log4j.spi.LoggingEvent"/>
  58889. </method>
  58890. <method name="flush"
  58891. abstract="false" native="false" synchronized="false"
  58892. static="false" final="false" visibility="public"
  58893. deprecated="not deprecated">
  58894. </method>
  58895. <method name="close"
  58896. abstract="false" native="false" synchronized="true"
  58897. static="false" final="false" visibility="public"
  58898. deprecated="not deprecated">
  58899. </method>
  58900. <method name="getTaskId" return="java.lang.String"
  58901. abstract="false" native="false" synchronized="false"
  58902. static="false" final="false" visibility="public"
  58903. deprecated="not deprecated">
  58904. <doc>
  58905. <![CDATA[Getter/Setter methods for log4j.]]>
  58906. </doc>
  58907. </method>
  58908. <method name="setTaskId"
  58909. abstract="false" native="false" synchronized="false"
  58910. static="false" final="false" visibility="public"
  58911. deprecated="not deprecated">
  58912. <param name="taskId" type="java.lang.String"/>
  58913. </method>
  58914. <method name="getTotalLogFileSize" return="long"
  58915. abstract="false" native="false" synchronized="false"
  58916. static="false" final="false" visibility="public"
  58917. deprecated="not deprecated">
  58918. </method>
  58919. <method name="setTotalLogFileSize"
  58920. abstract="false" native="false" synchronized="false"
  58921. static="false" final="false" visibility="public"
  58922. deprecated="not deprecated">
  58923. <param name="logSize" type="long"/>
  58924. </method>
  58925. <method name="setIsCleanup"
  58926. abstract="false" native="false" synchronized="false"
  58927. static="false" final="false" visibility="public"
  58928. deprecated="not deprecated">
  58929. <param name="isCleanup" type="boolean"/>
  58930. <doc>
  58931. <![CDATA[Set whether the task is a cleanup attempt or not.
  58932. @param isCleanup
  58933. true if the task is cleanup attempt, false otherwise.]]>
  58934. </doc>
  58935. </method>
  58936. <method name="getIsCleanup" return="boolean"
  58937. abstract="false" native="false" synchronized="false"
  58938. static="false" final="false" visibility="public"
  58939. deprecated="not deprecated">
  58940. <doc>
  58941. <![CDATA[Get whether task is cleanup attempt or not.
  58942. @return true if the task is cleanup attempt, false otherwise.]]>
  58943. </doc>
  58944. </method>
  58945. <doc>
  58946. <![CDATA[A simple log4j-appender for the task child's
  58947. map-reduce system logs.]]>
  58948. </doc>
  58949. </class>
  58950. <!-- end class org.apache.hadoop.mapred.TaskLogAppender -->
  58951. <!-- start class org.apache.hadoop.mapred.TaskLogServlet -->
  58952. <class name="TaskLogServlet" extends="javax.servlet.http.HttpServlet"
  58953. abstract="false"
  58954. static="false" final="false" visibility="public"
  58955. deprecated="not deprecated">
  58956. <constructor name="TaskLogServlet"
  58957. static="false" final="false" visibility="public"
  58958. deprecated="not deprecated">
  58959. </constructor>
  58960. <method name="getTaskLogUrl" return="java.lang.String"
  58961. abstract="false" native="false" synchronized="false"
  58962. static="true" final="false" visibility="public"
  58963. deprecated="not deprecated">
  58964. <param name="taskTrackerHostName" type="java.lang.String"/>
  58965. <param name="httpPort" type="java.lang.String"/>
  58966. <param name="taskAttemptID" type="java.lang.String"/>
  58967. <doc>
  58968. <![CDATA[Construct the taskLogUrl
  58969. @param taskTrackerHostName
  58970. @param httpPort
  58971. @param taskAttemptID
  58972. @return the taskLogUrl]]>
  58973. </doc>
  58974. </method>
  58975. <method name="doGet"
  58976. abstract="false" native="false" synchronized="false"
  58977. static="false" final="false" visibility="public"
  58978. deprecated="not deprecated">
  58979. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  58980. <param name="response" type="javax.servlet.http.HttpServletResponse"/>
  58981. <exception name="ServletException" type="javax.servlet.ServletException"/>
  58982. <exception name="IOException" type="java.io.IOException"/>
  58983. <doc>
  58984. <![CDATA[Get the logs via http.]]>
  58985. </doc>
  58986. </method>
  58987. <doc>
  58988. <![CDATA[A servlet that is run by the TaskTrackers to provide the task logs via http.]]>
  58989. </doc>
  58990. </class>
  58991. <!-- end class org.apache.hadoop.mapred.TaskLogServlet -->
  58992. <!-- start class org.apache.hadoop.mapred.TaskLogsTruncater -->
  58993. <class name="TaskLogsTruncater" extends="java.lang.Object"
  58994. abstract="false"
  58995. static="false" final="false" visibility="public"
  58996. deprecated="not deprecated">
  58997. <constructor name="TaskLogsTruncater" type="org.apache.hadoop.conf.Configuration"
  58998. static="false" final="false" visibility="public"
  58999. deprecated="not deprecated">
  59000. </constructor>
  59001. <method name="shouldTruncateLogs" return="boolean"
  59002. abstract="false" native="false" synchronized="false"
  59003. static="false" final="false" visibility="public"
  59004. deprecated="not deprecated">
  59005. <param name="lInfo" type="org.apache.hadoop.mapreduce.server.tasktracker.JVMInfo"/>
  59006. <exception name="IOException" type="java.io.IOException"/>
  59007. <doc>
  59008. <![CDATA[Check the log file sizes generated by the attempts that ran in a
  59009. particular JVM
  59010. @param lInfo
  59011. @return is truncation required?
  59012. @throws IOException]]>
  59013. </doc>
  59014. </method>
  59015. <method name="truncateLogs"
  59016. abstract="false" native="false" synchronized="false"
  59017. static="false" final="false" visibility="public"
  59018. deprecated="not deprecated">
  59019. <param name="lInfo" type="org.apache.hadoop.mapreduce.server.tasktracker.JVMInfo"/>
  59020. <doc>
  59021. <![CDATA[Process the removed task's logs. This involves truncating them to
  59022. retainSize.]]>
  59023. </doc>
  59024. </method>
  59025. <method name="main"
  59026. abstract="false" native="false" synchronized="false"
  59027. static="true" final="false" visibility="public"
  59028. deprecated="not deprecated">
  59029. <param name="args" type="java.lang.String[]"/>
  59030. <exception name="IOException" type="java.io.IOException"/>
  59031. </method>
  59032. <doc>
  59033. <![CDATA[The class for truncating the user logs.
  59034. Should be used only by {@link UserLogManager}.]]>
  59035. </doc>
  59036. </class>
  59037. <!-- end class org.apache.hadoop.mapred.TaskLogsTruncater -->
  59038. <!-- start class org.apache.hadoop.mapred.TaskReport -->
  59039. <class name="TaskReport" extends="java.lang.Object"
  59040. abstract="false"
  59041. static="false" final="false" visibility="public"
  59042. deprecated="not deprecated">
  59043. <implements name="org.apache.hadoop.io.Writable"/>
  59044. <constructor name="TaskReport"
  59045. static="false" final="false" visibility="public"
  59046. deprecated="not deprecated">
  59047. </constructor>
  59048. <method name="getTaskId" return="java.lang.String"
  59049. abstract="false" native="false" synchronized="false"
  59050. static="false" final="false" visibility="public"
  59051. deprecated="use {@link #getTaskID()} instead">
  59052. <doc>
  59053. <![CDATA[@deprecated use {@link #getTaskID()} instead]]>
  59054. </doc>
  59055. </method>
  59056. <method name="getTaskID" return="org.apache.hadoop.mapred.TaskID"
  59057. abstract="false" native="false" synchronized="false"
  59058. static="false" final="false" visibility="public"
  59059. deprecated="not deprecated">
  59060. <doc>
  59061. <![CDATA[The id of the task.]]>
  59062. </doc>
  59063. </method>
  59064. <method name="getProgress" return="float"
  59065. abstract="false" native="false" synchronized="false"
  59066. static="false" final="false" visibility="public"
  59067. deprecated="not deprecated">
  59068. <doc>
  59069. <![CDATA[The amount completed, between zero and one.]]>
  59070. </doc>
  59071. </method>
  59072. <method name="getState" return="java.lang.String"
  59073. abstract="false" native="false" synchronized="false"
  59074. static="false" final="false" visibility="public"
  59075. deprecated="not deprecated">
  59076. <doc>
  59077. <![CDATA[The most recent state, reported by a {@link Reporter}.]]>
  59078. </doc>
  59079. </method>
  59080. <method name="getDiagnostics" return="java.lang.String[]"
  59081. abstract="false" native="false" synchronized="false"
  59082. static="false" final="false" visibility="public"
  59083. deprecated="not deprecated">
  59084. <doc>
  59085. <![CDATA[A list of error messages.]]>
  59086. </doc>
  59087. </method>
  59088. <method name="getCounters" return="org.apache.hadoop.mapred.Counters"
  59089. abstract="false" native="false" synchronized="false"
  59090. static="false" final="false" visibility="public"
  59091. deprecated="not deprecated">
  59092. <doc>
  59093. <![CDATA[A table of counters.]]>
  59094. </doc>
  59095. </method>
  59096. <method name="getCurrentStatus" return="org.apache.hadoop.mapred.TIPStatus"
  59097. abstract="false" native="false" synchronized="false"
  59098. static="false" final="false" visibility="public"
  59099. deprecated="not deprecated">
  59100. <doc>
  59101. <![CDATA[The current status]]>
  59102. </doc>
  59103. </method>
  59104. <method name="getFinishTime" return="long"
  59105. abstract="false" native="false" synchronized="false"
  59106. static="false" final="false" visibility="public"
  59107. deprecated="not deprecated">
  59108. <doc>
  59109. <![CDATA[Get finish time of task.
  59110. @return 0, if finish time was not set else returns finish time.]]>
  59111. </doc>
  59112. </method>
  59113. <method name="getStartTime" return="long"
  59114. abstract="false" native="false" synchronized="false"
  59115. static="false" final="false" visibility="public"
  59116. deprecated="not deprecated">
  59117. <doc>
  59118. <![CDATA[Get start time of task.
  59119. @return 0 if start time was not set, else start time.]]>
  59120. </doc>
  59121. </method>
  59122. <method name="setSuccessfulAttempt"
  59123. abstract="false" native="false" synchronized="false"
  59124. static="false" final="false" visibility="public"
  59125. deprecated="not deprecated">
  59126. <param name="t" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  59127. <doc>
  59128. <![CDATA[set successful attempt ID of the task.]]>
  59129. </doc>
  59130. </method>
  59131. <method name="getSuccessfulTaskAttempt" return="org.apache.hadoop.mapred.TaskAttemptID"
  59132. abstract="false" native="false" synchronized="false"
  59133. static="false" final="false" visibility="public"
  59134. deprecated="not deprecated">
  59135. <doc>
  59136. <![CDATA[Get the attempt ID that took this task to completion]]>
  59137. </doc>
  59138. </method>
  59139. <method name="setRunningTaskAttempts"
  59140. abstract="false" native="false" synchronized="false"
  59141. static="false" final="false" visibility="public"
  59142. deprecated="not deprecated">
  59143. <param name="runningAttempts" type="java.util.Collection"/>
  59144. <doc>
  59145. <![CDATA[set running attempt(s) of the task.]]>
  59146. </doc>
  59147. </method>
  59148. <method name="getRunningTaskAttempts" return="java.util.Collection"
  59149. abstract="false" native="false" synchronized="false"
  59150. static="false" final="false" visibility="public"
  59151. deprecated="not deprecated">
  59152. <doc>
  59153. <![CDATA[Get the running task attempt IDs for this task]]>
  59154. </doc>
  59155. </method>
  59156. <method name="equals" return="boolean"
  59157. abstract="false" native="false" synchronized="false"
  59158. static="false" final="false" visibility="public"
  59159. deprecated="not deprecated">
  59160. <param name="o" type="java.lang.Object"/>
  59161. </method>
  59162. <method name="hashCode" return="int"
  59163. abstract="false" native="false" synchronized="false"
  59164. static="false" final="false" visibility="public"
  59165. deprecated="not deprecated">
  59166. </method>
  59167. <method name="write"
  59168. abstract="false" native="false" synchronized="false"
  59169. static="false" final="false" visibility="public"
  59170. deprecated="not deprecated">
  59171. <param name="out" type="java.io.DataOutput"/>
  59172. <exception name="IOException" type="java.io.IOException"/>
  59173. </method>
  59174. <method name="readFields"
  59175. abstract="false" native="false" synchronized="false"
  59176. static="false" final="false" visibility="public"
  59177. deprecated="not deprecated">
  59178. <param name="in" type="java.io.DataInput"/>
  59179. <exception name="IOException" type="java.io.IOException"/>
  59180. </method>
  59181. <doc>
  59182. <![CDATA[A report on the state of a task.]]>
  59183. </doc>
  59184. </class>
  59185. <!-- end class org.apache.hadoop.mapred.TaskReport -->
  59186. <!-- start class org.apache.hadoop.mapred.TaskStatus -->
  59187. <class name="TaskStatus" extends="java.lang.Object"
  59188. abstract="true"
  59189. static="false" final="false" visibility="public"
  59190. deprecated="not deprecated">
  59191. <implements name="org.apache.hadoop.io.Writable"/>
  59192. <implements name="java.lang.Cloneable"/>
  59193. <constructor name="TaskStatus"
  59194. static="false" final="false" visibility="public"
  59195. deprecated="not deprecated">
  59196. </constructor>
  59197. <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"
  59198. static="false" final="false" visibility="public"
  59199. deprecated="not deprecated">
  59200. </constructor>
  59201. <method name="getTaskID" return="org.apache.hadoop.mapred.TaskAttemptID"
  59202. abstract="false" native="false" synchronized="false"
  59203. static="false" final="false" visibility="public"
  59204. deprecated="not deprecated">
  59205. </method>
  59206. <method name="getIsMap" return="boolean"
  59207. abstract="true" native="false" synchronized="false"
  59208. static="false" final="false" visibility="public"
  59209. deprecated="not deprecated">
  59210. </method>
  59211. <method name="getNumSlots" return="int"
  59212. abstract="false" native="false" synchronized="false"
  59213. static="false" final="false" visibility="public"
  59214. deprecated="not deprecated">
  59215. </method>
  59216. <method name="getProgress" return="float"
  59217. abstract="false" native="false" synchronized="false"
  59218. static="false" final="false" visibility="public"
  59219. deprecated="not deprecated">
  59220. </method>
  59221. <method name="setProgress"
  59222. abstract="false" native="false" synchronized="false"
  59223. static="false" final="false" visibility="public"
  59224. deprecated="not deprecated">
  59225. <param name="progress" type="float"/>
  59226. </method>
  59227. <method name="getRunState" return="org.apache.hadoop.mapred.TaskStatus.State"
  59228. abstract="false" native="false" synchronized="false"
  59229. static="false" final="false" visibility="public"
  59230. deprecated="not deprecated">
  59231. </method>
  59232. <method name="getTaskTracker" return="java.lang.String"
  59233. abstract="false" native="false" synchronized="false"
  59234. static="false" final="false" visibility="public"
  59235. deprecated="not deprecated">
  59236. </method>
  59237. <method name="setTaskTracker"
  59238. abstract="false" native="false" synchronized="false"
  59239. static="false" final="false" visibility="public"
  59240. deprecated="not deprecated">
  59241. <param name="tracker" type="java.lang.String"/>
  59242. </method>
  59243. <method name="setRunState"
  59244. abstract="false" native="false" synchronized="false"
  59245. static="false" final="false" visibility="public"
  59246. deprecated="not deprecated">
  59247. <param name="runState" type="org.apache.hadoop.mapred.TaskStatus.State"/>
  59248. </method>
  59249. <method name="getDiagnosticInfo" return="java.lang.String"
  59250. abstract="false" native="false" synchronized="false"
  59251. static="false" final="false" visibility="public"
  59252. deprecated="not deprecated">
  59253. </method>
  59254. <method name="setDiagnosticInfo"
  59255. abstract="false" native="false" synchronized="false"
  59256. static="false" final="false" visibility="public"
  59257. deprecated="not deprecated">
  59258. <param name="info" type="java.lang.String"/>
  59259. </method>
  59260. <method name="getStateString" return="java.lang.String"
  59261. abstract="false" native="false" synchronized="false"
  59262. static="false" final="false" visibility="public"
  59263. deprecated="not deprecated">
  59264. </method>
  59265. <method name="setStateString"
  59266. abstract="false" native="false" synchronized="false"
  59267. static="false" final="false" visibility="public"
  59268. deprecated="not deprecated">
  59269. <param name="stateString" type="java.lang.String"/>
  59270. </method>
  59271. <method name="getNextRecordRange" return="org.apache.hadoop.mapred.SortedRanges.Range"
  59272. abstract="false" native="false" synchronized="false"
  59273. static="false" final="false" visibility="public"
  59274. deprecated="not deprecated">
  59275. <doc>
  59276. <![CDATA[Get the next record range which is going to be processed by Task.
  59277. @return nextRecordRange]]>
  59278. </doc>
  59279. </method>
  59280. <method name="setNextRecordRange"
  59281. abstract="false" native="false" synchronized="false"
  59282. static="false" final="false" visibility="public"
  59283. deprecated="not deprecated">
  59284. <param name="nextRecordRange" type="org.apache.hadoop.mapred.SortedRanges.Range"/>
  59285. <doc>
  59286. <![CDATA[Set the next record range which is going to be processed by Task.
  59287. @param nextRecordRange]]>
  59288. </doc>
  59289. </method>
  59290. <method name="getFinishTime" return="long"
  59291. abstract="false" native="false" synchronized="false"
  59292. static="false" final="false" visibility="public"
  59293. deprecated="not deprecated">
  59294. <doc>
  59295. <![CDATA[Get task finish time. if shuffleFinishTime and sortFinishTime
  59296. are not set before, these are set to finishTime. It takes care of
  59297. the case when shuffle, sort and finish are completed with in the
  59298. heartbeat interval and are not reported separately. if task state is
  59299. TaskStatus.FAILED then finish time represents when the task failed.
  59300. @return finish time of the task.]]>
  59301. </doc>
  59302. </method>
  59303. <method name="getShuffleFinishTime" return="long"
  59304. abstract="false" native="false" synchronized="false"
  59305. static="false" final="false" visibility="public"
  59306. deprecated="not deprecated">
  59307. <doc>
  59308. <![CDATA[Get shuffle finish time for the task. If shuffle finish time was
  59309. not set due to shuffle/sort/finish phases ending within same
  59310. heartbeat interval, it is set to finish time of next phase i.e. sort
  59311. or task finish when these are set.
  59312. @return 0 if shuffleFinishTime, sortFinishTime and finish time are not set. else
  59313. it returns approximate shuffle finish time.]]>
  59314. </doc>
  59315. </method>
  59316. <method name="getSortFinishTime" return="long"
  59317. abstract="false" native="false" synchronized="false"
  59318. static="false" final="false" visibility="public"
  59319. deprecated="not deprecated">
  59320. <doc>
  59321. <![CDATA[Get sort finish time for the task,. If sort finish time was not set
  59322. due to sort and reduce phase finishing in same heartebat interval, it is
  59323. set to finish time, when finish time is set.
  59324. @return 0 if sort finish time and finish time are not set, else returns sort
  59325. finish time if that is set, else it returns finish time.]]>
  59326. </doc>
  59327. </method>
  59328. <method name="getStartTime" return="long"
  59329. abstract="false" native="false" synchronized="false"
  59330. static="false" final="false" visibility="public"
  59331. deprecated="not deprecated">
  59332. <doc>
  59333. <![CDATA[Get start time of the task.
  59334. @return 0 is start time is not set, else returns start time.]]>
  59335. </doc>
  59336. </method>
  59337. <method name="getPhase" return="org.apache.hadoop.mapred.TaskStatus.Phase"
  59338. abstract="false" native="false" synchronized="false"
  59339. static="false" final="false" visibility="public"
  59340. deprecated="not deprecated">
  59341. <doc>
  59342. <![CDATA[Get current phase of this task. Phase.Map in case of map tasks,
  59343. for reduce one of Phase.SHUFFLE, Phase.SORT or Phase.REDUCE.
  59344. @return .]]>
  59345. </doc>
  59346. </method>
  59347. <method name="getIncludeCounters" return="boolean"
  59348. abstract="false" native="false" synchronized="false"
  59349. static="false" final="false" visibility="public"
  59350. deprecated="not deprecated">
  59351. </method>
  59352. <method name="setIncludeCounters"
  59353. abstract="false" native="false" synchronized="false"
  59354. static="false" final="false" visibility="public"
  59355. deprecated="not deprecated">
  59356. <param name="send" type="boolean"/>
  59357. </method>
  59358. <method name="getCounters" return="org.apache.hadoop.mapred.Counters"
  59359. abstract="false" native="false" synchronized="false"
  59360. static="false" final="false" visibility="public"
  59361. deprecated="not deprecated">
  59362. <doc>
  59363. <![CDATA[Get task's counters.]]>
  59364. </doc>
  59365. </method>
  59366. <method name="setCounters"
  59367. abstract="false" native="false" synchronized="false"
  59368. static="false" final="false" visibility="public"
  59369. deprecated="not deprecated">
  59370. <param name="counters" type="org.apache.hadoop.mapred.Counters"/>
  59371. <doc>
  59372. <![CDATA[Set the task's counters.
  59373. @param counters]]>
  59374. </doc>
  59375. </method>
  59376. <method name="getOutputSize" return="long"
  59377. abstract="false" native="false" synchronized="false"
  59378. static="false" final="false" visibility="public"
  59379. deprecated="not deprecated">
  59380. <doc>
  59381. <![CDATA[Returns the number of bytes of output from this map.]]>
  59382. </doc>
  59383. </method>
  59384. <method name="getFetchFailedMaps" return="java.util.List"
  59385. abstract="false" native="false" synchronized="false"
  59386. static="false" final="false" visibility="public"
  59387. deprecated="not deprecated">
  59388. <doc>
  59389. <![CDATA[Get the list of maps from which output-fetches failed.
  59390. @return the list of maps from which output-fetches failed.]]>
  59391. </doc>
  59392. </method>
  59393. <method name="clone" return="java.lang.Object"
  59394. abstract="false" native="false" synchronized="false"
  59395. static="false" final="false" visibility="public"
  59396. deprecated="not deprecated">
  59397. </method>
  59398. <method name="write"
  59399. abstract="false" native="false" synchronized="false"
  59400. static="false" final="false" visibility="public"
  59401. deprecated="not deprecated">
  59402. <param name="out" type="java.io.DataOutput"/>
  59403. <exception name="IOException" type="java.io.IOException"/>
  59404. </method>
  59405. <method name="readFields"
  59406. abstract="false" native="false" synchronized="false"
  59407. static="false" final="false" visibility="public"
  59408. deprecated="not deprecated">
  59409. <param name="in" type="java.io.DataInput"/>
  59410. <exception name="IOException" type="java.io.IOException"/>
  59411. </method>
  59412. <doc>
  59413. <![CDATA[Describes the current status of a task. This is
  59414. not intended to be a comprehensive piece of data.]]>
  59415. </doc>
  59416. </class>
  59417. <!-- end class org.apache.hadoop.mapred.TaskStatus -->
  59418. <!-- start class org.apache.hadoop.mapred.TaskStatus.Phase -->
  59419. <class name="TaskStatus.Phase" extends="java.lang.Enum"
  59420. abstract="false"
  59421. static="true" final="true" visibility="public"
  59422. deprecated="not deprecated">
  59423. <method name="values" return="org.apache.hadoop.mapred.TaskStatus.Phase[]"
  59424. abstract="false" native="false" synchronized="false"
  59425. static="true" final="false" visibility="public"
  59426. deprecated="not deprecated">
  59427. </method>
  59428. <method name="valueOf" return="org.apache.hadoop.mapred.TaskStatus.Phase"
  59429. abstract="false" native="false" synchronized="false"
  59430. static="true" final="false" visibility="public"
  59431. deprecated="not deprecated">
  59432. <param name="name" type="java.lang.String"/>
  59433. </method>
  59434. <field name="STARTING" type="org.apache.hadoop.mapred.TaskStatus.Phase"
  59435. transient="false" volatile="false"
  59436. static="true" final="true" visibility="public"
  59437. deprecated="not deprecated">
  59438. </field>
  59439. <field name="MAP" type="org.apache.hadoop.mapred.TaskStatus.Phase"
  59440. transient="false" volatile="false"
  59441. static="true" final="true" visibility="public"
  59442. deprecated="not deprecated">
  59443. </field>
  59444. <field name="SHUFFLE" type="org.apache.hadoop.mapred.TaskStatus.Phase"
  59445. transient="false" volatile="false"
  59446. static="true" final="true" visibility="public"
  59447. deprecated="not deprecated">
  59448. </field>
  59449. <field name="SORT" type="org.apache.hadoop.mapred.TaskStatus.Phase"
  59450. transient="false" volatile="false"
  59451. static="true" final="true" visibility="public"
  59452. deprecated="not deprecated">
  59453. </field>
  59454. <field name="REDUCE" type="org.apache.hadoop.mapred.TaskStatus.Phase"
  59455. transient="false" volatile="false"
  59456. static="true" final="true" visibility="public"
  59457. deprecated="not deprecated">
  59458. </field>
  59459. <field name="CLEANUP" type="org.apache.hadoop.mapred.TaskStatus.Phase"
  59460. transient="false" volatile="false"
  59461. static="true" final="true" visibility="public"
  59462. deprecated="not deprecated">
  59463. </field>
  59464. </class>
  59465. <!-- end class org.apache.hadoop.mapred.TaskStatus.Phase -->
  59466. <!-- start class org.apache.hadoop.mapred.TaskStatus.State -->
  59467. <class name="TaskStatus.State" extends="java.lang.Enum"
  59468. abstract="false"
  59469. static="true" final="true" visibility="public"
  59470. deprecated="not deprecated">
  59471. <method name="values" return="org.apache.hadoop.mapred.TaskStatus.State[]"
  59472. abstract="false" native="false" synchronized="false"
  59473. static="true" final="false" visibility="public"
  59474. deprecated="not deprecated">
  59475. </method>
  59476. <method name="valueOf" return="org.apache.hadoop.mapred.TaskStatus.State"
  59477. abstract="false" native="false" synchronized="false"
  59478. static="true" final="false" visibility="public"
  59479. deprecated="not deprecated">
  59480. <param name="name" type="java.lang.String"/>
  59481. </method>
  59482. <field name="RUNNING" type="org.apache.hadoop.mapred.TaskStatus.State"
  59483. transient="false" volatile="false"
  59484. static="true" final="true" visibility="public"
  59485. deprecated="not deprecated">
  59486. </field>
  59487. <field name="SUCCEEDED" type="org.apache.hadoop.mapred.TaskStatus.State"
  59488. transient="false" volatile="false"
  59489. static="true" final="true" visibility="public"
  59490. deprecated="not deprecated">
  59491. </field>
  59492. <field name="FAILED" type="org.apache.hadoop.mapred.TaskStatus.State"
  59493. transient="false" volatile="false"
  59494. static="true" final="true" visibility="public"
  59495. deprecated="not deprecated">
  59496. </field>
  59497. <field name="UNASSIGNED" type="org.apache.hadoop.mapred.TaskStatus.State"
  59498. transient="false" volatile="false"
  59499. static="true" final="true" visibility="public"
  59500. deprecated="not deprecated">
  59501. </field>
  59502. <field name="KILLED" type="org.apache.hadoop.mapred.TaskStatus.State"
  59503. transient="false" volatile="false"
  59504. static="true" final="true" visibility="public"
  59505. deprecated="not deprecated">
  59506. </field>
  59507. <field name="COMMIT_PENDING" type="org.apache.hadoop.mapred.TaskStatus.State"
  59508. transient="false" volatile="false"
  59509. static="true" final="true" visibility="public"
  59510. deprecated="not deprecated">
  59511. </field>
  59512. <field name="FAILED_UNCLEAN" type="org.apache.hadoop.mapred.TaskStatus.State"
  59513. transient="false" volatile="false"
  59514. static="true" final="true" visibility="public"
  59515. deprecated="not deprecated">
  59516. </field>
  59517. <field name="KILLED_UNCLEAN" type="org.apache.hadoop.mapred.TaskStatus.State"
  59518. transient="false" volatile="false"
  59519. static="true" final="true" visibility="public"
  59520. deprecated="not deprecated">
  59521. </field>
  59522. </class>
  59523. <!-- end class org.apache.hadoop.mapred.TaskStatus.State -->
  59524. <!-- start class org.apache.hadoop.mapred.TaskTracker -->
  59525. <class name="TaskTracker" extends="java.lang.Object"
  59526. abstract="false"
  59527. static="false" final="false" visibility="public"
  59528. deprecated="not deprecated">
  59529. <implements name="org.apache.hadoop.mapred.MRConstants"/>
  59530. <implements name="org.apache.hadoop.mapred.TaskUmbilicalProtocol"/>
  59531. <implements name="java.lang.Runnable"/>
  59532. <implements name="org.apache.hadoop.mapred.TaskTrackerMXBean"/>
  59533. <constructor name="TaskTracker" type="org.apache.hadoop.mapred.JobConf"
  59534. static="false" final="false" visibility="public"
  59535. deprecated="not deprecated">
  59536. <exception name="IOException" type="java.io.IOException"/>
  59537. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  59538. <doc>
  59539. <![CDATA[Start with the local machine name, and the default JobTracker]]>
  59540. </doc>
  59541. </constructor>
  59542. <method name="getTaskTrackerInstrumentation" return="org.apache.hadoop.mapred.TaskTrackerInstrumentation"
  59543. abstract="false" native="false" synchronized="false"
  59544. static="false" final="false" visibility="public"
  59545. deprecated="not deprecated">
  59546. </method>
  59547. <method name="getTaskController" return="org.apache.hadoop.mapred.TaskController"
  59548. abstract="false" native="false" synchronized="false"
  59549. static="false" final="false" visibility="public"
  59550. deprecated="not deprecated">
  59551. </method>
  59552. <method name="getUserDir" return="java.lang.String"
  59553. abstract="false" native="false" synchronized="false"
  59554. static="true" final="false" visibility="public"
  59555. deprecated="not deprecated">
  59556. <param name="user" type="java.lang.String"/>
  59557. </method>
  59558. <method name="getPrivateDistributedCacheDir" return="java.lang.String"
  59559. abstract="false" native="false" synchronized="false"
  59560. static="true" final="false" visibility="public"
  59561. deprecated="not deprecated">
  59562. <param name="user" type="java.lang.String"/>
  59563. </method>
  59564. <method name="getPublicDistributedCacheDir" return="java.lang.String"
  59565. abstract="false" native="false" synchronized="false"
  59566. static="true" final="false" visibility="public"
  59567. deprecated="not deprecated">
  59568. </method>
  59569. <method name="getJobCacheSubdir" return="java.lang.String"
  59570. abstract="false" native="false" synchronized="false"
  59571. static="true" final="false" visibility="public"
  59572. deprecated="not deprecated">
  59573. <param name="user" type="java.lang.String"/>
  59574. </method>
  59575. <method name="getLocalJobDir" return="java.lang.String"
  59576. abstract="false" native="false" synchronized="false"
  59577. static="true" final="false" visibility="public"
  59578. deprecated="not deprecated">
  59579. <param name="user" type="java.lang.String"/>
  59580. <param name="jobid" type="java.lang.String"/>
  59581. </method>
  59582. <method name="getJobJarFile" return="java.lang.String"
  59583. abstract="false" native="false" synchronized="false"
  59584. static="true" final="false" visibility="public"
  59585. deprecated="not deprecated">
  59586. <param name="user" type="java.lang.String"/>
  59587. <param name="jobid" type="java.lang.String"/>
  59588. </method>
  59589. <method name="getLocalTaskDir" return="java.lang.String"
  59590. abstract="false" native="false" synchronized="false"
  59591. static="true" final="false" visibility="public"
  59592. deprecated="not deprecated">
  59593. <param name="user" type="java.lang.String"/>
  59594. <param name="jobid" type="java.lang.String"/>
  59595. <param name="taskid" type="java.lang.String"/>
  59596. </method>
  59597. <method name="getLocalTaskDir" return="java.lang.String"
  59598. abstract="false" native="false" synchronized="false"
  59599. static="true" final="false" visibility="public"
  59600. deprecated="not deprecated">
  59601. <param name="user" type="java.lang.String"/>
  59602. <param name="jobid" type="java.lang.String"/>
  59603. <param name="taskid" type="java.lang.String"/>
  59604. <param name="isCleanupAttempt" type="boolean"/>
  59605. </method>
  59606. <method name="getProtocolVersion" return="long"
  59607. abstract="false" native="false" synchronized="false"
  59608. static="false" final="false" visibility="public"
  59609. deprecated="not deprecated">
  59610. <param name="protocol" type="java.lang.String"/>
  59611. <param name="clientVersion" type="long"/>
  59612. <exception name="IOException" type="java.io.IOException"/>
  59613. </method>
  59614. <method name="cleanupStorage"
  59615. abstract="false" native="false" synchronized="false"
  59616. static="false" final="false" visibility="public"
  59617. deprecated="not deprecated">
  59618. <exception name="IOException" type="java.io.IOException"/>
  59619. <doc>
  59620. <![CDATA[Removes all contents of temporary storage. Called upon
  59621. startup, to remove any leftovers from previous run.]]>
  59622. </doc>
  59623. </method>
  59624. <method name="launchTaskForJob"
  59625. abstract="false" native="false" synchronized="false"
  59626. static="false" final="false" visibility="protected"
  59627. deprecated="not deprecated">
  59628. <param name="tip" type="org.apache.hadoop.mapred.TaskTracker.TaskInProgress"/>
  59629. <param name="jobConf" type="org.apache.hadoop.mapred.JobConf"/>
  59630. <param name="rjob" type="org.apache.hadoop.mapred.TaskTracker.RunningJob"/>
  59631. <exception name="IOException" type="java.io.IOException"/>
  59632. </method>
  59633. <method name="shutdown"
  59634. abstract="false" native="false" synchronized="true"
  59635. static="false" final="false" visibility="public"
  59636. deprecated="not deprecated">
  59637. <exception name="IOException" type="java.io.IOException"/>
  59638. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  59639. </method>
  59640. <method name="close"
  59641. abstract="false" native="false" synchronized="true"
  59642. static="false" final="false" visibility="public"
  59643. deprecated="not deprecated">
  59644. <exception name="IOException" type="java.io.IOException"/>
  59645. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  59646. <doc>
  59647. <![CDATA[Close down the TaskTracker and all its components. We must also shutdown
  59648. any running tasks or threads, and cleanup disk space. A new TaskTracker
  59649. within the same process space might be restarted, so everything must be
  59650. clean.
  59651. @throws InterruptedException]]>
  59652. </doc>
  59653. </method>
  59654. <method name="getJobClient" return="org.apache.hadoop.mapred.InterTrackerProtocol"
  59655. abstract="false" native="false" synchronized="false"
  59656. static="false" final="false" visibility="public"
  59657. deprecated="not deprecated">
  59658. <doc>
  59659. <![CDATA[The connection to the JobTracker, used by the TaskRunner
  59660. for locating remote files.]]>
  59661. </doc>
  59662. </method>
  59663. <method name="getTaskTrackerReportAddress" return="java.net.InetSocketAddress"
  59664. abstract="false" native="false" synchronized="true"
  59665. static="false" final="false" visibility="public"
  59666. deprecated="not deprecated">
  59667. <doc>
  59668. <![CDATA[Return the port at which the tasktracker bound to]]>
  59669. </doc>
  59670. </method>
  59671. <method name="getJvmManagerInstance" return="org.apache.hadoop.mapred.JvmManager"
  59672. abstract="false" native="false" synchronized="false"
  59673. static="false" final="false" visibility="public"
  59674. deprecated="not deprecated">
  59675. </method>
  59676. <method name="run"
  59677. abstract="false" native="false" synchronized="false"
  59678. static="false" final="false" visibility="public"
  59679. deprecated="not deprecated">
  59680. <doc>
  59681. <![CDATA[The server retry loop.
  59682. This while-loop attempts to connect to the JobTracker. It only
  59683. loops when the old TaskTracker has gone bad (its state is
  59684. stale somehow) and we need to reinitialize everything.]]>
  59685. </doc>
  59686. </method>
  59687. <method name="getTask" return="org.apache.hadoop.mapred.JvmTask"
  59688. abstract="false" native="false" synchronized="true"
  59689. static="false" final="false" visibility="public"
  59690. deprecated="not deprecated">
  59691. <param name="context" type="org.apache.hadoop.mapred.JvmContext"/>
  59692. <exception name="IOException" type="java.io.IOException"/>
  59693. <doc>
  59694. <![CDATA[Called upon startup by the child process, to fetch Task data.]]>
  59695. </doc>
  59696. </method>
  59697. <method name="statusUpdate" return="boolean"
  59698. abstract="false" native="false" synchronized="true"
  59699. static="false" final="false" visibility="public"
  59700. deprecated="not deprecated">
  59701. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  59702. <param name="taskStatus" type="org.apache.hadoop.mapred.TaskStatus"/>
  59703. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  59704. <exception name="IOException" type="java.io.IOException"/>
  59705. <doc>
  59706. <![CDATA[Called periodically to report Task progress, from 0.0 to 1.0.]]>
  59707. </doc>
  59708. </method>
  59709. <method name="reportDiagnosticInfo"
  59710. abstract="false" native="false" synchronized="true"
  59711. static="false" final="false" visibility="public"
  59712. deprecated="not deprecated">
  59713. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  59714. <param name="info" type="java.lang.String"/>
  59715. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  59716. <exception name="IOException" type="java.io.IOException"/>
  59717. <doc>
  59718. <![CDATA[Called when the task dies before completion, and we want to report back
  59719. diagnostic info]]>
  59720. </doc>
  59721. </method>
  59722. <method name="reportNextRecordRange"
  59723. abstract="false" native="false" synchronized="true"
  59724. static="false" final="false" visibility="public"
  59725. deprecated="not deprecated">
  59726. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  59727. <param name="range" type="org.apache.hadoop.mapred.SortedRanges.Range"/>
  59728. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  59729. <exception name="IOException" type="java.io.IOException"/>
  59730. </method>
  59731. <method name="ping" return="boolean"
  59732. abstract="false" native="false" synchronized="true"
  59733. static="false" final="false" visibility="public"
  59734. deprecated="not deprecated">
  59735. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  59736. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  59737. <exception name="IOException" type="java.io.IOException"/>
  59738. <doc>
  59739. <![CDATA[Child checking to see if we're alive. Normally does nothing.]]>
  59740. </doc>
  59741. </method>
  59742. <method name="commitPending"
  59743. abstract="false" native="false" synchronized="true"
  59744. static="false" final="false" visibility="public"
  59745. deprecated="not deprecated">
  59746. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  59747. <param name="taskStatus" type="org.apache.hadoop.mapred.TaskStatus"/>
  59748. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  59749. <exception name="IOException" type="java.io.IOException"/>
  59750. <doc>
  59751. <![CDATA[Task is reporting that it is in commit_pending
  59752. and it is waiting for the commit Response]]>
  59753. </doc>
  59754. </method>
  59755. <method name="canCommit" return="boolean"
  59756. abstract="false" native="false" synchronized="true"
  59757. static="false" final="false" visibility="public"
  59758. deprecated="not deprecated">
  59759. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  59760. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  59761. <exception name="IOException" type="java.io.IOException"/>
  59762. <doc>
  59763. <![CDATA[Child checking whether it can commit]]>
  59764. </doc>
  59765. </method>
  59766. <method name="done"
  59767. abstract="false" native="false" synchronized="true"
  59768. static="false" final="false" visibility="public"
  59769. deprecated="not deprecated">
  59770. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  59771. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  59772. <exception name="IOException" type="java.io.IOException"/>
  59773. <doc>
  59774. <![CDATA[The task is done.]]>
  59775. </doc>
  59776. </method>
  59777. <method name="shuffleError"
  59778. abstract="false" native="false" synchronized="true"
  59779. static="false" final="false" visibility="public"
  59780. deprecated="not deprecated">
  59781. <param name="taskId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  59782. <param name="message" type="java.lang.String"/>
  59783. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  59784. <exception name="IOException" type="java.io.IOException"/>
  59785. <doc>
  59786. <![CDATA[A reduce-task failed to shuffle the map-outputs. Kill the task.]]>
  59787. </doc>
  59788. </method>
  59789. <method name="fsError"
  59790. abstract="false" native="false" synchronized="true"
  59791. static="false" final="false" visibility="public"
  59792. deprecated="not deprecated">
  59793. <param name="taskId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  59794. <param name="message" type="java.lang.String"/>
  59795. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  59796. <exception name="IOException" type="java.io.IOException"/>
  59797. <doc>
  59798. <![CDATA[A child task had a local filesystem error. Kill the task.]]>
  59799. </doc>
  59800. </method>
  59801. <method name="fatalError"
  59802. abstract="false" native="false" synchronized="true"
  59803. static="false" final="false" visibility="public"
  59804. deprecated="not deprecated">
  59805. <param name="taskId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  59806. <param name="msg" type="java.lang.String"/>
  59807. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  59808. <exception name="IOException" type="java.io.IOException"/>
  59809. <doc>
  59810. <![CDATA[A child task had a fatal error. Kill the task.]]>
  59811. </doc>
  59812. </method>
  59813. <method name="getMapCompletionEvents" return="org.apache.hadoop.mapred.MapTaskCompletionEventsUpdate"
  59814. abstract="false" native="false" synchronized="true"
  59815. static="false" final="false" visibility="public"
  59816. deprecated="not deprecated">
  59817. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  59818. <param name="fromEventId" type="int"/>
  59819. <param name="maxLocs" type="int"/>
  59820. <param name="id" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  59821. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  59822. <exception name="IOException" type="java.io.IOException"/>
  59823. </method>
  59824. <method name="mapOutputLost"
  59825. abstract="false" native="false" synchronized="true"
  59826. static="false" final="false" visibility="public"
  59827. deprecated="not deprecated">
  59828. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  59829. <param name="errorMsg" type="java.lang.String"/>
  59830. <exception name="IOException" type="java.io.IOException"/>
  59831. <doc>
  59832. <![CDATA[A completed map task's output has been lost.]]>
  59833. </doc>
  59834. </method>
  59835. <method name="isIdle" return="boolean"
  59836. abstract="false" native="false" synchronized="true"
  59837. static="false" final="false" visibility="public"
  59838. deprecated="not deprecated">
  59839. <doc>
  59840. <![CDATA[Is this task tracker idle?
  59841. @return has this task tracker finished all its assigned tasks?]]>
  59842. </doc>
  59843. </method>
  59844. <method name="isIdleAndClean" return="boolean"
  59845. abstract="false" native="false" synchronized="true"
  59846. static="false" final="false" visibility="public"
  59847. deprecated="not deprecated">
  59848. <doc>
  59849. <![CDATA[Is this task tracker idle and clean?
  59850. @return has this task tracker finished and cleaned up all of its tasks?]]>
  59851. </doc>
  59852. </method>
  59853. <method name="main"
  59854. abstract="false" native="false" synchronized="false"
  59855. static="true" final="false" visibility="public"
  59856. deprecated="not deprecated">
  59857. <param name="argv" type="java.lang.String[]"/>
  59858. <exception name="Exception" type="java.lang.Exception"/>
  59859. <doc>
  59860. <![CDATA[Start the TaskTracker, point toward the indicated JobTracker]]>
  59861. </doc>
  59862. </method>
  59863. <method name="isTaskMemoryManagerEnabled" return="boolean"
  59864. abstract="false" native="false" synchronized="false"
  59865. static="false" final="false" visibility="public"
  59866. deprecated="not deprecated">
  59867. <doc>
  59868. <![CDATA[Is the TaskMemoryManager Enabled on this system?
  59869. @return true if enabled, false otherwise.]]>
  59870. </doc>
  59871. </method>
  59872. <method name="getTaskMemoryManager" return="org.apache.hadoop.mapred.TaskMemoryManagerThread"
  59873. abstract="false" native="false" synchronized="false"
  59874. static="false" final="false" visibility="public"
  59875. deprecated="not deprecated">
  59876. </method>
  59877. <method name="getHostname" return="java.lang.String"
  59878. abstract="false" native="false" synchronized="false"
  59879. static="false" final="false" visibility="public"
  59880. deprecated="not deprecated">
  59881. </method>
  59882. <method name="getVersion" return="java.lang.String"
  59883. abstract="false" native="false" synchronized="false"
  59884. static="false" final="false" visibility="public"
  59885. deprecated="not deprecated">
  59886. </method>
  59887. <method name="getConfigVersion" return="java.lang.String"
  59888. abstract="false" native="false" synchronized="false"
  59889. static="false" final="false" visibility="public"
  59890. deprecated="not deprecated">
  59891. </method>
  59892. <method name="getJobTrackerUrl" return="java.lang.String"
  59893. abstract="false" native="false" synchronized="false"
  59894. static="false" final="false" visibility="public"
  59895. deprecated="not deprecated">
  59896. </method>
  59897. <method name="getRpcPort" return="int"
  59898. abstract="false" native="false" synchronized="false"
  59899. static="false" final="false" visibility="public"
  59900. deprecated="not deprecated">
  59901. </method>
  59902. <method name="getHttpPort" return="int"
  59903. abstract="false" native="false" synchronized="false"
  59904. static="false" final="false" visibility="public"
  59905. deprecated="not deprecated">
  59906. </method>
  59907. <method name="isHealthy" return="boolean"
  59908. abstract="false" native="false" synchronized="false"
  59909. static="false" final="false" visibility="public"
  59910. deprecated="not deprecated">
  59911. </method>
  59912. <method name="getTasksInfoJson" return="java.lang.String"
  59913. abstract="false" native="false" synchronized="false"
  59914. static="false" final="false" visibility="public"
  59915. deprecated="not deprecated">
  59916. </method>
  59917. <method name="updatePrivateDistributedCacheSizes"
  59918. abstract="false" native="false" synchronized="false"
  59919. static="false" final="false" visibility="public"
  59920. deprecated="not deprecated">
  59921. <param name="jobId" type="org.apache.hadoop.mapreduce.JobID"/>
  59922. <param name="sizes" type="long[]"/>
  59923. <exception name="IOException" type="java.io.IOException"/>
  59924. </method>
  59925. <field name="LOG" type="org.apache.commons.logging.Log"
  59926. transient="false" volatile="false"
  59927. static="true" final="true" visibility="public"
  59928. deprecated="not deprecated">
  59929. </field>
  59930. <field name="MR_CLIENTTRACE_FORMAT" type="java.lang.String"
  59931. transient="false" volatile="false"
  59932. static="true" final="true" visibility="public"
  59933. deprecated="not deprecated">
  59934. </field>
  59935. <field name="ClientTraceLog" type="org.apache.commons.logging.Log"
  59936. transient="false" volatile="false"
  59937. static="true" final="true" visibility="public"
  59938. deprecated="not deprecated">
  59939. </field>
  59940. <field name="SUBDIR" type="java.lang.String"
  59941. transient="false" volatile="false"
  59942. static="true" final="true" visibility="public"
  59943. deprecated="not deprecated">
  59944. </field>
  59945. <field name="TT_LOG_TMP_DIR" type="java.lang.String"
  59946. transient="false" volatile="false"
  59947. static="true" final="true" visibility="public"
  59948. deprecated="not deprecated">
  59949. </field>
  59950. <field name="TT_RESOURCE_CALCULATOR_PLUGIN" type="java.lang.String"
  59951. transient="false" volatile="false"
  59952. static="true" final="true" visibility="public"
  59953. deprecated="not deprecated">
  59954. </field>
  59955. <field name="TT_USER_NAME" type="java.lang.String"
  59956. transient="false" volatile="false"
  59957. static="true" final="true" visibility="public"
  59958. deprecated="not deprecated">
  59959. </field>
  59960. <field name="TT_KEYTAB_FILE" type="java.lang.String"
  59961. transient="false" volatile="false"
  59962. static="true" final="true" visibility="public"
  59963. deprecated="not deprecated">
  59964. </field>
  59965. <doc>
  59966. <![CDATA[TaskTracker is a process that starts and tracks MR Tasks
  59967. in a networked environment. It contacts the JobTracker
  59968. for Task assignments and reporting results.]]>
  59969. </doc>
  59970. </class>
  59971. <!-- end class org.apache.hadoop.mapred.TaskTracker -->
  59972. <!-- start class org.apache.hadoop.mapred.TaskTracker.MapOutputServlet -->
  59973. <class name="TaskTracker.MapOutputServlet" extends="javax.servlet.http.HttpServlet"
  59974. abstract="false"
  59975. static="true" final="false" visibility="public"
  59976. deprecated="not deprecated">
  59977. <constructor name="TaskTracker.MapOutputServlet"
  59978. static="false" final="false" visibility="public"
  59979. deprecated="not deprecated">
  59980. </constructor>
  59981. <method name="doGet"
  59982. abstract="false" native="false" synchronized="false"
  59983. static="false" final="false" visibility="public"
  59984. deprecated="not deprecated">
  59985. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  59986. <param name="response" type="javax.servlet.http.HttpServletResponse"/>
  59987. <exception name="ServletException" type="javax.servlet.ServletException"/>
  59988. <exception name="IOException" type="java.io.IOException"/>
  59989. </method>
  59990. <doc>
  59991. <![CDATA[This class is used in TaskTracker's Jetty to serve the map outputs
  59992. to other nodes.]]>
  59993. </doc>
  59994. </class>
  59995. <!-- end class org.apache.hadoop.mapred.TaskTracker.MapOutputServlet -->
  59996. <!-- start class org.apache.hadoop.mapred.TaskTrackerMetricsSource -->
  59997. <class name="TaskTrackerMetricsSource" extends="org.apache.hadoop.mapred.TaskTrackerInstrumentation"
  59998. abstract="false"
  59999. static="false" final="false" visibility="public"
  60000. deprecated="not deprecated">
  60001. <implements name="org.apache.hadoop.metrics2.MetricsSource"/>
  60002. <constructor name="TaskTrackerMetricsSource" type="org.apache.hadoop.mapred.TaskTracker"
  60003. static="false" final="false" visibility="public"
  60004. deprecated="not deprecated">
  60005. </constructor>
  60006. <method name="getMetrics"
  60007. abstract="false" native="false" synchronized="false"
  60008. static="false" final="false" visibility="public"
  60009. deprecated="not deprecated">
  60010. <param name="builder" type="org.apache.hadoop.metrics2.MetricsBuilder"/>
  60011. <param name="all" type="boolean"/>
  60012. </method>
  60013. <method name="completeTask"
  60014. abstract="false" native="false" synchronized="false"
  60015. static="false" final="false" visibility="public"
  60016. deprecated="not deprecated">
  60017. <param name="t" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  60018. </method>
  60019. <method name="timedoutTask"
  60020. abstract="false" native="false" synchronized="false"
  60021. static="false" final="false" visibility="public"
  60022. deprecated="not deprecated">
  60023. <param name="t" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  60024. </method>
  60025. <method name="taskFailedPing"
  60026. abstract="false" native="false" synchronized="false"
  60027. static="false" final="false" visibility="public"
  60028. deprecated="not deprecated">
  60029. <param name="t" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  60030. </method>
  60031. <doc>
  60032. <![CDATA[Instrumentation for metrics v2]]>
  60033. </doc>
  60034. </class>
  60035. <!-- end class org.apache.hadoop.mapred.TaskTrackerMetricsSource -->
  60036. <!-- start interface org.apache.hadoop.mapred.TaskTrackerMXBean -->
  60037. <interface name="TaskTrackerMXBean" abstract="true"
  60038. static="false" final="false" visibility="public"
  60039. deprecated="not deprecated">
  60040. <method name="getHostname" return="java.lang.String"
  60041. abstract="false" native="false" synchronized="false"
  60042. static="false" final="false" visibility="public"
  60043. deprecated="not deprecated">
  60044. <doc>
  60045. <![CDATA[@return the hostname of the tasktracker]]>
  60046. </doc>
  60047. </method>
  60048. <method name="getVersion" return="java.lang.String"
  60049. abstract="false" native="false" synchronized="false"
  60050. static="false" final="false" visibility="public"
  60051. deprecated="not deprecated">
  60052. <doc>
  60053. <![CDATA[@return the version of the code base]]>
  60054. </doc>
  60055. </method>
  60056. <method name="getConfigVersion" return="java.lang.String"
  60057. abstract="false" native="false" synchronized="false"
  60058. static="false" final="false" visibility="public"
  60059. deprecated="not deprecated">
  60060. <doc>
  60061. <![CDATA[@return the config version (from a config properties)]]>
  60062. </doc>
  60063. </method>
  60064. <method name="getJobTrackerUrl" return="java.lang.String"
  60065. abstract="false" native="false" synchronized="false"
  60066. static="false" final="false" visibility="public"
  60067. deprecated="not deprecated">
  60068. <doc>
  60069. <![CDATA[@return the URL of the jobtracker]]>
  60070. </doc>
  60071. </method>
  60072. <method name="getRpcPort" return="int"
  60073. abstract="false" native="false" synchronized="false"
  60074. static="false" final="false" visibility="public"
  60075. deprecated="not deprecated">
  60076. <doc>
  60077. <![CDATA[@return the RPC port of the tasktracker]]>
  60078. </doc>
  60079. </method>
  60080. <method name="getHttpPort" return="int"
  60081. abstract="false" native="false" synchronized="false"
  60082. static="false" final="false" visibility="public"
  60083. deprecated="not deprecated">
  60084. <doc>
  60085. <![CDATA[@return the HTTP port of the tasktracker]]>
  60086. </doc>
  60087. </method>
  60088. <method name="isHealthy" return="boolean"
  60089. abstract="false" native="false" synchronized="false"
  60090. static="false" final="false" visibility="public"
  60091. deprecated="not deprecated">
  60092. <doc>
  60093. <![CDATA[@return the health status of the tasktracker]]>
  60094. </doc>
  60095. </method>
  60096. <method name="getTasksInfoJson" return="java.lang.String"
  60097. abstract="false" native="false" synchronized="false"
  60098. static="false" final="false" visibility="public"
  60099. deprecated="not deprecated">
  60100. <doc>
  60101. <![CDATA[@return a json formatted info about tasks of the tasktracker]]>
  60102. </doc>
  60103. </method>
  60104. <doc>
  60105. <![CDATA[MXBean interface for TaskTracker]]>
  60106. </doc>
  60107. </interface>
  60108. <!-- end interface org.apache.hadoop.mapred.TaskTrackerMXBean -->
  60109. <!-- start class org.apache.hadoop.mapred.TaskTrackerStatus -->
  60110. <class name="TaskTrackerStatus" extends="java.lang.Object"
  60111. abstract="false"
  60112. static="false" final="false" visibility="public"
  60113. deprecated="not deprecated">
  60114. <implements name="org.apache.hadoop.io.Writable"/>
  60115. <constructor name="TaskTrackerStatus"
  60116. static="false" final="false" visibility="public"
  60117. deprecated="not deprecated">
  60118. </constructor>
  60119. <constructor name="TaskTrackerStatus" type="java.lang.String, java.lang.String, int, java.util.List, int, int, int, int"
  60120. static="false" final="false" visibility="public"
  60121. deprecated="not deprecated">
  60122. </constructor>
  60123. <method name="getTrackerName" return="java.lang.String"
  60124. abstract="false" native="false" synchronized="false"
  60125. static="false" final="false" visibility="public"
  60126. deprecated="not deprecated">
  60127. </method>
  60128. <method name="getHost" return="java.lang.String"
  60129. abstract="false" native="false" synchronized="false"
  60130. static="false" final="false" visibility="public"
  60131. deprecated="not deprecated">
  60132. </method>
  60133. <method name="getHttpPort" return="int"
  60134. abstract="false" native="false" synchronized="false"
  60135. static="false" final="false" visibility="public"
  60136. deprecated="not deprecated">
  60137. <doc>
  60138. <![CDATA[Get the port that this task tracker is serving http requests on.
  60139. @return the http port]]>
  60140. </doc>
  60141. </method>
  60142. <method name="getTaskFailures" return="int"
  60143. abstract="false" native="false" synchronized="false"
  60144. static="false" final="false" visibility="public"
  60145. deprecated="not deprecated">
  60146. <doc>
  60147. <![CDATA[Get the number of tasks that have failed on this tracker.
  60148. @return The number of failed tasks]]>
  60149. </doc>
  60150. </method>
  60151. <method name="getDirFailures" return="int"
  60152. abstract="false" native="false" synchronized="false"
  60153. static="false" final="false" visibility="public"
  60154. deprecated="not deprecated">
  60155. <doc>
  60156. <![CDATA[Get the number of local directories that have failed on this tracker.
  60157. @return The number of failed local directories]]>
  60158. </doc>
  60159. </method>
  60160. <method name="getTaskReports" return="java.util.List"
  60161. abstract="false" native="false" synchronized="false"
  60162. static="false" final="false" visibility="public"
  60163. deprecated="not deprecated">
  60164. <doc>
  60165. <![CDATA[Get the current tasks at the TaskTracker.
  60166. Tasks are tracked by a {@link TaskStatus} object.
  60167. @return a list of {@link TaskStatus} representing
  60168. the current tasks at the TaskTracker.]]>
  60169. </doc>
  60170. </method>
  60171. <method name="countMapTasks" return="int"
  60172. abstract="false" native="false" synchronized="false"
  60173. static="false" final="false" visibility="public"
  60174. deprecated="not deprecated">
  60175. <doc>
  60176. <![CDATA[Get the number of running map tasks.
  60177. @return the number of running map tasks]]>
  60178. </doc>
  60179. </method>
  60180. <method name="countOccupiedMapSlots" return="int"
  60181. abstract="false" native="false" synchronized="false"
  60182. static="false" final="false" visibility="public"
  60183. deprecated="not deprecated">
  60184. <doc>
  60185. <![CDATA[Get the number of occupied map slots.
  60186. @return the number of occupied map slots]]>
  60187. </doc>
  60188. </method>
  60189. <method name="getAvailableMapSlots" return="int"
  60190. abstract="false" native="false" synchronized="false"
  60191. static="false" final="false" visibility="public"
  60192. deprecated="not deprecated">
  60193. <doc>
  60194. <![CDATA[Get available map slots.
  60195. @return available map slots]]>
  60196. </doc>
  60197. </method>
  60198. <method name="countReduceTasks" return="int"
  60199. abstract="false" native="false" synchronized="false"
  60200. static="false" final="false" visibility="public"
  60201. deprecated="not deprecated">
  60202. <doc>
  60203. <![CDATA[Get the number of running reduce tasks.
  60204. @return the number of running reduce tasks]]>
  60205. </doc>
  60206. </method>
  60207. <method name="countOccupiedReduceSlots" return="int"
  60208. abstract="false" native="false" synchronized="false"
  60209. static="false" final="false" visibility="public"
  60210. deprecated="not deprecated">
  60211. <doc>
  60212. <![CDATA[Get the number of occupied reduce slots.
  60213. @return the number of occupied reduce slots]]>
  60214. </doc>
  60215. </method>
  60216. <method name="getAvailableReduceSlots" return="int"
  60217. abstract="false" native="false" synchronized="false"
  60218. static="false" final="false" visibility="public"
  60219. deprecated="not deprecated">
  60220. <doc>
  60221. <![CDATA[Get available reduce slots.
  60222. @return available reduce slots]]>
  60223. </doc>
  60224. </method>
  60225. <method name="getLastSeen" return="long"
  60226. abstract="false" native="false" synchronized="false"
  60227. static="false" final="false" visibility="public"
  60228. deprecated="not deprecated">
  60229. </method>
  60230. <method name="setLastSeen"
  60231. abstract="false" native="false" synchronized="false"
  60232. static="false" final="false" visibility="public"
  60233. deprecated="not deprecated">
  60234. <param name="lastSeen" type="long"/>
  60235. </method>
  60236. <method name="getMaxMapSlots" return="int"
  60237. abstract="false" native="false" synchronized="false"
  60238. static="false" final="false" visibility="public"
  60239. deprecated="not deprecated">
  60240. <doc>
  60241. <![CDATA[Get the maximum map slots for this node.
  60242. @return the maximum map slots for this node]]>
  60243. </doc>
  60244. </method>
  60245. <method name="getMaxReduceSlots" return="int"
  60246. abstract="false" native="false" synchronized="false"
  60247. static="false" final="false" visibility="public"
  60248. deprecated="not deprecated">
  60249. <doc>
  60250. <![CDATA[Get the maximum reduce slots for this node.
  60251. @return the maximum reduce slots for this node]]>
  60252. </doc>
  60253. </method>
  60254. <method name="getHealthStatus" return="org.apache.hadoop.mapred.TaskTrackerStatus.TaskTrackerHealthStatus"
  60255. abstract="false" native="false" synchronized="false"
  60256. static="false" final="false" visibility="public"
  60257. deprecated="not deprecated">
  60258. <doc>
  60259. <![CDATA[Returns health status of the task tracker.
  60260. @return health status of Task Tracker]]>
  60261. </doc>
  60262. </method>
  60263. <method name="write"
  60264. abstract="false" native="false" synchronized="false"
  60265. static="false" final="false" visibility="public"
  60266. deprecated="not deprecated">
  60267. <param name="out" type="java.io.DataOutput"/>
  60268. <exception name="IOException" type="java.io.IOException"/>
  60269. </method>
  60270. <method name="readFields"
  60271. abstract="false" native="false" synchronized="false"
  60272. static="false" final="false" visibility="public"
  60273. deprecated="not deprecated">
  60274. <param name="in" type="java.io.DataInput"/>
  60275. <exception name="IOException" type="java.io.IOException"/>
  60276. </method>
  60277. <field name="LOG" type="org.apache.commons.logging.Log"
  60278. transient="false" volatile="false"
  60279. static="true" final="true" visibility="public"
  60280. deprecated="not deprecated">
  60281. </field>
  60282. <field name="UNAVAILABLE" type="int"
  60283. transient="false" volatile="false"
  60284. static="true" final="true" visibility="public"
  60285. deprecated="not deprecated">
  60286. </field>
  60287. <doc>
  60288. <![CDATA[A TaskTrackerStatus is a MapReduce primitive. Keeps
  60289. info on a TaskTracker. The JobTracker maintains a set
  60290. of the most recent TaskTrackerStatus objects for each
  60291. unique TaskTracker it knows about.
  60292. This is NOT a public interface!]]>
  60293. </doc>
  60294. </class>
  60295. <!-- end class org.apache.hadoop.mapred.TaskTrackerStatus -->
  60296. <!-- start interface org.apache.hadoop.mapred.TaskUmbilicalProtocol -->
  60297. <interface name="TaskUmbilicalProtocol" abstract="true"
  60298. static="false" final="false" visibility="public"
  60299. deprecated="not deprecated">
  60300. <implements name="org.apache.hadoop.ipc.VersionedProtocol"/>
  60301. <method name="getTask" return="org.apache.hadoop.mapred.JvmTask"
  60302. abstract="false" native="false" synchronized="false"
  60303. static="false" final="false" visibility="public"
  60304. deprecated="not deprecated">
  60305. <param name="context" type="org.apache.hadoop.mapred.JvmContext"/>
  60306. <exception name="IOException" type="java.io.IOException"/>
  60307. <doc>
  60308. <![CDATA[Called when a child task process starts, to get its task.
  60309. @param context the JvmContext of the JVM w.r.t the TaskTracker that
  60310. launched it
  60311. @return Task object
  60312. @throws IOException]]>
  60313. </doc>
  60314. </method>
  60315. <method name="statusUpdate" return="boolean"
  60316. abstract="false" native="false" synchronized="false"
  60317. static="false" final="false" visibility="public"
  60318. deprecated="not deprecated">
  60319. <param name="taskId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  60320. <param name="taskStatus" type="org.apache.hadoop.mapred.TaskStatus"/>
  60321. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  60322. <exception name="IOException" type="java.io.IOException"/>
  60323. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  60324. <doc>
  60325. <![CDATA[Report child's progress to parent.
  60326. @param taskId task-id of the child
  60327. @param taskStatus status of the child
  60328. @param jvmContext context the jvmContext running the task.
  60329. @throws IOException
  60330. @throws InterruptedException
  60331. @return True if the task is known]]>
  60332. </doc>
  60333. </method>
  60334. <method name="reportDiagnosticInfo"
  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="trace" type="java.lang.String"/>
  60340. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  60341. <exception name="IOException" type="java.io.IOException"/>
  60342. <doc>
  60343. <![CDATA[Report error messages back to parent. Calls should be sparing, since all
  60344. such messages are held in the job tracker.
  60345. @param taskid the id of the task involved
  60346. @param trace the text to report
  60347. @param jvmContext context the jvmContext running the task.]]>
  60348. </doc>
  60349. </method>
  60350. <method name="reportNextRecordRange"
  60351. abstract="false" native="false" synchronized="false"
  60352. static="false" final="false" visibility="public"
  60353. deprecated="not deprecated">
  60354. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  60355. <param name="range" type="org.apache.hadoop.mapred.SortedRanges.Range"/>
  60356. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  60357. <exception name="IOException" type="java.io.IOException"/>
  60358. <doc>
  60359. <![CDATA[Report the record range which is going to process next by the Task.
  60360. @param taskid the id of the task involved
  60361. @param range the range of record sequence nos
  60362. @param jvmContext context the jvmContext running the task.
  60363. @throws IOException]]>
  60364. </doc>
  60365. </method>
  60366. <method name="ping" return="boolean"
  60367. abstract="false" native="false" synchronized="false"
  60368. static="false" final="false" visibility="public"
  60369. deprecated="not deprecated">
  60370. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  60371. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  60372. <exception name="IOException" type="java.io.IOException"/>
  60373. <doc>
  60374. <![CDATA[Periodically called by child to check if parent is still alive.
  60375. @param taskid the id of the task involved
  60376. @param jvmContext context the jvmContext running the task.
  60377. @return True if the task is known]]>
  60378. </doc>
  60379. </method>
  60380. <method name="done"
  60381. abstract="false" native="false" synchronized="false"
  60382. static="false" final="false" visibility="public"
  60383. deprecated="not deprecated">
  60384. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  60385. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  60386. <exception name="IOException" type="java.io.IOException"/>
  60387. <doc>
  60388. <![CDATA[Report that the task is successfully completed. Failure is assumed if
  60389. the task process exits without calling this.
  60390. @param taskid task's id
  60391. @param jvmContext context the jvmContext running the task.]]>
  60392. </doc>
  60393. </method>
  60394. <method name="commitPending"
  60395. abstract="false" native="false" synchronized="false"
  60396. static="false" final="false" visibility="public"
  60397. deprecated="not deprecated">
  60398. <param name="taskId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  60399. <param name="taskStatus" type="org.apache.hadoop.mapred.TaskStatus"/>
  60400. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  60401. <exception name="IOException" type="java.io.IOException"/>
  60402. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  60403. <doc>
  60404. <![CDATA[Report that the task is complete, but its commit is pending.
  60405. @param taskId task's id
  60406. @param taskStatus status of the child
  60407. @param jvmContext context the jvmContext running the task.
  60408. @throws IOException]]>
  60409. </doc>
  60410. </method>
  60411. <method name="canCommit" return="boolean"
  60412. abstract="false" native="false" synchronized="false"
  60413. static="false" final="false" visibility="public"
  60414. deprecated="not deprecated">
  60415. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  60416. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  60417. <exception name="IOException" type="java.io.IOException"/>
  60418. <doc>
  60419. <![CDATA[Polling to know whether the task can go-ahead with commit
  60420. @param taskid
  60421. @param jvmContext context the jvmContext running the task.
  60422. @return true/false
  60423. @throws IOException]]>
  60424. </doc>
  60425. </method>
  60426. <method name="shuffleError"
  60427. abstract="false" native="false" synchronized="false"
  60428. static="false" final="false" visibility="public"
  60429. deprecated="not deprecated">
  60430. <param name="taskId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  60431. <param name="message" type="java.lang.String"/>
  60432. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  60433. <exception name="IOException" type="java.io.IOException"/>
  60434. <doc>
  60435. <![CDATA[Report that a reduce-task couldn't shuffle map-outputs.]]>
  60436. </doc>
  60437. </method>
  60438. <method name="fsError"
  60439. abstract="false" native="false" synchronized="false"
  60440. static="false" final="false" visibility="public"
  60441. deprecated="not deprecated">
  60442. <param name="taskId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  60443. <param name="message" type="java.lang.String"/>
  60444. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  60445. <exception name="IOException" type="java.io.IOException"/>
  60446. <doc>
  60447. <![CDATA[Report that the task encounted a local filesystem error.]]>
  60448. </doc>
  60449. </method>
  60450. <method name="fatalError"
  60451. abstract="false" native="false" synchronized="false"
  60452. static="false" final="false" visibility="public"
  60453. deprecated="not deprecated">
  60454. <param name="taskId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  60455. <param name="message" type="java.lang.String"/>
  60456. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  60457. <exception name="IOException" type="java.io.IOException"/>
  60458. <doc>
  60459. <![CDATA[Report that the task encounted a fatal error.]]>
  60460. </doc>
  60461. </method>
  60462. <method name="getMapCompletionEvents" return="org.apache.hadoop.mapred.MapTaskCompletionEventsUpdate"
  60463. abstract="false" native="false" synchronized="false"
  60464. static="false" final="false" visibility="public"
  60465. deprecated="not deprecated">
  60466. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  60467. <param name="fromIndex" type="int"/>
  60468. <param name="maxLocs" type="int"/>
  60469. <param name="id" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  60470. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  60471. <exception name="IOException" type="java.io.IOException"/>
  60472. <doc>
  60473. <![CDATA[Called by a reduce task to get the map output locations for finished maps.
  60474. Returns an update centered around the map-task-completion-events.
  60475. The update also piggybacks the information whether the events copy at the
  60476. task-tracker has changed or not. This will trigger some action at the
  60477. child-process.
  60478. @param jobId the reducer job id
  60479. @param fromIndex the index starting from which the locations should be
  60480. fetched
  60481. @param maxLocs the max number of locations to fetch
  60482. @param id The attempt id of the task that is trying to communicate
  60483. @return A {@link MapTaskCompletionEventsUpdate}]]>
  60484. </doc>
  60485. </method>
  60486. <method name="updatePrivateDistributedCacheSizes"
  60487. abstract="false" native="false" synchronized="false"
  60488. static="false" final="false" visibility="public"
  60489. deprecated="not deprecated">
  60490. <param name="jobId" type="org.apache.hadoop.mapreduce.JobID"/>
  60491. <param name="sizes" type="long[]"/>
  60492. <exception name="IOException" type="java.io.IOException"/>
  60493. <doc>
  60494. <![CDATA[The job initializer needs to report the sizes of the archive
  60495. objects and directories in the private distributed cache.
  60496. @param jobId the job to update
  60497. @param sizes the array of sizes that were computed
  60498. @throws IOException]]>
  60499. </doc>
  60500. </method>
  60501. <field name="versionID" type="long"
  60502. transient="false" volatile="false"
  60503. static="true" final="true" visibility="public"
  60504. deprecated="not deprecated">
  60505. <doc>
  60506. <![CDATA[Changed the version to 2, since we have a new method getMapOutputs
  60507. Changed version to 3 to have progress() return a boolean
  60508. Changed the version to 4, since we have replaced
  60509. TaskUmbilicalProtocol.progress(String, float, String,
  60510. org.apache.hadoop.mapred.TaskStatus.Phase, Counters)
  60511. with statusUpdate(String, TaskStatus)
  60512. Version 5 changed counters representation for HADOOP-2248
  60513. Version 6 changes the TaskStatus representation for HADOOP-2208
  60514. Version 7 changes the done api (via HADOOP-3140). It now expects whether
  60515. or not the task's output needs to be promoted.
  60516. Version 8 changes {job|tip|task}id's to use their corresponding
  60517. objects rather than strings.
  60518. Version 9 changes the counter representation for HADOOP-1915
  60519. Version 10 changed the TaskStatus format and added reportNextRecordRange
  60520. for HADOOP-153
  60521. Version 11 Adds RPCs for task commit as part of HADOOP-3150
  60522. Version 12 getMapCompletionEvents() now also indicates if the events are
  60523. stale or not. Hence the return type is a class that
  60524. encapsulates the events and whether to reset events index.
  60525. Version 13 changed the getTask method signature for HADOOP-249
  60526. Version 14 changed the getTask method signature for HADOOP-4232
  60527. Version 15 Adds FAILED_UNCLEAN and KILLED_UNCLEAN states for HADOOP-4759
  60528. Version 16 Added numRequiredSlots to TaskStatus for MAPREDUCE-516
  60529. Version 17 Change in signature of getTask() for HADOOP-5488
  60530. Version 18 Added fatalError for child to communicate fatal errors to TT
  60531. Version 19 Added jvmContext to most method signatures for MAPREDUCE-2429]]>
  60532. </doc>
  60533. </field>
  60534. <doc>
  60535. <![CDATA[Protocol that task child process uses to contact its parent process. The
  60536. parent is a daemon which which polls the central master for a new map or
  60537. reduce task and runs it as a child process. All communication between child
  60538. and parent is via this protocol.]]>
  60539. </doc>
  60540. </interface>
  60541. <!-- end interface org.apache.hadoop.mapred.TaskUmbilicalProtocol -->
  60542. <!-- start class org.apache.hadoop.mapred.TextInputFormat -->
  60543. <class name="TextInputFormat" extends="org.apache.hadoop.mapred.FileInputFormat"
  60544. abstract="false"
  60545. static="false" final="false" visibility="public"
  60546. deprecated="not deprecated">
  60547. <implements name="org.apache.hadoop.mapred.JobConfigurable"/>
  60548. <constructor name="TextInputFormat"
  60549. static="false" final="false" visibility="public"
  60550. deprecated="not deprecated">
  60551. </constructor>
  60552. <method name="configure"
  60553. abstract="false" native="false" synchronized="false"
  60554. static="false" final="false" visibility="public"
  60555. deprecated="not deprecated">
  60556. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  60557. </method>
  60558. <method name="isSplitable" return="boolean"
  60559. abstract="false" native="false" synchronized="false"
  60560. static="false" final="false" visibility="protected"
  60561. deprecated="not deprecated">
  60562. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  60563. <param name="file" type="org.apache.hadoop.fs.Path"/>
  60564. </method>
  60565. <method name="getRecordReader" return="org.apache.hadoop.mapred.RecordReader"
  60566. abstract="false" native="false" synchronized="false"
  60567. static="false" final="false" visibility="public"
  60568. deprecated="not deprecated">
  60569. <param name="genericSplit" type="org.apache.hadoop.mapred.InputSplit"/>
  60570. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  60571. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  60572. <exception name="IOException" type="java.io.IOException"/>
  60573. </method>
  60574. <doc>
  60575. <![CDATA[An {@link InputFormat} for plain text files. Files are broken into lines.
  60576. Either linefeed or carriage-return are used to signal end of line. Keys are
  60577. the position in the file, and values are the line of text..]]>
  60578. </doc>
  60579. </class>
  60580. <!-- end class org.apache.hadoop.mapred.TextInputFormat -->
  60581. <!-- start class org.apache.hadoop.mapred.TextOutputFormat -->
  60582. <class name="TextOutputFormat" extends="org.apache.hadoop.mapred.FileOutputFormat"
  60583. abstract="false"
  60584. static="false" final="false" visibility="public"
  60585. deprecated="not deprecated">
  60586. <constructor name="TextOutputFormat"
  60587. static="false" final="false" visibility="public"
  60588. deprecated="not deprecated">
  60589. </constructor>
  60590. <method name="getRecordWriter" return="org.apache.hadoop.mapred.RecordWriter"
  60591. abstract="false" native="false" synchronized="false"
  60592. static="false" final="false" visibility="public"
  60593. deprecated="not deprecated">
  60594. <param name="ignored" type="org.apache.hadoop.fs.FileSystem"/>
  60595. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  60596. <param name="name" type="java.lang.String"/>
  60597. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  60598. <exception name="IOException" type="java.io.IOException"/>
  60599. </method>
  60600. <doc>
  60601. <![CDATA[An {@link OutputFormat} that writes plain text files.]]>
  60602. </doc>
  60603. </class>
  60604. <!-- end class org.apache.hadoop.mapred.TextOutputFormat -->
  60605. <!-- start class org.apache.hadoop.mapred.TextOutputFormat.LineRecordWriter -->
  60606. <class name="TextOutputFormat.LineRecordWriter" extends="java.lang.Object"
  60607. abstract="false"
  60608. static="true" final="false" visibility="protected"
  60609. deprecated="not deprecated">
  60610. <implements name="org.apache.hadoop.mapred.RecordWriter"/>
  60611. <constructor name="TextOutputFormat.LineRecordWriter" type="java.io.DataOutputStream, java.lang.String"
  60612. static="false" final="false" visibility="public"
  60613. deprecated="not deprecated">
  60614. </constructor>
  60615. <constructor name="TextOutputFormat.LineRecordWriter" type="java.io.DataOutputStream"
  60616. static="false" final="false" visibility="public"
  60617. deprecated="not deprecated">
  60618. </constructor>
  60619. <method name="write"
  60620. abstract="false" native="false" synchronized="true"
  60621. static="false" final="false" visibility="public"
  60622. deprecated="not deprecated">
  60623. <param name="key" type="java.lang.Object"/>
  60624. <param name="value" type="java.lang.Object"/>
  60625. <exception name="IOException" type="java.io.IOException"/>
  60626. </method>
  60627. <method name="close"
  60628. abstract="false" native="false" synchronized="true"
  60629. static="false" final="false" visibility="public"
  60630. deprecated="not deprecated">
  60631. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  60632. <exception name="IOException" type="java.io.IOException"/>
  60633. </method>
  60634. <field name="out" type="java.io.DataOutputStream"
  60635. transient="false" volatile="false"
  60636. static="false" final="false" visibility="protected"
  60637. deprecated="not deprecated">
  60638. </field>
  60639. </class>
  60640. <!-- end class org.apache.hadoop.mapred.TextOutputFormat.LineRecordWriter -->
  60641. <!-- start class org.apache.hadoop.mapred.TIPStatus -->
  60642. <class name="TIPStatus" extends="java.lang.Enum"
  60643. abstract="false"
  60644. static="false" final="true" visibility="public"
  60645. deprecated="not deprecated">
  60646. <method name="values" return="org.apache.hadoop.mapred.TIPStatus[]"
  60647. abstract="false" native="false" synchronized="false"
  60648. static="true" final="false" visibility="public"
  60649. deprecated="not deprecated">
  60650. </method>
  60651. <method name="valueOf" return="org.apache.hadoop.mapred.TIPStatus"
  60652. abstract="false" native="false" synchronized="false"
  60653. static="true" final="false" visibility="public"
  60654. deprecated="not deprecated">
  60655. <param name="name" type="java.lang.String"/>
  60656. </method>
  60657. <field name="PENDING" type="org.apache.hadoop.mapred.TIPStatus"
  60658. transient="false" volatile="false"
  60659. static="true" final="true" visibility="public"
  60660. deprecated="not deprecated">
  60661. </field>
  60662. <field name="RUNNING" type="org.apache.hadoop.mapred.TIPStatus"
  60663. transient="false" volatile="false"
  60664. static="true" final="true" visibility="public"
  60665. deprecated="not deprecated">
  60666. </field>
  60667. <field name="COMPLETE" type="org.apache.hadoop.mapred.TIPStatus"
  60668. transient="false" volatile="false"
  60669. static="true" final="true" visibility="public"
  60670. deprecated="not deprecated">
  60671. </field>
  60672. <field name="KILLED" type="org.apache.hadoop.mapred.TIPStatus"
  60673. transient="false" volatile="false"
  60674. static="true" final="true" visibility="public"
  60675. deprecated="not deprecated">
  60676. </field>
  60677. <field name="FAILED" type="org.apache.hadoop.mapred.TIPStatus"
  60678. transient="false" volatile="false"
  60679. static="true" final="true" visibility="public"
  60680. deprecated="not deprecated">
  60681. </field>
  60682. <doc>
  60683. <![CDATA[The states of a {@link TaskInProgress} as seen by the JobTracker.]]>
  60684. </doc>
  60685. </class>
  60686. <!-- end class org.apache.hadoop.mapred.TIPStatus -->
  60687. <!-- start class org.apache.hadoop.mapred.UserLogCleaner -->
  60688. <class name="UserLogCleaner" extends="java.lang.Thread"
  60689. abstract="false"
  60690. static="false" final="false" visibility="public"
  60691. deprecated="not deprecated">
  60692. <constructor name="UserLogCleaner" type="org.apache.hadoop.mapreduce.server.tasktracker.userlogs.UserLogManager, org.apache.hadoop.conf.Configuration"
  60693. static="false" final="false" visibility="public"
  60694. deprecated="not deprecated">
  60695. <exception name="IOException" type="java.io.IOException"/>
  60696. </constructor>
  60697. <method name="run"
  60698. abstract="false" native="false" synchronized="false"
  60699. static="false" final="false" visibility="public"
  60700. deprecated="not deprecated">
  60701. </method>
  60702. <method name="deleteJobLogs"
  60703. abstract="false" native="false" synchronized="false"
  60704. static="false" final="false" visibility="public"
  60705. deprecated="not deprecated">
  60706. <param name="jobid" type="org.apache.hadoop.mapreduce.JobID"/>
  60707. <exception name="IOException" type="java.io.IOException"/>
  60708. </method>
  60709. <method name="addOldUserLogsForDeletion"
  60710. abstract="false" native="false" synchronized="false"
  60711. static="false" final="false" visibility="public"
  60712. deprecated="not deprecated">
  60713. <param name="loc" type="java.io.File"/>
  60714. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  60715. <exception name="IOException" type="java.io.IOException"/>
  60716. <doc>
  60717. <![CDATA[Adds the job log directories for deletion with default retain hours.
  60718. Deletes all other directories, if any.
  60719. @param loc location of log directory
  60720. @param conf
  60721. @throws IOException]]>
  60722. </doc>
  60723. </method>
  60724. <method name="clearOldUserLogs"
  60725. abstract="false" native="false" synchronized="false"
  60726. static="false" final="false" visibility="public"
  60727. deprecated="not deprecated">
  60728. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  60729. <exception name="IOException" type="java.io.IOException"/>
  60730. <doc>
  60731. <![CDATA[Clears all the logs in userlogs directory. This is usually called on
  60732. reinit/restart of the TaskTracker.
  60733. @param conf
  60734. @throws IOException]]>
  60735. </doc>
  60736. </method>
  60737. <method name="markJobLogsForDeletion"
  60738. abstract="false" native="false" synchronized="false"
  60739. static="false" final="false" visibility="public"
  60740. deprecated="not deprecated">
  60741. <param name="jobCompletionTime" type="long"/>
  60742. <param name="retainHours" type="int"/>
  60743. <param name="jobid" type="org.apache.hadoop.mapreduce.JobID"/>
  60744. <doc>
  60745. <![CDATA[Adds job user-log directory to cleanup thread to delete logs after user-log
  60746. retain hours.
  60747. @param jobCompletionTime
  60748. job completion time in millis
  60749. @param retainHours
  60750. the user-log retain hours for the job
  60751. @param jobid
  60752. JobID for which user logs should be deleted]]>
  60753. </doc>
  60754. </method>
  60755. <method name="unmarkJobFromLogDeletion"
  60756. abstract="false" native="false" synchronized="false"
  60757. static="false" final="false" visibility="public"
  60758. deprecated="not deprecated">
  60759. <param name="jobid" type="org.apache.hadoop.mapreduce.JobID"/>
  60760. <doc>
  60761. <![CDATA[Remove job from user log deletion.
  60762. @param jobid]]>
  60763. </doc>
  60764. </method>
  60765. <doc>
  60766. <![CDATA[This is used only in UserLogManager, to manage cleanup of user logs.]]>
  60767. </doc>
  60768. </class>
  60769. <!-- end class org.apache.hadoop.mapred.UserLogCleaner -->
  60770. <!-- start class org.apache.hadoop.mapred.Utils -->
  60771. <class name="Utils" extends="java.lang.Object"
  60772. abstract="false"
  60773. static="false" final="false" visibility="public"
  60774. deprecated="not deprecated">
  60775. <constructor name="Utils"
  60776. static="false" final="false" visibility="public"
  60777. deprecated="not deprecated">
  60778. </constructor>
  60779. <doc>
  60780. <![CDATA[A utility class. It provides
  60781. - file-util
  60782. - A path filter utility to filter out output/part files in the output dir]]>
  60783. </doc>
  60784. </class>
  60785. <!-- end class org.apache.hadoop.mapred.Utils -->
  60786. <!-- start class org.apache.hadoop.mapred.Utils.OutputFileUtils -->
  60787. <class name="Utils.OutputFileUtils" extends="java.lang.Object"
  60788. abstract="false"
  60789. static="true" final="false" visibility="public"
  60790. deprecated="not deprecated">
  60791. <constructor name="Utils.OutputFileUtils"
  60792. static="false" final="false" visibility="public"
  60793. deprecated="not deprecated">
  60794. </constructor>
  60795. </class>
  60796. <!-- end class org.apache.hadoop.mapred.Utils.OutputFileUtils -->
  60797. <!-- start class org.apache.hadoop.mapred.Utils.OutputFileUtils.OutputFilesFilter -->
  60798. <class name="Utils.OutputFileUtils.OutputFilesFilter" extends="org.apache.hadoop.mapred.Utils.OutputFileUtils.OutputLogFilter"
  60799. abstract="false"
  60800. static="true" final="false" visibility="public"
  60801. deprecated="not deprecated">
  60802. <constructor name="Utils.OutputFileUtils.OutputFilesFilter"
  60803. static="false" final="false" visibility="public"
  60804. deprecated="not deprecated">
  60805. </constructor>
  60806. <method name="accept" return="boolean"
  60807. abstract="false" native="false" synchronized="false"
  60808. static="false" final="false" visibility="public"
  60809. deprecated="not deprecated">
  60810. <param name="path" type="org.apache.hadoop.fs.Path"/>
  60811. </method>
  60812. <doc>
  60813. <![CDATA[This class filters output(part) files from the given directory
  60814. It does not accept files with filenames _logs and _SUCCESS.
  60815. This can be used to list paths of output directory as follows:
  60816. Path[] fileList = FileUtil.stat2Paths(fs.listStatus(outDir,
  60817. new OutputFilesFilter()));]]>
  60818. </doc>
  60819. </class>
  60820. <!-- end class org.apache.hadoop.mapred.Utils.OutputFileUtils.OutputFilesFilter -->
  60821. <!-- start class org.apache.hadoop.mapred.Utils.OutputFileUtils.OutputLogFilter -->
  60822. <class name="Utils.OutputFileUtils.OutputLogFilter" extends="java.lang.Object"
  60823. abstract="false"
  60824. static="true" final="false" visibility="public"
  60825. deprecated="not deprecated">
  60826. <implements name="org.apache.hadoop.fs.PathFilter"/>
  60827. <constructor name="Utils.OutputFileUtils.OutputLogFilter"
  60828. static="false" final="false" visibility="public"
  60829. deprecated="not deprecated">
  60830. </constructor>
  60831. <method name="accept" return="boolean"
  60832. abstract="false" native="false" synchronized="false"
  60833. static="false" final="false" visibility="public"
  60834. deprecated="not deprecated">
  60835. <param name="path" type="org.apache.hadoop.fs.Path"/>
  60836. </method>
  60837. <doc>
  60838. <![CDATA[This class filters log files from directory given
  60839. It doesnt accept paths having _logs.
  60840. This can be used to list paths of output directory as follows:
  60841. Path[] fileList = FileUtil.stat2Paths(fs.listStatus(outDir,
  60842. new OutputLogFilter()));]]>
  60843. </doc>
  60844. </class>
  60845. <!-- end class org.apache.hadoop.mapred.Utils.OutputFileUtils.OutputLogFilter -->
  60846. </package>
  60847. <package name="org.apache.hadoop.mapred.jobcontrol">
  60848. <!-- start class org.apache.hadoop.mapred.jobcontrol.Job -->
  60849. <class name="Job" extends="java.lang.Object"
  60850. abstract="false"
  60851. static="false" final="false" visibility="public"
  60852. deprecated="not deprecated">
  60853. <constructor name="Job" type="org.apache.hadoop.mapred.JobConf, java.util.ArrayList"
  60854. static="false" final="false" visibility="public"
  60855. deprecated="not deprecated">
  60856. <exception name="IOException" type="java.io.IOException"/>
  60857. <doc>
  60858. <![CDATA[Construct a job.
  60859. @param jobConf a mapred job configuration representing a job to be executed.
  60860. @param dependingJobs an array of jobs the current job depends on]]>
  60861. </doc>
  60862. </constructor>
  60863. <constructor name="Job" type="org.apache.hadoop.mapred.JobConf"
  60864. static="false" final="false" visibility="public"
  60865. deprecated="not deprecated">
  60866. <exception name="IOException" type="java.io.IOException"/>
  60867. <doc>
  60868. <![CDATA[Construct a job.
  60869. @param jobConf mapred job configuration representing a job to be executed.
  60870. @throws IOException]]>
  60871. </doc>
  60872. </constructor>
  60873. <method name="toString" return="java.lang.String"
  60874. abstract="false" native="false" synchronized="false"
  60875. static="false" final="false" visibility="public"
  60876. deprecated="not deprecated">
  60877. </method>
  60878. <method name="getJobName" return="java.lang.String"
  60879. abstract="false" native="false" synchronized="false"
  60880. static="false" final="false" visibility="public"
  60881. deprecated="not deprecated">
  60882. <doc>
  60883. <![CDATA[@return the job name of this job]]>
  60884. </doc>
  60885. </method>
  60886. <method name="setJobName"
  60887. abstract="false" native="false" synchronized="false"
  60888. static="false" final="false" visibility="public"
  60889. deprecated="not deprecated">
  60890. <param name="jobName" type="java.lang.String"/>
  60891. <doc>
  60892. <![CDATA[Set the job name for this job.
  60893. @param jobName the job name]]>
  60894. </doc>
  60895. </method>
  60896. <method name="getJobID" return="java.lang.String"
  60897. abstract="false" native="false" synchronized="false"
  60898. static="false" final="false" visibility="public"
  60899. deprecated="not deprecated">
  60900. <doc>
  60901. <![CDATA[@return the job ID of this job assigned by JobControl]]>
  60902. </doc>
  60903. </method>
  60904. <method name="setJobID"
  60905. abstract="false" native="false" synchronized="false"
  60906. static="false" final="false" visibility="public"
  60907. deprecated="not deprecated">
  60908. <param name="id" type="java.lang.String"/>
  60909. <doc>
  60910. <![CDATA[Set the job ID for this job.
  60911. @param id the job ID]]>
  60912. </doc>
  60913. </method>
  60914. <method name="getMapredJobID" return="java.lang.String"
  60915. abstract="false" native="false" synchronized="false"
  60916. static="false" final="false" visibility="public"
  60917. deprecated="use {@link #getAssignedJobID()} instead">
  60918. <doc>
  60919. <![CDATA[@return the mapred ID of this job
  60920. @deprecated use {@link #getAssignedJobID()} instead]]>
  60921. </doc>
  60922. </method>
  60923. <method name="setMapredJobID"
  60924. abstract="false" native="false" synchronized="false"
  60925. static="false" final="false" visibility="public"
  60926. deprecated="use {@link #setAssignedJobID(JobID)} instead">
  60927. <param name="mapredJobID" type="java.lang.String"/>
  60928. <doc>
  60929. <![CDATA[Set the mapred ID for this job.
  60930. @param mapredJobID the mapred job ID for this job.
  60931. @deprecated use {@link #setAssignedJobID(JobID)} instead]]>
  60932. </doc>
  60933. </method>
  60934. <method name="getAssignedJobID" return="org.apache.hadoop.mapred.JobID"
  60935. abstract="false" native="false" synchronized="false"
  60936. static="false" final="false" visibility="public"
  60937. deprecated="not deprecated">
  60938. <doc>
  60939. <![CDATA[@return the mapred ID of this job as assigned by the
  60940. mapred framework.]]>
  60941. </doc>
  60942. </method>
  60943. <method name="setAssignedJobID"
  60944. abstract="false" native="false" synchronized="false"
  60945. static="false" final="false" visibility="public"
  60946. deprecated="not deprecated">
  60947. <param name="mapredJobID" type="org.apache.hadoop.mapred.JobID"/>
  60948. <doc>
  60949. <![CDATA[Set the mapred ID for this job as assigned by the
  60950. mapred framework.
  60951. @param mapredJobID the mapred job ID for this job.]]>
  60952. </doc>
  60953. </method>
  60954. <method name="getJobConf" return="org.apache.hadoop.mapred.JobConf"
  60955. abstract="false" native="false" synchronized="false"
  60956. static="false" final="false" visibility="public"
  60957. deprecated="not deprecated">
  60958. <doc>
  60959. <![CDATA[@return the mapred job conf of this job]]>
  60960. </doc>
  60961. </method>
  60962. <method name="setJobConf"
  60963. abstract="false" native="false" synchronized="false"
  60964. static="false" final="false" visibility="public"
  60965. deprecated="not deprecated">
  60966. <param name="jobConf" type="org.apache.hadoop.mapred.JobConf"/>
  60967. <doc>
  60968. <![CDATA[Set the mapred job conf for this job.
  60969. @param jobConf the mapred job conf for this job.]]>
  60970. </doc>
  60971. </method>
  60972. <method name="getState" return="int"
  60973. abstract="false" native="false" synchronized="true"
  60974. static="false" final="false" visibility="public"
  60975. deprecated="not deprecated">
  60976. <doc>
  60977. <![CDATA[@return the state of this job]]>
  60978. </doc>
  60979. </method>
  60980. <method name="setState"
  60981. abstract="false" native="false" synchronized="true"
  60982. static="false" final="false" visibility="protected"
  60983. deprecated="not deprecated">
  60984. <param name="state" type="int"/>
  60985. <doc>
  60986. <![CDATA[Set the state for this job.
  60987. @param state the new state for this job.]]>
  60988. </doc>
  60989. </method>
  60990. <method name="getMessage" return="java.lang.String"
  60991. abstract="false" native="false" synchronized="false"
  60992. static="false" final="false" visibility="public"
  60993. deprecated="not deprecated">
  60994. <doc>
  60995. <![CDATA[@return the message of this job]]>
  60996. </doc>
  60997. </method>
  60998. <method name="setMessage"
  60999. abstract="false" native="false" synchronized="false"
  61000. static="false" final="false" visibility="public"
  61001. deprecated="not deprecated">
  61002. <param name="message" type="java.lang.String"/>
  61003. <doc>
  61004. <![CDATA[Set the message for this job.
  61005. @param message the message for this job.]]>
  61006. </doc>
  61007. </method>
  61008. <method name="getJobClient" return="org.apache.hadoop.mapred.JobClient"
  61009. abstract="false" native="false" synchronized="false"
  61010. static="false" final="false" visibility="public"
  61011. deprecated="not deprecated">
  61012. <doc>
  61013. <![CDATA[@return the job client of this job]]>
  61014. </doc>
  61015. </method>
  61016. <method name="getDependingJobs" return="java.util.ArrayList"
  61017. abstract="false" native="false" synchronized="false"
  61018. static="false" final="false" visibility="public"
  61019. deprecated="not deprecated">
  61020. <doc>
  61021. <![CDATA[@return the depending jobs of this job]]>
  61022. </doc>
  61023. </method>
  61024. <method name="addDependingJob" return="boolean"
  61025. abstract="false" native="false" synchronized="true"
  61026. static="false" final="false" visibility="public"
  61027. deprecated="not deprecated">
  61028. <param name="dependingJob" type="org.apache.hadoop.mapred.jobcontrol.Job"/>
  61029. <doc>
  61030. <![CDATA[Add a job to this jobs' dependency list. Dependent jobs can only be added while a Job
  61031. is waiting to run, not during or afterwards.
  61032. @param dependingJob Job that this Job depends on.
  61033. @return <tt>true</tt> if the Job was added.]]>
  61034. </doc>
  61035. </method>
  61036. <method name="isCompleted" return="boolean"
  61037. abstract="false" native="false" synchronized="false"
  61038. static="false" final="false" visibility="public"
  61039. deprecated="not deprecated">
  61040. <doc>
  61041. <![CDATA[@return true if this job is in a complete state]]>
  61042. </doc>
  61043. </method>
  61044. <method name="isReady" return="boolean"
  61045. abstract="false" native="false" synchronized="false"
  61046. static="false" final="false" visibility="public"
  61047. deprecated="not deprecated">
  61048. <doc>
  61049. <![CDATA[@return true if this job is in READY state]]>
  61050. </doc>
  61051. </method>
  61052. <method name="submit"
  61053. abstract="false" native="false" synchronized="true"
  61054. static="false" final="false" visibility="protected"
  61055. deprecated="not deprecated">
  61056. <doc>
  61057. <![CDATA[Submit this job to mapred. The state becomes RUNNING if submission
  61058. is successful, FAILED otherwise.]]>
  61059. </doc>
  61060. </method>
  61061. <field name="SUCCESS" type="int"
  61062. transient="false" volatile="false"
  61063. static="true" final="true" visibility="public"
  61064. deprecated="not deprecated">
  61065. </field>
  61066. <field name="WAITING" type="int"
  61067. transient="false" volatile="false"
  61068. static="true" final="true" visibility="public"
  61069. deprecated="not deprecated">
  61070. </field>
  61071. <field name="RUNNING" type="int"
  61072. transient="false" volatile="false"
  61073. static="true" final="true" visibility="public"
  61074. deprecated="not deprecated">
  61075. </field>
  61076. <field name="READY" type="int"
  61077. transient="false" volatile="false"
  61078. static="true" final="true" visibility="public"
  61079. deprecated="not deprecated">
  61080. </field>
  61081. <field name="FAILED" type="int"
  61082. transient="false" volatile="false"
  61083. static="true" final="true" visibility="public"
  61084. deprecated="not deprecated">
  61085. </field>
  61086. <field name="DEPENDENT_FAILED" type="int"
  61087. transient="false" volatile="false"
  61088. static="true" final="true" visibility="public"
  61089. deprecated="not deprecated">
  61090. </field>
  61091. <doc>
  61092. <![CDATA[This class encapsulates a MapReduce job and its dependency. It monitors
  61093. the states of the depending jobs and updates the state of this job.
  61094. A job starts in the WAITING state. If it does not have any depending jobs, or
  61095. all of the depending jobs are in SUCCESS state, then the job state will become
  61096. READY. If any depending jobs fail, the job will fail too.
  61097. When in READY state, the job can be submitted to Hadoop for execution, with
  61098. the state changing into RUNNING state. From RUNNING state, the job can get into
  61099. SUCCESS or FAILED state, depending the status of the job execution.]]>
  61100. </doc>
  61101. </class>
  61102. <!-- end class org.apache.hadoop.mapred.jobcontrol.Job -->
  61103. <!-- start class org.apache.hadoop.mapred.jobcontrol.JobControl -->
  61104. <class name="JobControl" extends="java.lang.Object"
  61105. abstract="false"
  61106. static="false" final="false" visibility="public"
  61107. deprecated="not deprecated">
  61108. <implements name="java.lang.Runnable"/>
  61109. <constructor name="JobControl" type="java.lang.String"
  61110. static="false" final="false" visibility="public"
  61111. deprecated="not deprecated">
  61112. <doc>
  61113. <![CDATA[Construct a job control for a group of jobs.
  61114. @param groupName a name identifying this group]]>
  61115. </doc>
  61116. </constructor>
  61117. <method name="getWaitingJobs" return="java.util.ArrayList"
  61118. abstract="false" native="false" synchronized="false"
  61119. static="false" final="false" visibility="public"
  61120. deprecated="not deprecated">
  61121. <doc>
  61122. <![CDATA[@return the jobs in the waiting state]]>
  61123. </doc>
  61124. </method>
  61125. <method name="getRunningJobs" return="java.util.ArrayList"
  61126. abstract="false" native="false" synchronized="false"
  61127. static="false" final="false" visibility="public"
  61128. deprecated="not deprecated">
  61129. <doc>
  61130. <![CDATA[@return the jobs in the running state]]>
  61131. </doc>
  61132. </method>
  61133. <method name="getReadyJobs" return="java.util.ArrayList"
  61134. abstract="false" native="false" synchronized="false"
  61135. static="false" final="false" visibility="public"
  61136. deprecated="not deprecated">
  61137. <doc>
  61138. <![CDATA[@return the jobs in the ready state]]>
  61139. </doc>
  61140. </method>
  61141. <method name="getSuccessfulJobs" return="java.util.ArrayList"
  61142. abstract="false" native="false" synchronized="false"
  61143. static="false" final="false" visibility="public"
  61144. deprecated="not deprecated">
  61145. <doc>
  61146. <![CDATA[@return the jobs in the success state]]>
  61147. </doc>
  61148. </method>
  61149. <method name="getFailedJobs" return="java.util.ArrayList"
  61150. abstract="false" native="false" synchronized="false"
  61151. static="false" final="false" visibility="public"
  61152. deprecated="not deprecated">
  61153. </method>
  61154. <method name="addJob" return="java.lang.String"
  61155. abstract="false" native="false" synchronized="true"
  61156. static="false" final="false" visibility="public"
  61157. deprecated="not deprecated">
  61158. <param name="aJob" type="org.apache.hadoop.mapred.jobcontrol.Job"/>
  61159. <doc>
  61160. <![CDATA[Add a new job.
  61161. @param aJob the new job]]>
  61162. </doc>
  61163. </method>
  61164. <method name="addJobs"
  61165. abstract="false" native="false" synchronized="false"
  61166. static="false" final="false" visibility="public"
  61167. deprecated="not deprecated">
  61168. <param name="jobs" type="java.util.Collection"/>
  61169. <doc>
  61170. <![CDATA[Add a collection of jobs
  61171. @param jobs]]>
  61172. </doc>
  61173. </method>
  61174. <method name="getState" return="int"
  61175. abstract="false" native="false" synchronized="false"
  61176. static="false" final="false" visibility="public"
  61177. deprecated="not deprecated">
  61178. <doc>
  61179. <![CDATA[@return the thread state]]>
  61180. </doc>
  61181. </method>
  61182. <method name="stop"
  61183. abstract="false" native="false" synchronized="false"
  61184. static="false" final="false" visibility="public"
  61185. deprecated="not deprecated">
  61186. <doc>
  61187. <![CDATA[set the thread state to STOPPING so that the
  61188. thread will stop when it wakes up.]]>
  61189. </doc>
  61190. </method>
  61191. <method name="suspend"
  61192. abstract="false" native="false" synchronized="false"
  61193. static="false" final="false" visibility="public"
  61194. deprecated="not deprecated">
  61195. <doc>
  61196. <![CDATA[suspend the running thread]]>
  61197. </doc>
  61198. </method>
  61199. <method name="resume"
  61200. abstract="false" native="false" synchronized="false"
  61201. static="false" final="false" visibility="public"
  61202. deprecated="not deprecated">
  61203. <doc>
  61204. <![CDATA[resume the suspended thread]]>
  61205. </doc>
  61206. </method>
  61207. <method name="allFinished" return="boolean"
  61208. abstract="false" native="false" synchronized="true"
  61209. static="false" final="false" visibility="public"
  61210. deprecated="not deprecated">
  61211. </method>
  61212. <method name="run"
  61213. abstract="false" native="false" synchronized="false"
  61214. static="false" final="false" visibility="public"
  61215. deprecated="not deprecated">
  61216. <doc>
  61217. <![CDATA[The main loop for the thread.
  61218. The loop does the following:
  61219. Check the states of the running jobs
  61220. Update the states of waiting jobs
  61221. Submit the jobs in ready state]]>
  61222. </doc>
  61223. </method>
  61224. <doc>
  61225. <![CDATA[This class encapsulates a set of MapReduce jobs and its dependency. It tracks
  61226. the states of the jobs by placing them into different tables according to their
  61227. states.
  61228. This class provides APIs for the client app to add a job to the group and to get
  61229. the jobs in the group in different states. When a
  61230. job is added, an ID unique to the group is assigned to the job.
  61231. This class has a thread that submits jobs when they become ready, monitors the
  61232. states of the running jobs, and updates the states of jobs based on the state changes
  61233. of their depending jobs states. The class provides APIs for suspending/resuming
  61234. the thread,and for stopping the thread.]]>
  61235. </doc>
  61236. </class>
  61237. <!-- end class org.apache.hadoop.mapred.jobcontrol.JobControl -->
  61238. </package>
  61239. <package name="org.apache.hadoop.mapred.join">
  61240. <!-- start class org.apache.hadoop.mapred.join.ArrayListBackedIterator -->
  61241. <class name="ArrayListBackedIterator" extends="java.lang.Object"
  61242. abstract="false"
  61243. static="false" final="false" visibility="public"
  61244. deprecated="not deprecated">
  61245. <implements name="org.apache.hadoop.mapred.join.ResetableIterator"/>
  61246. <constructor name="ArrayListBackedIterator"
  61247. static="false" final="false" visibility="public"
  61248. deprecated="not deprecated">
  61249. </constructor>
  61250. <constructor name="ArrayListBackedIterator" type="java.util.ArrayList"
  61251. static="false" final="false" visibility="public"
  61252. deprecated="not deprecated">
  61253. </constructor>
  61254. <method name="hasNext" return="boolean"
  61255. abstract="false" native="false" synchronized="false"
  61256. static="false" final="false" visibility="public"
  61257. deprecated="not deprecated">
  61258. </method>
  61259. <method name="next" return="boolean"
  61260. abstract="false" native="false" synchronized="false"
  61261. static="false" final="false" visibility="public"
  61262. deprecated="not deprecated">
  61263. <param name="val" type="org.apache.hadoop.io.Writable"/>
  61264. <exception name="IOException" type="java.io.IOException"/>
  61265. </method>
  61266. <method name="replay" return="boolean"
  61267. abstract="false" native="false" synchronized="false"
  61268. static="false" final="false" visibility="public"
  61269. deprecated="not deprecated">
  61270. <param name="val" type="org.apache.hadoop.io.Writable"/>
  61271. <exception name="IOException" type="java.io.IOException"/>
  61272. </method>
  61273. <method name="reset"
  61274. abstract="false" native="false" synchronized="false"
  61275. static="false" final="false" visibility="public"
  61276. deprecated="not deprecated">
  61277. </method>
  61278. <method name="add"
  61279. abstract="false" native="false" synchronized="false"
  61280. static="false" final="false" visibility="public"
  61281. deprecated="not deprecated">
  61282. <param name="item" type="org.apache.hadoop.io.Writable"/>
  61283. <exception name="IOException" type="java.io.IOException"/>
  61284. </method>
  61285. <method name="close"
  61286. abstract="false" native="false" synchronized="false"
  61287. static="false" final="false" visibility="public"
  61288. deprecated="not deprecated">
  61289. <exception name="IOException" type="java.io.IOException"/>
  61290. </method>
  61291. <method name="clear"
  61292. abstract="false" native="false" synchronized="false"
  61293. static="false" final="false" visibility="public"
  61294. deprecated="not deprecated">
  61295. </method>
  61296. <doc>
  61297. <![CDATA[This class provides an implementation of ResetableIterator. The
  61298. implementation uses an {@link java.util.ArrayList} to store elements
  61299. added to it, replaying them as requested.
  61300. Prefer {@link StreamBackedIterator}.]]>
  61301. </doc>
  61302. </class>
  61303. <!-- end class org.apache.hadoop.mapred.join.ArrayListBackedIterator -->
  61304. <!-- start interface org.apache.hadoop.mapred.join.ComposableInputFormat -->
  61305. <interface name="ComposableInputFormat" abstract="true"
  61306. static="false" final="false" visibility="public"
  61307. deprecated="not deprecated">
  61308. <implements name="org.apache.hadoop.mapred.InputFormat"/>
  61309. <method name="getRecordReader" return="org.apache.hadoop.mapred.join.ComposableRecordReader"
  61310. abstract="false" native="false" synchronized="false"
  61311. static="false" final="false" visibility="public"
  61312. deprecated="not deprecated">
  61313. <param name="split" type="org.apache.hadoop.mapred.InputSplit"/>
  61314. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  61315. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  61316. <exception name="IOException" type="java.io.IOException"/>
  61317. </method>
  61318. <doc>
  61319. <![CDATA[Refinement of InputFormat requiring implementors to provide
  61320. ComposableRecordReader instead of RecordReader.]]>
  61321. </doc>
  61322. </interface>
  61323. <!-- end interface org.apache.hadoop.mapred.join.ComposableInputFormat -->
  61324. <!-- start interface org.apache.hadoop.mapred.join.ComposableRecordReader -->
  61325. <interface name="ComposableRecordReader" abstract="true"
  61326. static="false" final="false" visibility="public"
  61327. deprecated="not deprecated">
  61328. <implements name="org.apache.hadoop.mapred.RecordReader"/>
  61329. <implements name="java.lang.Comparable"/>
  61330. <method name="id" return="int"
  61331. abstract="false" native="false" synchronized="false"
  61332. static="false" final="false" visibility="public"
  61333. deprecated="not deprecated">
  61334. <doc>
  61335. <![CDATA[Return the position in the collector this class occupies.]]>
  61336. </doc>
  61337. </method>
  61338. <method name="key" return="org.apache.hadoop.io.WritableComparable"
  61339. abstract="false" native="false" synchronized="false"
  61340. static="false" final="false" visibility="public"
  61341. deprecated="not deprecated">
  61342. <doc>
  61343. <![CDATA[Return the key this RecordReader would supply on a call to next(K,V)]]>
  61344. </doc>
  61345. </method>
  61346. <method name="key"
  61347. abstract="false" native="false" synchronized="false"
  61348. static="false" final="false" visibility="public"
  61349. deprecated="not deprecated">
  61350. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  61351. <exception name="IOException" type="java.io.IOException"/>
  61352. <doc>
  61353. <![CDATA[Clone the key at the head of this RecordReader into the object provided.]]>
  61354. </doc>
  61355. </method>
  61356. <method name="hasNext" return="boolean"
  61357. abstract="false" native="false" synchronized="false"
  61358. static="false" final="false" visibility="public"
  61359. deprecated="not deprecated">
  61360. <doc>
  61361. <![CDATA[Returns true if the stream is not empty, but provides no guarantee that
  61362. a call to next(K,V) will succeed.]]>
  61363. </doc>
  61364. </method>
  61365. <method name="skip"
  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[Skip key-value pairs with keys less than or equal to the key provided.]]>
  61373. </doc>
  61374. </method>
  61375. <method name="accept"
  61376. abstract="false" native="false" synchronized="false"
  61377. static="false" final="false" visibility="public"
  61378. deprecated="not deprecated">
  61379. <param name="jc" type="org.apache.hadoop.mapred.join.CompositeRecordReader.JoinCollector"/>
  61380. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  61381. <exception name="IOException" type="java.io.IOException"/>
  61382. <doc>
  61383. <![CDATA[While key-value pairs from this RecordReader match the given key, register
  61384. them with the JoinCollector provided.]]>
  61385. </doc>
  61386. </method>
  61387. <doc>
  61388. <![CDATA[Additional operations required of a RecordReader to participate in a join.]]>
  61389. </doc>
  61390. </interface>
  61391. <!-- end interface org.apache.hadoop.mapred.join.ComposableRecordReader -->
  61392. <!-- start class org.apache.hadoop.mapred.join.CompositeInputFormat -->
  61393. <class name="CompositeInputFormat" extends="java.lang.Object"
  61394. abstract="false"
  61395. static="false" final="false" visibility="public"
  61396. deprecated="not deprecated">
  61397. <implements name="org.apache.hadoop.mapred.join.ComposableInputFormat"/>
  61398. <constructor name="CompositeInputFormat"
  61399. static="false" final="false" visibility="public"
  61400. deprecated="not deprecated">
  61401. </constructor>
  61402. <method name="setFormat"
  61403. abstract="false" native="false" synchronized="false"
  61404. static="false" final="false" visibility="public"
  61405. deprecated="not deprecated">
  61406. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  61407. <exception name="IOException" type="java.io.IOException"/>
  61408. <doc>
  61409. <![CDATA[Interpret a given string as a composite expression.
  61410. {@code
  61411. func ::= <ident>([<func>,]*<func>)
  61412. func ::= tbl(<class>,"<path>")
  61413. class ::= @see java.lang.Class#forName(java.lang.String)
  61414. path ::= @see org.apache.hadoop.fs.Path#Path(java.lang.String)
  61415. }
  61416. Reads expression from the <tt>mapred.join.expr</tt> property and
  61417. user-supplied join types from <tt>mapred.join.define.&lt;ident&gt;</tt>
  61418. types. Paths supplied to <tt>tbl</tt> are given as input paths to the
  61419. InputFormat class listed.
  61420. @see #compose(java.lang.String, java.lang.Class, java.lang.String...)]]>
  61421. </doc>
  61422. </method>
  61423. <method name="addDefaults"
  61424. abstract="false" native="false" synchronized="false"
  61425. static="false" final="false" visibility="protected"
  61426. deprecated="not deprecated">
  61427. <doc>
  61428. <![CDATA[Adds the default set of identifiers to the parser.]]>
  61429. </doc>
  61430. </method>
  61431. <method name="getSplits" return="org.apache.hadoop.mapred.InputSplit[]"
  61432. abstract="false" native="false" synchronized="false"
  61433. static="false" final="false" visibility="public"
  61434. deprecated="not deprecated">
  61435. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  61436. <param name="numSplits" type="int"/>
  61437. <exception name="IOException" type="java.io.IOException"/>
  61438. <doc>
  61439. <![CDATA[Build a CompositeInputSplit from the child InputFormats by assigning the
  61440. ith split from each child to the ith composite split.]]>
  61441. </doc>
  61442. </method>
  61443. <method name="getRecordReader" return="org.apache.hadoop.mapred.join.ComposableRecordReader"
  61444. abstract="false" native="false" synchronized="false"
  61445. static="false" final="false" visibility="public"
  61446. deprecated="not deprecated">
  61447. <param name="split" type="org.apache.hadoop.mapred.InputSplit"/>
  61448. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  61449. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  61450. <exception name="IOException" type="java.io.IOException"/>
  61451. <doc>
  61452. <![CDATA[Construct a CompositeRecordReader for the children of this InputFormat
  61453. as defined in the init expression.
  61454. The outermost join need only be composable, not necessarily a composite.
  61455. Mandating TupleWritable isn't strictly correct.]]>
  61456. </doc>
  61457. </method>
  61458. <method name="compose" return="java.lang.String"
  61459. abstract="false" native="false" synchronized="false"
  61460. static="true" final="false" visibility="public"
  61461. deprecated="not deprecated">
  61462. <param name="inf" type="java.lang.Class"/>
  61463. <param name="path" type="java.lang.String"/>
  61464. <doc>
  61465. <![CDATA[Convenience method for constructing composite formats.
  61466. Given InputFormat class (inf), path (p) return:
  61467. {@code tbl(<inf>, <p>) }]]>
  61468. </doc>
  61469. </method>
  61470. <method name="compose" return="java.lang.String"
  61471. abstract="false" native="false" synchronized="false"
  61472. static="true" final="false" visibility="public"
  61473. deprecated="not deprecated">
  61474. <param name="op" type="java.lang.String"/>
  61475. <param name="inf" type="java.lang.Class"/>
  61476. <param name="path" type="java.lang.String[]"/>
  61477. <doc>
  61478. <![CDATA[Convenience method for constructing composite formats.
  61479. Given operation (op), Object class (inf), set of paths (p) return:
  61480. {@code <op>(tbl(<inf>,<p1>),tbl(<inf>,<p2>),...,tbl(<inf>,<pn>)) }]]>
  61481. </doc>
  61482. </method>
  61483. <method name="compose" return="java.lang.String"
  61484. abstract="false" native="false" synchronized="false"
  61485. static="true" final="false" visibility="public"
  61486. deprecated="not deprecated">
  61487. <param name="op" type="java.lang.String"/>
  61488. <param name="inf" type="java.lang.Class"/>
  61489. <param name="path" type="org.apache.hadoop.fs.Path[]"/>
  61490. <doc>
  61491. <![CDATA[Convenience method for constructing composite formats.
  61492. Given operation (op), Object class (inf), set of paths (p) return:
  61493. {@code <op>(tbl(<inf>,<p1>),tbl(<inf>,<p2>),...,tbl(<inf>,<pn>)) }]]>
  61494. </doc>
  61495. </method>
  61496. <doc>
  61497. <![CDATA[An InputFormat capable of performing joins over a set of data sources sorted
  61498. and partitioned the same way.
  61499. @see #setFormat
  61500. A user may define new join types by setting the property
  61501. <tt>mapred.join.define.&lt;ident&gt;</tt> to a classname. In the expression
  61502. <tt>mapred.join.expr</tt>, the identifier will be assumed to be a
  61503. ComposableRecordReader.
  61504. <tt>mapred.join.keycomparator</tt> can be a classname used to compare keys
  61505. in the join.
  61506. @see JoinRecordReader
  61507. @see MultiFilterRecordReader]]>
  61508. </doc>
  61509. </class>
  61510. <!-- end class org.apache.hadoop.mapred.join.CompositeInputFormat -->
  61511. <!-- start class org.apache.hadoop.mapred.join.CompositeInputSplit -->
  61512. <class name="CompositeInputSplit" extends="java.lang.Object"
  61513. abstract="false"
  61514. static="false" final="false" visibility="public"
  61515. deprecated="not deprecated">
  61516. <implements name="org.apache.hadoop.mapred.InputSplit"/>
  61517. <constructor name="CompositeInputSplit"
  61518. static="false" final="false" visibility="public"
  61519. deprecated="not deprecated">
  61520. </constructor>
  61521. <constructor name="CompositeInputSplit" type="int"
  61522. static="false" final="false" visibility="public"
  61523. deprecated="not deprecated">
  61524. </constructor>
  61525. <method name="add"
  61526. abstract="false" native="false" synchronized="false"
  61527. static="false" final="false" visibility="public"
  61528. deprecated="not deprecated">
  61529. <param name="s" type="org.apache.hadoop.mapred.InputSplit"/>
  61530. <exception name="IOException" type="java.io.IOException"/>
  61531. <doc>
  61532. <![CDATA[Add an InputSplit to this collection.
  61533. @throws IOException If capacity was not specified during construction
  61534. or if capacity has been reached.]]>
  61535. </doc>
  61536. </method>
  61537. <method name="get" return="org.apache.hadoop.mapred.InputSplit"
  61538. abstract="false" native="false" synchronized="false"
  61539. static="false" final="false" visibility="public"
  61540. deprecated="not deprecated">
  61541. <param name="i" type="int"/>
  61542. <doc>
  61543. <![CDATA[Get ith child InputSplit.]]>
  61544. </doc>
  61545. </method>
  61546. <method name="getLength" return="long"
  61547. abstract="false" native="false" synchronized="false"
  61548. static="false" final="false" visibility="public"
  61549. deprecated="not deprecated">
  61550. <exception name="IOException" type="java.io.IOException"/>
  61551. <doc>
  61552. <![CDATA[Return the aggregate length of all child InputSplits currently added.]]>
  61553. </doc>
  61554. </method>
  61555. <method name="getLength" return="long"
  61556. abstract="false" native="false" synchronized="false"
  61557. static="false" final="false" visibility="public"
  61558. deprecated="not deprecated">
  61559. <param name="i" type="int"/>
  61560. <exception name="IOException" type="java.io.IOException"/>
  61561. <doc>
  61562. <![CDATA[Get the length of ith child InputSplit.]]>
  61563. </doc>
  61564. </method>
  61565. <method name="getLocations" return="java.lang.String[]"
  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[Collect a set of hosts from all child InputSplits.]]>
  61572. </doc>
  61573. </method>
  61574. <method name="getLocation" return="java.lang.String[]"
  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[getLocations from ith InputSplit.]]>
  61582. </doc>
  61583. </method>
  61584. <method name="write"
  61585. abstract="false" native="false" synchronized="false"
  61586. static="false" final="false" visibility="public"
  61587. deprecated="not deprecated">
  61588. <param name="out" type="java.io.DataOutput"/>
  61589. <exception name="IOException" type="java.io.IOException"/>
  61590. <doc>
  61591. <![CDATA[Write splits in the following format.
  61592. {@code
  61593. <count><class1><class2>...<classn><split1><split2>...<splitn>
  61594. }]]>
  61595. </doc>
  61596. </method>
  61597. <method name="readFields"
  61598. abstract="false" native="false" synchronized="false"
  61599. static="false" final="false" visibility="public"
  61600. deprecated="not deprecated">
  61601. <param name="in" type="java.io.DataInput"/>
  61602. <exception name="IOException" type="java.io.IOException"/>
  61603. <doc>
  61604. <![CDATA[{@inheritDoc}
  61605. @throws IOException If the child InputSplit cannot be read, typically
  61606. for faliing access checks.]]>
  61607. </doc>
  61608. </method>
  61609. <doc>
  61610. <![CDATA[This InputSplit contains a set of child InputSplits. Any InputSplit inserted
  61611. into this collection must have a public default constructor.]]>
  61612. </doc>
  61613. </class>
  61614. <!-- end class org.apache.hadoop.mapred.join.CompositeInputSplit -->
  61615. <!-- start class org.apache.hadoop.mapred.join.CompositeRecordReader -->
  61616. <class name="CompositeRecordReader" extends="java.lang.Object"
  61617. abstract="true"
  61618. static="false" final="false" visibility="public"
  61619. deprecated="not deprecated">
  61620. <implements name="org.apache.hadoop.conf.Configurable"/>
  61621. <constructor name="CompositeRecordReader" type="int, int, java.lang.Class"
  61622. static="false" final="false" visibility="public"
  61623. deprecated="not deprecated">
  61624. <exception name="IOException" type="java.io.IOException"/>
  61625. <doc>
  61626. <![CDATA[Create a RecordReader with <tt>capacity</tt> children to position
  61627. <tt>id</tt> in the parent reader.
  61628. The id of a root CompositeRecordReader is -1 by convention, but relying
  61629. on this is not recommended.]]>
  61630. </doc>
  61631. </constructor>
  61632. <method name="combine" return="boolean"
  61633. abstract="true" native="false" synchronized="false"
  61634. static="false" final="false" visibility="protected"
  61635. deprecated="not deprecated">
  61636. <param name="srcs" type="java.lang.Object[]"/>
  61637. <param name="value" type="org.apache.hadoop.mapred.join.TupleWritable"/>
  61638. </method>
  61639. <method name="id" return="int"
  61640. abstract="false" native="false" synchronized="false"
  61641. static="false" final="false" visibility="public"
  61642. deprecated="not deprecated">
  61643. <doc>
  61644. <![CDATA[Return the position in the collector this class occupies.]]>
  61645. </doc>
  61646. </method>
  61647. <method name="setConf"
  61648. abstract="false" native="false" synchronized="false"
  61649. static="false" final="false" visibility="public"
  61650. deprecated="not deprecated">
  61651. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  61652. <doc>
  61653. <![CDATA[{@inheritDoc}]]>
  61654. </doc>
  61655. </method>
  61656. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  61657. abstract="false" native="false" synchronized="false"
  61658. static="false" final="false" visibility="public"
  61659. deprecated="not deprecated">
  61660. <doc>
  61661. <![CDATA[{@inheritDoc}]]>
  61662. </doc>
  61663. </method>
  61664. <method name="getRecordReaderQueue" return="java.util.PriorityQueue"
  61665. abstract="false" native="false" synchronized="false"
  61666. static="false" final="false" visibility="protected"
  61667. deprecated="not deprecated">
  61668. <doc>
  61669. <![CDATA[Return sorted list of RecordReaders for this composite.]]>
  61670. </doc>
  61671. </method>
  61672. <method name="getComparator" return="org.apache.hadoop.io.WritableComparator"
  61673. abstract="false" native="false" synchronized="false"
  61674. static="false" final="false" visibility="protected"
  61675. deprecated="not deprecated">
  61676. <doc>
  61677. <![CDATA[Return comparator defining the ordering for RecordReaders in this
  61678. composite.]]>
  61679. </doc>
  61680. </method>
  61681. <method name="add"
  61682. abstract="false" native="false" synchronized="false"
  61683. static="false" final="false" visibility="public"
  61684. deprecated="not deprecated">
  61685. <param name="rr" type="org.apache.hadoop.mapred.join.ComposableRecordReader"/>
  61686. <exception name="IOException" type="java.io.IOException"/>
  61687. <doc>
  61688. <![CDATA[Add a RecordReader to this collection.
  61689. The id() of a RecordReader determines where in the Tuple its
  61690. entry will appear. Adding RecordReaders with the same id has
  61691. undefined behavior.]]>
  61692. </doc>
  61693. </method>
  61694. <method name="key" return="org.apache.hadoop.io.WritableComparable"
  61695. abstract="false" native="false" synchronized="false"
  61696. static="false" final="false" visibility="public"
  61697. deprecated="not deprecated">
  61698. <doc>
  61699. <![CDATA[Return the key for the current join or the value at the top of the
  61700. RecordReader heap.]]>
  61701. </doc>
  61702. </method>
  61703. <method name="key"
  61704. abstract="false" native="false" synchronized="false"
  61705. static="false" final="false" visibility="public"
  61706. deprecated="not deprecated">
  61707. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  61708. <exception name="IOException" type="java.io.IOException"/>
  61709. <doc>
  61710. <![CDATA[Clone the key at the top of this RR into the given object.]]>
  61711. </doc>
  61712. </method>
  61713. <method name="hasNext" return="boolean"
  61714. abstract="false" native="false" synchronized="false"
  61715. static="false" final="false" visibility="public"
  61716. deprecated="not deprecated">
  61717. <doc>
  61718. <![CDATA[Return true if it is possible that this could emit more values.]]>
  61719. </doc>
  61720. </method>
  61721. <method name="skip"
  61722. abstract="false" native="false" synchronized="false"
  61723. static="false" final="false" visibility="public"
  61724. deprecated="not deprecated">
  61725. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  61726. <exception name="IOException" type="java.io.IOException"/>
  61727. <doc>
  61728. <![CDATA[Pass skip key to child RRs.]]>
  61729. </doc>
  61730. </method>
  61731. <method name="getDelegate" return="org.apache.hadoop.mapred.join.ResetableIterator"
  61732. abstract="true" native="false" synchronized="false"
  61733. static="false" final="false" visibility="protected"
  61734. deprecated="not deprecated">
  61735. <doc>
  61736. <![CDATA[Obtain an iterator over the child RRs apropos of the value type
  61737. ultimately emitted from this join.]]>
  61738. </doc>
  61739. </method>
  61740. <method name="accept"
  61741. abstract="false" native="false" synchronized="false"
  61742. static="false" final="false" visibility="public"
  61743. deprecated="not deprecated">
  61744. <param name="jc" type="org.apache.hadoop.mapred.join.CompositeRecordReader.JoinCollector"/>
  61745. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  61746. <exception name="IOException" type="java.io.IOException"/>
  61747. <doc>
  61748. <![CDATA[If key provided matches that of this Composite, give JoinCollector
  61749. iterator over values it may emit.]]>
  61750. </doc>
  61751. </method>
  61752. <method name="fillJoinCollector"
  61753. abstract="false" native="false" synchronized="false"
  61754. static="false" final="false" visibility="protected"
  61755. deprecated="not deprecated">
  61756. <param name="iterkey" type="org.apache.hadoop.io.WritableComparable"/>
  61757. <exception name="IOException" type="java.io.IOException"/>
  61758. <doc>
  61759. <![CDATA[For all child RRs offering the key provided, obtain an iterator
  61760. at that position in the JoinCollector.]]>
  61761. </doc>
  61762. </method>
  61763. <method name="compareTo" return="int"
  61764. abstract="false" native="false" synchronized="false"
  61765. static="false" final="false" visibility="public"
  61766. deprecated="not deprecated">
  61767. <param name="other" type="org.apache.hadoop.mapred.join.ComposableRecordReader"/>
  61768. <doc>
  61769. <![CDATA[Implement Comparable contract (compare key of join or head of heap
  61770. with that of another).]]>
  61771. </doc>
  61772. </method>
  61773. <method name="createKey" return="org.apache.hadoop.io.WritableComparable"
  61774. abstract="false" native="false" synchronized="false"
  61775. static="false" final="false" visibility="public"
  61776. deprecated="not deprecated">
  61777. <doc>
  61778. <![CDATA[Create a new key value common to all child RRs.
  61779. @throws ClassCastException if key classes differ.]]>
  61780. </doc>
  61781. </method>
  61782. <method name="createInternalValue" return="org.apache.hadoop.mapred.join.TupleWritable"
  61783. abstract="false" native="false" synchronized="false"
  61784. static="false" final="false" visibility="protected"
  61785. deprecated="not deprecated">
  61786. <doc>
  61787. <![CDATA[Create a value to be used internally for joins.]]>
  61788. </doc>
  61789. </method>
  61790. <method name="getPos" return="long"
  61791. abstract="false" native="false" synchronized="false"
  61792. static="false" final="false" visibility="public"
  61793. deprecated="not deprecated">
  61794. <exception name="IOException" type="java.io.IOException"/>
  61795. <doc>
  61796. <![CDATA[Unsupported (returns zero in all cases).]]>
  61797. </doc>
  61798. </method>
  61799. <method name="close"
  61800. abstract="false" native="false" synchronized="false"
  61801. static="false" final="false" visibility="public"
  61802. deprecated="not deprecated">
  61803. <exception name="IOException" type="java.io.IOException"/>
  61804. <doc>
  61805. <![CDATA[Close all child RRs.]]>
  61806. </doc>
  61807. </method>
  61808. <method name="getProgress" return="float"
  61809. abstract="false" native="false" synchronized="false"
  61810. static="false" final="false" visibility="public"
  61811. deprecated="not deprecated">
  61812. <exception name="IOException" type="java.io.IOException"/>
  61813. <doc>
  61814. <![CDATA[Report progress as the minimum of all child RR progress.]]>
  61815. </doc>
  61816. </method>
  61817. <field name="jc" type="org.apache.hadoop.mapred.join.CompositeRecordReader.JoinCollector"
  61818. transient="false" volatile="false"
  61819. static="false" final="true" visibility="protected"
  61820. deprecated="not deprecated">
  61821. </field>
  61822. <field name="kids" type="org.apache.hadoop.mapred.join.ComposableRecordReader[]"
  61823. transient="false" volatile="false"
  61824. static="false" final="true" visibility="protected"
  61825. deprecated="not deprecated">
  61826. </field>
  61827. <doc>
  61828. <![CDATA[A RecordReader that can effect joins of RecordReaders sharing a common key
  61829. type and partitioning.]]>
  61830. </doc>
  61831. </class>
  61832. <!-- end class org.apache.hadoop.mapred.join.CompositeRecordReader -->
  61833. <!-- start class org.apache.hadoop.mapred.join.InnerJoinRecordReader -->
  61834. <class name="InnerJoinRecordReader" extends="org.apache.hadoop.mapred.join.JoinRecordReader"
  61835. abstract="false"
  61836. static="false" final="false" visibility="public"
  61837. deprecated="not deprecated">
  61838. <method name="combine" return="boolean"
  61839. abstract="false" native="false" synchronized="false"
  61840. static="false" final="false" visibility="protected"
  61841. deprecated="not deprecated">
  61842. <param name="srcs" type="java.lang.Object[]"/>
  61843. <param name="dst" type="org.apache.hadoop.mapred.join.TupleWritable"/>
  61844. <doc>
  61845. <![CDATA[Return true iff the tuple is full (all data sources contain this key).]]>
  61846. </doc>
  61847. </method>
  61848. <doc>
  61849. <![CDATA[Full inner join.]]>
  61850. </doc>
  61851. </class>
  61852. <!-- end class org.apache.hadoop.mapred.join.InnerJoinRecordReader -->
  61853. <!-- start class org.apache.hadoop.mapred.join.JoinRecordReader -->
  61854. <class name="JoinRecordReader" extends="org.apache.hadoop.mapred.join.CompositeRecordReader"
  61855. abstract="true"
  61856. static="false" final="false" visibility="public"
  61857. deprecated="not deprecated">
  61858. <implements name="org.apache.hadoop.mapred.join.ComposableRecordReader"/>
  61859. <constructor name="JoinRecordReader" type="int, org.apache.hadoop.mapred.JobConf, int, java.lang.Class"
  61860. static="false" final="false" visibility="public"
  61861. deprecated="not deprecated">
  61862. <exception name="IOException" type="java.io.IOException"/>
  61863. </constructor>
  61864. <method name="next" return="boolean"
  61865. abstract="false" native="false" synchronized="false"
  61866. static="false" final="false" visibility="public"
  61867. deprecated="not deprecated">
  61868. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  61869. <param name="value" type="org.apache.hadoop.mapred.join.TupleWritable"/>
  61870. <exception name="IOException" type="java.io.IOException"/>
  61871. <doc>
  61872. <![CDATA[Emit the next set of key, value pairs as defined by the child
  61873. RecordReaders and operation associated with this composite RR.]]>
  61874. </doc>
  61875. </method>
  61876. <method name="createValue" return="org.apache.hadoop.mapred.join.TupleWritable"
  61877. abstract="false" native="false" synchronized="false"
  61878. static="false" final="false" visibility="public"
  61879. deprecated="not deprecated">
  61880. <doc>
  61881. <![CDATA[{@inheritDoc}]]>
  61882. </doc>
  61883. </method>
  61884. <method name="getDelegate" return="org.apache.hadoop.mapred.join.ResetableIterator"
  61885. abstract="false" native="false" synchronized="false"
  61886. static="false" final="false" visibility="protected"
  61887. deprecated="not deprecated">
  61888. <doc>
  61889. <![CDATA[Return an iterator wrapping the JoinCollector.]]>
  61890. </doc>
  61891. </method>
  61892. <doc>
  61893. <![CDATA[Base class for Composite joins returning Tuples of arbitrary Writables.]]>
  61894. </doc>
  61895. </class>
  61896. <!-- end class org.apache.hadoop.mapred.join.JoinRecordReader -->
  61897. <!-- start class org.apache.hadoop.mapred.join.JoinRecordReader.JoinDelegationIterator -->
  61898. <class name="JoinRecordReader.JoinDelegationIterator" extends="java.lang.Object"
  61899. abstract="false"
  61900. static="false" final="false" visibility="protected"
  61901. deprecated="not deprecated">
  61902. <implements name="org.apache.hadoop.mapred.join.ResetableIterator"/>
  61903. <constructor name="JoinRecordReader.JoinDelegationIterator"
  61904. static="false" final="false" visibility="protected"
  61905. deprecated="not deprecated">
  61906. </constructor>
  61907. <method name="hasNext" return="boolean"
  61908. abstract="false" native="false" synchronized="false"
  61909. static="false" final="false" visibility="public"
  61910. deprecated="not deprecated">
  61911. </method>
  61912. <method name="next" return="boolean"
  61913. abstract="false" native="false" synchronized="false"
  61914. static="false" final="false" visibility="public"
  61915. deprecated="not deprecated">
  61916. <param name="val" type="org.apache.hadoop.mapred.join.TupleWritable"/>
  61917. <exception name="IOException" type="java.io.IOException"/>
  61918. </method>
  61919. <method name="replay" return="boolean"
  61920. abstract="false" native="false" synchronized="false"
  61921. static="false" final="false" visibility="public"
  61922. deprecated="not deprecated">
  61923. <param name="val" type="org.apache.hadoop.mapred.join.TupleWritable"/>
  61924. <exception name="IOException" type="java.io.IOException"/>
  61925. </method>
  61926. <method name="reset"
  61927. abstract="false" native="false" synchronized="false"
  61928. static="false" final="false" visibility="public"
  61929. deprecated="not deprecated">
  61930. </method>
  61931. <method name="add"
  61932. abstract="false" native="false" synchronized="false"
  61933. static="false" final="false" visibility="public"
  61934. deprecated="not deprecated">
  61935. <param name="item" type="org.apache.hadoop.mapred.join.TupleWritable"/>
  61936. <exception name="IOException" type="java.io.IOException"/>
  61937. </method>
  61938. <method name="close"
  61939. abstract="false" native="false" synchronized="false"
  61940. static="false" final="false" visibility="public"
  61941. deprecated="not deprecated">
  61942. <exception name="IOException" type="java.io.IOException"/>
  61943. </method>
  61944. <method name="clear"
  61945. abstract="false" native="false" synchronized="false"
  61946. static="false" final="false" visibility="public"
  61947. deprecated="not deprecated">
  61948. </method>
  61949. <doc>
  61950. <![CDATA[Since the JoinCollector is effecting our operation, we need only
  61951. provide an iterator proxy wrapping its operation.]]>
  61952. </doc>
  61953. </class>
  61954. <!-- end class org.apache.hadoop.mapred.join.JoinRecordReader.JoinDelegationIterator -->
  61955. <!-- start class org.apache.hadoop.mapred.join.MultiFilterRecordReader -->
  61956. <class name="MultiFilterRecordReader" extends="org.apache.hadoop.mapred.join.CompositeRecordReader"
  61957. abstract="true"
  61958. static="false" final="false" visibility="public"
  61959. deprecated="not deprecated">
  61960. <implements name="org.apache.hadoop.mapred.join.ComposableRecordReader"/>
  61961. <constructor name="MultiFilterRecordReader" type="int, org.apache.hadoop.mapred.JobConf, int, java.lang.Class"
  61962. static="false" final="false" visibility="public"
  61963. deprecated="not deprecated">
  61964. <exception name="IOException" type="java.io.IOException"/>
  61965. </constructor>
  61966. <method name="emit" return="org.apache.hadoop.io.Writable"
  61967. abstract="true" native="false" synchronized="false"
  61968. static="false" final="false" visibility="protected"
  61969. deprecated="not deprecated">
  61970. <param name="dst" type="org.apache.hadoop.mapred.join.TupleWritable"/>
  61971. <exception name="IOException" type="java.io.IOException"/>
  61972. <doc>
  61973. <![CDATA[For each tuple emitted, return a value (typically one of the values
  61974. in the tuple).
  61975. Modifying the Writables in the tuple is permitted and unlikely to affect
  61976. join behavior in most cases, but it is not recommended. It's safer to
  61977. clone first.]]>
  61978. </doc>
  61979. </method>
  61980. <method name="combine" return="boolean"
  61981. abstract="false" native="false" synchronized="false"
  61982. static="false" final="false" visibility="protected"
  61983. deprecated="not deprecated">
  61984. <param name="srcs" type="java.lang.Object[]"/>
  61985. <param name="dst" type="org.apache.hadoop.mapred.join.TupleWritable"/>
  61986. <doc>
  61987. <![CDATA[Default implementation offers {@link #emit} every Tuple from the
  61988. collector (the outer join of child RRs).]]>
  61989. </doc>
  61990. </method>
  61991. <method name="next" return="boolean"
  61992. abstract="false" native="false" synchronized="false"
  61993. static="false" final="false" visibility="public"
  61994. deprecated="not deprecated">
  61995. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  61996. <param name="value" type="org.apache.hadoop.io.Writable"/>
  61997. <exception name="IOException" type="java.io.IOException"/>
  61998. <doc>
  61999. <![CDATA[{@inheritDoc}]]>
  62000. </doc>
  62001. </method>
  62002. <method name="createValue" return="org.apache.hadoop.io.Writable"
  62003. abstract="false" native="false" synchronized="false"
  62004. static="false" final="false" visibility="public"
  62005. deprecated="not deprecated">
  62006. <doc>
  62007. <![CDATA[{@inheritDoc}]]>
  62008. </doc>
  62009. </method>
  62010. <method name="getDelegate" return="org.apache.hadoop.mapred.join.ResetableIterator"
  62011. abstract="false" native="false" synchronized="false"
  62012. static="false" final="false" visibility="protected"
  62013. deprecated="not deprecated">
  62014. <doc>
  62015. <![CDATA[Return an iterator returning a single value from the tuple.
  62016. @see MultiFilterDelegationIterator]]>
  62017. </doc>
  62018. </method>
  62019. <doc>
  62020. <![CDATA[Base class for Composite join returning values derived from multiple
  62021. sources, but generally not tuples.]]>
  62022. </doc>
  62023. </class>
  62024. <!-- end class org.apache.hadoop.mapred.join.MultiFilterRecordReader -->
  62025. <!-- start class org.apache.hadoop.mapred.join.MultiFilterRecordReader.MultiFilterDelegationIterator -->
  62026. <class name="MultiFilterRecordReader.MultiFilterDelegationIterator" extends="java.lang.Object"
  62027. abstract="false"
  62028. static="false" final="false" visibility="protected"
  62029. deprecated="not deprecated">
  62030. <implements name="org.apache.hadoop.mapred.join.ResetableIterator"/>
  62031. <constructor name="MultiFilterRecordReader.MultiFilterDelegationIterator"
  62032. static="false" final="false" visibility="protected"
  62033. deprecated="not deprecated">
  62034. </constructor>
  62035. <method name="hasNext" return="boolean"
  62036. abstract="false" native="false" synchronized="false"
  62037. static="false" final="false" visibility="public"
  62038. deprecated="not deprecated">
  62039. </method>
  62040. <method name="next" return="boolean"
  62041. abstract="false" native="false" synchronized="false"
  62042. static="false" final="false" visibility="public"
  62043. deprecated="not deprecated">
  62044. <param name="val" type="org.apache.hadoop.io.Writable"/>
  62045. <exception name="IOException" type="java.io.IOException"/>
  62046. </method>
  62047. <method name="replay" return="boolean"
  62048. abstract="false" native="false" synchronized="false"
  62049. static="false" final="false" visibility="public"
  62050. deprecated="not deprecated">
  62051. <param name="val" type="org.apache.hadoop.io.Writable"/>
  62052. <exception name="IOException" type="java.io.IOException"/>
  62053. </method>
  62054. <method name="reset"
  62055. abstract="false" native="false" synchronized="false"
  62056. static="false" final="false" visibility="public"
  62057. deprecated="not deprecated">
  62058. </method>
  62059. <method name="add"
  62060. abstract="false" native="false" synchronized="false"
  62061. static="false" final="false" visibility="public"
  62062. deprecated="not deprecated">
  62063. <param name="item" type="org.apache.hadoop.io.Writable"/>
  62064. <exception name="IOException" type="java.io.IOException"/>
  62065. </method>
  62066. <method name="close"
  62067. abstract="false" native="false" synchronized="false"
  62068. static="false" final="false" visibility="public"
  62069. deprecated="not deprecated">
  62070. <exception name="IOException" type="java.io.IOException"/>
  62071. </method>
  62072. <method name="clear"
  62073. abstract="false" native="false" synchronized="false"
  62074. static="false" final="false" visibility="public"
  62075. deprecated="not deprecated">
  62076. </method>
  62077. <doc>
  62078. <![CDATA[Proxy the JoinCollector, but include callback to emit.]]>
  62079. </doc>
  62080. </class>
  62081. <!-- end class org.apache.hadoop.mapred.join.MultiFilterRecordReader.MultiFilterDelegationIterator -->
  62082. <!-- start class org.apache.hadoop.mapred.join.OuterJoinRecordReader -->
  62083. <class name="OuterJoinRecordReader" extends="org.apache.hadoop.mapred.join.JoinRecordReader"
  62084. abstract="false"
  62085. static="false" final="false" visibility="public"
  62086. deprecated="not deprecated">
  62087. <method name="combine" return="boolean"
  62088. abstract="false" native="false" synchronized="false"
  62089. static="false" final="false" visibility="protected"
  62090. deprecated="not deprecated">
  62091. <param name="srcs" type="java.lang.Object[]"/>
  62092. <param name="dst" type="org.apache.hadoop.mapred.join.TupleWritable"/>
  62093. <doc>
  62094. <![CDATA[Emit everything from the collector.]]>
  62095. </doc>
  62096. </method>
  62097. <doc>
  62098. <![CDATA[Full outer join.]]>
  62099. </doc>
  62100. </class>
  62101. <!-- end class org.apache.hadoop.mapred.join.OuterJoinRecordReader -->
  62102. <!-- start class org.apache.hadoop.mapred.join.OverrideRecordReader -->
  62103. <class name="OverrideRecordReader" extends="org.apache.hadoop.mapred.join.MultiFilterRecordReader"
  62104. abstract="false"
  62105. static="false" final="false" visibility="public"
  62106. deprecated="not deprecated">
  62107. <method name="emit" return="org.apache.hadoop.io.Writable"
  62108. abstract="false" native="false" synchronized="false"
  62109. static="false" final="false" visibility="protected"
  62110. deprecated="not deprecated">
  62111. <param name="dst" type="org.apache.hadoop.mapred.join.TupleWritable"/>
  62112. <doc>
  62113. <![CDATA[Emit the value with the highest position in the tuple.]]>
  62114. </doc>
  62115. </method>
  62116. <method name="fillJoinCollector"
  62117. abstract="false" native="false" synchronized="false"
  62118. static="false" final="false" visibility="protected"
  62119. deprecated="not deprecated">
  62120. <param name="iterkey" type="org.apache.hadoop.io.WritableComparable"/>
  62121. <exception name="IOException" type="java.io.IOException"/>
  62122. <doc>
  62123. <![CDATA[Instead of filling the JoinCollector with iterators from all
  62124. data sources, fill only the rightmost for this key.
  62125. This not only saves space by discarding the other sources, but
  62126. it also emits the number of key-value pairs in the preferred
  62127. RecordReader instead of repeating that stream n times, where
  62128. n is the cardinality of the cross product of the discarded
  62129. streams for the given key.]]>
  62130. </doc>
  62131. </method>
  62132. <doc>
  62133. <![CDATA[Prefer the &quot;rightmost&quot; data source for this key.
  62134. For example, <tt>override(S1,S2,S3)</tt> will prefer values
  62135. from S3 over S2, and values from S2 over S1 for all keys
  62136. emitted from all sources.]]>
  62137. </doc>
  62138. </class>
  62139. <!-- end class org.apache.hadoop.mapred.join.OverrideRecordReader -->
  62140. <!-- start class org.apache.hadoop.mapred.join.Parser -->
  62141. <class name="Parser" extends="java.lang.Object"
  62142. abstract="false"
  62143. static="false" final="false" visibility="public"
  62144. deprecated="not deprecated">
  62145. <constructor name="Parser"
  62146. static="false" final="false" visibility="public"
  62147. deprecated="not deprecated">
  62148. </constructor>
  62149. <doc>
  62150. <![CDATA[Very simple shift-reduce parser for join expressions.
  62151. This should be sufficient for the user extension permitted now, but ought to
  62152. be replaced with a parser generator if more complex grammars are supported.
  62153. In particular, this &quot;shift-reduce&quot; parser has no states. Each set
  62154. of formals requires a different internal node type, which is responsible for
  62155. interpreting the list of tokens it receives. This is sufficient for the
  62156. current grammar, but it has several annoying properties that might inhibit
  62157. extension. In particular, parenthesis are always function calls; an
  62158. algebraic or filter grammar would not only require a node type, but must
  62159. also work around the internals of this parser.
  62160. For most other cases, adding classes to the hierarchy- particularly by
  62161. extending JoinRecordReader and MultiFilterRecordReader- is fairly
  62162. straightforward. One need only override the relevant method(s) (usually only
  62163. {@link CompositeRecordReader#combine}) and include a property to map its
  62164. value to an identifier in the parser.]]>
  62165. </doc>
  62166. </class>
  62167. <!-- end class org.apache.hadoop.mapred.join.Parser -->
  62168. <!-- start class org.apache.hadoop.mapred.join.Parser.Node -->
  62169. <class name="Parser.Node" extends="java.lang.Object"
  62170. abstract="true"
  62171. static="true" final="false" visibility="public"
  62172. deprecated="not deprecated">
  62173. <implements name="org.apache.hadoop.mapred.join.ComposableInputFormat"/>
  62174. <constructor name="Parser.Node" type="java.lang.String"
  62175. static="false" final="false" visibility="protected"
  62176. deprecated="not deprecated">
  62177. </constructor>
  62178. <method name="addIdentifier"
  62179. abstract="false" native="false" synchronized="false"
  62180. static="true" final="false" visibility="protected"
  62181. deprecated="not deprecated">
  62182. <param name="ident" type="java.lang.String"/>
  62183. <param name="mcstrSig" type="java.lang.Class[]"/>
  62184. <param name="nodetype" type="java.lang.Class"/>
  62185. <param name="cl" type="java.lang.Class"/>
  62186. <exception name="NoSuchMethodException" type="java.lang.NoSuchMethodException"/>
  62187. <doc>
  62188. <![CDATA[For a given identifier, add a mapping to the nodetype for the parse
  62189. tree and to the ComposableRecordReader to be created, including the
  62190. formals required to invoke the constructor.
  62191. The nodetype and constructor signature should be filled in from the
  62192. child node.]]>
  62193. </doc>
  62194. </method>
  62195. <method name="setID"
  62196. abstract="false" native="false" synchronized="false"
  62197. static="false" final="false" visibility="protected"
  62198. deprecated="not deprecated">
  62199. <param name="id" type="int"/>
  62200. </method>
  62201. <method name="setKeyComparator"
  62202. abstract="false" native="false" synchronized="false"
  62203. static="false" final="false" visibility="protected"
  62204. deprecated="not deprecated">
  62205. <param name="cmpcl" type="java.lang.Class"/>
  62206. </method>
  62207. <field name="rrCstrMap" type="java.util.Map"
  62208. transient="false" volatile="false"
  62209. static="true" final="true" visibility="protected"
  62210. deprecated="not deprecated">
  62211. </field>
  62212. <field name="id" type="int"
  62213. transient="false" volatile="false"
  62214. static="false" final="false" visibility="protected"
  62215. deprecated="not deprecated">
  62216. </field>
  62217. <field name="ident" type="java.lang.String"
  62218. transient="false" volatile="false"
  62219. static="false" final="false" visibility="protected"
  62220. deprecated="not deprecated">
  62221. </field>
  62222. <field name="cmpcl" type="java.lang.Class"
  62223. transient="false" volatile="false"
  62224. static="false" final="false" visibility="protected"
  62225. deprecated="not deprecated">
  62226. </field>
  62227. </class>
  62228. <!-- end class org.apache.hadoop.mapred.join.Parser.Node -->
  62229. <!-- start class org.apache.hadoop.mapred.join.Parser.NodeToken -->
  62230. <class name="Parser.NodeToken" extends="org.apache.hadoop.mapred.join.Parser.Token"
  62231. abstract="false"
  62232. static="true" final="false" visibility="public"
  62233. deprecated="not deprecated">
  62234. <method name="getNode" return="org.apache.hadoop.mapred.join.Parser.Node"
  62235. abstract="false" native="false" synchronized="false"
  62236. static="false" final="false" visibility="public"
  62237. deprecated="not deprecated">
  62238. </method>
  62239. </class>
  62240. <!-- end class org.apache.hadoop.mapred.join.Parser.NodeToken -->
  62241. <!-- start class org.apache.hadoop.mapred.join.Parser.NumToken -->
  62242. <class name="Parser.NumToken" extends="org.apache.hadoop.mapred.join.Parser.Token"
  62243. abstract="false"
  62244. static="true" final="false" visibility="public"
  62245. deprecated="not deprecated">
  62246. <constructor name="Parser.NumToken" type="double"
  62247. static="false" final="false" visibility="public"
  62248. deprecated="not deprecated">
  62249. </constructor>
  62250. <method name="getNum" return="double"
  62251. abstract="false" native="false" synchronized="false"
  62252. static="false" final="false" visibility="public"
  62253. deprecated="not deprecated">
  62254. </method>
  62255. </class>
  62256. <!-- end class org.apache.hadoop.mapred.join.Parser.NumToken -->
  62257. <!-- start class org.apache.hadoop.mapred.join.Parser.StrToken -->
  62258. <class name="Parser.StrToken" extends="org.apache.hadoop.mapred.join.Parser.Token"
  62259. abstract="false"
  62260. static="true" final="false" visibility="public"
  62261. deprecated="not deprecated">
  62262. <constructor name="Parser.StrToken" type="org.apache.hadoop.mapred.join.Parser.TType, java.lang.String"
  62263. static="false" final="false" visibility="public"
  62264. deprecated="not deprecated">
  62265. </constructor>
  62266. <method name="getStr" return="java.lang.String"
  62267. abstract="false" native="false" synchronized="false"
  62268. static="false" final="false" visibility="public"
  62269. deprecated="not deprecated">
  62270. </method>
  62271. </class>
  62272. <!-- end class org.apache.hadoop.mapred.join.Parser.StrToken -->
  62273. <!-- start class org.apache.hadoop.mapred.join.Parser.Token -->
  62274. <class name="Parser.Token" extends="java.lang.Object"
  62275. abstract="false"
  62276. static="true" final="false" visibility="public"
  62277. deprecated="not deprecated">
  62278. <method name="getType" return="org.apache.hadoop.mapred.join.Parser.TType"
  62279. abstract="false" native="false" synchronized="false"
  62280. static="false" final="false" visibility="public"
  62281. deprecated="not deprecated">
  62282. </method>
  62283. <method name="getNode" return="org.apache.hadoop.mapred.join.Parser.Node"
  62284. abstract="false" native="false" synchronized="false"
  62285. static="false" final="false" visibility="public"
  62286. deprecated="not deprecated">
  62287. <exception name="IOException" type="java.io.IOException"/>
  62288. </method>
  62289. <method name="getNum" return="double"
  62290. abstract="false" native="false" synchronized="false"
  62291. static="false" final="false" visibility="public"
  62292. deprecated="not deprecated">
  62293. <exception name="IOException" type="java.io.IOException"/>
  62294. </method>
  62295. <method name="getStr" return="java.lang.String"
  62296. abstract="false" native="false" synchronized="false"
  62297. static="false" final="false" visibility="public"
  62298. deprecated="not deprecated">
  62299. <exception name="IOException" type="java.io.IOException"/>
  62300. </method>
  62301. <doc>
  62302. <![CDATA[Tagged-union type for tokens from the join expression.
  62303. @see Parser.TType]]>
  62304. </doc>
  62305. </class>
  62306. <!-- end class org.apache.hadoop.mapred.join.Parser.Token -->
  62307. <!-- start class org.apache.hadoop.mapred.join.Parser.TType -->
  62308. <class name="Parser.TType" extends="java.lang.Enum"
  62309. abstract="false"
  62310. static="true" final="true" visibility="public"
  62311. deprecated="not deprecated">
  62312. <method name="values" return="org.apache.hadoop.mapred.join.Parser.TType[]"
  62313. abstract="false" native="false" synchronized="false"
  62314. static="true" final="false" visibility="public"
  62315. deprecated="not deprecated">
  62316. </method>
  62317. <method name="valueOf" return="org.apache.hadoop.mapred.join.Parser.TType"
  62318. abstract="false" native="false" synchronized="false"
  62319. static="true" final="false" visibility="public"
  62320. deprecated="not deprecated">
  62321. <param name="name" type="java.lang.String"/>
  62322. </method>
  62323. <field name="CIF" type="org.apache.hadoop.mapred.join.Parser.TType"
  62324. transient="false" volatile="false"
  62325. static="true" final="true" visibility="public"
  62326. deprecated="not deprecated">
  62327. </field>
  62328. <field name="IDENT" type="org.apache.hadoop.mapred.join.Parser.TType"
  62329. transient="false" volatile="false"
  62330. static="true" final="true" visibility="public"
  62331. deprecated="not deprecated">
  62332. </field>
  62333. <field name="COMMA" type="org.apache.hadoop.mapred.join.Parser.TType"
  62334. transient="false" volatile="false"
  62335. static="true" final="true" visibility="public"
  62336. deprecated="not deprecated">
  62337. </field>
  62338. <field name="LPAREN" type="org.apache.hadoop.mapred.join.Parser.TType"
  62339. transient="false" volatile="false"
  62340. static="true" final="true" visibility="public"
  62341. deprecated="not deprecated">
  62342. </field>
  62343. <field name="RPAREN" type="org.apache.hadoop.mapred.join.Parser.TType"
  62344. transient="false" volatile="false"
  62345. static="true" final="true" visibility="public"
  62346. deprecated="not deprecated">
  62347. </field>
  62348. <field name="QUOT" type="org.apache.hadoop.mapred.join.Parser.TType"
  62349. transient="false" volatile="false"
  62350. static="true" final="true" visibility="public"
  62351. deprecated="not deprecated">
  62352. </field>
  62353. <field name="NUM" type="org.apache.hadoop.mapred.join.Parser.TType"
  62354. transient="false" volatile="false"
  62355. static="true" final="true" visibility="public"
  62356. deprecated="not deprecated">
  62357. </field>
  62358. </class>
  62359. <!-- end class org.apache.hadoop.mapred.join.Parser.TType -->
  62360. <!-- start interface org.apache.hadoop.mapred.join.ResetableIterator -->
  62361. <interface name="ResetableIterator" abstract="true"
  62362. static="false" final="false" visibility="public"
  62363. deprecated="not deprecated">
  62364. <method name="hasNext" return="boolean"
  62365. abstract="false" native="false" synchronized="false"
  62366. static="false" final="false" visibility="public"
  62367. deprecated="not deprecated">
  62368. <doc>
  62369. <![CDATA[True if a call to next may return a value. This is permitted false
  62370. positives, but not false negatives.]]>
  62371. </doc>
  62372. </method>
  62373. <method name="next" return="boolean"
  62374. abstract="false" native="false" synchronized="false"
  62375. static="false" final="false" visibility="public"
  62376. deprecated="not deprecated">
  62377. <param name="val" type="org.apache.hadoop.io.Writable"/>
  62378. <exception name="IOException" type="java.io.IOException"/>
  62379. <doc>
  62380. <![CDATA[Assign next value to actual.
  62381. It is required that elements added to a ResetableIterator be returned in
  62382. the same order after a call to {@link #reset} (FIFO).
  62383. Note that a call to this may fail for nested joins (i.e. more elements
  62384. available, but none satisfying the constraints of the join)]]>
  62385. </doc>
  62386. </method>
  62387. <method name="replay" return="boolean"
  62388. abstract="false" native="false" synchronized="false"
  62389. static="false" final="false" visibility="public"
  62390. deprecated="not deprecated">
  62391. <param name="val" type="org.apache.hadoop.io.Writable"/>
  62392. <exception name="IOException" type="java.io.IOException"/>
  62393. <doc>
  62394. <![CDATA[Assign last value returned to actual.]]>
  62395. </doc>
  62396. </method>
  62397. <method name="reset"
  62398. abstract="false" native="false" synchronized="false"
  62399. static="false" final="false" visibility="public"
  62400. deprecated="not deprecated">
  62401. <doc>
  62402. <![CDATA[Set iterator to return to the start of its range. Must be called after
  62403. calling {@link #add} to avoid a ConcurrentModificationException.]]>
  62404. </doc>
  62405. </method>
  62406. <method name="add"
  62407. abstract="false" native="false" synchronized="false"
  62408. static="false" final="false" visibility="public"
  62409. deprecated="not deprecated">
  62410. <param name="item" type="org.apache.hadoop.io.Writable"/>
  62411. <exception name="IOException" type="java.io.IOException"/>
  62412. <doc>
  62413. <![CDATA[Add an element to the collection of elements to iterate over.]]>
  62414. </doc>
  62415. </method>
  62416. <method name="close"
  62417. abstract="false" native="false" synchronized="false"
  62418. static="false" final="false" visibility="public"
  62419. deprecated="not deprecated">
  62420. <exception name="IOException" type="java.io.IOException"/>
  62421. <doc>
  62422. <![CDATA[Close datasources and release resources. Calling methods on the iterator
  62423. after calling close has undefined behavior.]]>
  62424. </doc>
  62425. </method>
  62426. <method name="clear"
  62427. abstract="false" native="false" synchronized="false"
  62428. static="false" final="false" visibility="public"
  62429. deprecated="not deprecated">
  62430. <doc>
  62431. <![CDATA[Close datasources, but do not release internal resources. Calling this
  62432. method should permit the object to be reused with a different datasource.]]>
  62433. </doc>
  62434. </method>
  62435. <doc>
  62436. <![CDATA[This defines an interface to a stateful Iterator that can replay elements
  62437. added to it directly.
  62438. Note that this does not extend {@link java.util.Iterator}.]]>
  62439. </doc>
  62440. </interface>
  62441. <!-- end interface org.apache.hadoop.mapred.join.ResetableIterator -->
  62442. <!-- start class org.apache.hadoop.mapred.join.ResetableIterator.EMPTY -->
  62443. <class name="ResetableIterator.EMPTY" extends="java.lang.Object"
  62444. abstract="false"
  62445. static="true" final="false" visibility="public"
  62446. deprecated="not deprecated">
  62447. <implements name="org.apache.hadoop.mapred.join.ResetableIterator"/>
  62448. <constructor name="ResetableIterator.EMPTY"
  62449. static="false" final="false" visibility="public"
  62450. deprecated="not deprecated">
  62451. </constructor>
  62452. <method name="hasNext" return="boolean"
  62453. abstract="false" native="false" synchronized="false"
  62454. static="false" final="false" visibility="public"
  62455. deprecated="not deprecated">
  62456. </method>
  62457. <method name="reset"
  62458. abstract="false" native="false" synchronized="false"
  62459. static="false" final="false" visibility="public"
  62460. deprecated="not deprecated">
  62461. </method>
  62462. <method name="close"
  62463. abstract="false" native="false" synchronized="false"
  62464. static="false" final="false" visibility="public"
  62465. deprecated="not deprecated">
  62466. <exception name="IOException" type="java.io.IOException"/>
  62467. </method>
  62468. <method name="clear"
  62469. abstract="false" native="false" synchronized="false"
  62470. static="false" final="false" visibility="public"
  62471. deprecated="not deprecated">
  62472. </method>
  62473. <method name="next" return="boolean"
  62474. abstract="false" native="false" synchronized="false"
  62475. static="false" final="false" visibility="public"
  62476. deprecated="not deprecated">
  62477. <param name="val" type="org.apache.hadoop.io.Writable"/>
  62478. <exception name="IOException" type="java.io.IOException"/>
  62479. </method>
  62480. <method name="replay" return="boolean"
  62481. abstract="false" native="false" synchronized="false"
  62482. static="false" final="false" visibility="public"
  62483. deprecated="not deprecated">
  62484. <param name="val" type="org.apache.hadoop.io.Writable"/>
  62485. <exception name="IOException" type="java.io.IOException"/>
  62486. </method>
  62487. <method name="add"
  62488. abstract="false" native="false" synchronized="false"
  62489. static="false" final="false" visibility="public"
  62490. deprecated="not deprecated">
  62491. <param name="item" type="org.apache.hadoop.io.Writable"/>
  62492. <exception name="IOException" type="java.io.IOException"/>
  62493. </method>
  62494. </class>
  62495. <!-- end class org.apache.hadoop.mapred.join.ResetableIterator.EMPTY -->
  62496. <!-- start class org.apache.hadoop.mapred.join.StreamBackedIterator -->
  62497. <class name="StreamBackedIterator" extends="java.lang.Object"
  62498. abstract="false"
  62499. static="false" final="false" visibility="public"
  62500. deprecated="not deprecated">
  62501. <implements name="org.apache.hadoop.mapred.join.ResetableIterator"/>
  62502. <constructor name="StreamBackedIterator"
  62503. static="false" final="false" visibility="public"
  62504. deprecated="not deprecated">
  62505. </constructor>
  62506. <method name="hasNext" return="boolean"
  62507. abstract="false" native="false" synchronized="false"
  62508. static="false" final="false" visibility="public"
  62509. deprecated="not deprecated">
  62510. </method>
  62511. <method name="next" return="boolean"
  62512. abstract="false" native="false" synchronized="false"
  62513. static="false" final="false" visibility="public"
  62514. deprecated="not deprecated">
  62515. <param name="val" type="org.apache.hadoop.io.Writable"/>
  62516. <exception name="IOException" type="java.io.IOException"/>
  62517. </method>
  62518. <method name="replay" return="boolean"
  62519. abstract="false" native="false" synchronized="false"
  62520. static="false" final="false" visibility="public"
  62521. deprecated="not deprecated">
  62522. <param name="val" type="org.apache.hadoop.io.Writable"/>
  62523. <exception name="IOException" type="java.io.IOException"/>
  62524. </method>
  62525. <method name="reset"
  62526. abstract="false" native="false" synchronized="false"
  62527. static="false" final="false" visibility="public"
  62528. deprecated="not deprecated">
  62529. </method>
  62530. <method name="add"
  62531. abstract="false" native="false" synchronized="false"
  62532. static="false" final="false" visibility="public"
  62533. deprecated="not deprecated">
  62534. <param name="item" type="org.apache.hadoop.io.Writable"/>
  62535. <exception name="IOException" type="java.io.IOException"/>
  62536. </method>
  62537. <method name="close"
  62538. abstract="false" native="false" synchronized="false"
  62539. static="false" final="false" visibility="public"
  62540. deprecated="not deprecated">
  62541. <exception name="IOException" type="java.io.IOException"/>
  62542. </method>
  62543. <method name="clear"
  62544. abstract="false" native="false" synchronized="false"
  62545. static="false" final="false" visibility="public"
  62546. deprecated="not deprecated">
  62547. </method>
  62548. <doc>
  62549. <![CDATA[This class provides an implementation of ResetableIterator. This
  62550. implementation uses a byte array to store elements added to it.]]>
  62551. </doc>
  62552. </class>
  62553. <!-- end class org.apache.hadoop.mapred.join.StreamBackedIterator -->
  62554. <!-- start class org.apache.hadoop.mapred.join.TupleWritable -->
  62555. <class name="TupleWritable" extends="java.lang.Object"
  62556. abstract="false"
  62557. static="false" final="false" visibility="public"
  62558. deprecated="not deprecated">
  62559. <implements name="org.apache.hadoop.io.Writable"/>
  62560. <implements name="java.lang.Iterable"/>
  62561. <constructor name="TupleWritable"
  62562. static="false" final="false" visibility="public"
  62563. deprecated="not deprecated">
  62564. <doc>
  62565. <![CDATA[Create an empty tuple with no allocated storage for writables.]]>
  62566. </doc>
  62567. </constructor>
  62568. <constructor name="TupleWritable" type="org.apache.hadoop.io.Writable[]"
  62569. static="false" final="false" visibility="public"
  62570. deprecated="not deprecated">
  62571. <doc>
  62572. <![CDATA[Initialize tuple with storage; unknown whether any of them contain
  62573. &quot;written&quot; values.]]>
  62574. </doc>
  62575. </constructor>
  62576. <method name="has" return="boolean"
  62577. abstract="false" native="false" synchronized="false"
  62578. static="false" final="false" visibility="public"
  62579. deprecated="not deprecated">
  62580. <param name="i" type="int"/>
  62581. <doc>
  62582. <![CDATA[Return true if tuple has an element at the position provided.]]>
  62583. </doc>
  62584. </method>
  62585. <method name="get" return="org.apache.hadoop.io.Writable"
  62586. abstract="false" native="false" synchronized="false"
  62587. static="false" final="false" visibility="public"
  62588. deprecated="not deprecated">
  62589. <param name="i" type="int"/>
  62590. <doc>
  62591. <![CDATA[Get ith Writable from Tuple.]]>
  62592. </doc>
  62593. </method>
  62594. <method name="size" return="int"
  62595. abstract="false" native="false" synchronized="false"
  62596. static="false" final="false" visibility="public"
  62597. deprecated="not deprecated">
  62598. <doc>
  62599. <![CDATA[The number of children in this Tuple.]]>
  62600. </doc>
  62601. </method>
  62602. <method name="equals" return="boolean"
  62603. abstract="false" native="false" synchronized="false"
  62604. static="false" final="false" visibility="public"
  62605. deprecated="not deprecated">
  62606. <param name="other" type="java.lang.Object"/>
  62607. <doc>
  62608. <![CDATA[{@inheritDoc}]]>
  62609. </doc>
  62610. </method>
  62611. <method name="hashCode" return="int"
  62612. abstract="false" native="false" synchronized="false"
  62613. static="false" final="false" visibility="public"
  62614. deprecated="not deprecated">
  62615. </method>
  62616. <method name="iterator" return="java.util.Iterator"
  62617. abstract="false" native="false" synchronized="false"
  62618. static="false" final="false" visibility="public"
  62619. deprecated="not deprecated">
  62620. <doc>
  62621. <![CDATA[Return an iterator over the elements in this tuple.
  62622. Note that this doesn't flatten the tuple; one may receive tuples
  62623. from this iterator.]]>
  62624. </doc>
  62625. </method>
  62626. <method name="toString" return="java.lang.String"
  62627. abstract="false" native="false" synchronized="false"
  62628. static="false" final="false" visibility="public"
  62629. deprecated="not deprecated">
  62630. <doc>
  62631. <![CDATA[Convert Tuple to String as in the following.
  62632. <tt>[<child1>,<child2>,...,<childn>]</tt>]]>
  62633. </doc>
  62634. </method>
  62635. <method name="write"
  62636. abstract="false" native="false" synchronized="false"
  62637. static="false" final="false" visibility="public"
  62638. deprecated="not deprecated">
  62639. <param name="out" type="java.io.DataOutput"/>
  62640. <exception name="IOException" type="java.io.IOException"/>
  62641. <doc>
  62642. <![CDATA[Writes each Writable to <code>out</code>.
  62643. TupleWritable format:
  62644. {@code
  62645. <count><type1><type2>...<typen><obj1><obj2>...<objn>
  62646. }]]>
  62647. </doc>
  62648. </method>
  62649. <method name="readFields"
  62650. abstract="false" native="false" synchronized="false"
  62651. static="false" final="false" visibility="public"
  62652. deprecated="not deprecated">
  62653. <param name="in" type="java.io.DataInput"/>
  62654. <exception name="IOException" type="java.io.IOException"/>
  62655. <doc>
  62656. <![CDATA[{@inheritDoc}]]>
  62657. </doc>
  62658. </method>
  62659. <doc>
  62660. <![CDATA[Writable type storing multiple {@link org.apache.hadoop.io.Writable}s.
  62661. This is *not* a general-purpose tuple type. In almost all cases, users are
  62662. encouraged to implement their own serializable types, which can perform
  62663. better validation and provide more efficient encodings than this class is
  62664. capable. TupleWritable relies on the join framework for type safety and
  62665. assumes its instances will rarely be persisted, assumptions not only
  62666. incompatible with, but contrary to the general case.
  62667. @see org.apache.hadoop.io.Writable]]>
  62668. </doc>
  62669. </class>
  62670. <!-- end class org.apache.hadoop.mapred.join.TupleWritable -->
  62671. <!-- start class org.apache.hadoop.mapred.join.WrappedRecordReader -->
  62672. <class name="WrappedRecordReader" extends="java.lang.Object"
  62673. abstract="false"
  62674. static="false" final="false" visibility="public"
  62675. deprecated="not deprecated">
  62676. <implements name="org.apache.hadoop.mapred.join.ComposableRecordReader"/>
  62677. <method name="id" return="int"
  62678. abstract="false" native="false" synchronized="false"
  62679. static="false" final="false" visibility="public"
  62680. deprecated="not deprecated">
  62681. <doc>
  62682. <![CDATA[{@inheritDoc}]]>
  62683. </doc>
  62684. </method>
  62685. <method name="key" return="org.apache.hadoop.io.WritableComparable"
  62686. abstract="false" native="false" synchronized="false"
  62687. static="false" final="false" visibility="public"
  62688. deprecated="not deprecated">
  62689. <doc>
  62690. <![CDATA[Return the key at the head of this RR.]]>
  62691. </doc>
  62692. </method>
  62693. <method name="key"
  62694. abstract="false" native="false" synchronized="false"
  62695. static="false" final="false" visibility="public"
  62696. deprecated="not deprecated">
  62697. <param name="qkey" type="org.apache.hadoop.io.WritableComparable"/>
  62698. <exception name="IOException" type="java.io.IOException"/>
  62699. <doc>
  62700. <![CDATA[Clone the key at the head of this RR into the object supplied.]]>
  62701. </doc>
  62702. </method>
  62703. <method name="hasNext" return="boolean"
  62704. abstract="false" native="false" synchronized="false"
  62705. static="false" final="false" visibility="public"
  62706. deprecated="not deprecated">
  62707. <doc>
  62708. <![CDATA[Return true if the RR- including the k,v pair stored in this object-
  62709. is exhausted.]]>
  62710. </doc>
  62711. </method>
  62712. <method name="skip"
  62713. abstract="false" native="false" synchronized="false"
  62714. static="false" final="false" visibility="public"
  62715. deprecated="not deprecated">
  62716. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  62717. <exception name="IOException" type="java.io.IOException"/>
  62718. <doc>
  62719. <![CDATA[Skip key-value pairs with keys less than or equal to the key provided.]]>
  62720. </doc>
  62721. </method>
  62722. <method name="next" return="boolean"
  62723. abstract="false" native="false" synchronized="false"
  62724. static="false" final="false" visibility="protected"
  62725. deprecated="not deprecated">
  62726. <exception name="IOException" type="java.io.IOException"/>
  62727. <doc>
  62728. <![CDATA[Read the next k,v pair into the head of this object; return true iff
  62729. the RR and this are exhausted.]]>
  62730. </doc>
  62731. </method>
  62732. <method name="accept"
  62733. abstract="false" native="false" synchronized="false"
  62734. static="false" final="false" visibility="public"
  62735. deprecated="not deprecated">
  62736. <param name="i" type="org.apache.hadoop.mapred.join.CompositeRecordReader.JoinCollector"/>
  62737. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  62738. <exception name="IOException" type="java.io.IOException"/>
  62739. <doc>
  62740. <![CDATA[Add an iterator to the collector at the position occupied by this
  62741. RecordReader over the values in this stream paired with the key
  62742. provided (ie register a stream of values from this source matching K
  62743. with a collector).]]>
  62744. </doc>
  62745. </method>
  62746. <method name="next" return="boolean"
  62747. abstract="false" native="false" synchronized="false"
  62748. static="false" final="false" visibility="public"
  62749. deprecated="not deprecated">
  62750. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  62751. <param name="value" type="org.apache.hadoop.io.Writable"/>
  62752. <exception name="IOException" type="java.io.IOException"/>
  62753. <doc>
  62754. <![CDATA[Write key-value pair at the head of this stream to the objects provided;
  62755. get next key-value pair from proxied RR.]]>
  62756. </doc>
  62757. </method>
  62758. <method name="createKey" return="org.apache.hadoop.io.WritableComparable"
  62759. abstract="false" native="false" synchronized="false"
  62760. static="false" final="false" visibility="public"
  62761. deprecated="not deprecated">
  62762. <doc>
  62763. <![CDATA[Request new key from proxied RR.]]>
  62764. </doc>
  62765. </method>
  62766. <method name="createValue" return="org.apache.hadoop.io.Writable"
  62767. abstract="false" native="false" synchronized="false"
  62768. static="false" final="false" visibility="public"
  62769. deprecated="not deprecated">
  62770. <doc>
  62771. <![CDATA[Request new value from proxied RR.]]>
  62772. </doc>
  62773. </method>
  62774. <method name="getProgress" return="float"
  62775. abstract="false" native="false" synchronized="false"
  62776. static="false" final="false" visibility="public"
  62777. deprecated="not deprecated">
  62778. <exception name="IOException" type="java.io.IOException"/>
  62779. <doc>
  62780. <![CDATA[Request progress from proxied RR.]]>
  62781. </doc>
  62782. </method>
  62783. <method name="getPos" return="long"
  62784. abstract="false" native="false" synchronized="false"
  62785. static="false" final="false" visibility="public"
  62786. deprecated="not deprecated">
  62787. <exception name="IOException" type="java.io.IOException"/>
  62788. <doc>
  62789. <![CDATA[Request position from proxied RR.]]>
  62790. </doc>
  62791. </method>
  62792. <method name="close"
  62793. abstract="false" native="false" synchronized="false"
  62794. static="false" final="false" visibility="public"
  62795. deprecated="not deprecated">
  62796. <exception name="IOException" type="java.io.IOException"/>
  62797. <doc>
  62798. <![CDATA[Forward close request to proxied RR.]]>
  62799. </doc>
  62800. </method>
  62801. <method name="compareTo" return="int"
  62802. abstract="false" native="false" synchronized="false"
  62803. static="false" final="false" visibility="public"
  62804. deprecated="not deprecated">
  62805. <param name="other" type="org.apache.hadoop.mapred.join.ComposableRecordReader"/>
  62806. <doc>
  62807. <![CDATA[Implement Comparable contract (compare key at head of proxied RR
  62808. with that of another).]]>
  62809. </doc>
  62810. </method>
  62811. <method name="equals" return="boolean"
  62812. abstract="false" native="false" synchronized="false"
  62813. static="false" final="false" visibility="public"
  62814. deprecated="not deprecated">
  62815. <param name="other" type="java.lang.Object"/>
  62816. <doc>
  62817. <![CDATA[Return true iff compareTo(other) retn true.]]>
  62818. </doc>
  62819. </method>
  62820. <method name="hashCode" return="int"
  62821. abstract="false" native="false" synchronized="false"
  62822. static="false" final="false" visibility="public"
  62823. deprecated="not deprecated">
  62824. </method>
  62825. <doc>
  62826. <![CDATA[Proxy class for a RecordReader participating in the join framework.
  62827. This class keeps track of the &quot;head&quot; key-value pair for the
  62828. provided RecordReader and keeps a store of values matching a key when
  62829. this source is participating in a join.]]>
  62830. </doc>
  62831. </class>
  62832. <!-- end class org.apache.hadoop.mapred.join.WrappedRecordReader -->
  62833. </package>
  62834. <package name="org.apache.hadoop.mapred.lib">
  62835. <!-- start class org.apache.hadoop.mapred.lib.BinaryPartitioner -->
  62836. <class name="BinaryPartitioner" extends="org.apache.hadoop.mapreduce.lib.partition.BinaryPartitioner"
  62837. abstract="false"
  62838. static="false" final="false" visibility="public"
  62839. deprecated="not deprecated">
  62840. <implements name="org.apache.hadoop.mapred.Partitioner"/>
  62841. <constructor name="BinaryPartitioner"
  62842. static="false" final="false" visibility="public"
  62843. deprecated="not deprecated">
  62844. </constructor>
  62845. <method name="configure"
  62846. abstract="false" native="false" synchronized="false"
  62847. static="false" final="false" visibility="public"
  62848. deprecated="not deprecated">
  62849. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  62850. </method>
  62851. <doc>
  62852. <![CDATA[Partition {@link BinaryComparable} keys using a configurable part of
  62853. the bytes array returned by {@link BinaryComparable#getBytes()}.
  62854. @see org.apache.hadoop.mapreduce.lib.partition.BinaryPartitioner]]>
  62855. </doc>
  62856. </class>
  62857. <!-- end class org.apache.hadoop.mapred.lib.BinaryPartitioner -->
  62858. <!-- start class org.apache.hadoop.mapred.lib.ChainMapper -->
  62859. <class name="ChainMapper" extends="java.lang.Object"
  62860. abstract="false"
  62861. static="false" final="false" visibility="public"
  62862. deprecated="not deprecated">
  62863. <implements name="org.apache.hadoop.mapred.Mapper"/>
  62864. <constructor name="ChainMapper"
  62865. static="false" final="false" visibility="public"
  62866. deprecated="not deprecated">
  62867. <doc>
  62868. <![CDATA[Constructor.]]>
  62869. </doc>
  62870. </constructor>
  62871. <method name="addMapper"
  62872. abstract="false" native="false" synchronized="false"
  62873. static="true" final="false" visibility="public"
  62874. deprecated="not deprecated">
  62875. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  62876. <param name="klass" type="java.lang.Class"/>
  62877. <param name="inputKeyClass" type="java.lang.Class"/>
  62878. <param name="inputValueClass" type="java.lang.Class"/>
  62879. <param name="outputKeyClass" type="java.lang.Class"/>
  62880. <param name="outputValueClass" type="java.lang.Class"/>
  62881. <param name="byValue" type="boolean"/>
  62882. <param name="mapperConf" type="org.apache.hadoop.mapred.JobConf"/>
  62883. <doc>
  62884. <![CDATA[Adds a Mapper class to the chain job's JobConf.
  62885. <p/>
  62886. It has to be specified how key and values are passed from one element of
  62887. the chain to the next, by value or by reference. If a Mapper leverages the
  62888. assumed semantics that the key and values are not modified by the collector
  62889. 'by value' must be used. If the Mapper does not expect this semantics, as
  62890. an optimization to avoid serialization and deserialization 'by reference'
  62891. can be used.
  62892. <p/>
  62893. For the added Mapper the configuration given for it,
  62894. <code>mapperConf</code>, have precedence over the job's JobConf. This
  62895. precedence is in effect when the task is running.
  62896. <p/>
  62897. IMPORTANT: There is no need to specify the output key/value classes for the
  62898. ChainMapper, this is done by the addMapper for the last mapper in the chain
  62899. <p/>
  62900. @param job job's JobConf to add the Mapper class.
  62901. @param klass the Mapper class to add.
  62902. @param inputKeyClass mapper input key class.
  62903. @param inputValueClass mapper input value class.
  62904. @param outputKeyClass mapper output key class.
  62905. @param outputValueClass mapper output value class.
  62906. @param byValue indicates if key/values should be passed by value
  62907. to the next Mapper in the chain, if any.
  62908. @param mapperConf a JobConf with the configuration for the Mapper
  62909. class. It is recommended to use a JobConf without default values using the
  62910. <code>JobConf(boolean loadDefaults)</code> constructor with FALSE.]]>
  62911. </doc>
  62912. </method>
  62913. <method name="configure"
  62914. abstract="false" native="false" synchronized="false"
  62915. static="false" final="false" visibility="public"
  62916. deprecated="not deprecated">
  62917. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  62918. <doc>
  62919. <![CDATA[Configures the ChainMapper and all the Mappers in the chain.
  62920. <p/>
  62921. If this method is overriden <code>super.configure(...)</code> should be
  62922. invoked at the beginning of the overwriter method.]]>
  62923. </doc>
  62924. </method>
  62925. <method name="map"
  62926. abstract="false" native="false" synchronized="false"
  62927. static="false" final="false" visibility="public"
  62928. deprecated="not deprecated">
  62929. <param name="key" type="java.lang.Object"/>
  62930. <param name="value" type="java.lang.Object"/>
  62931. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  62932. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  62933. <exception name="IOException" type="java.io.IOException"/>
  62934. <doc>
  62935. <![CDATA[Chains the <code>map(...)</code> methods of the Mappers in the chain.]]>
  62936. </doc>
  62937. </method>
  62938. <method name="close"
  62939. abstract="false" native="false" synchronized="false"
  62940. static="false" final="false" visibility="public"
  62941. deprecated="not deprecated">
  62942. <exception name="IOException" type="java.io.IOException"/>
  62943. <doc>
  62944. <![CDATA[Closes the ChainMapper and all the Mappers in the chain.
  62945. <p/>
  62946. If this method is overriden <code>super.close()</code> should be
  62947. invoked at the end of the overwriter method.]]>
  62948. </doc>
  62949. </method>
  62950. <doc>
  62951. <![CDATA[The ChainMapper class allows to use multiple Mapper classes within a single
  62952. Map task.
  62953. <p/>
  62954. The Mapper classes are invoked in a chained (or piped) fashion, the output of
  62955. the first becomes the input of the second, and so on until the last Mapper,
  62956. the output of the last Mapper will be written to the task's output.
  62957. <p/>
  62958. The key functionality of this feature is that the Mappers in the chain do not
  62959. need to be aware that they are executed in a chain. This enables having
  62960. reusable specialized Mappers that can be combined to perform composite
  62961. operations within a single task.
  62962. <p/>
  62963. Special care has to be taken when creating chains that the key/values output
  62964. by a Mapper are valid for the following Mapper in the chain. It is assumed
  62965. all Mappers and the Reduce in the chain use maching output and input key and
  62966. value classes as no conversion is done by the chaining code.
  62967. <p/>
  62968. Using the ChainMapper and the ChainReducer classes is possible to compose
  62969. Map/Reduce jobs that look like <code>[MAP+ / REDUCE MAP*]</code>. And
  62970. immediate benefit of this pattern is a dramatic reduction in disk IO.
  62971. <p/>
  62972. IMPORTANT: There is no need to specify the output key/value classes for the
  62973. ChainMapper, this is done by the addMapper for the last mapper in the chain.
  62974. <p/>
  62975. ChainMapper usage pattern:
  62976. <p/>
  62977. <pre>
  62978. ...
  62979. conf.setJobName("chain");
  62980. conf.setInputFormat(TextInputFormat.class);
  62981. conf.setOutputFormat(TextOutputFormat.class);
  62982. <p/>
  62983. JobConf mapAConf = new JobConf(false);
  62984. ...
  62985. ChainMapper.addMapper(conf, AMap.class, LongWritable.class, Text.class,
  62986. Text.class, Text.class, true, mapAConf);
  62987. <p/>
  62988. JobConf mapBConf = new JobConf(false);
  62989. ...
  62990. ChainMapper.addMapper(conf, BMap.class, Text.class, Text.class,
  62991. LongWritable.class, Text.class, false, mapBConf);
  62992. <p/>
  62993. JobConf reduceConf = new JobConf(false);
  62994. ...
  62995. ChainReducer.setReducer(conf, XReduce.class, LongWritable.class, Text.class,
  62996. Text.class, Text.class, true, reduceConf);
  62997. <p/>
  62998. ChainReducer.addMapper(conf, CMap.class, Text.class, Text.class,
  62999. LongWritable.class, Text.class, false, null);
  63000. <p/>
  63001. ChainReducer.addMapper(conf, DMap.class, LongWritable.class, Text.class,
  63002. LongWritable.class, LongWritable.class, true, null);
  63003. <p/>
  63004. FileInputFormat.setInputPaths(conf, inDir);
  63005. FileOutputFormat.setOutputPath(conf, outDir);
  63006. ...
  63007. <p/>
  63008. JobClient jc = new JobClient(conf);
  63009. RunningJob job = jc.submitJob(conf);
  63010. ...
  63011. </pre>]]>
  63012. </doc>
  63013. </class>
  63014. <!-- end class org.apache.hadoop.mapred.lib.ChainMapper -->
  63015. <!-- start class org.apache.hadoop.mapred.lib.ChainReducer -->
  63016. <class name="ChainReducer" extends="java.lang.Object"
  63017. abstract="false"
  63018. static="false" final="false" visibility="public"
  63019. deprecated="not deprecated">
  63020. <implements name="org.apache.hadoop.mapred.Reducer"/>
  63021. <constructor name="ChainReducer"
  63022. static="false" final="false" visibility="public"
  63023. deprecated="not deprecated">
  63024. <doc>
  63025. <![CDATA[Constructor.]]>
  63026. </doc>
  63027. </constructor>
  63028. <method name="setReducer"
  63029. abstract="false" native="false" synchronized="false"
  63030. static="true" final="false" visibility="public"
  63031. deprecated="not deprecated">
  63032. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  63033. <param name="klass" type="java.lang.Class"/>
  63034. <param name="inputKeyClass" type="java.lang.Class"/>
  63035. <param name="inputValueClass" type="java.lang.Class"/>
  63036. <param name="outputKeyClass" type="java.lang.Class"/>
  63037. <param name="outputValueClass" type="java.lang.Class"/>
  63038. <param name="byValue" type="boolean"/>
  63039. <param name="reducerConf" type="org.apache.hadoop.mapred.JobConf"/>
  63040. <doc>
  63041. <![CDATA[Sets the Reducer class to the chain job's JobConf.
  63042. <p/>
  63043. It has to be specified how key and values are passed from one element of
  63044. the chain to the next, by value or by reference. If a Reducer leverages the
  63045. assumed semantics that the key and values are not modified by the collector
  63046. 'by value' must be used. If the Reducer does not expect this semantics, as
  63047. an optimization to avoid serialization and deserialization 'by reference'
  63048. can be used.
  63049. <p/>
  63050. For the added Reducer the configuration given for it,
  63051. <code>reducerConf</code>, have precedence over the job's JobConf. This
  63052. precedence is in effect when the task is running.
  63053. <p/>
  63054. IMPORTANT: There is no need to specify the output key/value classes for the
  63055. ChainReducer, this is done by the setReducer or the addMapper for the last
  63056. element in the chain.
  63057. @param job job's JobConf to add the Reducer class.
  63058. @param klass the Reducer class to add.
  63059. @param inputKeyClass reducer input key class.
  63060. @param inputValueClass reducer input value class.
  63061. @param outputKeyClass reducer output key class.
  63062. @param outputValueClass reducer output value class.
  63063. @param byValue indicates if key/values should be passed by value
  63064. to the next Mapper in the chain, if any.
  63065. @param reducerConf a JobConf with the configuration for the Reducer
  63066. class. It is recommended to use a JobConf without default values using the
  63067. <code>JobConf(boolean loadDefaults)</code> constructor with FALSE.]]>
  63068. </doc>
  63069. </method>
  63070. <method name="addMapper"
  63071. abstract="false" native="false" synchronized="false"
  63072. static="true" final="false" visibility="public"
  63073. deprecated="not deprecated">
  63074. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  63075. <param name="klass" type="java.lang.Class"/>
  63076. <param name="inputKeyClass" type="java.lang.Class"/>
  63077. <param name="inputValueClass" type="java.lang.Class"/>
  63078. <param name="outputKeyClass" type="java.lang.Class"/>
  63079. <param name="outputValueClass" type="java.lang.Class"/>
  63080. <param name="byValue" type="boolean"/>
  63081. <param name="mapperConf" type="org.apache.hadoop.mapred.JobConf"/>
  63082. <doc>
  63083. <![CDATA[Adds a Mapper class to the chain job's JobConf.
  63084. <p/>
  63085. It has to be specified how key and values are passed from one element of
  63086. the chain to the next, by value or by reference. If a Mapper leverages the
  63087. assumed semantics that the key and values are not modified by the collector
  63088. 'by value' must be used. If the Mapper does not expect this semantics, as
  63089. an optimization to avoid serialization and deserialization 'by reference'
  63090. can be used.
  63091. <p/>
  63092. For the added Mapper the configuration given for it,
  63093. <code>mapperConf</code>, have precedence over the job's JobConf. This
  63094. precedence is in effect when the task is running.
  63095. <p/>
  63096. IMPORTANT: There is no need to specify the output key/value classes for the
  63097. ChainMapper, this is done by the addMapper for the last mapper in the chain
  63098. .
  63099. @param job chain job's JobConf to add the Mapper class.
  63100. @param klass the Mapper class to add.
  63101. @param inputKeyClass mapper input key class.
  63102. @param inputValueClass mapper input value class.
  63103. @param outputKeyClass mapper output key class.
  63104. @param outputValueClass mapper output value class.
  63105. @param byValue indicates if key/values should be passed by value
  63106. to the next Mapper in the chain, if any.
  63107. @param mapperConf a JobConf with the configuration for the Mapper
  63108. class. It is recommended to use a JobConf without default values using the
  63109. <code>JobConf(boolean loadDefaults)</code> constructor with FALSE.]]>
  63110. </doc>
  63111. </method>
  63112. <method name="configure"
  63113. abstract="false" native="false" synchronized="false"
  63114. static="false" final="false" visibility="public"
  63115. deprecated="not deprecated">
  63116. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  63117. <doc>
  63118. <![CDATA[Configures the ChainReducer, the Reducer and all the Mappers in the chain.
  63119. <p/>
  63120. If this method is overriden <code>super.configure(...)</code> should be
  63121. invoked at the beginning of the overwriter method.]]>
  63122. </doc>
  63123. </method>
  63124. <method name="reduce"
  63125. abstract="false" native="false" synchronized="false"
  63126. static="false" final="false" visibility="public"
  63127. deprecated="not deprecated">
  63128. <param name="key" type="java.lang.Object"/>
  63129. <param name="values" type="java.util.Iterator"/>
  63130. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  63131. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  63132. <exception name="IOException" type="java.io.IOException"/>
  63133. <doc>
  63134. <![CDATA[Chains the <code>reduce(...)</code> method of the Reducer with the
  63135. <code>map(...) </code> methods of the Mappers in the chain.]]>
  63136. </doc>
  63137. </method>
  63138. <method name="close"
  63139. abstract="false" native="false" synchronized="false"
  63140. static="false" final="false" visibility="public"
  63141. deprecated="not deprecated">
  63142. <exception name="IOException" type="java.io.IOException"/>
  63143. <doc>
  63144. <![CDATA[Closes the ChainReducer, the Reducer and all the Mappers in the chain.
  63145. <p/>
  63146. If this method is overriden <code>super.close()</code> should be
  63147. invoked at the end of the overwriter method.]]>
  63148. </doc>
  63149. </method>
  63150. <doc>
  63151. <![CDATA[The ChainReducer class allows to chain multiple Mapper classes after a
  63152. Reducer within the Reducer task.
  63153. <p/>
  63154. For each record output by the Reducer, the Mapper classes are invoked in a
  63155. chained (or piped) fashion, the output of the first becomes the input of the
  63156. second, and so on until the last Mapper, the output of the last Mapper will
  63157. be written to the task's output.
  63158. <p/>
  63159. The key functionality of this feature is that the Mappers in the chain do not
  63160. need to be aware that they are executed after the Reducer or in a chain.
  63161. This enables having reusable specialized Mappers that can be combined to
  63162. perform composite operations within a single task.
  63163. <p/>
  63164. Special care has to be taken when creating chains that the key/values output
  63165. by a Mapper are valid for the following Mapper in the chain. It is assumed
  63166. all Mappers and the Reduce in the chain use maching output and input key and
  63167. value classes as no conversion is done by the chaining code.
  63168. <p/>
  63169. Using the ChainMapper and the ChainReducer classes is possible to compose
  63170. Map/Reduce jobs that look like <code>[MAP+ / REDUCE MAP*]</code>. And
  63171. immediate benefit of this pattern is a dramatic reduction in disk IO.
  63172. <p/>
  63173. IMPORTANT: There is no need to specify the output key/value classes for the
  63174. ChainReducer, this is done by the setReducer or the addMapper for the last
  63175. element in the chain.
  63176. <p/>
  63177. ChainReducer usage pattern:
  63178. <p/>
  63179. <pre>
  63180. ...
  63181. conf.setJobName("chain");
  63182. conf.setInputFormat(TextInputFormat.class);
  63183. conf.setOutputFormat(TextOutputFormat.class);
  63184. <p/>
  63185. JobConf mapAConf = new JobConf(false);
  63186. ...
  63187. ChainMapper.addMapper(conf, AMap.class, LongWritable.class, Text.class,
  63188. Text.class, Text.class, true, mapAConf);
  63189. <p/>
  63190. JobConf mapBConf = new JobConf(false);
  63191. ...
  63192. ChainMapper.addMapper(conf, BMap.class, Text.class, Text.class,
  63193. LongWritable.class, Text.class, false, mapBConf);
  63194. <p/>
  63195. JobConf reduceConf = new JobConf(false);
  63196. ...
  63197. ChainReducer.setReducer(conf, XReduce.class, LongWritable.class, Text.class,
  63198. Text.class, Text.class, true, reduceConf);
  63199. <p/>
  63200. ChainReducer.addMapper(conf, CMap.class, Text.class, Text.class,
  63201. LongWritable.class, Text.class, false, null);
  63202. <p/>
  63203. ChainReducer.addMapper(conf, DMap.class, LongWritable.class, Text.class,
  63204. LongWritable.class, LongWritable.class, true, null);
  63205. <p/>
  63206. FileInputFormat.setInputPaths(conf, inDir);
  63207. FileOutputFormat.setOutputPath(conf, outDir);
  63208. ...
  63209. <p/>
  63210. JobClient jc = new JobClient(conf);
  63211. RunningJob job = jc.submitJob(conf);
  63212. ...
  63213. </pre>]]>
  63214. </doc>
  63215. </class>
  63216. <!-- end class org.apache.hadoop.mapred.lib.ChainReducer -->
  63217. <!-- start class org.apache.hadoop.mapred.lib.CombineFileInputFormat -->
  63218. <class name="CombineFileInputFormat" extends="org.apache.hadoop.mapred.FileInputFormat"
  63219. abstract="true"
  63220. static="false" final="false" visibility="public"
  63221. deprecated="not deprecated">
  63222. <constructor name="CombineFileInputFormat"
  63223. static="false" final="false" visibility="public"
  63224. deprecated="not deprecated">
  63225. <doc>
  63226. <![CDATA[default constructor]]>
  63227. </doc>
  63228. </constructor>
  63229. <method name="setMaxSplitSize"
  63230. abstract="false" native="false" synchronized="false"
  63231. static="false" final="false" visibility="protected"
  63232. deprecated="not deprecated">
  63233. <param name="maxSplitSize" type="long"/>
  63234. <doc>
  63235. <![CDATA[Specify the maximum size (in bytes) of each split. Each split is
  63236. approximately equal to the specified size.]]>
  63237. </doc>
  63238. </method>
  63239. <method name="setMinSplitSizeNode"
  63240. abstract="false" native="false" synchronized="false"
  63241. static="false" final="false" visibility="protected"
  63242. deprecated="not deprecated">
  63243. <param name="minSplitSizeNode" type="long"/>
  63244. <doc>
  63245. <![CDATA[Specify the minimum size (in bytes) of each split per node.
  63246. This applies to data that is left over after combining data on a single
  63247. node into splits that are of maximum size specified by maxSplitSize.
  63248. This leftover data will be combined into its own split if its size
  63249. exceeds minSplitSizeNode.]]>
  63250. </doc>
  63251. </method>
  63252. <method name="setMinSplitSizeRack"
  63253. abstract="false" native="false" synchronized="false"
  63254. static="false" final="false" visibility="protected"
  63255. deprecated="not deprecated">
  63256. <param name="minSplitSizeRack" type="long"/>
  63257. <doc>
  63258. <![CDATA[Specify the minimum size (in bytes) of each split per rack.
  63259. This applies to data that is left over after combining data on a single
  63260. rack into splits that are of maximum size specified by maxSplitSize.
  63261. This leftover data will be combined into its own split if its size
  63262. exceeds minSplitSizeRack.]]>
  63263. </doc>
  63264. </method>
  63265. <method name="createPool"
  63266. abstract="false" native="false" synchronized="false"
  63267. static="false" final="false" visibility="protected"
  63268. deprecated="not deprecated">
  63269. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  63270. <param name="filters" type="java.util.List"/>
  63271. <doc>
  63272. <![CDATA[Create a new pool and add the filters to it.
  63273. A split cannot have files from different pools.]]>
  63274. </doc>
  63275. </method>
  63276. <method name="createPool"
  63277. abstract="false" native="false" synchronized="false"
  63278. static="false" final="false" visibility="protected"
  63279. deprecated="not deprecated">
  63280. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  63281. <param name="filters" type="org.apache.hadoop.fs.PathFilter[]"/>
  63282. <doc>
  63283. <![CDATA[Create a new pool and add the filters to it.
  63284. A pathname can satisfy any one of the specified filters.
  63285. A split cannot have files from different pools.]]>
  63286. </doc>
  63287. </method>
  63288. <method name="getSplits" return="org.apache.hadoop.mapred.InputSplit[]"
  63289. abstract="false" native="false" synchronized="false"
  63290. static="false" final="false" visibility="public"
  63291. deprecated="not deprecated">
  63292. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  63293. <param name="numSplits" type="int"/>
  63294. <exception name="IOException" type="java.io.IOException"/>
  63295. </method>
  63296. <method name="getRecordReader" return="org.apache.hadoop.mapred.RecordReader"
  63297. abstract="true" native="false" synchronized="false"
  63298. static="false" final="false" visibility="public"
  63299. deprecated="not deprecated">
  63300. <param name="split" type="org.apache.hadoop.mapred.InputSplit"/>
  63301. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  63302. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  63303. <exception name="IOException" type="java.io.IOException"/>
  63304. <doc>
  63305. <![CDATA[This is not implemented yet.]]>
  63306. </doc>
  63307. </method>
  63308. <doc>
  63309. <![CDATA[An abstract {@link org.apache.hadoop.mapred.InputFormat} that returns {@link CombineFileSplit}'s
  63310. in {@link org.apache.hadoop.mapred.InputFormat#getSplits(JobConf, int)} method.
  63311. Splits are constructed from the files under the input paths.
  63312. A split cannot have files from different pools.
  63313. Each split returned may contain blocks from different files.
  63314. If a maxSplitSize is specified, then blocks on the same node are
  63315. combined to form a single split. Blocks that are left over are
  63316. then combined with other blocks in the same rack.
  63317. If maxSplitSize is not specified, then blocks from the same rack
  63318. are combined in a single split; no attempt is made to create
  63319. node-local splits.
  63320. If the maxSplitSize is equal to the block size, then this class
  63321. is similar to the default spliting behaviour in Hadoop: each
  63322. block is a locally processed split.
  63323. Subclasses implement {@link org.apache.hadoop.mapred.InputFormat#getRecordReader(InputSplit, JobConf, Reporter)}
  63324. to construct <code>RecordReader</code>'s for <code>CombineFileSplit</code>'s.
  63325. @see CombineFileSplit]]>
  63326. </doc>
  63327. </class>
  63328. <!-- end class org.apache.hadoop.mapred.lib.CombineFileInputFormat -->
  63329. <!-- start class org.apache.hadoop.mapred.lib.CombineFileRecordReader -->
  63330. <class name="CombineFileRecordReader" extends="java.lang.Object"
  63331. abstract="false"
  63332. static="false" final="false" visibility="public"
  63333. deprecated="not deprecated">
  63334. <implements name="org.apache.hadoop.mapred.RecordReader"/>
  63335. <constructor name="CombineFileRecordReader" type="org.apache.hadoop.mapred.JobConf, org.apache.hadoop.mapred.lib.CombineFileSplit, org.apache.hadoop.mapred.Reporter, java.lang.Class"
  63336. static="false" final="false" visibility="public"
  63337. deprecated="not deprecated">
  63338. <exception name="IOException" type="java.io.IOException"/>
  63339. <doc>
  63340. <![CDATA[A generic RecordReader that can hand out different recordReaders
  63341. for each chunk in the CombineFileSplit.]]>
  63342. </doc>
  63343. </constructor>
  63344. <method name="next" return="boolean"
  63345. abstract="false" native="false" synchronized="false"
  63346. static="false" final="false" visibility="public"
  63347. deprecated="not deprecated">
  63348. <param name="key" type="java.lang.Object"/>
  63349. <param name="value" type="java.lang.Object"/>
  63350. <exception name="IOException" type="java.io.IOException"/>
  63351. </method>
  63352. <method name="createKey" return="java.lang.Object"
  63353. abstract="false" native="false" synchronized="false"
  63354. static="false" final="false" visibility="public"
  63355. deprecated="not deprecated">
  63356. </method>
  63357. <method name="createValue" return="java.lang.Object"
  63358. abstract="false" native="false" synchronized="false"
  63359. static="false" final="false" visibility="public"
  63360. deprecated="not deprecated">
  63361. </method>
  63362. <method name="getPos" return="long"
  63363. abstract="false" native="false" synchronized="false"
  63364. static="false" final="false" visibility="public"
  63365. deprecated="not deprecated">
  63366. <exception name="IOException" type="java.io.IOException"/>
  63367. <doc>
  63368. <![CDATA[return the amount of data processed]]>
  63369. </doc>
  63370. </method>
  63371. <method name="close"
  63372. abstract="false" native="false" synchronized="false"
  63373. static="false" final="false" visibility="public"
  63374. deprecated="not deprecated">
  63375. <exception name="IOException" type="java.io.IOException"/>
  63376. </method>
  63377. <method name="getProgress" return="float"
  63378. abstract="false" native="false" synchronized="false"
  63379. static="false" final="false" visibility="public"
  63380. deprecated="not deprecated">
  63381. <exception name="IOException" type="java.io.IOException"/>
  63382. <doc>
  63383. <![CDATA[return progress based on the amount of data processed so far.]]>
  63384. </doc>
  63385. </method>
  63386. <method name="initNextRecordReader" return="boolean"
  63387. abstract="false" native="false" synchronized="false"
  63388. static="false" final="false" visibility="protected"
  63389. deprecated="not deprecated">
  63390. <exception name="IOException" type="java.io.IOException"/>
  63391. <doc>
  63392. <![CDATA[Get the record reader for the next chunk in this CombineFileSplit.]]>
  63393. </doc>
  63394. </method>
  63395. <field name="split" type="org.apache.hadoop.mapred.lib.CombineFileSplit"
  63396. transient="false" volatile="false"
  63397. static="false" final="false" visibility="protected"
  63398. deprecated="not deprecated">
  63399. </field>
  63400. <field name="jc" type="org.apache.hadoop.mapred.JobConf"
  63401. transient="false" volatile="false"
  63402. static="false" final="false" visibility="protected"
  63403. deprecated="not deprecated">
  63404. </field>
  63405. <field name="reporter" type="org.apache.hadoop.mapred.Reporter"
  63406. transient="false" volatile="false"
  63407. static="false" final="false" visibility="protected"
  63408. deprecated="not deprecated">
  63409. </field>
  63410. <field name="rrClass" type="java.lang.Class"
  63411. transient="false" volatile="false"
  63412. static="false" final="false" visibility="protected"
  63413. deprecated="not deprecated">
  63414. </field>
  63415. <field name="rrConstructor" type="java.lang.reflect.Constructor"
  63416. transient="false" volatile="false"
  63417. static="false" final="false" visibility="protected"
  63418. deprecated="not deprecated">
  63419. </field>
  63420. <field name="fs" type="org.apache.hadoop.fs.FileSystem"
  63421. transient="false" volatile="false"
  63422. static="false" final="false" visibility="protected"
  63423. deprecated="not deprecated">
  63424. </field>
  63425. <field name="idx" type="int"
  63426. transient="false" volatile="false"
  63427. static="false" final="false" visibility="protected"
  63428. deprecated="not deprecated">
  63429. </field>
  63430. <field name="progress" type="long"
  63431. transient="false" volatile="false"
  63432. static="false" final="false" visibility="protected"
  63433. deprecated="not deprecated">
  63434. </field>
  63435. <field name="curReader" type="org.apache.hadoop.mapred.RecordReader"
  63436. transient="false" volatile="false"
  63437. static="false" final="false" visibility="protected"
  63438. deprecated="not deprecated">
  63439. </field>
  63440. <doc>
  63441. <![CDATA[A generic RecordReader that can hand out different recordReaders
  63442. for each chunk in a {@link CombineFileSplit}.
  63443. A CombineFileSplit can combine data chunks from multiple files.
  63444. This class allows using different RecordReaders for processing
  63445. these data chunks from different files.
  63446. @see CombineFileSplit]]>
  63447. </doc>
  63448. </class>
  63449. <!-- end class org.apache.hadoop.mapred.lib.CombineFileRecordReader -->
  63450. <!-- start class org.apache.hadoop.mapred.lib.CombineFileSplit -->
  63451. <class name="CombineFileSplit" extends="java.lang.Object"
  63452. abstract="false"
  63453. static="false" final="false" visibility="public"
  63454. deprecated="not deprecated">
  63455. <implements name="org.apache.hadoop.mapred.InputSplit"/>
  63456. <constructor name="CombineFileSplit"
  63457. static="false" final="false" visibility="public"
  63458. deprecated="not deprecated">
  63459. <doc>
  63460. <![CDATA[default constructor]]>
  63461. </doc>
  63462. </constructor>
  63463. <constructor name="CombineFileSplit" type="org.apache.hadoop.mapred.JobConf, org.apache.hadoop.fs.Path[], long[], long[], java.lang.String[]"
  63464. static="false" final="false" visibility="public"
  63465. deprecated="not deprecated">
  63466. </constructor>
  63467. <constructor name="CombineFileSplit" type="org.apache.hadoop.mapred.JobConf, org.apache.hadoop.fs.Path[], long[]"
  63468. static="false" final="false" visibility="public"
  63469. deprecated="not deprecated">
  63470. </constructor>
  63471. <constructor name="CombineFileSplit" type="org.apache.hadoop.mapred.lib.CombineFileSplit"
  63472. static="false" final="false" visibility="public"
  63473. deprecated="not deprecated">
  63474. <exception name="IOException" type="java.io.IOException"/>
  63475. <doc>
  63476. <![CDATA[Copy constructor]]>
  63477. </doc>
  63478. </constructor>
  63479. <method name="getJob" return="org.apache.hadoop.mapred.JobConf"
  63480. abstract="false" native="false" synchronized="false"
  63481. static="false" final="false" visibility="public"
  63482. deprecated="not deprecated">
  63483. </method>
  63484. <method name="getLength" return="long"
  63485. abstract="false" native="false" synchronized="false"
  63486. static="false" final="false" visibility="public"
  63487. deprecated="not deprecated">
  63488. </method>
  63489. <method name="getStartOffsets" return="long[]"
  63490. abstract="false" native="false" synchronized="false"
  63491. static="false" final="false" visibility="public"
  63492. deprecated="not deprecated">
  63493. <doc>
  63494. <![CDATA[Returns an array containing the startoffsets of the files in the split]]>
  63495. </doc>
  63496. </method>
  63497. <method name="getLengths" return="long[]"
  63498. abstract="false" native="false" synchronized="false"
  63499. static="false" final="false" visibility="public"
  63500. deprecated="not deprecated">
  63501. <doc>
  63502. <![CDATA[Returns an array containing the lengths of the files in the split]]>
  63503. </doc>
  63504. </method>
  63505. <method name="getOffset" return="long"
  63506. abstract="false" native="false" synchronized="false"
  63507. static="false" final="false" visibility="public"
  63508. deprecated="not deprecated">
  63509. <param name="i" type="int"/>
  63510. <doc>
  63511. <![CDATA[Returns the start offset of the i<sup>th</sup> Path]]>
  63512. </doc>
  63513. </method>
  63514. <method name="getLength" return="long"
  63515. abstract="false" native="false" synchronized="false"
  63516. static="false" final="false" visibility="public"
  63517. deprecated="not deprecated">
  63518. <param name="i" type="int"/>
  63519. <doc>
  63520. <![CDATA[Returns the length of the i<sup>th</sup> Path]]>
  63521. </doc>
  63522. </method>
  63523. <method name="getNumPaths" return="int"
  63524. abstract="false" native="false" synchronized="false"
  63525. static="false" final="false" visibility="public"
  63526. deprecated="not deprecated">
  63527. <doc>
  63528. <![CDATA[Returns the number of Paths in the split]]>
  63529. </doc>
  63530. </method>
  63531. <method name="getPath" return="org.apache.hadoop.fs.Path"
  63532. abstract="false" native="false" synchronized="false"
  63533. static="false" final="false" visibility="public"
  63534. deprecated="not deprecated">
  63535. <param name="i" type="int"/>
  63536. <doc>
  63537. <![CDATA[Returns the i<sup>th</sup> Path]]>
  63538. </doc>
  63539. </method>
  63540. <method name="getPaths" return="org.apache.hadoop.fs.Path[]"
  63541. abstract="false" native="false" synchronized="false"
  63542. static="false" final="false" visibility="public"
  63543. deprecated="not deprecated">
  63544. <doc>
  63545. <![CDATA[Returns all the Paths in the split]]>
  63546. </doc>
  63547. </method>
  63548. <method name="getLocations" return="java.lang.String[]"
  63549. abstract="false" native="false" synchronized="false"
  63550. static="false" final="false" visibility="public"
  63551. deprecated="not deprecated">
  63552. <exception name="IOException" type="java.io.IOException"/>
  63553. <doc>
  63554. <![CDATA[Returns all the Paths where this input-split resides]]>
  63555. </doc>
  63556. </method>
  63557. <method name="readFields"
  63558. abstract="false" native="false" synchronized="false"
  63559. static="false" final="false" visibility="public"
  63560. deprecated="not deprecated">
  63561. <param name="in" type="java.io.DataInput"/>
  63562. <exception name="IOException" type="java.io.IOException"/>
  63563. </method>
  63564. <method name="write"
  63565. abstract="false" native="false" synchronized="false"
  63566. static="false" final="false" visibility="public"
  63567. deprecated="not deprecated">
  63568. <param name="out" type="java.io.DataOutput"/>
  63569. <exception name="IOException" type="java.io.IOException"/>
  63570. </method>
  63571. <method name="toString" return="java.lang.String"
  63572. abstract="false" native="false" synchronized="false"
  63573. static="false" final="false" visibility="public"
  63574. deprecated="not deprecated">
  63575. </method>
  63576. <doc>
  63577. <![CDATA[A sub-collection of input files. Unlike {@link org.apache.hadoop.mapred.FileSplit},
  63578. CombineFileSplit * class does not represent a split of a file, but a split of input files
  63579. into smaller sets. A split may contain blocks from different file but all
  63580. the blocks in the same split are probably local to some rack <br>
  63581. CombineFileSplit can be used to implement {@link org.apache.hadoop.mapred.RecordReader}'s,
  63582. with reading one record per file.
  63583. @see org.apache.hadoop.mapred.FileSplit
  63584. @see CombineFileInputFormat]]>
  63585. </doc>
  63586. </class>
  63587. <!-- end class org.apache.hadoop.mapred.lib.CombineFileSplit -->
  63588. <!-- start class org.apache.hadoop.mapred.lib.DelegatingInputFormat -->
  63589. <class name="DelegatingInputFormat" extends="java.lang.Object"
  63590. abstract="false"
  63591. static="false" final="false" visibility="public"
  63592. deprecated="not deprecated">
  63593. <implements name="org.apache.hadoop.mapred.InputFormat"/>
  63594. <constructor name="DelegatingInputFormat"
  63595. static="false" final="false" visibility="public"
  63596. deprecated="not deprecated">
  63597. </constructor>
  63598. <method name="getSplits" return="org.apache.hadoop.mapred.InputSplit[]"
  63599. abstract="false" native="false" synchronized="false"
  63600. static="false" final="false" visibility="public"
  63601. deprecated="not deprecated">
  63602. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  63603. <param name="numSplits" type="int"/>
  63604. <exception name="IOException" type="java.io.IOException"/>
  63605. </method>
  63606. <method name="getRecordReader" return="org.apache.hadoop.mapred.RecordReader"
  63607. abstract="false" native="false" synchronized="false"
  63608. static="false" final="false" visibility="public"
  63609. deprecated="not deprecated">
  63610. <param name="split" type="org.apache.hadoop.mapred.InputSplit"/>
  63611. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  63612. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  63613. <exception name="IOException" type="java.io.IOException"/>
  63614. </method>
  63615. <doc>
  63616. <![CDATA[An {@link InputFormat} that delegates behaviour of paths to multiple other
  63617. InputFormats.
  63618. @see MultipleInputs#addInputPath(JobConf, Path, Class, Class)]]>
  63619. </doc>
  63620. </class>
  63621. <!-- end class org.apache.hadoop.mapred.lib.DelegatingInputFormat -->
  63622. <!-- start class org.apache.hadoop.mapred.lib.DelegatingMapper -->
  63623. <class name="DelegatingMapper" extends="java.lang.Object"
  63624. abstract="false"
  63625. static="false" final="false" visibility="public"
  63626. deprecated="not deprecated">
  63627. <implements name="org.apache.hadoop.mapred.Mapper"/>
  63628. <constructor name="DelegatingMapper"
  63629. static="false" final="false" visibility="public"
  63630. deprecated="not deprecated">
  63631. </constructor>
  63632. <method name="map"
  63633. abstract="false" native="false" synchronized="false"
  63634. static="false" final="false" visibility="public"
  63635. deprecated="not deprecated">
  63636. <param name="key" type="java.lang.Object"/>
  63637. <param name="value" type="java.lang.Object"/>
  63638. <param name="outputCollector" type="org.apache.hadoop.mapred.OutputCollector"/>
  63639. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  63640. <exception name="IOException" type="java.io.IOException"/>
  63641. </method>
  63642. <method name="configure"
  63643. abstract="false" native="false" synchronized="false"
  63644. static="false" final="false" visibility="public"
  63645. deprecated="not deprecated">
  63646. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  63647. </method>
  63648. <method name="close"
  63649. abstract="false" native="false" synchronized="false"
  63650. static="false" final="false" visibility="public"
  63651. deprecated="not deprecated">
  63652. <exception name="IOException" type="java.io.IOException"/>
  63653. </method>
  63654. <doc>
  63655. <![CDATA[An {@link Mapper} that delegates behaviour of paths to multiple other
  63656. mappers.
  63657. @see MultipleInputs#addInputPath(JobConf, Path, Class, Class)]]>
  63658. </doc>
  63659. </class>
  63660. <!-- end class org.apache.hadoop.mapred.lib.DelegatingMapper -->
  63661. <!-- start class org.apache.hadoop.mapred.lib.FieldSelectionMapReduce -->
  63662. <class name="FieldSelectionMapReduce" extends="java.lang.Object"
  63663. abstract="false"
  63664. static="false" final="false" visibility="public"
  63665. deprecated="not deprecated">
  63666. <implements name="org.apache.hadoop.mapred.Mapper"/>
  63667. <implements name="org.apache.hadoop.mapred.Reducer"/>
  63668. <constructor name="FieldSelectionMapReduce"
  63669. static="false" final="false" visibility="public"
  63670. deprecated="not deprecated">
  63671. </constructor>
  63672. <method name="map"
  63673. abstract="false" native="false" synchronized="false"
  63674. static="false" final="false" visibility="public"
  63675. deprecated="not deprecated">
  63676. <param name="key" type="java.lang.Object"/>
  63677. <param name="val" type="java.lang.Object"/>
  63678. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  63679. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  63680. <exception name="IOException" type="java.io.IOException"/>
  63681. <doc>
  63682. <![CDATA[The identify function. Input key/value pair is written directly to output.]]>
  63683. </doc>
  63684. </method>
  63685. <method name="configure"
  63686. abstract="false" native="false" synchronized="false"
  63687. static="false" final="false" visibility="public"
  63688. deprecated="not deprecated">
  63689. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  63690. </method>
  63691. <method name="close"
  63692. abstract="false" native="false" synchronized="false"
  63693. static="false" final="false" visibility="public"
  63694. deprecated="not deprecated">
  63695. <exception name="IOException" type="java.io.IOException"/>
  63696. </method>
  63697. <method name="reduce"
  63698. abstract="false" native="false" synchronized="false"
  63699. static="false" final="false" visibility="public"
  63700. deprecated="not deprecated">
  63701. <param name="key" type="org.apache.hadoop.io.Text"/>
  63702. <param name="values" type="java.util.Iterator"/>
  63703. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  63704. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  63705. <exception name="IOException" type="java.io.IOException"/>
  63706. </method>
  63707. <field name="LOG" type="org.apache.commons.logging.Log"
  63708. transient="false" volatile="false"
  63709. static="true" final="true" visibility="public"
  63710. deprecated="not deprecated">
  63711. </field>
  63712. <doc>
  63713. <![CDATA[This class implements a mapper/reducer class that can be used to perform
  63714. field selections in a manner similar to unix cut. The input data is treated
  63715. as fields separated by a user specified separator (the default value is
  63716. "\t"). The user can specify a list of fields that form the map output keys,
  63717. and a list of fields that form the map output values. If the inputformat is
  63718. TextInputFormat, the mapper will ignore the key to the map function. and the
  63719. fields are from the value only. Otherwise, the fields are the union of those
  63720. from the key and those from the value.
  63721. The field separator is under attribute "mapred.data.field.separator"
  63722. The map output field list spec is under attribute "map.output.key.value.fields.spec".
  63723. The value is expected to be like "keyFieldsSpec:valueFieldsSpec"
  63724. key/valueFieldsSpec are comma (,) separated field spec: fieldSpec,fieldSpec,fieldSpec ...
  63725. Each field spec can be a simple number (e.g. 5) specifying a specific field, or a range
  63726. (like 2-5) to specify a range of fields, or an open range (like 3-) specifying all
  63727. the fields starting from field 3. The open range field spec applies value fields only.
  63728. They have no effect on the key fields.
  63729. 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,
  63730. and use fields 6,5,1,2,3,7 and above for values.
  63731. The reduce output field list spec is under attribute "reduce.output.key.value.fields.spec".
  63732. The reducer extracts output key/value pairs in a similar manner, except that
  63733. the key is never ignored.]]>
  63734. </doc>
  63735. </class>
  63736. <!-- end class org.apache.hadoop.mapred.lib.FieldSelectionMapReduce -->
  63737. <!-- start class org.apache.hadoop.mapred.lib.HashPartitioner -->
  63738. <class name="HashPartitioner" extends="java.lang.Object"
  63739. abstract="false"
  63740. static="false" final="false" visibility="public"
  63741. deprecated="not deprecated">
  63742. <implements name="org.apache.hadoop.mapred.Partitioner"/>
  63743. <constructor name="HashPartitioner"
  63744. static="false" final="false" visibility="public"
  63745. deprecated="not deprecated">
  63746. </constructor>
  63747. <method name="configure"
  63748. abstract="false" native="false" synchronized="false"
  63749. static="false" final="false" visibility="public"
  63750. deprecated="not deprecated">
  63751. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  63752. </method>
  63753. <method name="getPartition" return="int"
  63754. abstract="false" native="false" synchronized="false"
  63755. static="false" final="false" visibility="public"
  63756. deprecated="not deprecated">
  63757. <param name="key" type="java.lang.Object"/>
  63758. <param name="value" type="java.lang.Object"/>
  63759. <param name="numReduceTasks" type="int"/>
  63760. <doc>
  63761. <![CDATA[Use {@link Object#hashCode()} to partition.]]>
  63762. </doc>
  63763. </method>
  63764. <doc>
  63765. <![CDATA[Partition keys by their {@link Object#hashCode()}.]]>
  63766. </doc>
  63767. </class>
  63768. <!-- end class org.apache.hadoop.mapred.lib.HashPartitioner -->
  63769. <!-- start class org.apache.hadoop.mapred.lib.IdentityMapper -->
  63770. <class name="IdentityMapper" extends="org.apache.hadoop.mapred.MapReduceBase"
  63771. abstract="false"
  63772. static="false" final="false" visibility="public"
  63773. deprecated="not deprecated">
  63774. <implements name="org.apache.hadoop.mapred.Mapper"/>
  63775. <constructor name="IdentityMapper"
  63776. static="false" final="false" visibility="public"
  63777. deprecated="not deprecated">
  63778. </constructor>
  63779. <method name="map"
  63780. abstract="false" native="false" synchronized="false"
  63781. static="false" final="false" visibility="public"
  63782. deprecated="not deprecated">
  63783. <param name="key" type="java.lang.Object"/>
  63784. <param name="val" type="java.lang.Object"/>
  63785. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  63786. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  63787. <exception name="IOException" type="java.io.IOException"/>
  63788. <doc>
  63789. <![CDATA[The identify function. Input key/value pair is written directly to
  63790. output.]]>
  63791. </doc>
  63792. </method>
  63793. <doc>
  63794. <![CDATA[Implements the identity function, mapping inputs directly to outputs.]]>
  63795. </doc>
  63796. </class>
  63797. <!-- end class org.apache.hadoop.mapred.lib.IdentityMapper -->
  63798. <!-- start class org.apache.hadoop.mapred.lib.IdentityReducer -->
  63799. <class name="IdentityReducer" extends="org.apache.hadoop.mapred.MapReduceBase"
  63800. abstract="false"
  63801. static="false" final="false" visibility="public"
  63802. deprecated="not deprecated">
  63803. <implements name="org.apache.hadoop.mapred.Reducer"/>
  63804. <constructor name="IdentityReducer"
  63805. static="false" final="false" visibility="public"
  63806. deprecated="not deprecated">
  63807. </constructor>
  63808. <method name="reduce"
  63809. abstract="false" native="false" synchronized="false"
  63810. static="false" final="false" visibility="public"
  63811. deprecated="not deprecated">
  63812. <param name="key" type="java.lang.Object"/>
  63813. <param name="values" type="java.util.Iterator"/>
  63814. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  63815. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  63816. <exception name="IOException" type="java.io.IOException"/>
  63817. <doc>
  63818. <![CDATA[Writes all keys and values directly to output.]]>
  63819. </doc>
  63820. </method>
  63821. <doc>
  63822. <![CDATA[Performs no reduction, writing all input values directly to the output.]]>
  63823. </doc>
  63824. </class>
  63825. <!-- end class org.apache.hadoop.mapred.lib.IdentityReducer -->
  63826. <!-- start class org.apache.hadoop.mapred.lib.InputSampler -->
  63827. <class name="InputSampler" extends="java.lang.Object"
  63828. abstract="false"
  63829. static="false" final="false" visibility="public"
  63830. deprecated="not deprecated">
  63831. <implements name="org.apache.hadoop.util.Tool"/>
  63832. <constructor name="InputSampler" type="org.apache.hadoop.mapred.JobConf"
  63833. static="false" final="false" visibility="public"
  63834. deprecated="not deprecated">
  63835. </constructor>
  63836. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  63837. abstract="false" native="false" synchronized="false"
  63838. static="false" final="false" visibility="public"
  63839. deprecated="not deprecated">
  63840. </method>
  63841. <method name="setConf"
  63842. abstract="false" native="false" synchronized="false"
  63843. static="false" final="false" visibility="public"
  63844. deprecated="not deprecated">
  63845. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  63846. </method>
  63847. <method name="writePartitionFile"
  63848. abstract="false" native="false" synchronized="false"
  63849. static="true" final="false" visibility="public"
  63850. deprecated="not deprecated">
  63851. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  63852. <param name="sampler" type="org.apache.hadoop.mapred.lib.InputSampler.Sampler"/>
  63853. <exception name="IOException" type="java.io.IOException"/>
  63854. <doc>
  63855. <![CDATA[Write a partition file for the given job, using the Sampler provided.
  63856. Queries the sampler for a sample keyset, sorts by the output key
  63857. comparator, selects the keys for each rank, and writes to the destination
  63858. returned from {@link
  63859. org.apache.hadoop.mapred.lib.TotalOrderPartitioner#getPartitionFile}.]]>
  63860. </doc>
  63861. </method>
  63862. <method name="run" return="int"
  63863. abstract="false" native="false" synchronized="false"
  63864. static="false" final="false" visibility="public"
  63865. deprecated="not deprecated">
  63866. <param name="args" type="java.lang.String[]"/>
  63867. <exception name="Exception" type="java.lang.Exception"/>
  63868. <doc>
  63869. <![CDATA[Driver for InputSampler from the command line.
  63870. Configures a JobConf instance and calls {@link #writePartitionFile}.]]>
  63871. </doc>
  63872. </method>
  63873. <method name="main"
  63874. abstract="false" native="false" synchronized="false"
  63875. static="true" final="false" visibility="public"
  63876. deprecated="not deprecated">
  63877. <param name="args" type="java.lang.String[]"/>
  63878. <exception name="Exception" type="java.lang.Exception"/>
  63879. </method>
  63880. <doc>
  63881. <![CDATA[Utility for collecting samples and writing a partition file for
  63882. {@link org.apache.hadoop.mapred.lib.TotalOrderPartitioner}.]]>
  63883. </doc>
  63884. </class>
  63885. <!-- end class org.apache.hadoop.mapred.lib.InputSampler -->
  63886. <!-- start class org.apache.hadoop.mapred.lib.InputSampler.IntervalSampler -->
  63887. <class name="InputSampler.IntervalSampler" extends="java.lang.Object"
  63888. abstract="false"
  63889. static="true" final="false" visibility="public"
  63890. deprecated="not deprecated">
  63891. <implements name="org.apache.hadoop.mapred.lib.InputSampler.Sampler"/>
  63892. <constructor name="InputSampler.IntervalSampler" type="double"
  63893. static="false" final="false" visibility="public"
  63894. deprecated="not deprecated">
  63895. <doc>
  63896. <![CDATA[Create a new IntervalSampler sampling <em>all</em> splits.
  63897. @param freq The frequency with which records will be emitted.]]>
  63898. </doc>
  63899. </constructor>
  63900. <constructor name="InputSampler.IntervalSampler" type="double, int"
  63901. static="false" final="false" visibility="public"
  63902. deprecated="not deprecated">
  63903. <doc>
  63904. <![CDATA[Create a new IntervalSampler.
  63905. @param freq The frequency with which records will be emitted.
  63906. @param maxSplitsSampled The maximum number of splits to examine.
  63907. @see #getSample]]>
  63908. </doc>
  63909. </constructor>
  63910. <method name="getSample" return="java.lang.Object[]"
  63911. abstract="false" native="false" synchronized="false"
  63912. static="false" final="false" visibility="public"
  63913. deprecated="not deprecated">
  63914. <param name="inf" type="org.apache.hadoop.mapred.InputFormat"/>
  63915. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  63916. <exception name="IOException" type="java.io.IOException"/>
  63917. <doc>
  63918. <![CDATA[For each split sampled, emit when the ratio of the number of records
  63919. retained to the total record count is less than the specified
  63920. frequency.]]>
  63921. </doc>
  63922. </method>
  63923. <doc>
  63924. <![CDATA[Sample from s splits at regular intervals.
  63925. Useful for sorted data.]]>
  63926. </doc>
  63927. </class>
  63928. <!-- end class org.apache.hadoop.mapred.lib.InputSampler.IntervalSampler -->
  63929. <!-- start class org.apache.hadoop.mapred.lib.InputSampler.RandomSampler -->
  63930. <class name="InputSampler.RandomSampler" extends="java.lang.Object"
  63931. abstract="false"
  63932. static="true" final="false" visibility="public"
  63933. deprecated="not deprecated">
  63934. <implements name="org.apache.hadoop.mapred.lib.InputSampler.Sampler"/>
  63935. <constructor name="InputSampler.RandomSampler" type="double, int"
  63936. static="false" final="false" visibility="public"
  63937. deprecated="not deprecated">
  63938. <doc>
  63939. <![CDATA[Create a new RandomSampler sampling <em>all</em> splits.
  63940. This will read every split at the client, which is very expensive.
  63941. @param freq Probability with which a key will be chosen.
  63942. @param numSamples Total number of samples to obtain from all selected
  63943. splits.]]>
  63944. </doc>
  63945. </constructor>
  63946. <constructor name="InputSampler.RandomSampler" type="double, int, int"
  63947. static="false" final="false" visibility="public"
  63948. deprecated="not deprecated">
  63949. <doc>
  63950. <![CDATA[Create a new RandomSampler.
  63951. @param freq Probability with which a key will be chosen.
  63952. @param numSamples Total number of samples to obtain from all selected
  63953. splits.
  63954. @param maxSplitsSampled The maximum number of splits to examine.]]>
  63955. </doc>
  63956. </constructor>
  63957. <method name="getSample" return="java.lang.Object[]"
  63958. abstract="false" native="false" synchronized="false"
  63959. static="false" final="false" visibility="public"
  63960. deprecated="not deprecated">
  63961. <param name="inf" type="org.apache.hadoop.mapred.InputFormat"/>
  63962. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  63963. <exception name="IOException" type="java.io.IOException"/>
  63964. <doc>
  63965. <![CDATA[Randomize the split order, then take the specified number of keys from
  63966. each split sampled, where each key is selected with the specified
  63967. probability and possibly replaced by a subsequently selected key when
  63968. the quota of keys from that split is satisfied.]]>
  63969. </doc>
  63970. </method>
  63971. <doc>
  63972. <![CDATA[Sample from random points in the input.
  63973. General-purpose sampler. Takes numSamples / maxSplitsSampled inputs from
  63974. each split.]]>
  63975. </doc>
  63976. </class>
  63977. <!-- end class org.apache.hadoop.mapred.lib.InputSampler.RandomSampler -->
  63978. <!-- start interface org.apache.hadoop.mapred.lib.InputSampler.Sampler -->
  63979. <interface name="InputSampler.Sampler" abstract="true"
  63980. static="true" final="false" visibility="public"
  63981. deprecated="not deprecated">
  63982. <method name="getSample" return="java.lang.Object[]"
  63983. abstract="false" native="false" synchronized="false"
  63984. static="false" final="false" visibility="public"
  63985. deprecated="not deprecated">
  63986. <param name="inf" type="org.apache.hadoop.mapred.InputFormat"/>
  63987. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  63988. <exception name="IOException" type="java.io.IOException"/>
  63989. <doc>
  63990. <![CDATA[For a given job, collect and return a subset of the keys from the
  63991. input data.]]>
  63992. </doc>
  63993. </method>
  63994. <doc>
  63995. <![CDATA[Interface to sample using an {@link org.apache.hadoop.mapred.InputFormat}.]]>
  63996. </doc>
  63997. </interface>
  63998. <!-- end interface org.apache.hadoop.mapred.lib.InputSampler.Sampler -->
  63999. <!-- start class org.apache.hadoop.mapred.lib.InputSampler.SplitSampler -->
  64000. <class name="InputSampler.SplitSampler" extends="java.lang.Object"
  64001. abstract="false"
  64002. static="true" final="false" visibility="public"
  64003. deprecated="not deprecated">
  64004. <implements name="org.apache.hadoop.mapred.lib.InputSampler.Sampler"/>
  64005. <constructor name="InputSampler.SplitSampler" type="int"
  64006. static="false" final="false" visibility="public"
  64007. deprecated="not deprecated">
  64008. <doc>
  64009. <![CDATA[Create a SplitSampler sampling <em>all</em> splits.
  64010. Takes the first numSamples / numSplits records from each split.
  64011. @param numSamples Total number of samples to obtain from all selected
  64012. splits.]]>
  64013. </doc>
  64014. </constructor>
  64015. <constructor name="InputSampler.SplitSampler" type="int, int"
  64016. static="false" final="false" visibility="public"
  64017. deprecated="not deprecated">
  64018. <doc>
  64019. <![CDATA[Create a new SplitSampler.
  64020. @param numSamples Total number of samples to obtain from all selected
  64021. splits.
  64022. @param maxSplitsSampled The maximum number of splits to examine.]]>
  64023. </doc>
  64024. </constructor>
  64025. <method name="getSample" return="java.lang.Object[]"
  64026. abstract="false" native="false" synchronized="false"
  64027. static="false" final="false" visibility="public"
  64028. deprecated="not deprecated">
  64029. <param name="inf" type="org.apache.hadoop.mapred.InputFormat"/>
  64030. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  64031. <exception name="IOException" type="java.io.IOException"/>
  64032. <doc>
  64033. <![CDATA[From each split sampled, take the first numSamples / numSplits records.]]>
  64034. </doc>
  64035. </method>
  64036. <doc>
  64037. <![CDATA[Samples the first n records from s splits.
  64038. Inexpensive way to sample random data.]]>
  64039. </doc>
  64040. </class>
  64041. <!-- end class org.apache.hadoop.mapred.lib.InputSampler.SplitSampler -->
  64042. <!-- start class org.apache.hadoop.mapred.lib.InverseMapper -->
  64043. <class name="InverseMapper" extends="org.apache.hadoop.mapred.MapReduceBase"
  64044. abstract="false"
  64045. static="false" final="false" visibility="public"
  64046. deprecated="not deprecated">
  64047. <implements name="org.apache.hadoop.mapred.Mapper"/>
  64048. <constructor name="InverseMapper"
  64049. static="false" final="false" visibility="public"
  64050. deprecated="not deprecated">
  64051. </constructor>
  64052. <method name="map"
  64053. abstract="false" native="false" synchronized="false"
  64054. static="false" final="false" visibility="public"
  64055. deprecated="not deprecated">
  64056. <param name="key" type="java.lang.Object"/>
  64057. <param name="value" type="java.lang.Object"/>
  64058. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  64059. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  64060. <exception name="IOException" type="java.io.IOException"/>
  64061. <doc>
  64062. <![CDATA[The inverse function. Input keys and values are swapped.]]>
  64063. </doc>
  64064. </method>
  64065. <doc>
  64066. <![CDATA[A {@link Mapper} that swaps keys and values.]]>
  64067. </doc>
  64068. </class>
  64069. <!-- end class org.apache.hadoop.mapred.lib.InverseMapper -->
  64070. <!-- start class org.apache.hadoop.mapred.lib.KeyFieldBasedComparator -->
  64071. <class name="KeyFieldBasedComparator" extends="org.apache.hadoop.io.WritableComparator"
  64072. abstract="false"
  64073. static="false" final="false" visibility="public"
  64074. deprecated="not deprecated">
  64075. <implements name="org.apache.hadoop.mapred.JobConfigurable"/>
  64076. <constructor name="KeyFieldBasedComparator"
  64077. static="false" final="false" visibility="public"
  64078. deprecated="not deprecated">
  64079. </constructor>
  64080. <method name="configure"
  64081. abstract="false" native="false" synchronized="false"
  64082. static="false" final="false" visibility="public"
  64083. deprecated="not deprecated">
  64084. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  64085. </method>
  64086. <method name="compare" return="int"
  64087. abstract="false" native="false" synchronized="false"
  64088. static="false" final="false" visibility="public"
  64089. deprecated="not deprecated">
  64090. <param name="b1" type="byte[]"/>
  64091. <param name="s1" type="int"/>
  64092. <param name="l1" type="int"/>
  64093. <param name="b2" type="byte[]"/>
  64094. <param name="s2" type="int"/>
  64095. <param name="l2" type="int"/>
  64096. </method>
  64097. <doc>
  64098. <![CDATA[This comparator implementation provides a subset of the features provided
  64099. by the Unix/GNU Sort. In particular, the supported features are:
  64100. -n, (Sort numerically)
  64101. -r, (Reverse the result of comparison)
  64102. -k pos1[,pos2], where pos is of the form f[.c][opts], where f is the number
  64103. of the field to use, and c is the number of the first character from the
  64104. beginning of the field. Fields and character posns are numbered starting
  64105. with 1; a character position of zero in pos2 indicates the field's last
  64106. character. If '.c' is omitted from pos1, it defaults to 1 (the beginning
  64107. of the field); if omitted from pos2, it defaults to 0 (the end of the
  64108. field). opts are ordering options (any of 'nr' as described above).
  64109. We assume that the fields in the key are separated by
  64110. map.output.key.field.separator.]]>
  64111. </doc>
  64112. </class>
  64113. <!-- end class org.apache.hadoop.mapred.lib.KeyFieldBasedComparator -->
  64114. <!-- start class org.apache.hadoop.mapred.lib.KeyFieldBasedPartitioner -->
  64115. <class name="KeyFieldBasedPartitioner" extends="java.lang.Object"
  64116. abstract="false"
  64117. static="false" final="false" visibility="public"
  64118. deprecated="not deprecated">
  64119. <implements name="org.apache.hadoop.mapred.Partitioner"/>
  64120. <constructor name="KeyFieldBasedPartitioner"
  64121. static="false" final="false" visibility="public"
  64122. deprecated="not deprecated">
  64123. </constructor>
  64124. <method name="configure"
  64125. abstract="false" native="false" synchronized="false"
  64126. static="false" final="false" visibility="public"
  64127. deprecated="not deprecated">
  64128. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  64129. </method>
  64130. <method name="getPartition" return="int"
  64131. abstract="false" native="false" synchronized="false"
  64132. static="false" final="false" visibility="public"
  64133. deprecated="not deprecated">
  64134. <param name="key" type="java.lang.Object"/>
  64135. <param name="value" type="java.lang.Object"/>
  64136. <param name="numReduceTasks" type="int"/>
  64137. </method>
  64138. <method name="hashCode" return="int"
  64139. abstract="false" native="false" synchronized="false"
  64140. static="false" final="false" visibility="protected"
  64141. deprecated="not deprecated">
  64142. <param name="b" type="byte[]"/>
  64143. <param name="start" type="int"/>
  64144. <param name="end" type="int"/>
  64145. <param name="currentHash" type="int"/>
  64146. </method>
  64147. <method name="getPartition" return="int"
  64148. abstract="false" native="false" synchronized="false"
  64149. static="false" final="false" visibility="protected"
  64150. deprecated="not deprecated">
  64151. <param name="hash" type="int"/>
  64152. <param name="numReduceTasks" type="int"/>
  64153. </method>
  64154. <doc>
  64155. <![CDATA[Defines a way to partition keys based on certain key fields (also see
  64156. {@link KeyFieldBasedComparator}.
  64157. The key specification supported is of the form -k pos1[,pos2], where,
  64158. pos is of the form f[.c][opts], where f is the number
  64159. of the key field to use, and c is the number of the first character from
  64160. the beginning of the field. Fields and character posns are numbered
  64161. starting with 1; a character position of zero in pos2 indicates the
  64162. field's last character. If '.c' is omitted from pos1, it defaults to 1
  64163. (the beginning of the field); if omitted from pos2, it defaults to 0
  64164. (the end of the field).]]>
  64165. </doc>
  64166. </class>
  64167. <!-- end class org.apache.hadoop.mapred.lib.KeyFieldBasedPartitioner -->
  64168. <!-- start class org.apache.hadoop.mapred.lib.LongSumReducer -->
  64169. <class name="LongSumReducer" extends="org.apache.hadoop.mapred.MapReduceBase"
  64170. abstract="false"
  64171. static="false" final="false" visibility="public"
  64172. deprecated="not deprecated">
  64173. <implements name="org.apache.hadoop.mapred.Reducer"/>
  64174. <constructor name="LongSumReducer"
  64175. static="false" final="false" visibility="public"
  64176. deprecated="not deprecated">
  64177. </constructor>
  64178. <method name="reduce"
  64179. abstract="false" native="false" synchronized="false"
  64180. static="false" final="false" visibility="public"
  64181. deprecated="not deprecated">
  64182. <param name="key" type="java.lang.Object"/>
  64183. <param name="values" type="java.util.Iterator"/>
  64184. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  64185. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  64186. <exception name="IOException" type="java.io.IOException"/>
  64187. </method>
  64188. <doc>
  64189. <![CDATA[A {@link Reducer} that sums long values.]]>
  64190. </doc>
  64191. </class>
  64192. <!-- end class org.apache.hadoop.mapred.lib.LongSumReducer -->
  64193. <!-- start class org.apache.hadoop.mapred.lib.MultipleInputs -->
  64194. <class name="MultipleInputs" extends="java.lang.Object"
  64195. abstract="false"
  64196. static="false" final="false" visibility="public"
  64197. deprecated="not deprecated">
  64198. <constructor name="MultipleInputs"
  64199. static="false" final="false" visibility="public"
  64200. deprecated="not deprecated">
  64201. </constructor>
  64202. <method name="addInputPath"
  64203. abstract="false" native="false" synchronized="false"
  64204. static="true" final="false" visibility="public"
  64205. deprecated="not deprecated">
  64206. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  64207. <param name="path" type="org.apache.hadoop.fs.Path"/>
  64208. <param name="inputFormatClass" type="java.lang.Class"/>
  64209. <doc>
  64210. <![CDATA[Add a {@link Path} with a custom {@link InputFormat} to the list of
  64211. inputs for the map-reduce job.
  64212. @param conf The configuration of the job
  64213. @param path {@link Path} to be added to the list of inputs for the job
  64214. @param inputFormatClass {@link InputFormat} class to use for this path]]>
  64215. </doc>
  64216. </method>
  64217. <method name="addInputPath"
  64218. abstract="false" native="false" synchronized="false"
  64219. static="true" final="false" visibility="public"
  64220. deprecated="not deprecated">
  64221. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  64222. <param name="path" type="org.apache.hadoop.fs.Path"/>
  64223. <param name="inputFormatClass" type="java.lang.Class"/>
  64224. <param name="mapperClass" type="java.lang.Class"/>
  64225. <doc>
  64226. <![CDATA[Add a {@link Path} with a custom {@link InputFormat} and
  64227. {@link Mapper} to the list of inputs for the map-reduce job.
  64228. @param conf The configuration of the job
  64229. @param path {@link Path} to be added to the list of inputs for the job
  64230. @param inputFormatClass {@link InputFormat} class to use for this path
  64231. @param mapperClass {@link Mapper} class to use for this path]]>
  64232. </doc>
  64233. </method>
  64234. <doc>
  64235. <![CDATA[This class supports MapReduce jobs that have multiple input paths with
  64236. a different {@link InputFormat} and {@link Mapper} for each path]]>
  64237. </doc>
  64238. </class>
  64239. <!-- end class org.apache.hadoop.mapred.lib.MultipleInputs -->
  64240. <!-- start class org.apache.hadoop.mapred.lib.MultipleOutputFormat -->
  64241. <class name="MultipleOutputFormat" extends="org.apache.hadoop.mapred.FileOutputFormat"
  64242. abstract="true"
  64243. static="false" final="false" visibility="public"
  64244. deprecated="not deprecated">
  64245. <constructor name="MultipleOutputFormat"
  64246. static="false" final="false" visibility="public"
  64247. deprecated="not deprecated">
  64248. </constructor>
  64249. <method name="getRecordWriter" return="org.apache.hadoop.mapred.RecordWriter"
  64250. abstract="false" native="false" synchronized="false"
  64251. static="false" final="false" visibility="public"
  64252. deprecated="not deprecated">
  64253. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  64254. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  64255. <param name="name" type="java.lang.String"/>
  64256. <param name="arg3" type="org.apache.hadoop.util.Progressable"/>
  64257. <exception name="IOException" type="java.io.IOException"/>
  64258. <doc>
  64259. <![CDATA[Create a composite record writer that can write key/value data to different
  64260. output files
  64261. @param fs
  64262. the file system to use
  64263. @param job
  64264. the job conf for the job
  64265. @param name
  64266. the leaf file name for the output file (such as part-00000")
  64267. @param arg3
  64268. a progressable for reporting progress.
  64269. @return a composite record writer
  64270. @throws IOException]]>
  64271. </doc>
  64272. </method>
  64273. <method name="generateLeafFileName" return="java.lang.String"
  64274. abstract="false" native="false" synchronized="false"
  64275. static="false" final="false" visibility="protected"
  64276. deprecated="not deprecated">
  64277. <param name="name" type="java.lang.String"/>
  64278. <doc>
  64279. <![CDATA[Generate the leaf name for the output file name. The default behavior does
  64280. not change the leaf file name (such as part-00000)
  64281. @param name
  64282. the leaf file name for the output file
  64283. @return the given leaf file name]]>
  64284. </doc>
  64285. </method>
  64286. <method name="generateFileNameForKeyValue" return="java.lang.String"
  64287. abstract="false" native="false" synchronized="false"
  64288. static="false" final="false" visibility="protected"
  64289. deprecated="not deprecated">
  64290. <param name="key" type="java.lang.Object"/>
  64291. <param name="value" type="java.lang.Object"/>
  64292. <param name="name" type="java.lang.String"/>
  64293. <doc>
  64294. <![CDATA[Generate the file output file name based on the given key and the leaf file
  64295. name. The default behavior is that the file name does not depend on the
  64296. key.
  64297. @param key
  64298. the key of the output data
  64299. @param name
  64300. the leaf file name
  64301. @return generated file name]]>
  64302. </doc>
  64303. </method>
  64304. <method name="generateActualKey" return="java.lang.Object"
  64305. abstract="false" native="false" synchronized="false"
  64306. static="false" final="false" visibility="protected"
  64307. deprecated="not deprecated">
  64308. <param name="key" type="java.lang.Object"/>
  64309. <param name="value" type="java.lang.Object"/>
  64310. <doc>
  64311. <![CDATA[Generate the actual key from the given key/value. The default behavior is that
  64312. the actual key is equal to the given key
  64313. @param key
  64314. the key of the output data
  64315. @param value
  64316. the value of the output data
  64317. @return the actual key derived from the given key/value]]>
  64318. </doc>
  64319. </method>
  64320. <method name="generateActualValue" return="java.lang.Object"
  64321. abstract="false" native="false" synchronized="false"
  64322. static="false" final="false" visibility="protected"
  64323. deprecated="not deprecated">
  64324. <param name="key" type="java.lang.Object"/>
  64325. <param name="value" type="java.lang.Object"/>
  64326. <doc>
  64327. <![CDATA[Generate the actual value from the given key and value. The default behavior is that
  64328. the actual value is equal to the given value
  64329. @param key
  64330. the key of the output data
  64331. @param value
  64332. the value of the output data
  64333. @return the actual value derived from the given key/value]]>
  64334. </doc>
  64335. </method>
  64336. <method name="getInputFileBasedOutputFileName" return="java.lang.String"
  64337. abstract="false" native="false" synchronized="false"
  64338. static="false" final="false" visibility="protected"
  64339. deprecated="not deprecated">
  64340. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  64341. <param name="name" type="java.lang.String"/>
  64342. <doc>
  64343. <![CDATA[Generate the outfile name based on a given anme and the input file name. If
  64344. the map input file does not exists (i.e. this is not for a map only job),
  64345. the given name is returned unchanged. If the config value for
  64346. "num.of.trailing.legs.to.use" is not set, or set 0 or negative, the given
  64347. name is returned unchanged. Otherwise, return a file name consisting of the
  64348. N trailing legs of the input file name where N is the config value for
  64349. "num.of.trailing.legs.to.use".
  64350. @param job
  64351. the job config
  64352. @param name
  64353. the output file name
  64354. @return the outfile name based on a given anme and the input file name.]]>
  64355. </doc>
  64356. </method>
  64357. <method name="getBaseRecordWriter" return="org.apache.hadoop.mapred.RecordWriter"
  64358. abstract="true" native="false" synchronized="false"
  64359. static="false" final="false" visibility="protected"
  64360. deprecated="not deprecated">
  64361. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  64362. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  64363. <param name="name" type="java.lang.String"/>
  64364. <param name="arg3" type="org.apache.hadoop.util.Progressable"/>
  64365. <exception name="IOException" type="java.io.IOException"/>
  64366. <doc>
  64367. <![CDATA[@param fs
  64368. the file system to use
  64369. @param job
  64370. a job conf object
  64371. @param name
  64372. the name of the file over which a record writer object will be
  64373. constructed
  64374. @param arg3
  64375. a progressable object
  64376. @return A RecordWriter object over the given file
  64377. @throws IOException]]>
  64378. </doc>
  64379. </method>
  64380. <doc>
  64381. <![CDATA[This abstract class extends the FileOutputFormat, allowing to write the
  64382. output data to different output files. There are three basic use cases for
  64383. this class.
  64384. Case one: This class is used for a map reduce job with at least one reducer.
  64385. The reducer wants to write data to different files depending on the actual
  64386. keys. It is assumed that a key (or value) encodes the actual key (value)
  64387. and the desired location for the actual key (value).
  64388. Case two: This class is used for a map only job. The job wants to use an
  64389. output file name that is either a part of the input file name of the input
  64390. data, or some derivation of it.
  64391. Case three: This class is used for a map only job. The job wants to use an
  64392. output file name that depends on both the keys and the input file name,]]>
  64393. </doc>
  64394. </class>
  64395. <!-- end class org.apache.hadoop.mapred.lib.MultipleOutputFormat -->
  64396. <!-- start class org.apache.hadoop.mapred.lib.MultipleOutputs -->
  64397. <class name="MultipleOutputs" extends="java.lang.Object"
  64398. abstract="false"
  64399. static="false" final="false" visibility="public"
  64400. deprecated="not deprecated">
  64401. <constructor name="MultipleOutputs" type="org.apache.hadoop.mapred.JobConf"
  64402. static="false" final="false" visibility="public"
  64403. deprecated="not deprecated">
  64404. <doc>
  64405. <![CDATA[Creates and initializes multiple named outputs support, it should be
  64406. instantiated in the Mapper/Reducer configure method.
  64407. @param job the job configuration object]]>
  64408. </doc>
  64409. </constructor>
  64410. <method name="getNamedOutputsList" return="java.util.List"
  64411. abstract="false" native="false" synchronized="false"
  64412. static="true" final="false" visibility="public"
  64413. deprecated="not deprecated">
  64414. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  64415. <doc>
  64416. <![CDATA[Returns list of channel names.
  64417. @param conf job conf
  64418. @return List of channel Names]]>
  64419. </doc>
  64420. </method>
  64421. <method name="isMultiNamedOutput" return="boolean"
  64422. abstract="false" native="false" synchronized="false"
  64423. static="true" final="false" visibility="public"
  64424. deprecated="not deprecated">
  64425. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  64426. <param name="namedOutput" type="java.lang.String"/>
  64427. <doc>
  64428. <![CDATA[Returns if a named output is multiple.
  64429. @param conf job conf
  64430. @param namedOutput named output
  64431. @return <code>true</code> if the name output is multi, <code>false</code>
  64432. if it is single. If the name output is not defined it returns
  64433. <code>false</code>]]>
  64434. </doc>
  64435. </method>
  64436. <method name="getNamedOutputFormatClass" return="java.lang.Class"
  64437. abstract="false" native="false" synchronized="false"
  64438. static="true" final="false" visibility="public"
  64439. deprecated="not deprecated">
  64440. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  64441. <param name="namedOutput" type="java.lang.String"/>
  64442. <doc>
  64443. <![CDATA[Returns the named output OutputFormat.
  64444. @param conf job conf
  64445. @param namedOutput named output
  64446. @return namedOutput OutputFormat]]>
  64447. </doc>
  64448. </method>
  64449. <method name="getNamedOutputKeyClass" return="java.lang.Class"
  64450. abstract="false" native="false" synchronized="false"
  64451. static="true" final="false" visibility="public"
  64452. deprecated="not deprecated">
  64453. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  64454. <param name="namedOutput" type="java.lang.String"/>
  64455. <doc>
  64456. <![CDATA[Returns the key class for a named output.
  64457. @param conf job conf
  64458. @param namedOutput named output
  64459. @return class for the named output key]]>
  64460. </doc>
  64461. </method>
  64462. <method name="getNamedOutputValueClass" return="java.lang.Class"
  64463. abstract="false" native="false" synchronized="false"
  64464. static="true" final="false" visibility="public"
  64465. deprecated="not deprecated">
  64466. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  64467. <param name="namedOutput" type="java.lang.String"/>
  64468. <doc>
  64469. <![CDATA[Returns the value class for a named output.
  64470. @param conf job conf
  64471. @param namedOutput named output
  64472. @return class of named output value]]>
  64473. </doc>
  64474. </method>
  64475. <method name="addNamedOutput"
  64476. abstract="false" native="false" synchronized="false"
  64477. static="true" final="false" visibility="public"
  64478. deprecated="not deprecated">
  64479. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  64480. <param name="namedOutput" type="java.lang.String"/>
  64481. <param name="outputFormatClass" type="java.lang.Class"/>
  64482. <param name="keyClass" type="java.lang.Class"/>
  64483. <param name="valueClass" type="java.lang.Class"/>
  64484. <doc>
  64485. <![CDATA[Adds a named output for the job.
  64486. <p/>
  64487. @param conf job conf to add the named output
  64488. @param namedOutput named output name, it has to be a word, letters
  64489. and numbers only, cannot be the word 'part' as
  64490. that is reserved for the
  64491. default output.
  64492. @param outputFormatClass OutputFormat class.
  64493. @param keyClass key class
  64494. @param valueClass value class]]>
  64495. </doc>
  64496. </method>
  64497. <method name="addMultiNamedOutput"
  64498. abstract="false" native="false" synchronized="false"
  64499. static="true" final="false" visibility="public"
  64500. deprecated="not deprecated">
  64501. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  64502. <param name="namedOutput" type="java.lang.String"/>
  64503. <param name="outputFormatClass" type="java.lang.Class"/>
  64504. <param name="keyClass" type="java.lang.Class"/>
  64505. <param name="valueClass" type="java.lang.Class"/>
  64506. <doc>
  64507. <![CDATA[Adds a multi named output for the job.
  64508. <p/>
  64509. @param conf job conf to add the named output
  64510. @param namedOutput named output name, it has to be a word, letters
  64511. and numbers only, cannot be the word 'part' as
  64512. that is reserved for the
  64513. default output.
  64514. @param outputFormatClass OutputFormat class.
  64515. @param keyClass key class
  64516. @param valueClass value class]]>
  64517. </doc>
  64518. </method>
  64519. <method name="setCountersEnabled"
  64520. abstract="false" native="false" synchronized="false"
  64521. static="true" final="false" visibility="public"
  64522. deprecated="not deprecated">
  64523. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  64524. <param name="enabled" type="boolean"/>
  64525. <doc>
  64526. <![CDATA[Enables or disables counters for the named outputs.
  64527. <p/>
  64528. By default these counters are disabled.
  64529. <p/>
  64530. MultipleOutputs supports counters, by default the are disabled.
  64531. The counters group is the {@link MultipleOutputs} class name.
  64532. </p>
  64533. The names of the counters are the same as the named outputs. For multi
  64534. named outputs the name of the counter is the concatenation of the named
  64535. output, and underscore '_' and the multiname.
  64536. @param conf job conf to enableadd the named output.
  64537. @param enabled indicates if the counters will be enabled or not.]]>
  64538. </doc>
  64539. </method>
  64540. <method name="getCountersEnabled" return="boolean"
  64541. abstract="false" native="false" synchronized="false"
  64542. static="true" final="false" visibility="public"
  64543. deprecated="not deprecated">
  64544. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  64545. <doc>
  64546. <![CDATA[Returns if the counters for the named outputs are enabled or not.
  64547. <p/>
  64548. By default these counters are disabled.
  64549. <p/>
  64550. MultipleOutputs supports counters, by default the are disabled.
  64551. The counters group is the {@link MultipleOutputs} class name.
  64552. </p>
  64553. The names of the counters are the same as the named outputs. For multi
  64554. named outputs the name of the counter is the concatenation of the named
  64555. output, and underscore '_' and the multiname.
  64556. @param conf job conf to enableadd the named output.
  64557. @return TRUE if the counters are enabled, FALSE if they are disabled.]]>
  64558. </doc>
  64559. </method>
  64560. <method name="getNamedOutputs" return="java.util.Iterator"
  64561. abstract="false" native="false" synchronized="false"
  64562. static="false" final="false" visibility="public"
  64563. deprecated="not deprecated">
  64564. <doc>
  64565. <![CDATA[Returns iterator with the defined name outputs.
  64566. @return iterator with the defined named outputs]]>
  64567. </doc>
  64568. </method>
  64569. <method name="getCollector" return="org.apache.hadoop.mapred.OutputCollector"
  64570. abstract="false" native="false" synchronized="false"
  64571. static="false" final="false" visibility="public"
  64572. deprecated="not deprecated">
  64573. <param name="namedOutput" type="java.lang.String"/>
  64574. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  64575. <exception name="IOException" type="java.io.IOException"/>
  64576. <doc>
  64577. <![CDATA[Gets the output collector for a named output.
  64578. <p/>
  64579. @param namedOutput the named output name
  64580. @param reporter the reporter
  64581. @return the output collector for the given named output
  64582. @throws IOException thrown if output collector could not be created]]>
  64583. </doc>
  64584. </method>
  64585. <method name="getCollector" return="org.apache.hadoop.mapred.OutputCollector"
  64586. abstract="false" native="false" synchronized="false"
  64587. static="false" final="false" visibility="public"
  64588. deprecated="not deprecated">
  64589. <param name="namedOutput" type="java.lang.String"/>
  64590. <param name="multiName" type="java.lang.String"/>
  64591. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  64592. <exception name="IOException" type="java.io.IOException"/>
  64593. <doc>
  64594. <![CDATA[Gets the output collector for a multi named output.
  64595. <p/>
  64596. @param namedOutput the named output name
  64597. @param multiName the multi name part
  64598. @param reporter the reporter
  64599. @return the output collector for the given named output
  64600. @throws IOException thrown if output collector could not be created]]>
  64601. </doc>
  64602. </method>
  64603. <method name="close"
  64604. abstract="false" native="false" synchronized="false"
  64605. static="false" final="false" visibility="public"
  64606. deprecated="not deprecated">
  64607. <exception name="IOException" type="java.io.IOException"/>
  64608. <doc>
  64609. <![CDATA[Closes all the opened named outputs.
  64610. <p/>
  64611. If overriden subclasses must invoke <code>super.close()</code> at the
  64612. end of their <code>close()</code>
  64613. @throws java.io.IOException thrown if any of the MultipleOutput files
  64614. could not be closed properly.]]>
  64615. </doc>
  64616. </method>
  64617. <doc>
  64618. <![CDATA[The MultipleOutputs class simplifies writting to additional outputs other
  64619. than the job default output via the <code>OutputCollector</code> passed to
  64620. the <code>map()</code> and <code>reduce()</code> methods of the
  64621. <code>Mapper</code> and <code>Reducer</code> implementations.
  64622. <p/>
  64623. Each additional output, or named output, may be configured with its own
  64624. <code>OutputFormat</code>, with its own key class and with its own value
  64625. class.
  64626. <p/>
  64627. A named output can be a single file or a multi file. The later is refered as
  64628. a multi named output.
  64629. <p/>
  64630. A multi named output is an unbound set of files all sharing the same
  64631. <code>OutputFormat</code>, key class and value class configuration.
  64632. <p/>
  64633. When named outputs are used within a <code>Mapper</code> implementation,
  64634. key/values written to a name output are not part of the reduce phase, only
  64635. key/values written to the job <code>OutputCollector</code> are part of the
  64636. reduce phase.
  64637. <p/>
  64638. MultipleOutputs supports counters, by default the are disabled. The counters
  64639. group is the {@link MultipleOutputs} class name.
  64640. </p>
  64641. The names of the counters are the same as the named outputs. For multi
  64642. named outputs the name of the counter is the concatenation of the named
  64643. output, and underscore '_' and the multiname.
  64644. <p/>
  64645. Job configuration usage pattern is:
  64646. <pre>
  64647. JobConf conf = new JobConf();
  64648. conf.setInputPath(inDir);
  64649. FileOutputFormat.setOutputPath(conf, outDir);
  64650. conf.setMapperClass(MOMap.class);
  64651. conf.setReducerClass(MOReduce.class);
  64652. ...
  64653. // Defines additional single text based output 'text' for the job
  64654. MultipleOutputs.addNamedOutput(conf, "text", TextOutputFormat.class,
  64655. LongWritable.class, Text.class);
  64656. // Defines additional multi sequencefile based output 'sequence' for the
  64657. // job
  64658. MultipleOutputs.addMultiNamedOutput(conf, "seq",
  64659. SequenceFileOutputFormat.class,
  64660. LongWritable.class, Text.class);
  64661. ...
  64662. JobClient jc = new JobClient();
  64663. RunningJob job = jc.submitJob(conf);
  64664. ...
  64665. </pre>
  64666. <p/>
  64667. Job configuration usage pattern is:
  64668. <pre>
  64669. public class MOReduce implements
  64670. Reducer&lt;WritableComparable, Writable&gt; {
  64671. private MultipleOutputs mos;
  64672. public void configure(JobConf conf) {
  64673. ...
  64674. mos = new MultipleOutputs(conf);
  64675. }
  64676. public void reduce(WritableComparable key, Iterator&lt;Writable&gt; values,
  64677. OutputCollector output, Reporter reporter)
  64678. throws IOException {
  64679. ...
  64680. mos.getCollector("text", reporter).collect(key, new Text("Hello"));
  64681. mos.getCollector("seq", "A", reporter).collect(key, new Text("Bye"));
  64682. mos.getCollector("seq", "B", reporter).collect(key, new Text("Chau"));
  64683. ...
  64684. }
  64685. public void close() throws IOException {
  64686. mos.close();
  64687. ...
  64688. }
  64689. }
  64690. </pre>]]>
  64691. </doc>
  64692. </class>
  64693. <!-- end class org.apache.hadoop.mapred.lib.MultipleOutputs -->
  64694. <!-- start class org.apache.hadoop.mapred.lib.MultipleSequenceFileOutputFormat -->
  64695. <class name="MultipleSequenceFileOutputFormat" extends="org.apache.hadoop.mapred.lib.MultipleOutputFormat"
  64696. abstract="false"
  64697. static="false" final="false" visibility="public"
  64698. deprecated="not deprecated">
  64699. <constructor name="MultipleSequenceFileOutputFormat"
  64700. static="false" final="false" visibility="public"
  64701. deprecated="not deprecated">
  64702. </constructor>
  64703. <method name="getBaseRecordWriter" return="org.apache.hadoop.mapred.RecordWriter"
  64704. abstract="false" native="false" synchronized="false"
  64705. static="false" final="false" visibility="protected"
  64706. deprecated="not deprecated">
  64707. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  64708. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  64709. <param name="name" type="java.lang.String"/>
  64710. <param name="arg3" type="org.apache.hadoop.util.Progressable"/>
  64711. <exception name="IOException" type="java.io.IOException"/>
  64712. </method>
  64713. <doc>
  64714. <![CDATA[This class extends the MultipleOutputFormat, allowing to write the output data
  64715. to different output files in sequence file output format.]]>
  64716. </doc>
  64717. </class>
  64718. <!-- end class org.apache.hadoop.mapred.lib.MultipleSequenceFileOutputFormat -->
  64719. <!-- start class org.apache.hadoop.mapred.lib.MultipleTextOutputFormat -->
  64720. <class name="MultipleTextOutputFormat" extends="org.apache.hadoop.mapred.lib.MultipleOutputFormat"
  64721. abstract="false"
  64722. static="false" final="false" visibility="public"
  64723. deprecated="not deprecated">
  64724. <constructor name="MultipleTextOutputFormat"
  64725. static="false" final="false" visibility="public"
  64726. deprecated="not deprecated">
  64727. </constructor>
  64728. <method name="getBaseRecordWriter" return="org.apache.hadoop.mapred.RecordWriter"
  64729. abstract="false" native="false" synchronized="false"
  64730. static="false" final="false" visibility="protected"
  64731. deprecated="not deprecated">
  64732. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  64733. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  64734. <param name="name" type="java.lang.String"/>
  64735. <param name="arg3" type="org.apache.hadoop.util.Progressable"/>
  64736. <exception name="IOException" type="java.io.IOException"/>
  64737. </method>
  64738. <doc>
  64739. <![CDATA[This class extends the MultipleOutputFormat, allowing to write the output
  64740. data to different output files in Text output format.]]>
  64741. </doc>
  64742. </class>
  64743. <!-- end class org.apache.hadoop.mapred.lib.MultipleTextOutputFormat -->
  64744. <!-- start class org.apache.hadoop.mapred.lib.MultithreadedMapRunner -->
  64745. <class name="MultithreadedMapRunner" extends="java.lang.Object"
  64746. abstract="false"
  64747. static="false" final="false" visibility="public"
  64748. deprecated="not deprecated">
  64749. <implements name="org.apache.hadoop.mapred.MapRunnable"/>
  64750. <constructor name="MultithreadedMapRunner"
  64751. static="false" final="false" visibility="public"
  64752. deprecated="not deprecated">
  64753. </constructor>
  64754. <method name="configure"
  64755. abstract="false" native="false" synchronized="false"
  64756. static="false" final="false" visibility="public"
  64757. deprecated="not deprecated">
  64758. <param name="jobConf" type="org.apache.hadoop.mapred.JobConf"/>
  64759. </method>
  64760. <method name="run"
  64761. abstract="false" native="false" synchronized="false"
  64762. static="false" final="false" visibility="public"
  64763. deprecated="not deprecated">
  64764. <param name="input" type="org.apache.hadoop.mapred.RecordReader"/>
  64765. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  64766. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  64767. <exception name="IOException" type="java.io.IOException"/>
  64768. </method>
  64769. <doc>
  64770. <![CDATA[Multithreaded implementation for @link org.apache.hadoop.mapred.MapRunnable.
  64771. <p>
  64772. It can be used instead of the default implementation,
  64773. @link org.apache.hadoop.mapred.MapRunner, when the Map operation is not CPU
  64774. bound in order to improve throughput.
  64775. <p>
  64776. Map implementations using this MapRunnable must be thread-safe.
  64777. <p>
  64778. The Map-Reduce job has to be configured to use this MapRunnable class (using
  64779. the JobConf.setMapRunnerClass method) and
  64780. the number of thread the thread-pool can use with the
  64781. <code>mapred.map.multithreadedrunner.threads</code> property, its default
  64782. value is 10 threads.
  64783. <p>]]>
  64784. </doc>
  64785. </class>
  64786. <!-- end class org.apache.hadoop.mapred.lib.MultithreadedMapRunner -->
  64787. <!-- start class org.apache.hadoop.mapred.lib.NLineInputFormat -->
  64788. <class name="NLineInputFormat" extends="org.apache.hadoop.mapred.FileInputFormat"
  64789. abstract="false"
  64790. static="false" final="false" visibility="public"
  64791. deprecated="not deprecated">
  64792. <implements name="org.apache.hadoop.mapred.JobConfigurable"/>
  64793. <constructor name="NLineInputFormat"
  64794. static="false" final="false" visibility="public"
  64795. deprecated="not deprecated">
  64796. </constructor>
  64797. <method name="getRecordReader" return="org.apache.hadoop.mapred.RecordReader"
  64798. abstract="false" native="false" synchronized="false"
  64799. static="false" final="false" visibility="public"
  64800. deprecated="not deprecated">
  64801. <param name="genericSplit" type="org.apache.hadoop.mapred.InputSplit"/>
  64802. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  64803. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  64804. <exception name="IOException" type="java.io.IOException"/>
  64805. </method>
  64806. <method name="getSplits" return="org.apache.hadoop.mapred.InputSplit[]"
  64807. abstract="false" native="false" synchronized="false"
  64808. static="false" final="false" visibility="public"
  64809. deprecated="not deprecated">
  64810. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  64811. <param name="numSplits" type="int"/>
  64812. <exception name="IOException" type="java.io.IOException"/>
  64813. <doc>
  64814. <![CDATA[Logically splits the set of input files for the job, splits N lines
  64815. of the input as one split.
  64816. @see org.apache.hadoop.mapred.FileInputFormat#getSplits(JobConf, int)]]>
  64817. </doc>
  64818. </method>
  64819. <method name="createFileSplit" return="org.apache.hadoop.mapred.FileSplit"
  64820. abstract="false" native="false" synchronized="false"
  64821. static="true" final="false" visibility="protected"
  64822. deprecated="not deprecated">
  64823. <param name="fileName" type="org.apache.hadoop.fs.Path"/>
  64824. <param name="begin" type="long"/>
  64825. <param name="length" type="long"/>
  64826. <doc>
  64827. <![CDATA[NLineInputFormat uses LineRecordReader, which always reads
  64828. (and consumes) at least one character out of its upper split
  64829. boundary. So to make sure that each mapper gets N lines, we
  64830. move back the upper split limits of each split
  64831. by one character here.
  64832. @param fileName Path of file
  64833. @param begin the position of the first byte in the file to process
  64834. @param length number of bytes in InputSplit
  64835. @return FileSplit]]>
  64836. </doc>
  64837. </method>
  64838. <method name="configure"
  64839. abstract="false" native="false" synchronized="false"
  64840. static="false" final="false" visibility="public"
  64841. deprecated="not deprecated">
  64842. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  64843. </method>
  64844. <doc>
  64845. <![CDATA[NLineInputFormat which splits N lines of input as one split.
  64846. In many "pleasantly" parallel applications, each process/mapper
  64847. processes the same input file (s), but with computations are
  64848. controlled by different parameters.(Referred to as "parameter sweeps").
  64849. One way to achieve this, is to specify a set of parameters
  64850. (one set per line) as input in a control file
  64851. (which is the input path to the map-reduce application,
  64852. where as the input dataset is specified
  64853. via a config variable in JobConf.).
  64854. The NLineInputFormat can be used in such applications, that splits
  64855. the input file such that by default, one line is fed as
  64856. a value to one map task, and key is the offset.
  64857. i.e. (k,v) is (LongWritable, Text).
  64858. The location hints will span the whole mapred cluster.]]>
  64859. </doc>
  64860. </class>
  64861. <!-- end class org.apache.hadoop.mapred.lib.NLineInputFormat -->
  64862. <!-- start class org.apache.hadoop.mapred.lib.NullOutputFormat -->
  64863. <class name="NullOutputFormat" extends="java.lang.Object"
  64864. abstract="false"
  64865. static="false" final="false" visibility="public"
  64866. deprecated="not deprecated">
  64867. <implements name="org.apache.hadoop.mapred.OutputFormat"/>
  64868. <constructor name="NullOutputFormat"
  64869. static="false" final="false" visibility="public"
  64870. deprecated="not deprecated">
  64871. </constructor>
  64872. <method name="getRecordWriter" return="org.apache.hadoop.mapred.RecordWriter"
  64873. abstract="false" native="false" synchronized="false"
  64874. static="false" final="false" visibility="public"
  64875. deprecated="not deprecated">
  64876. <param name="ignored" type="org.apache.hadoop.fs.FileSystem"/>
  64877. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  64878. <param name="name" type="java.lang.String"/>
  64879. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  64880. </method>
  64881. <method name="checkOutputSpecs"
  64882. abstract="false" native="false" synchronized="false"
  64883. static="false" final="false" visibility="public"
  64884. deprecated="not deprecated">
  64885. <param name="ignored" type="org.apache.hadoop.fs.FileSystem"/>
  64886. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  64887. </method>
  64888. <doc>
  64889. <![CDATA[Consume all outputs and put them in /dev/null.]]>
  64890. </doc>
  64891. </class>
  64892. <!-- end class org.apache.hadoop.mapred.lib.NullOutputFormat -->
  64893. <!-- start class org.apache.hadoop.mapred.lib.RegexMapper -->
  64894. <class name="RegexMapper" extends="org.apache.hadoop.mapred.MapReduceBase"
  64895. abstract="false"
  64896. static="false" final="false" visibility="public"
  64897. deprecated="not deprecated">
  64898. <implements name="org.apache.hadoop.mapred.Mapper"/>
  64899. <constructor name="RegexMapper"
  64900. static="false" final="false" visibility="public"
  64901. deprecated="not deprecated">
  64902. </constructor>
  64903. <method name="configure"
  64904. abstract="false" native="false" synchronized="false"
  64905. static="false" final="false" visibility="public"
  64906. deprecated="not deprecated">
  64907. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  64908. </method>
  64909. <method name="map"
  64910. abstract="false" native="false" synchronized="false"
  64911. static="false" final="false" visibility="public"
  64912. deprecated="not deprecated">
  64913. <param name="key" type="java.lang.Object"/>
  64914. <param name="value" type="org.apache.hadoop.io.Text"/>
  64915. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  64916. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  64917. <exception name="IOException" type="java.io.IOException"/>
  64918. </method>
  64919. <doc>
  64920. <![CDATA[A {@link Mapper} that extracts text matching a regular expression.]]>
  64921. </doc>
  64922. </class>
  64923. <!-- end class org.apache.hadoop.mapred.lib.RegexMapper -->
  64924. <!-- start class org.apache.hadoop.mapred.lib.TokenCountMapper -->
  64925. <class name="TokenCountMapper" extends="org.apache.hadoop.mapred.MapReduceBase"
  64926. abstract="false"
  64927. static="false" final="false" visibility="public"
  64928. deprecated="not deprecated">
  64929. <implements name="org.apache.hadoop.mapred.Mapper"/>
  64930. <constructor name="TokenCountMapper"
  64931. static="false" final="false" visibility="public"
  64932. deprecated="not deprecated">
  64933. </constructor>
  64934. <method name="map"
  64935. abstract="false" native="false" synchronized="false"
  64936. static="false" final="false" visibility="public"
  64937. deprecated="not deprecated">
  64938. <param name="key" type="java.lang.Object"/>
  64939. <param name="value" type="org.apache.hadoop.io.Text"/>
  64940. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  64941. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  64942. <exception name="IOException" type="java.io.IOException"/>
  64943. </method>
  64944. <doc>
  64945. <![CDATA[A {@link Mapper} that maps text values into <token,freq> pairs. Uses
  64946. {@link StringTokenizer} to break text into tokens.]]>
  64947. </doc>
  64948. </class>
  64949. <!-- end class org.apache.hadoop.mapred.lib.TokenCountMapper -->
  64950. <!-- start class org.apache.hadoop.mapred.lib.TotalOrderPartitioner -->
  64951. <class name="TotalOrderPartitioner" extends="java.lang.Object"
  64952. abstract="false"
  64953. static="false" final="false" visibility="public"
  64954. deprecated="not deprecated">
  64955. <implements name="org.apache.hadoop.mapred.Partitioner"/>
  64956. <constructor name="TotalOrderPartitioner"
  64957. static="false" final="false" visibility="public"
  64958. deprecated="not deprecated">
  64959. </constructor>
  64960. <method name="configure"
  64961. abstract="false" native="false" synchronized="false"
  64962. static="false" final="false" visibility="public"
  64963. deprecated="not deprecated">
  64964. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  64965. <doc>
  64966. <![CDATA[Read in the partition file and build indexing data structures.
  64967. If the keytype is {@link org.apache.hadoop.io.BinaryComparable} and
  64968. <tt>total.order.partitioner.natural.order</tt> is not false, a trie
  64969. of the first <tt>total.order.partitioner.max.trie.depth</tt>(2) + 1 bytes
  64970. will be built. Otherwise, keys will be located using a binary search of
  64971. the partition keyset using the {@link org.apache.hadoop.io.RawComparator}
  64972. defined for this job. The input file must be sorted with the same
  64973. comparator and contain {@link
  64974. org.apache.hadoop.mapred.JobConf#getNumReduceTasks} - 1 keys.]]>
  64975. </doc>
  64976. </method>
  64977. <method name="getPartition" return="int"
  64978. abstract="false" native="false" synchronized="false"
  64979. static="false" final="false" visibility="public"
  64980. deprecated="not deprecated">
  64981. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  64982. <param name="value" type="java.lang.Object"/>
  64983. <param name="numPartitions" type="int"/>
  64984. </method>
  64985. <method name="setPartitionFile"
  64986. abstract="false" native="false" synchronized="false"
  64987. static="true" final="false" visibility="public"
  64988. deprecated="not deprecated">
  64989. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  64990. <param name="p" type="org.apache.hadoop.fs.Path"/>
  64991. <doc>
  64992. <![CDATA[Set the path to the SequenceFile storing the sorted partition keyset.
  64993. It must be the case that for <tt>R</tt> reduces, there are <tt>R-1</tt>
  64994. keys in the SequenceFile.]]>
  64995. </doc>
  64996. </method>
  64997. <method name="getPartitionFile" return="java.lang.String"
  64998. abstract="false" native="false" synchronized="false"
  64999. static="true" final="false" visibility="public"
  65000. deprecated="not deprecated">
  65001. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  65002. <doc>
  65003. <![CDATA[Get the path to the SequenceFile storing the sorted partition keyset.
  65004. @see #setPartitionFile(JobConf,Path)]]>
  65005. </doc>
  65006. </method>
  65007. <field name="DEFAULT_PATH" type="java.lang.String"
  65008. transient="false" volatile="false"
  65009. static="true" final="true" visibility="public"
  65010. deprecated="not deprecated">
  65011. </field>
  65012. <doc>
  65013. <![CDATA[Partitioner effecting a total order by reading split points from
  65014. an externally generated source.]]>
  65015. </doc>
  65016. </class>
  65017. <!-- end class org.apache.hadoop.mapred.lib.TotalOrderPartitioner -->
  65018. </package>
  65019. <package name="org.apache.hadoop.mapred.lib.aggregate">
  65020. <!-- start class org.apache.hadoop.mapred.lib.aggregate.DoubleValueSum -->
  65021. <class name="DoubleValueSum" extends="java.lang.Object"
  65022. abstract="false"
  65023. static="false" final="false" visibility="public"
  65024. deprecated="not deprecated">
  65025. <implements name="org.apache.hadoop.mapred.lib.aggregate.ValueAggregator"/>
  65026. <constructor name="DoubleValueSum"
  65027. static="false" final="false" visibility="public"
  65028. deprecated="not deprecated">
  65029. <doc>
  65030. <![CDATA[The default constructor]]>
  65031. </doc>
  65032. </constructor>
  65033. <method name="addNextValue"
  65034. abstract="false" native="false" synchronized="false"
  65035. static="false" final="false" visibility="public"
  65036. deprecated="not deprecated">
  65037. <param name="val" type="java.lang.Object"/>
  65038. <doc>
  65039. <![CDATA[add a value to the aggregator
  65040. @param val
  65041. an object whose string representation represents a double value.]]>
  65042. </doc>
  65043. </method>
  65044. <method name="addNextValue"
  65045. abstract="false" native="false" synchronized="false"
  65046. static="false" final="false" visibility="public"
  65047. deprecated="not deprecated">
  65048. <param name="val" type="double"/>
  65049. <doc>
  65050. <![CDATA[add a value to the aggregator
  65051. @param val
  65052. a double value.]]>
  65053. </doc>
  65054. </method>
  65055. <method name="getReport" return="java.lang.String"
  65056. abstract="false" native="false" synchronized="false"
  65057. static="false" final="false" visibility="public"
  65058. deprecated="not deprecated">
  65059. <doc>
  65060. <![CDATA[@return the string representation of the aggregated value]]>
  65061. </doc>
  65062. </method>
  65063. <method name="getSum" return="double"
  65064. abstract="false" native="false" synchronized="false"
  65065. static="false" final="false" visibility="public"
  65066. deprecated="not deprecated">
  65067. <doc>
  65068. <![CDATA[@return the aggregated value]]>
  65069. </doc>
  65070. </method>
  65071. <method name="reset"
  65072. abstract="false" native="false" synchronized="false"
  65073. static="false" final="false" visibility="public"
  65074. deprecated="not deprecated">
  65075. <doc>
  65076. <![CDATA[reset the aggregator]]>
  65077. </doc>
  65078. </method>
  65079. <method name="getCombinerOutput" return="java.util.ArrayList"
  65080. abstract="false" native="false" synchronized="false"
  65081. static="false" final="false" visibility="public"
  65082. deprecated="not deprecated">
  65083. <doc>
  65084. <![CDATA[@return return an array of one element. The element is a string
  65085. representation of the aggregated value. The return value is
  65086. expected to be used by the a combiner.]]>
  65087. </doc>
  65088. </method>
  65089. <doc>
  65090. <![CDATA[This class implements a value aggregator that sums up a sequence of double
  65091. values.]]>
  65092. </doc>
  65093. </class>
  65094. <!-- end class org.apache.hadoop.mapred.lib.aggregate.DoubleValueSum -->
  65095. <!-- start class org.apache.hadoop.mapred.lib.aggregate.LongValueMax -->
  65096. <class name="LongValueMax" extends="java.lang.Object"
  65097. abstract="false"
  65098. static="false" final="false" visibility="public"
  65099. deprecated="not deprecated">
  65100. <implements name="org.apache.hadoop.mapred.lib.aggregate.ValueAggregator"/>
  65101. <constructor name="LongValueMax"
  65102. static="false" final="false" visibility="public"
  65103. deprecated="not deprecated">
  65104. <doc>
  65105. <![CDATA[the default constructor]]>
  65106. </doc>
  65107. </constructor>
  65108. <method name="addNextValue"
  65109. abstract="false" native="false" synchronized="false"
  65110. static="false" final="false" visibility="public"
  65111. deprecated="not deprecated">
  65112. <param name="val" type="java.lang.Object"/>
  65113. <doc>
  65114. <![CDATA[add a value to the aggregator
  65115. @param val
  65116. an object whose string representation represents a long value.]]>
  65117. </doc>
  65118. </method>
  65119. <method name="addNextValue"
  65120. abstract="false" native="false" synchronized="false"
  65121. static="false" final="false" visibility="public"
  65122. deprecated="not deprecated">
  65123. <param name="newVal" type="long"/>
  65124. <doc>
  65125. <![CDATA[add a value to the aggregator
  65126. @param newVal
  65127. a long value.]]>
  65128. </doc>
  65129. </method>
  65130. <method name="getVal" return="long"
  65131. abstract="false" native="false" synchronized="false"
  65132. static="false" final="false" visibility="public"
  65133. deprecated="not deprecated">
  65134. <doc>
  65135. <![CDATA[@return the aggregated value]]>
  65136. </doc>
  65137. </method>
  65138. <method name="getReport" return="java.lang.String"
  65139. abstract="false" native="false" synchronized="false"
  65140. static="false" final="false" visibility="public"
  65141. deprecated="not deprecated">
  65142. <doc>
  65143. <![CDATA[@return the string representation of the aggregated value]]>
  65144. </doc>
  65145. </method>
  65146. <method name="reset"
  65147. abstract="false" native="false" synchronized="false"
  65148. static="false" final="false" visibility="public"
  65149. deprecated="not deprecated">
  65150. <doc>
  65151. <![CDATA[reset the aggregator]]>
  65152. </doc>
  65153. </method>
  65154. <method name="getCombinerOutput" return="java.util.ArrayList"
  65155. abstract="false" native="false" synchronized="false"
  65156. static="false" final="false" visibility="public"
  65157. deprecated="not deprecated">
  65158. <doc>
  65159. <![CDATA[@return return an array of one element. The element is a string
  65160. representation of the aggregated value. The return value is
  65161. expected to be used by the a combiner.]]>
  65162. </doc>
  65163. </method>
  65164. <doc>
  65165. <![CDATA[This class implements a value aggregator that maintain the maximum of
  65166. a sequence of long values.]]>
  65167. </doc>
  65168. </class>
  65169. <!-- end class org.apache.hadoop.mapred.lib.aggregate.LongValueMax -->
  65170. <!-- start class org.apache.hadoop.mapred.lib.aggregate.LongValueMin -->
  65171. <class name="LongValueMin" extends="java.lang.Object"
  65172. abstract="false"
  65173. static="false" final="false" visibility="public"
  65174. deprecated="not deprecated">
  65175. <implements name="org.apache.hadoop.mapred.lib.aggregate.ValueAggregator"/>
  65176. <constructor name="LongValueMin"
  65177. static="false" final="false" visibility="public"
  65178. deprecated="not deprecated">
  65179. <doc>
  65180. <![CDATA[the default constructor]]>
  65181. </doc>
  65182. </constructor>
  65183. <method name="addNextValue"
  65184. abstract="false" native="false" synchronized="false"
  65185. static="false" final="false" visibility="public"
  65186. deprecated="not deprecated">
  65187. <param name="val" type="java.lang.Object"/>
  65188. <doc>
  65189. <![CDATA[add a value to the aggregator
  65190. @param val
  65191. an object whose string representation represents a long value.]]>
  65192. </doc>
  65193. </method>
  65194. <method name="addNextValue"
  65195. abstract="false" native="false" synchronized="false"
  65196. static="false" final="false" visibility="public"
  65197. deprecated="not deprecated">
  65198. <param name="newVal" type="long"/>
  65199. <doc>
  65200. <![CDATA[add a value to the aggregator
  65201. @param newVal
  65202. a long value.]]>
  65203. </doc>
  65204. </method>
  65205. <method name="getVal" return="long"
  65206. abstract="false" native="false" synchronized="false"
  65207. static="false" final="false" visibility="public"
  65208. deprecated="not deprecated">
  65209. <doc>
  65210. <![CDATA[@return the aggregated value]]>
  65211. </doc>
  65212. </method>
  65213. <method name="getReport" return="java.lang.String"
  65214. abstract="false" native="false" synchronized="false"
  65215. static="false" final="false" visibility="public"
  65216. deprecated="not deprecated">
  65217. <doc>
  65218. <![CDATA[@return the string representation of the aggregated value]]>
  65219. </doc>
  65220. </method>
  65221. <method name="reset"
  65222. abstract="false" native="false" synchronized="false"
  65223. static="false" final="false" visibility="public"
  65224. deprecated="not deprecated">
  65225. <doc>
  65226. <![CDATA[reset the aggregator]]>
  65227. </doc>
  65228. </method>
  65229. <method name="getCombinerOutput" return="java.util.ArrayList"
  65230. abstract="false" native="false" synchronized="false"
  65231. static="false" final="false" visibility="public"
  65232. deprecated="not deprecated">
  65233. <doc>
  65234. <![CDATA[@return return an array of one element. The element is a string
  65235. representation of the aggregated value. The return value is
  65236. expected to be used by the a combiner.]]>
  65237. </doc>
  65238. </method>
  65239. <doc>
  65240. <![CDATA[This class implements a value aggregator that maintain the minimum of
  65241. a sequence of long values.]]>
  65242. </doc>
  65243. </class>
  65244. <!-- end class org.apache.hadoop.mapred.lib.aggregate.LongValueMin -->
  65245. <!-- start class org.apache.hadoop.mapred.lib.aggregate.LongValueSum -->
  65246. <class name="LongValueSum" extends="java.lang.Object"
  65247. abstract="false"
  65248. static="false" final="false" visibility="public"
  65249. deprecated="not deprecated">
  65250. <implements name="org.apache.hadoop.mapred.lib.aggregate.ValueAggregator"/>
  65251. <constructor name="LongValueSum"
  65252. static="false" final="false" visibility="public"
  65253. deprecated="not deprecated">
  65254. <doc>
  65255. <![CDATA[the default constructor]]>
  65256. </doc>
  65257. </constructor>
  65258. <method name="addNextValue"
  65259. abstract="false" native="false" synchronized="false"
  65260. static="false" final="false" visibility="public"
  65261. deprecated="not deprecated">
  65262. <param name="val" type="java.lang.Object"/>
  65263. <doc>
  65264. <![CDATA[add a value to the aggregator
  65265. @param val
  65266. an object whose string representation represents a long value.]]>
  65267. </doc>
  65268. </method>
  65269. <method name="addNextValue"
  65270. abstract="false" native="false" synchronized="false"
  65271. static="false" final="false" visibility="public"
  65272. deprecated="not deprecated">
  65273. <param name="val" type="long"/>
  65274. <doc>
  65275. <![CDATA[add a value to the aggregator
  65276. @param val
  65277. a long value.]]>
  65278. </doc>
  65279. </method>
  65280. <method name="getSum" return="long"
  65281. abstract="false" native="false" synchronized="false"
  65282. static="false" final="false" visibility="public"
  65283. deprecated="not deprecated">
  65284. <doc>
  65285. <![CDATA[@return the aggregated value]]>
  65286. </doc>
  65287. </method>
  65288. <method name="getReport" return="java.lang.String"
  65289. abstract="false" native="false" synchronized="false"
  65290. static="false" final="false" visibility="public"
  65291. deprecated="not deprecated">
  65292. <doc>
  65293. <![CDATA[@return the string representation of the aggregated value]]>
  65294. </doc>
  65295. </method>
  65296. <method name="reset"
  65297. abstract="false" native="false" synchronized="false"
  65298. static="false" final="false" visibility="public"
  65299. deprecated="not deprecated">
  65300. <doc>
  65301. <![CDATA[reset the aggregator]]>
  65302. </doc>
  65303. </method>
  65304. <method name="getCombinerOutput" return="java.util.ArrayList"
  65305. abstract="false" native="false" synchronized="false"
  65306. static="false" final="false" visibility="public"
  65307. deprecated="not deprecated">
  65308. <doc>
  65309. <![CDATA[@return return an array of one element. The element is a string
  65310. representation of the aggregated value. The return value is
  65311. expected to be used by the a combiner.]]>
  65312. </doc>
  65313. </method>
  65314. <doc>
  65315. <![CDATA[This class implements a value aggregator that sums up
  65316. a sequence of long values.]]>
  65317. </doc>
  65318. </class>
  65319. <!-- end class org.apache.hadoop.mapred.lib.aggregate.LongValueSum -->
  65320. <!-- start class org.apache.hadoop.mapred.lib.aggregate.StringValueMax -->
  65321. <class name="StringValueMax" extends="java.lang.Object"
  65322. abstract="false"
  65323. static="false" final="false" visibility="public"
  65324. deprecated="not deprecated">
  65325. <implements name="org.apache.hadoop.mapred.lib.aggregate.ValueAggregator"/>
  65326. <constructor name="StringValueMax"
  65327. static="false" final="false" visibility="public"
  65328. deprecated="not deprecated">
  65329. <doc>
  65330. <![CDATA[the default constructor]]>
  65331. </doc>
  65332. </constructor>
  65333. <method name="addNextValue"
  65334. abstract="false" native="false" synchronized="false"
  65335. static="false" final="false" visibility="public"
  65336. deprecated="not deprecated">
  65337. <param name="val" type="java.lang.Object"/>
  65338. <doc>
  65339. <![CDATA[add a value to the aggregator
  65340. @param val
  65341. a string.]]>
  65342. </doc>
  65343. </method>
  65344. <method name="getVal" return="java.lang.String"
  65345. abstract="false" native="false" synchronized="false"
  65346. static="false" final="false" visibility="public"
  65347. deprecated="not deprecated">
  65348. <doc>
  65349. <![CDATA[@return the aggregated value]]>
  65350. </doc>
  65351. </method>
  65352. <method name="getReport" return="java.lang.String"
  65353. abstract="false" native="false" synchronized="false"
  65354. static="false" final="false" visibility="public"
  65355. deprecated="not deprecated">
  65356. <doc>
  65357. <![CDATA[@return the string representation of the aggregated value]]>
  65358. </doc>
  65359. </method>
  65360. <method name="reset"
  65361. abstract="false" native="false" synchronized="false"
  65362. static="false" final="false" visibility="public"
  65363. deprecated="not deprecated">
  65364. <doc>
  65365. <![CDATA[reset the aggregator]]>
  65366. </doc>
  65367. </method>
  65368. <method name="getCombinerOutput" return="java.util.ArrayList"
  65369. abstract="false" native="false" synchronized="false"
  65370. static="false" final="false" visibility="public"
  65371. deprecated="not deprecated">
  65372. <doc>
  65373. <![CDATA[@return return an array of one element. The element is a string
  65374. representation of the aggregated value. The return value is
  65375. expected to be used by the a combiner.]]>
  65376. </doc>
  65377. </method>
  65378. <doc>
  65379. <![CDATA[This class implements a value aggregator that maintain the biggest of
  65380. a sequence of strings.]]>
  65381. </doc>
  65382. </class>
  65383. <!-- end class org.apache.hadoop.mapred.lib.aggregate.StringValueMax -->
  65384. <!-- start class org.apache.hadoop.mapred.lib.aggregate.StringValueMin -->
  65385. <class name="StringValueMin" extends="java.lang.Object"
  65386. abstract="false"
  65387. static="false" final="false" visibility="public"
  65388. deprecated="not deprecated">
  65389. <implements name="org.apache.hadoop.mapred.lib.aggregate.ValueAggregator"/>
  65390. <constructor name="StringValueMin"
  65391. static="false" final="false" visibility="public"
  65392. deprecated="not deprecated">
  65393. <doc>
  65394. <![CDATA[the default constructor]]>
  65395. </doc>
  65396. </constructor>
  65397. <method name="addNextValue"
  65398. abstract="false" native="false" synchronized="false"
  65399. static="false" final="false" visibility="public"
  65400. deprecated="not deprecated">
  65401. <param name="val" type="java.lang.Object"/>
  65402. <doc>
  65403. <![CDATA[add a value to the aggregator
  65404. @param val
  65405. a string.]]>
  65406. </doc>
  65407. </method>
  65408. <method name="getVal" return="java.lang.String"
  65409. abstract="false" native="false" synchronized="false"
  65410. static="false" final="false" visibility="public"
  65411. deprecated="not deprecated">
  65412. <doc>
  65413. <![CDATA[@return the aggregated value]]>
  65414. </doc>
  65415. </method>
  65416. <method name="getReport" return="java.lang.String"
  65417. abstract="false" native="false" synchronized="false"
  65418. static="false" final="false" visibility="public"
  65419. deprecated="not deprecated">
  65420. <doc>
  65421. <![CDATA[@return the string representation of the aggregated value]]>
  65422. </doc>
  65423. </method>
  65424. <method name="reset"
  65425. abstract="false" native="false" synchronized="false"
  65426. static="false" final="false" visibility="public"
  65427. deprecated="not deprecated">
  65428. <doc>
  65429. <![CDATA[reset the aggregator]]>
  65430. </doc>
  65431. </method>
  65432. <method name="getCombinerOutput" return="java.util.ArrayList"
  65433. abstract="false" native="false" synchronized="false"
  65434. static="false" final="false" visibility="public"
  65435. deprecated="not deprecated">
  65436. <doc>
  65437. <![CDATA[@return return an array of one element. The element is a string
  65438. representation of the aggregated value. The return value is
  65439. expected to be used by the a combiner.]]>
  65440. </doc>
  65441. </method>
  65442. <doc>
  65443. <![CDATA[This class implements a value aggregator that maintain the smallest of
  65444. a sequence of strings.]]>
  65445. </doc>
  65446. </class>
  65447. <!-- end class org.apache.hadoop.mapred.lib.aggregate.StringValueMin -->
  65448. <!-- start class org.apache.hadoop.mapred.lib.aggregate.UniqValueCount -->
  65449. <class name="UniqValueCount" extends="java.lang.Object"
  65450. abstract="false"
  65451. static="false" final="false" visibility="public"
  65452. deprecated="not deprecated">
  65453. <implements name="org.apache.hadoop.mapred.lib.aggregate.ValueAggregator"/>
  65454. <constructor name="UniqValueCount"
  65455. static="false" final="false" visibility="public"
  65456. deprecated="not deprecated">
  65457. <doc>
  65458. <![CDATA[the default constructor]]>
  65459. </doc>
  65460. </constructor>
  65461. <constructor name="UniqValueCount" type="long"
  65462. static="false" final="false" visibility="public"
  65463. deprecated="not deprecated">
  65464. <doc>
  65465. <![CDATA[constructor
  65466. @param maxNum the limit in the number of unique values to keep.]]>
  65467. </doc>
  65468. </constructor>
  65469. <method name="setMaxItems" return="long"
  65470. abstract="false" native="false" synchronized="false"
  65471. static="false" final="false" visibility="public"
  65472. deprecated="not deprecated">
  65473. <param name="n" type="long"/>
  65474. <doc>
  65475. <![CDATA[Set the limit on the number of unique values
  65476. @param n the desired limit on the number of unique values
  65477. @return the new limit on the number of unique values]]>
  65478. </doc>
  65479. </method>
  65480. <method name="addNextValue"
  65481. abstract="false" native="false" synchronized="false"
  65482. static="false" final="false" visibility="public"
  65483. deprecated="not deprecated">
  65484. <param name="val" type="java.lang.Object"/>
  65485. <doc>
  65486. <![CDATA[add a value to the aggregator
  65487. @param val
  65488. an object.]]>
  65489. </doc>
  65490. </method>
  65491. <method name="getReport" return="java.lang.String"
  65492. abstract="false" native="false" synchronized="false"
  65493. static="false" final="false" visibility="public"
  65494. deprecated="not deprecated">
  65495. <doc>
  65496. <![CDATA[@return return the number of unique objects aggregated]]>
  65497. </doc>
  65498. </method>
  65499. <method name="getUniqueItems" return="java.util.Set"
  65500. abstract="false" native="false" synchronized="false"
  65501. static="false" final="false" visibility="public"
  65502. deprecated="not deprecated">
  65503. <doc>
  65504. <![CDATA[@return the set of the unique objects]]>
  65505. </doc>
  65506. </method>
  65507. <method name="reset"
  65508. abstract="false" native="false" synchronized="false"
  65509. static="false" final="false" visibility="public"
  65510. deprecated="not deprecated">
  65511. <doc>
  65512. <![CDATA[reset the aggregator]]>
  65513. </doc>
  65514. </method>
  65515. <method name="getCombinerOutput" return="java.util.ArrayList"
  65516. abstract="false" native="false" synchronized="false"
  65517. static="false" final="false" visibility="public"
  65518. deprecated="not deprecated">
  65519. <doc>
  65520. <![CDATA[@return return an array of the unique objects. The return value is
  65521. expected to be used by the a combiner.]]>
  65522. </doc>
  65523. </method>
  65524. <doc>
  65525. <![CDATA[This class implements a value aggregator that dedupes a sequence of objects.]]>
  65526. </doc>
  65527. </class>
  65528. <!-- end class org.apache.hadoop.mapred.lib.aggregate.UniqValueCount -->
  65529. <!-- start class org.apache.hadoop.mapred.lib.aggregate.UserDefinedValueAggregatorDescriptor -->
  65530. <class name="UserDefinedValueAggregatorDescriptor" extends="java.lang.Object"
  65531. abstract="false"
  65532. static="false" final="false" visibility="public"
  65533. deprecated="not deprecated">
  65534. <implements name="org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorDescriptor"/>
  65535. <constructor name="UserDefinedValueAggregatorDescriptor" type="java.lang.String, org.apache.hadoop.mapred.JobConf"
  65536. static="false" final="false" visibility="public"
  65537. deprecated="not deprecated">
  65538. <doc>
  65539. <![CDATA[@param className the class name of the user defined descriptor class
  65540. @param job a configure object used for decriptor configuration]]>
  65541. </doc>
  65542. </constructor>
  65543. <method name="createInstance" return="java.lang.Object"
  65544. abstract="false" native="false" synchronized="false"
  65545. static="true" final="false" visibility="public"
  65546. deprecated="not deprecated">
  65547. <param name="className" type="java.lang.String"/>
  65548. <doc>
  65549. <![CDATA[Create an instance of the given class
  65550. @param className the name of the class
  65551. @return a dynamically created instance of the given class]]>
  65552. </doc>
  65553. </method>
  65554. <method name="generateKeyValPairs" return="java.util.ArrayList"
  65555. abstract="false" native="false" synchronized="false"
  65556. static="false" final="false" visibility="public"
  65557. deprecated="not deprecated">
  65558. <param name="key" type="java.lang.Object"/>
  65559. <param name="val" type="java.lang.Object"/>
  65560. <doc>
  65561. <![CDATA[Generate a list of aggregation-id/value pairs for the given key/value pairs
  65562. by delegating the invocation to the real object.
  65563. @param key
  65564. input key
  65565. @param val
  65566. input value
  65567. @return a list of aggregation id/value pairs. An aggregation id encodes an
  65568. aggregation type which is used to guide the way to aggregate the
  65569. value in the reduce/combiner phrase of an Aggregate based job.]]>
  65570. </doc>
  65571. </method>
  65572. <method name="toString" return="java.lang.String"
  65573. abstract="false" native="false" synchronized="false"
  65574. static="false" final="false" visibility="public"
  65575. deprecated="not deprecated">
  65576. <doc>
  65577. <![CDATA[@return the string representation of this object.]]>
  65578. </doc>
  65579. </method>
  65580. <method name="configure"
  65581. abstract="false" native="false" synchronized="false"
  65582. static="false" final="false" visibility="public"
  65583. deprecated="not deprecated">
  65584. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  65585. <doc>
  65586. <![CDATA[Do nothing.]]>
  65587. </doc>
  65588. </method>
  65589. <doc>
  65590. <![CDATA[This class implements a wrapper for a user defined value aggregator descriptor.
  65591. It servs two functions: One is to create an object of ValueAggregatorDescriptor from the
  65592. name of a user defined class that may be dynamically loaded. The other is to
  65593. deligate inviokations of generateKeyValPairs function to the created object.]]>
  65594. </doc>
  65595. </class>
  65596. <!-- end class org.apache.hadoop.mapred.lib.aggregate.UserDefinedValueAggregatorDescriptor -->
  65597. <!-- start interface org.apache.hadoop.mapred.lib.aggregate.ValueAggregator -->
  65598. <interface name="ValueAggregator" abstract="true"
  65599. static="false" final="false" visibility="public"
  65600. deprecated="not deprecated">
  65601. <method name="addNextValue"
  65602. abstract="false" native="false" synchronized="false"
  65603. static="false" final="false" visibility="public"
  65604. deprecated="not deprecated">
  65605. <param name="val" type="java.lang.Object"/>
  65606. <doc>
  65607. <![CDATA[add a value to the aggregator
  65608. @param val the value to be added]]>
  65609. </doc>
  65610. </method>
  65611. <method name="reset"
  65612. abstract="false" native="false" synchronized="false"
  65613. static="false" final="false" visibility="public"
  65614. deprecated="not deprecated">
  65615. <doc>
  65616. <![CDATA[reset the aggregator]]>
  65617. </doc>
  65618. </method>
  65619. <method name="getReport" return="java.lang.String"
  65620. abstract="false" native="false" synchronized="false"
  65621. static="false" final="false" visibility="public"
  65622. deprecated="not deprecated">
  65623. <doc>
  65624. <![CDATA[@return the string representation of the agregator]]>
  65625. </doc>
  65626. </method>
  65627. <method name="getCombinerOutput" return="java.util.ArrayList"
  65628. abstract="false" native="false" synchronized="false"
  65629. static="false" final="false" visibility="public"
  65630. deprecated="not deprecated">
  65631. <doc>
  65632. <![CDATA[@return an array of values as the outputs of the combiner.]]>
  65633. </doc>
  65634. </method>
  65635. <doc>
  65636. <![CDATA[This interface defines the minimal protocol for value aggregators.]]>
  65637. </doc>
  65638. </interface>
  65639. <!-- end interface org.apache.hadoop.mapred.lib.aggregate.ValueAggregator -->
  65640. <!-- start class org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorBaseDescriptor -->
  65641. <class name="ValueAggregatorBaseDescriptor" extends="java.lang.Object"
  65642. abstract="false"
  65643. static="false" final="false" visibility="public"
  65644. deprecated="not deprecated">
  65645. <implements name="org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorDescriptor"/>
  65646. <constructor name="ValueAggregatorBaseDescriptor"
  65647. static="false" final="false" visibility="public"
  65648. deprecated="not deprecated">
  65649. </constructor>
  65650. <method name="generateEntry" return="java.util.Map.Entry"
  65651. abstract="false" native="false" synchronized="false"
  65652. static="true" final="false" visibility="public"
  65653. deprecated="not deprecated">
  65654. <param name="type" type="java.lang.String"/>
  65655. <param name="id" type="java.lang.String"/>
  65656. <param name="val" type="org.apache.hadoop.io.Text"/>
  65657. <doc>
  65658. <![CDATA[@param type the aggregation type
  65659. @param id the aggregation id
  65660. @param val the val associated with the id to be aggregated
  65661. @return an Entry whose key is the aggregation id prefixed with
  65662. the aggregation type.]]>
  65663. </doc>
  65664. </method>
  65665. <method name="generateValueAggregator" return="org.apache.hadoop.mapred.lib.aggregate.ValueAggregator"
  65666. abstract="false" native="false" synchronized="false"
  65667. static="true" final="false" visibility="public"
  65668. deprecated="not deprecated">
  65669. <param name="type" type="java.lang.String"/>
  65670. <doc>
  65671. <![CDATA[@param type the aggregation type
  65672. @return a value aggregator of the given type.]]>
  65673. </doc>
  65674. </method>
  65675. <method name="generateKeyValPairs" return="java.util.ArrayList"
  65676. abstract="false" native="false" synchronized="false"
  65677. static="false" final="false" visibility="public"
  65678. deprecated="not deprecated">
  65679. <param name="key" type="java.lang.Object"/>
  65680. <param name="val" type="java.lang.Object"/>
  65681. <doc>
  65682. <![CDATA[Generate 1 or 2 aggregation-id/value pairs for the given key/value pair.
  65683. The first id will be of type LONG_VALUE_SUM, with "record_count" as
  65684. its aggregation id. If the input is a file split,
  65685. the second id of the same type will be generated too, with the file name
  65686. as its aggregation id. This achieves the behavior of counting the total number
  65687. of records in the input data, and the number of records in each input file.
  65688. @param key
  65689. input key
  65690. @param val
  65691. input value
  65692. @return a list of aggregation id/value pairs. An aggregation id encodes an
  65693. aggregation type which is used to guide the way to aggregate the
  65694. value in the reduce/combiner phrase of an Aggregate based job.]]>
  65695. </doc>
  65696. </method>
  65697. <method name="configure"
  65698. abstract="false" native="false" synchronized="false"
  65699. static="false" final="false" visibility="public"
  65700. deprecated="not deprecated">
  65701. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  65702. <doc>
  65703. <![CDATA[get the input file name.
  65704. @param job a job configuration object]]>
  65705. </doc>
  65706. </method>
  65707. <field name="UNIQ_VALUE_COUNT" type="java.lang.String"
  65708. transient="false" volatile="false"
  65709. static="true" final="true" visibility="public"
  65710. deprecated="not deprecated">
  65711. </field>
  65712. <field name="LONG_VALUE_SUM" type="java.lang.String"
  65713. transient="false" volatile="false"
  65714. static="true" final="true" visibility="public"
  65715. deprecated="not deprecated">
  65716. </field>
  65717. <field name="DOUBLE_VALUE_SUM" type="java.lang.String"
  65718. transient="false" volatile="false"
  65719. static="true" final="true" visibility="public"
  65720. deprecated="not deprecated">
  65721. </field>
  65722. <field name="VALUE_HISTOGRAM" type="java.lang.String"
  65723. transient="false" volatile="false"
  65724. static="true" final="true" visibility="public"
  65725. deprecated="not deprecated">
  65726. </field>
  65727. <field name="LONG_VALUE_MAX" type="java.lang.String"
  65728. transient="false" volatile="false"
  65729. static="true" final="true" visibility="public"
  65730. deprecated="not deprecated">
  65731. </field>
  65732. <field name="LONG_VALUE_MIN" type="java.lang.String"
  65733. transient="false" volatile="false"
  65734. static="true" final="true" visibility="public"
  65735. deprecated="not deprecated">
  65736. </field>
  65737. <field name="STRING_VALUE_MAX" type="java.lang.String"
  65738. transient="false" volatile="false"
  65739. static="true" final="true" visibility="public"
  65740. deprecated="not deprecated">
  65741. </field>
  65742. <field name="STRING_VALUE_MIN" type="java.lang.String"
  65743. transient="false" volatile="false"
  65744. static="true" final="true" visibility="public"
  65745. deprecated="not deprecated">
  65746. </field>
  65747. <field name="inputFile" type="java.lang.String"
  65748. transient="false" volatile="false"
  65749. static="false" final="false" visibility="public"
  65750. deprecated="not deprecated">
  65751. </field>
  65752. <doc>
  65753. <![CDATA[This class implements the common functionalities of
  65754. the subclasses of ValueAggregatorDescriptor class.]]>
  65755. </doc>
  65756. </class>
  65757. <!-- end class org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorBaseDescriptor -->
  65758. <!-- start class org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorCombiner -->
  65759. <class name="ValueAggregatorCombiner" extends="org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorJobBase"
  65760. abstract="false"
  65761. static="false" final="false" visibility="public"
  65762. deprecated="not deprecated">
  65763. <constructor name="ValueAggregatorCombiner"
  65764. static="false" final="false" visibility="public"
  65765. deprecated="not deprecated">
  65766. </constructor>
  65767. <method name="configure"
  65768. abstract="false" native="false" synchronized="false"
  65769. static="false" final="false" visibility="public"
  65770. deprecated="not deprecated">
  65771. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  65772. <doc>
  65773. <![CDATA[Combiner does not need to configure.]]>
  65774. </doc>
  65775. </method>
  65776. <method name="reduce"
  65777. abstract="false" native="false" synchronized="false"
  65778. static="false" final="false" visibility="public"
  65779. deprecated="not deprecated">
  65780. <param name="key" type="org.apache.hadoop.io.Text"/>
  65781. <param name="values" type="java.util.Iterator"/>
  65782. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  65783. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  65784. <exception name="IOException" type="java.io.IOException"/>
  65785. <doc>
  65786. <![CDATA[Combines values for a given key.
  65787. @param key the key is expected to be a Text object, whose prefix indicates
  65788. the type of aggregation to aggregate the values.
  65789. @param values the values to combine
  65790. @param output to collect combined values]]>
  65791. </doc>
  65792. </method>
  65793. <method name="close"
  65794. abstract="false" native="false" synchronized="false"
  65795. static="false" final="false" visibility="public"
  65796. deprecated="not deprecated">
  65797. <exception name="IOException" type="java.io.IOException"/>
  65798. <doc>
  65799. <![CDATA[Do nothing.]]>
  65800. </doc>
  65801. </method>
  65802. <method name="map"
  65803. abstract="false" native="false" synchronized="false"
  65804. static="false" final="false" visibility="public"
  65805. deprecated="not deprecated">
  65806. <param name="arg0" type="org.apache.hadoop.io.WritableComparable"/>
  65807. <param name="arg1" type="org.apache.hadoop.io.Writable"/>
  65808. <param name="arg2" type="org.apache.hadoop.mapred.OutputCollector"/>
  65809. <param name="arg3" type="org.apache.hadoop.mapred.Reporter"/>
  65810. <exception name="IOException" type="java.io.IOException"/>
  65811. <doc>
  65812. <![CDATA[Do nothing. Should not be called.]]>
  65813. </doc>
  65814. </method>
  65815. <doc>
  65816. <![CDATA[This class implements the generic combiner of Aggregate.]]>
  65817. </doc>
  65818. </class>
  65819. <!-- end class org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorCombiner -->
  65820. <!-- start interface org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorDescriptor -->
  65821. <interface name="ValueAggregatorDescriptor" abstract="true"
  65822. static="false" final="false" visibility="public"
  65823. deprecated="not deprecated">
  65824. <method name="generateKeyValPairs" return="java.util.ArrayList"
  65825. abstract="false" native="false" synchronized="false"
  65826. static="false" final="false" visibility="public"
  65827. deprecated="not deprecated">
  65828. <param name="key" type="java.lang.Object"/>
  65829. <param name="val" type="java.lang.Object"/>
  65830. <doc>
  65831. <![CDATA[Generate a list of aggregation-id/value pairs for the given key/value pair.
  65832. This function is usually called by the mapper of an Aggregate based job.
  65833. @param key
  65834. input key
  65835. @param val
  65836. input value
  65837. @return a list of aggregation id/value pairs. An aggregation id encodes an
  65838. aggregation type which is used to guide the way to aggregate the
  65839. value in the reduce/combiner phrase of an Aggregate based job.]]>
  65840. </doc>
  65841. </method>
  65842. <method name="configure"
  65843. abstract="false" native="false" synchronized="false"
  65844. static="false" final="false" visibility="public"
  65845. deprecated="not deprecated">
  65846. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  65847. <doc>
  65848. <![CDATA[Configure the object
  65849. @param job
  65850. a JobConf object that may contain the information that can be used
  65851. to configure the object.]]>
  65852. </doc>
  65853. </method>
  65854. <field name="TYPE_SEPARATOR" type="java.lang.String"
  65855. transient="false" volatile="false"
  65856. static="true" final="true" visibility="public"
  65857. deprecated="not deprecated">
  65858. </field>
  65859. <field name="ONE" type="org.apache.hadoop.io.Text"
  65860. transient="false" volatile="false"
  65861. static="true" final="true" visibility="public"
  65862. deprecated="not deprecated">
  65863. </field>
  65864. <doc>
  65865. <![CDATA[This interface defines the contract a value aggregator descriptor must
  65866. support. Such a descriptor can be configured with a JobConf object. Its main
  65867. function is to generate a list of aggregation-id/value pairs. An aggregation
  65868. id encodes an aggregation type which is used to guide the way to aggregate
  65869. the value in the reduce/combiner phrase of an Aggregate based job.The mapper in
  65870. an Aggregate based map/reduce job may create one or more of
  65871. ValueAggregatorDescriptor objects at configuration time. For each input
  65872. key/value pair, the mapper will use those objects to create aggregation
  65873. id/value pairs.]]>
  65874. </doc>
  65875. </interface>
  65876. <!-- end interface org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorDescriptor -->
  65877. <!-- start class org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorJob -->
  65878. <class name="ValueAggregatorJob" extends="java.lang.Object"
  65879. abstract="false"
  65880. static="false" final="false" visibility="public"
  65881. deprecated="not deprecated">
  65882. <constructor name="ValueAggregatorJob"
  65883. static="false" final="false" visibility="public"
  65884. deprecated="not deprecated">
  65885. </constructor>
  65886. <method name="createValueAggregatorJobs" return="org.apache.hadoop.mapred.jobcontrol.JobControl"
  65887. abstract="false" native="false" synchronized="false"
  65888. static="true" final="false" visibility="public"
  65889. deprecated="not deprecated">
  65890. <param name="args" type="java.lang.String[]"/>
  65891. <param name="descriptors" type="java.lang.Class[]"/>
  65892. <exception name="IOException" type="java.io.IOException"/>
  65893. </method>
  65894. <method name="createValueAggregatorJobs" return="org.apache.hadoop.mapred.jobcontrol.JobControl"
  65895. abstract="false" native="false" synchronized="false"
  65896. static="true" final="false" visibility="public"
  65897. deprecated="not deprecated">
  65898. <param name="args" type="java.lang.String[]"/>
  65899. <exception name="IOException" type="java.io.IOException"/>
  65900. </method>
  65901. <method name="createValueAggregatorJob" return="org.apache.hadoop.mapred.JobConf"
  65902. abstract="false" native="false" synchronized="false"
  65903. static="true" final="false" visibility="public"
  65904. deprecated="not deprecated">
  65905. <param name="args" type="java.lang.String[]"/>
  65906. <exception name="IOException" type="java.io.IOException"/>
  65907. <doc>
  65908. <![CDATA[Create an Aggregate based map/reduce job.
  65909. @param args the arguments used for job creation. Generic hadoop
  65910. arguments are accepted.
  65911. @return a JobConf object ready for submission.
  65912. @throws IOException
  65913. @see GenericOptionsParser]]>
  65914. </doc>
  65915. </method>
  65916. <method name="createValueAggregatorJob" return="org.apache.hadoop.mapred.JobConf"
  65917. abstract="false" native="false" synchronized="false"
  65918. static="true" final="false" visibility="public"
  65919. deprecated="not deprecated">
  65920. <param name="args" type="java.lang.String[]"/>
  65921. <param name="caller" type="java.lang.Class"/>
  65922. <exception name="IOException" type="java.io.IOException"/>
  65923. <doc>
  65924. <![CDATA[Create an Aggregate based map/reduce job.
  65925. @param args the arguments used for job creation. Generic hadoop
  65926. arguments are accepted.
  65927. @param caller the the caller class.
  65928. @return a JobConf object ready for submission.
  65929. @throws IOException
  65930. @see GenericOptionsParser]]>
  65931. </doc>
  65932. </method>
  65933. <method name="createValueAggregatorJob" return="org.apache.hadoop.mapred.JobConf"
  65934. abstract="false" native="false" synchronized="false"
  65935. static="true" final="false" visibility="public"
  65936. deprecated="not deprecated">
  65937. <param name="args" type="java.lang.String[]"/>
  65938. <param name="descriptors" type="java.lang.Class[]"/>
  65939. <exception name="IOException" type="java.io.IOException"/>
  65940. </method>
  65941. <method name="createValueAggregatorJob" return="org.apache.hadoop.mapred.JobConf"
  65942. abstract="false" native="false" synchronized="false"
  65943. static="true" final="false" visibility="public"
  65944. deprecated="not deprecated">
  65945. <param name="args" type="java.lang.String[]"/>
  65946. <param name="descriptors" type="java.lang.Class[]"/>
  65947. <param name="caller" type="java.lang.Class"/>
  65948. <exception name="IOException" type="java.io.IOException"/>
  65949. </method>
  65950. <method name="setAggregatorDescriptors"
  65951. abstract="false" native="false" synchronized="false"
  65952. static="true" final="false" visibility="public"
  65953. deprecated="not deprecated">
  65954. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  65955. <param name="descriptors" type="java.lang.Class[]"/>
  65956. </method>
  65957. <method name="main"
  65958. abstract="false" native="false" synchronized="false"
  65959. static="true" final="false" visibility="public"
  65960. deprecated="not deprecated">
  65961. <param name="args" type="java.lang.String[]"/>
  65962. <exception name="IOException" type="java.io.IOException"/>
  65963. <doc>
  65964. <![CDATA[create and run an Aggregate based map/reduce job.
  65965. @param args the arguments used for job creation
  65966. @throws IOException]]>
  65967. </doc>
  65968. </method>
  65969. <doc>
  65970. <![CDATA[This is the main class for creating a map/reduce job using Aggregate
  65971. framework. The Aggregate is a specialization of map/reduce framework,
  65972. specilizing for performing various simple aggregations.
  65973. Generally speaking, in order to implement an application using Map/Reduce
  65974. model, the developer is to implement Map and Reduce functions (and possibly
  65975. combine function). However, a lot of applications related to counting and
  65976. statistics computing have very similar characteristics. Aggregate abstracts
  65977. out the general patterns of these functions and implementing those patterns.
  65978. In particular, the package provides generic mapper/redducer/combiner classes,
  65979. and a set of built-in value aggregators, and a generic utility class that
  65980. helps user create map/reduce jobs using the generic class. The built-in
  65981. aggregators include:
  65982. sum over numeric values count the number of distinct values compute the
  65983. histogram of values compute the minimum, maximum, media,average, standard
  65984. deviation of numeric values
  65985. The developer using Aggregate will need only to provide a plugin class
  65986. conforming to the following interface:
  65987. public interface ValueAggregatorDescriptor { public ArrayList<Entry>
  65988. generateKeyValPairs(Object key, Object value); public void
  65989. configure(JobConfjob); }
  65990. The package also provides a base class, ValueAggregatorBaseDescriptor,
  65991. implementing the above interface. The user can extend the base class and
  65992. implement generateKeyValPairs accordingly.
  65993. The primary work of generateKeyValPairs is to emit one or more key/value
  65994. pairs based on the input key/value pair. The key in an output key/value pair
  65995. encode two pieces of information: aggregation type and aggregation id. The
  65996. value will be aggregated onto the aggregation id according the aggregation
  65997. type.
  65998. This class offers a function to generate a map/reduce job using Aggregate
  65999. framework. The function takes the following parameters: input directory spec
  66000. input format (text or sequence file) output directory a file specifying the
  66001. user plugin class]]>
  66002. </doc>
  66003. </class>
  66004. <!-- end class org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorJob -->
  66005. <!-- start class org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorJobBase -->
  66006. <class name="ValueAggregatorJobBase" extends="java.lang.Object"
  66007. abstract="true"
  66008. static="false" final="false" visibility="public"
  66009. deprecated="not deprecated">
  66010. <implements name="org.apache.hadoop.mapred.Mapper"/>
  66011. <implements name="org.apache.hadoop.mapred.Reducer"/>
  66012. <constructor name="ValueAggregatorJobBase"
  66013. static="false" final="false" visibility="public"
  66014. deprecated="not deprecated">
  66015. </constructor>
  66016. <method name="configure"
  66017. abstract="false" native="false" synchronized="false"
  66018. static="false" final="false" visibility="public"
  66019. deprecated="not deprecated">
  66020. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  66021. </method>
  66022. <method name="logSpec"
  66023. abstract="false" native="false" synchronized="false"
  66024. static="false" final="false" visibility="protected"
  66025. deprecated="not deprecated">
  66026. </method>
  66027. <method name="close"
  66028. abstract="false" native="false" synchronized="false"
  66029. static="false" final="false" visibility="public"
  66030. deprecated="not deprecated">
  66031. <exception name="IOException" type="java.io.IOException"/>
  66032. </method>
  66033. <field name="aggregatorDescriptorList" type="java.util.ArrayList"
  66034. transient="false" volatile="false"
  66035. static="false" final="false" visibility="protected"
  66036. deprecated="not deprecated">
  66037. </field>
  66038. <doc>
  66039. <![CDATA[This abstract class implements some common functionalities of the
  66040. the generic mapper, reducer and combiner classes of Aggregate.]]>
  66041. </doc>
  66042. </class>
  66043. <!-- end class org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorJobBase -->
  66044. <!-- start class org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorMapper -->
  66045. <class name="ValueAggregatorMapper" extends="org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorJobBase"
  66046. abstract="false"
  66047. static="false" final="false" visibility="public"
  66048. deprecated="not deprecated">
  66049. <constructor name="ValueAggregatorMapper"
  66050. static="false" final="false" visibility="public"
  66051. deprecated="not deprecated">
  66052. </constructor>
  66053. <method name="map"
  66054. abstract="false" native="false" synchronized="false"
  66055. static="false" final="false" visibility="public"
  66056. deprecated="not deprecated">
  66057. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  66058. <param name="value" type="org.apache.hadoop.io.Writable"/>
  66059. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  66060. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  66061. <exception name="IOException" type="java.io.IOException"/>
  66062. <doc>
  66063. <![CDATA[the map function. It iterates through the value aggregator descriptor
  66064. list to generate aggregation id/value pairs and emit them.]]>
  66065. </doc>
  66066. </method>
  66067. <method name="reduce"
  66068. abstract="false" native="false" synchronized="false"
  66069. static="false" final="false" visibility="public"
  66070. deprecated="not deprecated">
  66071. <param name="arg0" type="org.apache.hadoop.io.Text"/>
  66072. <param name="arg1" type="java.util.Iterator"/>
  66073. <param name="arg2" type="org.apache.hadoop.mapred.OutputCollector"/>
  66074. <param name="arg3" type="org.apache.hadoop.mapred.Reporter"/>
  66075. <exception name="IOException" type="java.io.IOException"/>
  66076. <doc>
  66077. <![CDATA[Do nothing. Should not be called.]]>
  66078. </doc>
  66079. </method>
  66080. <doc>
  66081. <![CDATA[This class implements the generic mapper of Aggregate.]]>
  66082. </doc>
  66083. </class>
  66084. <!-- end class org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorMapper -->
  66085. <!-- start class org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorReducer -->
  66086. <class name="ValueAggregatorReducer" extends="org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorJobBase"
  66087. abstract="false"
  66088. static="false" final="false" visibility="public"
  66089. deprecated="not deprecated">
  66090. <constructor name="ValueAggregatorReducer"
  66091. static="false" final="false" visibility="public"
  66092. deprecated="not deprecated">
  66093. </constructor>
  66094. <method name="reduce"
  66095. abstract="false" native="false" synchronized="false"
  66096. static="false" final="false" visibility="public"
  66097. deprecated="not deprecated">
  66098. <param name="key" type="org.apache.hadoop.io.Text"/>
  66099. <param name="values" type="java.util.Iterator"/>
  66100. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  66101. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  66102. <exception name="IOException" type="java.io.IOException"/>
  66103. <doc>
  66104. <![CDATA[@param key
  66105. the key is expected to be a Text object, whose prefix indicates
  66106. the type of aggregation to aggregate the values. In effect, data
  66107. driven computing is achieved. It is assumed that each aggregator's
  66108. getReport method emits appropriate output for the aggregator. This
  66109. may be further customiized.
  66110. @value the values to be aggregated]]>
  66111. </doc>
  66112. </method>
  66113. <method name="map"
  66114. abstract="false" native="false" synchronized="false"
  66115. static="false" final="false" visibility="public"
  66116. deprecated="not deprecated">
  66117. <param name="arg0" type="org.apache.hadoop.io.WritableComparable"/>
  66118. <param name="arg1" type="org.apache.hadoop.io.Writable"/>
  66119. <param name="arg2" type="org.apache.hadoop.mapred.OutputCollector"/>
  66120. <param name="arg3" type="org.apache.hadoop.mapred.Reporter"/>
  66121. <exception name="IOException" type="java.io.IOException"/>
  66122. <doc>
  66123. <![CDATA[Do nothing. Should not be called]]>
  66124. </doc>
  66125. </method>
  66126. <doc>
  66127. <![CDATA[This class implements the generic reducer of Aggregate.]]>
  66128. </doc>
  66129. </class>
  66130. <!-- end class org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorReducer -->
  66131. <!-- start class org.apache.hadoop.mapred.lib.aggregate.ValueHistogram -->
  66132. <class name="ValueHistogram" extends="java.lang.Object"
  66133. abstract="false"
  66134. static="false" final="false" visibility="public"
  66135. deprecated="not deprecated">
  66136. <implements name="org.apache.hadoop.mapred.lib.aggregate.ValueAggregator"/>
  66137. <constructor name="ValueHistogram"
  66138. static="false" final="false" visibility="public"
  66139. deprecated="not deprecated">
  66140. </constructor>
  66141. <method name="addNextValue"
  66142. abstract="false" native="false" synchronized="false"
  66143. static="false" final="false" visibility="public"
  66144. deprecated="not deprecated">
  66145. <param name="val" type="java.lang.Object"/>
  66146. <doc>
  66147. <![CDATA[add the given val to the aggregator.
  66148. @param val the value to be added. It is expected to be a string
  66149. in the form of xxxx\tnum, meaning xxxx has num occurrences.]]>
  66150. </doc>
  66151. </method>
  66152. <method name="getReport" return="java.lang.String"
  66153. abstract="false" native="false" synchronized="false"
  66154. static="false" final="false" visibility="public"
  66155. deprecated="not deprecated">
  66156. <doc>
  66157. <![CDATA[@return the string representation of this aggregator.
  66158. It includes the following basic statistics of the histogram:
  66159. the number of unique values
  66160. the minimum value
  66161. the media value
  66162. the maximum value
  66163. the average value
  66164. the standard deviation]]>
  66165. </doc>
  66166. </method>
  66167. <method name="getReportDetails" return="java.lang.String"
  66168. abstract="false" native="false" synchronized="false"
  66169. static="false" final="false" visibility="public"
  66170. deprecated="not deprecated">
  66171. <doc>
  66172. <![CDATA[@return a string representation of the list of value/frequence pairs of
  66173. the histogram]]>
  66174. </doc>
  66175. </method>
  66176. <method name="getCombinerOutput" return="java.util.ArrayList"
  66177. abstract="false" native="false" synchronized="false"
  66178. static="false" final="false" visibility="public"
  66179. deprecated="not deprecated">
  66180. <doc>
  66181. <![CDATA[@return a list value/frequence pairs.
  66182. The return value is expected to be used by the reducer.]]>
  66183. </doc>
  66184. </method>
  66185. <method name="getReportItems" return="java.util.TreeMap"
  66186. abstract="false" native="false" synchronized="false"
  66187. static="false" final="false" visibility="public"
  66188. deprecated="not deprecated">
  66189. <doc>
  66190. <![CDATA[@return a TreeMap representation of the histogram]]>
  66191. </doc>
  66192. </method>
  66193. <method name="reset"
  66194. abstract="false" native="false" synchronized="false"
  66195. static="false" final="false" visibility="public"
  66196. deprecated="not deprecated">
  66197. <doc>
  66198. <![CDATA[reset the aggregator]]>
  66199. </doc>
  66200. </method>
  66201. <doc>
  66202. <![CDATA[This class implements a value aggregator that computes the
  66203. histogram of a sequence of strings.]]>
  66204. </doc>
  66205. </class>
  66206. <!-- end class org.apache.hadoop.mapred.lib.aggregate.ValueHistogram -->
  66207. </package>
  66208. <package name="org.apache.hadoop.mapred.lib.db">
  66209. <!-- start class org.apache.hadoop.mapred.lib.db.DBConfiguration -->
  66210. <class name="DBConfiguration" extends="java.lang.Object"
  66211. abstract="false"
  66212. static="false" final="false" visibility="public"
  66213. deprecated="not deprecated">
  66214. <method name="configureDB"
  66215. abstract="false" native="false" synchronized="false"
  66216. static="true" final="false" visibility="public"
  66217. deprecated="not deprecated">
  66218. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  66219. <param name="driverClass" type="java.lang.String"/>
  66220. <param name="dbUrl" type="java.lang.String"/>
  66221. <param name="userName" type="java.lang.String"/>
  66222. <param name="passwd" type="java.lang.String"/>
  66223. <doc>
  66224. <![CDATA[Sets the DB access related fields in the JobConf.
  66225. @param job the job
  66226. @param driverClass JDBC Driver class name
  66227. @param dbUrl JDBC DB access URL.
  66228. @param userName DB access username
  66229. @param passwd DB access passwd]]>
  66230. </doc>
  66231. </method>
  66232. <method name="configureDB"
  66233. abstract="false" native="false" synchronized="false"
  66234. static="true" final="false" visibility="public"
  66235. deprecated="not deprecated">
  66236. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  66237. <param name="driverClass" type="java.lang.String"/>
  66238. <param name="dbUrl" type="java.lang.String"/>
  66239. <doc>
  66240. <![CDATA[Sets the DB access related fields in the JobConf.
  66241. @param job the job
  66242. @param driverClass JDBC Driver class name
  66243. @param dbUrl JDBC DB access URL.]]>
  66244. </doc>
  66245. </method>
  66246. <field name="DRIVER_CLASS_PROPERTY" type="java.lang.String"
  66247. transient="false" volatile="false"
  66248. static="true" final="true" visibility="public"
  66249. deprecated="not deprecated">
  66250. <doc>
  66251. <![CDATA[The JDBC Driver class name]]>
  66252. </doc>
  66253. </field>
  66254. <field name="URL_PROPERTY" type="java.lang.String"
  66255. transient="false" volatile="false"
  66256. static="true" final="true" visibility="public"
  66257. deprecated="not deprecated">
  66258. <doc>
  66259. <![CDATA[JDBC Database access URL]]>
  66260. </doc>
  66261. </field>
  66262. <field name="USERNAME_PROPERTY" type="java.lang.String"
  66263. transient="false" volatile="false"
  66264. static="true" final="true" visibility="public"
  66265. deprecated="not deprecated">
  66266. <doc>
  66267. <![CDATA[User name to access the database]]>
  66268. </doc>
  66269. </field>
  66270. <field name="PASSWORD_PROPERTY" type="java.lang.String"
  66271. transient="false" volatile="false"
  66272. static="true" final="true" visibility="public"
  66273. deprecated="not deprecated">
  66274. <doc>
  66275. <![CDATA[Password to access the database]]>
  66276. </doc>
  66277. </field>
  66278. <field name="INPUT_TABLE_NAME_PROPERTY" type="java.lang.String"
  66279. transient="false" volatile="false"
  66280. static="true" final="true" visibility="public"
  66281. deprecated="not deprecated">
  66282. <doc>
  66283. <![CDATA[Input table name]]>
  66284. </doc>
  66285. </field>
  66286. <field name="INPUT_FIELD_NAMES_PROPERTY" type="java.lang.String"
  66287. transient="false" volatile="false"
  66288. static="true" final="true" visibility="public"
  66289. deprecated="not deprecated">
  66290. <doc>
  66291. <![CDATA[Field names in the Input table]]>
  66292. </doc>
  66293. </field>
  66294. <field name="INPUT_CONDITIONS_PROPERTY" type="java.lang.String"
  66295. transient="false" volatile="false"
  66296. static="true" final="true" visibility="public"
  66297. deprecated="not deprecated">
  66298. <doc>
  66299. <![CDATA[WHERE clause in the input SELECT statement]]>
  66300. </doc>
  66301. </field>
  66302. <field name="INPUT_ORDER_BY_PROPERTY" type="java.lang.String"
  66303. transient="false" volatile="false"
  66304. static="true" final="true" visibility="public"
  66305. deprecated="not deprecated">
  66306. <doc>
  66307. <![CDATA[ORDER BY clause in the input SELECT statement]]>
  66308. </doc>
  66309. </field>
  66310. <field name="INPUT_QUERY" type="java.lang.String"
  66311. transient="false" volatile="false"
  66312. static="true" final="true" visibility="public"
  66313. deprecated="not deprecated">
  66314. <doc>
  66315. <![CDATA[Whole input query, exluding LIMIT...OFFSET]]>
  66316. </doc>
  66317. </field>
  66318. <field name="INPUT_COUNT_QUERY" type="java.lang.String"
  66319. transient="false" volatile="false"
  66320. static="true" final="true" visibility="public"
  66321. deprecated="not deprecated">
  66322. <doc>
  66323. <![CDATA[Input query to get the count of records]]>
  66324. </doc>
  66325. </field>
  66326. <field name="INPUT_CLASS_PROPERTY" type="java.lang.String"
  66327. transient="false" volatile="false"
  66328. static="true" final="true" visibility="public"
  66329. deprecated="not deprecated">
  66330. <doc>
  66331. <![CDATA[Class name implementing DBWritable which will hold input tuples]]>
  66332. </doc>
  66333. </field>
  66334. <field name="OUTPUT_TABLE_NAME_PROPERTY" type="java.lang.String"
  66335. transient="false" volatile="false"
  66336. static="true" final="true" visibility="public"
  66337. deprecated="not deprecated">
  66338. <doc>
  66339. <![CDATA[Output table name]]>
  66340. </doc>
  66341. </field>
  66342. <field name="OUTPUT_FIELD_NAMES_PROPERTY" type="java.lang.String"
  66343. transient="false" volatile="false"
  66344. static="true" final="true" visibility="public"
  66345. deprecated="not deprecated">
  66346. <doc>
  66347. <![CDATA[Field names in the Output table]]>
  66348. </doc>
  66349. </field>
  66350. <doc>
  66351. <![CDATA[A container for configuration property names for jobs with DB input/output.
  66352. <br>
  66353. The job can be configured using the static methods in this class,
  66354. {@link DBInputFormat}, and {@link DBOutputFormat}.
  66355. <p>
  66356. Alternatively, the properties can be set in the configuration with proper
  66357. values.
  66358. @see DBConfiguration#configureDB(JobConf, String, String, String, String)
  66359. @see DBInputFormat#setInput(JobConf, Class, String, String)
  66360. @see DBInputFormat#setInput(JobConf, Class, String, String, String, String...)
  66361. @see DBOutputFormat#setOutput(JobConf, String, String...)]]>
  66362. </doc>
  66363. </class>
  66364. <!-- end class org.apache.hadoop.mapred.lib.db.DBConfiguration -->
  66365. <!-- start class org.apache.hadoop.mapred.lib.db.DBInputFormat -->
  66366. <class name="DBInputFormat" extends="java.lang.Object"
  66367. abstract="false"
  66368. static="false" final="false" visibility="public"
  66369. deprecated="not deprecated">
  66370. <implements name="org.apache.hadoop.mapred.InputFormat"/>
  66371. <implements name="org.apache.hadoop.mapred.JobConfigurable"/>
  66372. <constructor name="DBInputFormat"
  66373. static="false" final="false" visibility="public"
  66374. deprecated="not deprecated">
  66375. </constructor>
  66376. <method name="configure"
  66377. abstract="false" native="false" synchronized="false"
  66378. static="false" final="false" visibility="public"
  66379. deprecated="not deprecated">
  66380. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  66381. <doc>
  66382. <![CDATA[{@inheritDoc}]]>
  66383. </doc>
  66384. </method>
  66385. <method name="getRecordReader" return="org.apache.hadoop.mapred.RecordReader"
  66386. abstract="false" native="false" synchronized="false"
  66387. static="false" final="false" visibility="public"
  66388. deprecated="not deprecated">
  66389. <param name="split" type="org.apache.hadoop.mapred.InputSplit"/>
  66390. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  66391. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  66392. <exception name="IOException" type="java.io.IOException"/>
  66393. <doc>
  66394. <![CDATA[{@inheritDoc}]]>
  66395. </doc>
  66396. </method>
  66397. <method name="getSplits" return="org.apache.hadoop.mapred.InputSplit[]"
  66398. abstract="false" native="false" synchronized="false"
  66399. static="false" final="false" visibility="public"
  66400. deprecated="not deprecated">
  66401. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  66402. <param name="chunks" type="int"/>
  66403. <exception name="IOException" type="java.io.IOException"/>
  66404. <doc>
  66405. <![CDATA[{@inheritDoc}]]>
  66406. </doc>
  66407. </method>
  66408. <method name="getCountQuery" return="java.lang.String"
  66409. abstract="false" native="false" synchronized="false"
  66410. static="false" final="false" visibility="protected"
  66411. deprecated="not deprecated">
  66412. <doc>
  66413. <![CDATA[Returns the query for getting the total number of rows,
  66414. subclasses can override this for custom behaviour.]]>
  66415. </doc>
  66416. </method>
  66417. <method name="setInput"
  66418. abstract="false" native="false" synchronized="false"
  66419. static="true" final="false" visibility="public"
  66420. deprecated="not deprecated">
  66421. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  66422. <param name="inputClass" type="java.lang.Class"/>
  66423. <param name="tableName" type="java.lang.String"/>
  66424. <param name="conditions" type="java.lang.String"/>
  66425. <param name="orderBy" type="java.lang.String"/>
  66426. <param name="fieldNames" type="java.lang.String[]"/>
  66427. <doc>
  66428. <![CDATA[Initializes the map-part of the job with the appropriate input settings.
  66429. @param job The job
  66430. @param inputClass the class object implementing DBWritable, which is the
  66431. Java object holding tuple fields.
  66432. @param tableName The table to read data from
  66433. @param conditions The condition which to select data with, eg. '(updated >
  66434. 20070101 AND length > 0)'
  66435. @param orderBy the fieldNames in the orderBy clause.
  66436. @param fieldNames The field names in the table
  66437. @see #setInput(JobConf, Class, String, String)]]>
  66438. </doc>
  66439. </method>
  66440. <method name="setInput"
  66441. abstract="false" native="false" synchronized="false"
  66442. static="true" final="false" visibility="public"
  66443. deprecated="not deprecated">
  66444. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  66445. <param name="inputClass" type="java.lang.Class"/>
  66446. <param name="inputQuery" type="java.lang.String"/>
  66447. <param name="inputCountQuery" type="java.lang.String"/>
  66448. <doc>
  66449. <![CDATA[Initializes the map-part of the job with the appropriate input settings.
  66450. @param job The job
  66451. @param inputClass the class object implementing DBWritable, which is the
  66452. Java object holding tuple fields.
  66453. @param inputQuery the input query to select fields. Example :
  66454. "SELECT f1, f2, f3 FROM Mytable ORDER BY f1"
  66455. @param inputCountQuery the input query that returns the number of records in
  66456. the table.
  66457. Example : "SELECT COUNT(f1) FROM Mytable"
  66458. @see #setInput(JobConf, Class, String, String, String, String...)]]>
  66459. </doc>
  66460. </method>
  66461. <doc>
  66462. <![CDATA[A InputFormat that reads input data from an SQL table.
  66463. <p>
  66464. DBInputFormat emits LongWritables containing the record number as
  66465. key and DBWritables as value.
  66466. The SQL query, and input class can be using one of the two
  66467. setInput methods.]]>
  66468. </doc>
  66469. </class>
  66470. <!-- end class org.apache.hadoop.mapred.lib.db.DBInputFormat -->
  66471. <!-- start class org.apache.hadoop.mapred.lib.db.DBInputFormat.DBInputSplit -->
  66472. <class name="DBInputFormat.DBInputSplit" extends="java.lang.Object"
  66473. abstract="false"
  66474. static="true" final="false" visibility="protected"
  66475. deprecated="not deprecated">
  66476. <implements name="org.apache.hadoop.mapred.InputSplit"/>
  66477. <constructor name="DBInputFormat.DBInputSplit"
  66478. static="false" final="false" visibility="public"
  66479. deprecated="not deprecated">
  66480. <doc>
  66481. <![CDATA[Default Constructor]]>
  66482. </doc>
  66483. </constructor>
  66484. <constructor name="DBInputFormat.DBInputSplit" type="long, long"
  66485. static="false" final="false" visibility="public"
  66486. deprecated="not deprecated">
  66487. <doc>
  66488. <![CDATA[Convenience Constructor
  66489. @param start the index of the first row to select
  66490. @param end the index of the last row to select]]>
  66491. </doc>
  66492. </constructor>
  66493. <method name="getLocations" return="java.lang.String[]"
  66494. abstract="false" native="false" synchronized="false"
  66495. static="false" final="false" visibility="public"
  66496. deprecated="not deprecated">
  66497. <exception name="IOException" type="java.io.IOException"/>
  66498. <doc>
  66499. <![CDATA[{@inheritDoc}]]>
  66500. </doc>
  66501. </method>
  66502. <method name="getStart" return="long"
  66503. abstract="false" native="false" synchronized="false"
  66504. static="false" final="false" visibility="public"
  66505. deprecated="not deprecated">
  66506. <doc>
  66507. <![CDATA[@return The index of the first row to select]]>
  66508. </doc>
  66509. </method>
  66510. <method name="getEnd" return="long"
  66511. abstract="false" native="false" synchronized="false"
  66512. static="false" final="false" visibility="public"
  66513. deprecated="not deprecated">
  66514. <doc>
  66515. <![CDATA[@return The index of the last row to select]]>
  66516. </doc>
  66517. </method>
  66518. <method name="getLength" return="long"
  66519. abstract="false" native="false" synchronized="false"
  66520. static="false" final="false" visibility="public"
  66521. deprecated="not deprecated">
  66522. <exception name="IOException" type="java.io.IOException"/>
  66523. <doc>
  66524. <![CDATA[@return The total row count in this split]]>
  66525. </doc>
  66526. </method>
  66527. <method name="readFields"
  66528. abstract="false" native="false" synchronized="false"
  66529. static="false" final="false" visibility="public"
  66530. deprecated="not deprecated">
  66531. <param name="input" type="java.io.DataInput"/>
  66532. <exception name="IOException" type="java.io.IOException"/>
  66533. <doc>
  66534. <![CDATA[{@inheritDoc}]]>
  66535. </doc>
  66536. </method>
  66537. <method name="write"
  66538. abstract="false" native="false" synchronized="false"
  66539. static="false" final="false" visibility="public"
  66540. deprecated="not deprecated">
  66541. <param name="output" type="java.io.DataOutput"/>
  66542. <exception name="IOException" type="java.io.IOException"/>
  66543. <doc>
  66544. <![CDATA[{@inheritDoc}]]>
  66545. </doc>
  66546. </method>
  66547. <doc>
  66548. <![CDATA[A InputSplit that spans a set of rows]]>
  66549. </doc>
  66550. </class>
  66551. <!-- end class org.apache.hadoop.mapred.lib.db.DBInputFormat.DBInputSplit -->
  66552. <!-- start class org.apache.hadoop.mapred.lib.db.DBInputFormat.DBRecordReader -->
  66553. <class name="DBInputFormat.DBRecordReader" extends="java.lang.Object"
  66554. abstract="false"
  66555. static="false" final="false" visibility="protected"
  66556. deprecated="not deprecated">
  66557. <implements name="org.apache.hadoop.mapred.RecordReader"/>
  66558. <constructor name="DBInputFormat.DBRecordReader" type="org.apache.hadoop.mapred.lib.db.DBInputFormat.DBInputSplit, java.lang.Class, org.apache.hadoop.mapred.JobConf"
  66559. static="false" final="false" visibility="protected"
  66560. deprecated="not deprecated">
  66561. <exception name="SQLException" type="java.sql.SQLException"/>
  66562. <doc>
  66563. <![CDATA[@param split The InputSplit to read data for
  66564. @throws SQLException]]>
  66565. </doc>
  66566. </constructor>
  66567. <method name="getSelectQuery" return="java.lang.String"
  66568. abstract="false" native="false" synchronized="false"
  66569. static="false" final="false" visibility="protected"
  66570. deprecated="not deprecated">
  66571. <doc>
  66572. <![CDATA[Returns the query for selecting the records,
  66573. subclasses can override this for custom behaviour.]]>
  66574. </doc>
  66575. </method>
  66576. <method name="close"
  66577. abstract="false" native="false" synchronized="false"
  66578. static="false" final="false" visibility="public"
  66579. deprecated="not deprecated">
  66580. <exception name="IOException" type="java.io.IOException"/>
  66581. <doc>
  66582. <![CDATA[{@inheritDoc}]]>
  66583. </doc>
  66584. </method>
  66585. <method name="createKey" return="org.apache.hadoop.io.LongWritable"
  66586. abstract="false" native="false" synchronized="false"
  66587. static="false" final="false" visibility="public"
  66588. deprecated="not deprecated">
  66589. <doc>
  66590. <![CDATA[{@inheritDoc}]]>
  66591. </doc>
  66592. </method>
  66593. <method name="createValue" return="org.apache.hadoop.mapred.lib.db.DBWritable"
  66594. abstract="false" native="false" synchronized="false"
  66595. static="false" final="false" visibility="public"
  66596. deprecated="not deprecated">
  66597. <doc>
  66598. <![CDATA[{@inheritDoc}]]>
  66599. </doc>
  66600. </method>
  66601. <method name="getPos" return="long"
  66602. abstract="false" native="false" synchronized="false"
  66603. static="false" final="false" visibility="public"
  66604. deprecated="not deprecated">
  66605. <exception name="IOException" type="java.io.IOException"/>
  66606. <doc>
  66607. <![CDATA[{@inheritDoc}]]>
  66608. </doc>
  66609. </method>
  66610. <method name="getProgress" return="float"
  66611. abstract="false" native="false" synchronized="false"
  66612. static="false" final="false" visibility="public"
  66613. deprecated="not deprecated">
  66614. <exception name="IOException" type="java.io.IOException"/>
  66615. <doc>
  66616. <![CDATA[{@inheritDoc}]]>
  66617. </doc>
  66618. </method>
  66619. <method name="next" return="boolean"
  66620. abstract="false" native="false" synchronized="false"
  66621. static="false" final="false" visibility="public"
  66622. deprecated="not deprecated">
  66623. <param name="key" type="org.apache.hadoop.io.LongWritable"/>
  66624. <param name="value" type="org.apache.hadoop.mapred.lib.db.DBWritable"/>
  66625. <exception name="IOException" type="java.io.IOException"/>
  66626. <doc>
  66627. <![CDATA[{@inheritDoc}]]>
  66628. </doc>
  66629. </method>
  66630. <doc>
  66631. <![CDATA[A RecordReader that reads records from a SQL table.
  66632. Emits LongWritables containing the record number as
  66633. key and DBWritables as value.]]>
  66634. </doc>
  66635. </class>
  66636. <!-- end class org.apache.hadoop.mapred.lib.db.DBInputFormat.DBRecordReader -->
  66637. <!-- start class org.apache.hadoop.mapred.lib.db.DBInputFormat.NullDBWritable -->
  66638. <class name="DBInputFormat.NullDBWritable" extends="java.lang.Object"
  66639. abstract="false"
  66640. static="true" final="false" visibility="public"
  66641. deprecated="not deprecated">
  66642. <implements name="org.apache.hadoop.mapred.lib.db.DBWritable"/>
  66643. <implements name="org.apache.hadoop.io.Writable"/>
  66644. <constructor name="DBInputFormat.NullDBWritable"
  66645. static="false" final="false" visibility="public"
  66646. deprecated="not deprecated">
  66647. </constructor>
  66648. <method name="readFields"
  66649. abstract="false" native="false" synchronized="false"
  66650. static="false" final="false" visibility="public"
  66651. deprecated="not deprecated">
  66652. <param name="in" type="java.io.DataInput"/>
  66653. <exception name="IOException" type="java.io.IOException"/>
  66654. </method>
  66655. <method name="readFields"
  66656. abstract="false" native="false" synchronized="false"
  66657. static="false" final="false" visibility="public"
  66658. deprecated="not deprecated">
  66659. <param name="arg0" type="java.sql.ResultSet"/>
  66660. <exception name="SQLException" type="java.sql.SQLException"/>
  66661. </method>
  66662. <method name="write"
  66663. abstract="false" native="false" synchronized="false"
  66664. static="false" final="false" visibility="public"
  66665. deprecated="not deprecated">
  66666. <param name="out" type="java.io.DataOutput"/>
  66667. <exception name="IOException" type="java.io.IOException"/>
  66668. </method>
  66669. <method name="write"
  66670. abstract="false" native="false" synchronized="false"
  66671. static="false" final="false" visibility="public"
  66672. deprecated="not deprecated">
  66673. <param name="arg0" type="java.sql.PreparedStatement"/>
  66674. <exception name="SQLException" type="java.sql.SQLException"/>
  66675. </method>
  66676. <doc>
  66677. <![CDATA[A Class that does nothing, implementing DBWritable]]>
  66678. </doc>
  66679. </class>
  66680. <!-- end class org.apache.hadoop.mapred.lib.db.DBInputFormat.NullDBWritable -->
  66681. <!-- start class org.apache.hadoop.mapred.lib.db.DBOutputFormat -->
  66682. <class name="DBOutputFormat" extends="java.lang.Object"
  66683. abstract="false"
  66684. static="false" final="false" visibility="public"
  66685. deprecated="not deprecated">
  66686. <implements name="org.apache.hadoop.mapred.OutputFormat"/>
  66687. <constructor name="DBOutputFormat"
  66688. static="false" final="false" visibility="public"
  66689. deprecated="not deprecated">
  66690. </constructor>
  66691. <method name="constructQuery" return="java.lang.String"
  66692. abstract="false" native="false" synchronized="false"
  66693. static="false" final="false" visibility="protected"
  66694. deprecated="not deprecated">
  66695. <param name="table" type="java.lang.String"/>
  66696. <param name="fieldNames" type="java.lang.String[]"/>
  66697. <doc>
  66698. <![CDATA[Constructs the query used as the prepared statement to insert data.
  66699. @param table
  66700. the table to insert into
  66701. @param fieldNames
  66702. the fields to insert into. If field names are unknown, supply an
  66703. array of nulls.]]>
  66704. </doc>
  66705. </method>
  66706. <method name="checkOutputSpecs"
  66707. abstract="false" native="false" synchronized="false"
  66708. static="false" final="false" visibility="public"
  66709. deprecated="not deprecated">
  66710. <param name="filesystem" type="org.apache.hadoop.fs.FileSystem"/>
  66711. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  66712. <exception name="IOException" type="java.io.IOException"/>
  66713. <doc>
  66714. <![CDATA[{@inheritDoc}]]>
  66715. </doc>
  66716. </method>
  66717. <method name="getRecordWriter" return="org.apache.hadoop.mapred.RecordWriter"
  66718. abstract="false" native="false" synchronized="false"
  66719. static="false" final="false" visibility="public"
  66720. deprecated="not deprecated">
  66721. <param name="filesystem" type="org.apache.hadoop.fs.FileSystem"/>
  66722. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  66723. <param name="name" type="java.lang.String"/>
  66724. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  66725. <exception name="IOException" type="java.io.IOException"/>
  66726. <doc>
  66727. <![CDATA[{@inheritDoc}]]>
  66728. </doc>
  66729. </method>
  66730. <method name="setOutput"
  66731. abstract="false" native="false" synchronized="false"
  66732. static="true" final="false" visibility="public"
  66733. deprecated="not deprecated">
  66734. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  66735. <param name="tableName" type="java.lang.String"/>
  66736. <param name="fieldNames" type="java.lang.String[]"/>
  66737. <doc>
  66738. <![CDATA[Initializes the reduce-part of the job with the appropriate output settings
  66739. @param job
  66740. The job
  66741. @param tableName
  66742. The table to insert data into
  66743. @param fieldNames
  66744. The field names in the table. If unknown, supply the appropriate
  66745. number of nulls.]]>
  66746. </doc>
  66747. </method>
  66748. <doc>
  66749. <![CDATA[A OutputFormat that sends the reduce output to a SQL table.
  66750. <p>
  66751. {@link DBOutputFormat} accepts &lt;key,value&gt; pairs, where
  66752. key has a type extending DBWritable. Returned {@link RecordWriter}
  66753. writes <b>only the key</b> to the database with a batch SQL query.]]>
  66754. </doc>
  66755. </class>
  66756. <!-- end class org.apache.hadoop.mapred.lib.db.DBOutputFormat -->
  66757. <!-- start class org.apache.hadoop.mapred.lib.db.DBOutputFormat.DBRecordWriter -->
  66758. <class name="DBOutputFormat.DBRecordWriter" extends="java.lang.Object"
  66759. abstract="false"
  66760. static="false" final="false" visibility="protected"
  66761. deprecated="not deprecated">
  66762. <implements name="org.apache.hadoop.mapred.RecordWriter"/>
  66763. <constructor name="DBOutputFormat.DBRecordWriter" type="java.sql.Connection, java.sql.PreparedStatement"
  66764. static="false" final="false" visibility="protected"
  66765. deprecated="not deprecated">
  66766. <exception name="SQLException" type="java.sql.SQLException"/>
  66767. </constructor>
  66768. <method name="close"
  66769. abstract="false" native="false" synchronized="false"
  66770. static="false" final="false" visibility="public"
  66771. deprecated="not deprecated">
  66772. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  66773. <exception name="IOException" type="java.io.IOException"/>
  66774. <doc>
  66775. <![CDATA[{@inheritDoc}]]>
  66776. </doc>
  66777. </method>
  66778. <method name="write"
  66779. abstract="false" native="false" synchronized="false"
  66780. static="false" final="false" visibility="public"
  66781. deprecated="not deprecated">
  66782. <param name="key" type="org.apache.hadoop.mapred.lib.db.DBWritable"/>
  66783. <param name="value" type="java.lang.Object"/>
  66784. <exception name="IOException" type="java.io.IOException"/>
  66785. <doc>
  66786. <![CDATA[{@inheritDoc}]]>
  66787. </doc>
  66788. </method>
  66789. <doc>
  66790. <![CDATA[A RecordWriter that writes the reduce output to a SQL table]]>
  66791. </doc>
  66792. </class>
  66793. <!-- end class org.apache.hadoop.mapred.lib.db.DBOutputFormat.DBRecordWriter -->
  66794. <!-- start interface org.apache.hadoop.mapred.lib.db.DBWritable -->
  66795. <interface name="DBWritable" abstract="true"
  66796. static="false" final="false" visibility="public"
  66797. deprecated="not deprecated">
  66798. <method name="write"
  66799. abstract="false" native="false" synchronized="false"
  66800. static="false" final="false" visibility="public"
  66801. deprecated="not deprecated">
  66802. <param name="statement" type="java.sql.PreparedStatement"/>
  66803. <exception name="SQLException" type="java.sql.SQLException"/>
  66804. <doc>
  66805. <![CDATA[Sets the fields of the object in the {@link PreparedStatement}.
  66806. @param statement the statement that the fields are put into.
  66807. @throws SQLException]]>
  66808. </doc>
  66809. </method>
  66810. <method name="readFields"
  66811. abstract="false" native="false" synchronized="false"
  66812. static="false" final="false" visibility="public"
  66813. deprecated="not deprecated">
  66814. <param name="resultSet" type="java.sql.ResultSet"/>
  66815. <exception name="SQLException" type="java.sql.SQLException"/>
  66816. <doc>
  66817. <![CDATA[Reads the fields of the object from the {@link ResultSet}.
  66818. @param resultSet the {@link ResultSet} to get the fields from.
  66819. @throws SQLException]]>
  66820. </doc>
  66821. </method>
  66822. <doc>
  66823. <![CDATA[Objects that are read from/written to a database should implement
  66824. <code>DBWritable</code>. DBWritable, is similar to {@link Writable}
  66825. except that the {@link #write(PreparedStatement)} method takes a
  66826. {@link PreparedStatement}, and {@link #readFields(ResultSet)}
  66827. takes a {@link ResultSet}.
  66828. <p>
  66829. Implementations are responsible for writing the fields of the object
  66830. to PreparedStatement, and reading the fields of the object from the
  66831. ResultSet.
  66832. <p>Example:</p>
  66833. If we have the following table in the database :
  66834. <pre>
  66835. CREATE TABLE MyTable (
  66836. counter INTEGER NOT NULL,
  66837. timestamp BIGINT NOT NULL,
  66838. );
  66839. </pre>
  66840. then we can read/write the tuples from/to the table with :
  66841. <p><pre>
  66842. public class MyWritable implements Writable, DBWritable {
  66843. // Some data
  66844. private int counter;
  66845. private long timestamp;
  66846. //Writable#write() implementation
  66847. public void write(DataOutput out) throws IOException {
  66848. out.writeInt(counter);
  66849. out.writeLong(timestamp);
  66850. }
  66851. //Writable#readFields() implementation
  66852. public void readFields(DataInput in) throws IOException {
  66853. counter = in.readInt();
  66854. timestamp = in.readLong();
  66855. }
  66856. public void write(PreparedStatement statement) throws SQLException {
  66857. statement.setInt(1, counter);
  66858. statement.setLong(2, timestamp);
  66859. }
  66860. public void readFields(ResultSet resultSet) throws SQLException {
  66861. counter = resultSet.getInt(1);
  66862. timestamp = resultSet.getLong(2);
  66863. }
  66864. }
  66865. </pre></p>]]>
  66866. </doc>
  66867. </interface>
  66868. <!-- end interface org.apache.hadoop.mapred.lib.db.DBWritable -->
  66869. </package>
  66870. <package name="org.apache.hadoop.mapred.pipes">
  66871. <!-- start class org.apache.hadoop.mapred.pipes.Submitter -->
  66872. <class name="Submitter" extends="org.apache.hadoop.conf.Configured"
  66873. abstract="false"
  66874. static="false" final="false" visibility="public"
  66875. deprecated="not deprecated">
  66876. <implements name="org.apache.hadoop.util.Tool"/>
  66877. <constructor name="Submitter"
  66878. static="false" final="false" visibility="public"
  66879. deprecated="not deprecated">
  66880. </constructor>
  66881. <constructor name="Submitter" type="org.apache.hadoop.conf.Configuration"
  66882. static="false" final="false" visibility="public"
  66883. deprecated="not deprecated">
  66884. </constructor>
  66885. <method name="getExecutable" return="java.lang.String"
  66886. abstract="false" native="false" synchronized="false"
  66887. static="true" final="false" visibility="public"
  66888. deprecated="not deprecated">
  66889. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  66890. <doc>
  66891. <![CDATA[Get the URI of the application's executable.
  66892. @param conf
  66893. @return the URI where the application's executable is located]]>
  66894. </doc>
  66895. </method>
  66896. <method name="setExecutable"
  66897. abstract="false" native="false" synchronized="false"
  66898. static="true" final="false" visibility="public"
  66899. deprecated="not deprecated">
  66900. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  66901. <param name="executable" type="java.lang.String"/>
  66902. <doc>
  66903. <![CDATA[Set the URI for the application's executable. Normally this is a hdfs:
  66904. location.
  66905. @param conf
  66906. @param executable The URI of the application's executable.]]>
  66907. </doc>
  66908. </method>
  66909. <method name="setIsJavaRecordReader"
  66910. abstract="false" native="false" synchronized="false"
  66911. static="true" final="false" visibility="public"
  66912. deprecated="not deprecated">
  66913. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  66914. <param name="value" type="boolean"/>
  66915. <doc>
  66916. <![CDATA[Set whether the job is using a Java RecordReader.
  66917. @param conf the configuration to modify
  66918. @param value the new value]]>
  66919. </doc>
  66920. </method>
  66921. <method name="getIsJavaRecordReader" return="boolean"
  66922. abstract="false" native="false" synchronized="false"
  66923. static="true" final="false" visibility="public"
  66924. deprecated="not deprecated">
  66925. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  66926. <doc>
  66927. <![CDATA[Check whether the job is using a Java RecordReader
  66928. @param conf the configuration to check
  66929. @return is it a Java RecordReader?]]>
  66930. </doc>
  66931. </method>
  66932. <method name="setIsJavaMapper"
  66933. abstract="false" native="false" synchronized="false"
  66934. static="true" final="false" visibility="public"
  66935. deprecated="not deprecated">
  66936. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  66937. <param name="value" type="boolean"/>
  66938. <doc>
  66939. <![CDATA[Set whether the Mapper is written in Java.
  66940. @param conf the configuration to modify
  66941. @param value the new value]]>
  66942. </doc>
  66943. </method>
  66944. <method name="getIsJavaMapper" return="boolean"
  66945. abstract="false" native="false" synchronized="false"
  66946. static="true" final="false" visibility="public"
  66947. deprecated="not deprecated">
  66948. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  66949. <doc>
  66950. <![CDATA[Check whether the job is using a Java Mapper.
  66951. @param conf the configuration to check
  66952. @return is it a Java Mapper?]]>
  66953. </doc>
  66954. </method>
  66955. <method name="setIsJavaReducer"
  66956. abstract="false" native="false" synchronized="false"
  66957. static="true" final="false" visibility="public"
  66958. deprecated="not deprecated">
  66959. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  66960. <param name="value" type="boolean"/>
  66961. <doc>
  66962. <![CDATA[Set whether the Reducer is written in Java.
  66963. @param conf the configuration to modify
  66964. @param value the new value]]>
  66965. </doc>
  66966. </method>
  66967. <method name="getIsJavaReducer" return="boolean"
  66968. abstract="false" native="false" synchronized="false"
  66969. static="true" final="false" visibility="public"
  66970. deprecated="not deprecated">
  66971. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  66972. <doc>
  66973. <![CDATA[Check whether the job is using a Java Reducer.
  66974. @param conf the configuration to check
  66975. @return is it a Java Reducer?]]>
  66976. </doc>
  66977. </method>
  66978. <method name="setIsJavaRecordWriter"
  66979. abstract="false" native="false" synchronized="false"
  66980. static="true" final="false" visibility="public"
  66981. deprecated="not deprecated">
  66982. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  66983. <param name="value" type="boolean"/>
  66984. <doc>
  66985. <![CDATA[Set whether the job will use a Java RecordWriter.
  66986. @param conf the configuration to modify
  66987. @param value the new value to set]]>
  66988. </doc>
  66989. </method>
  66990. <method name="getIsJavaRecordWriter" return="boolean"
  66991. abstract="false" native="false" synchronized="false"
  66992. static="true" final="false" visibility="public"
  66993. deprecated="not deprecated">
  66994. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  66995. <doc>
  66996. <![CDATA[Will the reduce use a Java RecordWriter?
  66997. @param conf the configuration to check
  66998. @return true, if the output of the job will be written by Java]]>
  66999. </doc>
  67000. </method>
  67001. <method name="getKeepCommandFile" return="boolean"
  67002. abstract="false" native="false" synchronized="false"
  67003. static="true" final="false" visibility="public"
  67004. deprecated="not deprecated">
  67005. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  67006. <doc>
  67007. <![CDATA[Does the user want to keep the command file for debugging? If this is
  67008. true, pipes will write a copy of the command data to a file in the
  67009. task directory named "downlink.data", which may be used to run the C++
  67010. program under the debugger. You probably also want to set
  67011. JobConf.setKeepFailedTaskFiles(true) to keep the entire directory from
  67012. being deleted.
  67013. To run using the data file, set the environment variable
  67014. "hadoop.pipes.command.file" to point to the file.
  67015. @param conf the configuration to check
  67016. @return will the framework save the command file?]]>
  67017. </doc>
  67018. </method>
  67019. <method name="setKeepCommandFile"
  67020. abstract="false" native="false" synchronized="false"
  67021. static="true" final="false" visibility="public"
  67022. deprecated="not deprecated">
  67023. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  67024. <param name="keep" type="boolean"/>
  67025. <doc>
  67026. <![CDATA[Set whether to keep the command file for debugging
  67027. @param conf the configuration to modify
  67028. @param keep the new value]]>
  67029. </doc>
  67030. </method>
  67031. <method name="submitJob" return="org.apache.hadoop.mapred.RunningJob"
  67032. abstract="false" native="false" synchronized="false"
  67033. static="true" final="false" visibility="public"
  67034. deprecated="Use {@link Submitter#runJob(JobConf)}">
  67035. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  67036. <exception name="IOException" type="java.io.IOException"/>
  67037. <doc>
  67038. <![CDATA[Submit a job to the map/reduce cluster. All of the necessary modifications
  67039. to the job to run under pipes are made to the configuration.
  67040. @param conf the job to submit to the cluster (MODIFIED)
  67041. @throws IOException
  67042. @deprecated Use {@link Submitter#runJob(JobConf)}]]>
  67043. </doc>
  67044. </method>
  67045. <method name="runJob" return="org.apache.hadoop.mapred.RunningJob"
  67046. abstract="false" native="false" synchronized="false"
  67047. static="true" final="false" visibility="public"
  67048. deprecated="not deprecated">
  67049. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  67050. <exception name="IOException" type="java.io.IOException"/>
  67051. <doc>
  67052. <![CDATA[Submit a job to the map/reduce cluster. All of the necessary modifications
  67053. to the job to run under pipes are made to the configuration.
  67054. @param conf the job to submit to the cluster (MODIFIED)
  67055. @throws IOException]]>
  67056. </doc>
  67057. </method>
  67058. <method name="jobSubmit" return="org.apache.hadoop.mapred.RunningJob"
  67059. abstract="false" native="false" synchronized="false"
  67060. static="true" final="false" visibility="public"
  67061. deprecated="not deprecated">
  67062. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  67063. <exception name="IOException" type="java.io.IOException"/>
  67064. <doc>
  67065. <![CDATA[Submit a job to the Map-Reduce framework.
  67066. This returns a handle to the {@link RunningJob} which can be used to track
  67067. the running-job.
  67068. @param conf the job configuration.
  67069. @return a handle to the {@link RunningJob} which can be used to track the
  67070. running-job.
  67071. @throws IOException]]>
  67072. </doc>
  67073. </method>
  67074. <method name="run" return="int"
  67075. abstract="false" native="false" synchronized="false"
  67076. static="false" final="false" visibility="public"
  67077. deprecated="not deprecated">
  67078. <param name="args" type="java.lang.String[]"/>
  67079. <exception name="Exception" type="java.lang.Exception"/>
  67080. </method>
  67081. <method name="main"
  67082. abstract="false" native="false" synchronized="false"
  67083. static="true" final="false" visibility="public"
  67084. deprecated="not deprecated">
  67085. <param name="args" type="java.lang.String[]"/>
  67086. <exception name="Exception" type="java.lang.Exception"/>
  67087. <doc>
  67088. <![CDATA[Submit a pipes job based on the command line arguments.
  67089. @param args]]>
  67090. </doc>
  67091. </method>
  67092. <field name="LOG" type="org.apache.commons.logging.Log"
  67093. transient="false" volatile="false"
  67094. static="true" final="true" visibility="protected"
  67095. deprecated="not deprecated">
  67096. </field>
  67097. <doc>
  67098. <![CDATA[The main entry point and job submitter. It may either be used as a command
  67099. line-based or API-based method to launch Pipes jobs.]]>
  67100. </doc>
  67101. </class>
  67102. <!-- end class org.apache.hadoop.mapred.pipes.Submitter -->
  67103. </package>
  67104. <package name="org.apache.hadoop.mapred.tools">
  67105. <!-- start class org.apache.hadoop.mapred.tools.MRAdmin -->
  67106. <class name="MRAdmin" extends="org.apache.hadoop.conf.Configured"
  67107. abstract="false"
  67108. static="false" final="false" visibility="public"
  67109. deprecated="not deprecated">
  67110. <implements name="org.apache.hadoop.util.Tool"/>
  67111. <constructor name="MRAdmin"
  67112. static="false" final="false" visibility="public"
  67113. deprecated="not deprecated">
  67114. </constructor>
  67115. <constructor name="MRAdmin" type="org.apache.hadoop.conf.Configuration"
  67116. static="false" final="false" visibility="public"
  67117. deprecated="not deprecated">
  67118. </constructor>
  67119. <method name="refreshSuperUserGroupsConfiguration" return="int"
  67120. abstract="false" native="false" synchronized="false"
  67121. static="false" final="false" visibility="public"
  67122. deprecated="not deprecated">
  67123. <exception name="IOException" type="java.io.IOException"/>
  67124. <doc>
  67125. <![CDATA[refreshSuperUserGroupsConfiguration {@link JobTracker}.
  67126. @return exitcode 0 on success, non-zero on failure
  67127. @throws IOException]]>
  67128. </doc>
  67129. </method>
  67130. <method name="run" return="int"
  67131. abstract="false" native="false" synchronized="false"
  67132. static="false" final="false" visibility="public"
  67133. deprecated="not deprecated">
  67134. <param name="args" type="java.lang.String[]"/>
  67135. <exception name="Exception" type="java.lang.Exception"/>
  67136. </method>
  67137. <method name="main"
  67138. abstract="false" native="false" synchronized="false"
  67139. static="true" final="false" visibility="public"
  67140. deprecated="not deprecated">
  67141. <param name="args" type="java.lang.String[]"/>
  67142. <exception name="Exception" type="java.lang.Exception"/>
  67143. </method>
  67144. <doc>
  67145. <![CDATA[Administrative access to Hadoop Map-Reduce.
  67146. Currently it only provides the ability to connect to the {@link JobTracker}
  67147. and 1) refresh the service-level authorization policy, 2) refresh queue acl
  67148. properties.]]>
  67149. </doc>
  67150. </class>
  67151. <!-- end class org.apache.hadoop.mapred.tools.MRAdmin -->
  67152. </package>
  67153. <package name="org.apache.hadoop.mapreduce">
  67154. <!-- start class org.apache.hadoop.mapreduce.ClusterMetrics -->
  67155. <class name="ClusterMetrics" extends="java.lang.Object"
  67156. abstract="false"
  67157. static="false" final="false" visibility="public"
  67158. deprecated="not deprecated">
  67159. <implements name="org.apache.hadoop.io.Writable"/>
  67160. <constructor name="ClusterMetrics"
  67161. static="false" final="false" visibility="public"
  67162. deprecated="not deprecated">
  67163. </constructor>
  67164. <constructor name="ClusterMetrics" type="int, int, int, int, int, int, int, int, int, int, int, int, int"
  67165. static="false" final="false" visibility="public"
  67166. deprecated="not deprecated">
  67167. </constructor>
  67168. <method name="getRunningMaps" return="int"
  67169. abstract="false" native="false" synchronized="false"
  67170. static="false" final="false" visibility="public"
  67171. deprecated="not deprecated">
  67172. <doc>
  67173. <![CDATA[Get the number of running map tasks in the cluster.
  67174. @return running maps]]>
  67175. </doc>
  67176. </method>
  67177. <method name="getRunningReduces" return="int"
  67178. abstract="false" native="false" synchronized="false"
  67179. static="false" final="false" visibility="public"
  67180. deprecated="not deprecated">
  67181. <doc>
  67182. <![CDATA[Get the number of running reduce tasks in the cluster.
  67183. @return running reduces]]>
  67184. </doc>
  67185. </method>
  67186. <method name="getOccupiedMapSlots" return="int"
  67187. abstract="false" native="false" synchronized="false"
  67188. static="false" final="false" visibility="public"
  67189. deprecated="not deprecated">
  67190. <doc>
  67191. <![CDATA[Get number of occupied map slots in the cluster.
  67192. @return occupied map slot count]]>
  67193. </doc>
  67194. </method>
  67195. <method name="getOccupiedReduceSlots" return="int"
  67196. abstract="false" native="false" synchronized="false"
  67197. static="false" final="false" visibility="public"
  67198. deprecated="not deprecated">
  67199. <doc>
  67200. <![CDATA[Get the number of occupied reduce slots in the cluster.
  67201. @return occupied reduce slot count]]>
  67202. </doc>
  67203. </method>
  67204. <method name="getReservedMapSlots" return="int"
  67205. abstract="false" native="false" synchronized="false"
  67206. static="false" final="false" visibility="public"
  67207. deprecated="not deprecated">
  67208. <doc>
  67209. <![CDATA[Get number of reserved map slots in the cluster.
  67210. @return reserved map slot count]]>
  67211. </doc>
  67212. </method>
  67213. <method name="getReservedReduceSlots" return="int"
  67214. abstract="false" native="false" synchronized="false"
  67215. static="false" final="false" visibility="public"
  67216. deprecated="not deprecated">
  67217. <doc>
  67218. <![CDATA[Get the number of reserved reduce slots in the cluster.
  67219. @return reserved reduce slot count]]>
  67220. </doc>
  67221. </method>
  67222. <method name="getMapSlotCapacity" return="int"
  67223. abstract="false" native="false" synchronized="false"
  67224. static="false" final="false" visibility="public"
  67225. deprecated="not deprecated">
  67226. <doc>
  67227. <![CDATA[Get the total number of map slots in the cluster.
  67228. @return map slot capacity]]>
  67229. </doc>
  67230. </method>
  67231. <method name="getReduceSlotCapacity" return="int"
  67232. abstract="false" native="false" synchronized="false"
  67233. static="false" final="false" visibility="public"
  67234. deprecated="not deprecated">
  67235. <doc>
  67236. <![CDATA[Get the total number of reduce slots in the cluster.
  67237. @return reduce slot capacity]]>
  67238. </doc>
  67239. </method>
  67240. <method name="getTotalJobSubmissions" return="int"
  67241. abstract="false" native="false" synchronized="false"
  67242. static="false" final="false" visibility="public"
  67243. deprecated="not deprecated">
  67244. <doc>
  67245. <![CDATA[Get the total number of job submissions in the cluster.
  67246. @return total number of job submissions]]>
  67247. </doc>
  67248. </method>
  67249. <method name="getTaskTrackerCount" return="int"
  67250. abstract="false" native="false" synchronized="false"
  67251. static="false" final="false" visibility="public"
  67252. deprecated="not deprecated">
  67253. <doc>
  67254. <![CDATA[Get the number of active trackers in the cluster.
  67255. @return active tracker count.]]>
  67256. </doc>
  67257. </method>
  67258. <method name="getBlackListedTaskTrackerCount" return="int"
  67259. abstract="false" native="false" synchronized="false"
  67260. static="false" final="false" visibility="public"
  67261. deprecated="not deprecated">
  67262. <doc>
  67263. <![CDATA[Get the number of blacklisted trackers in the cluster.
  67264. @return blacklisted tracker count]]>
  67265. </doc>
  67266. </method>
  67267. <method name="getGrayListedTaskTrackerCount" return="int"
  67268. abstract="false" native="false" synchronized="false"
  67269. static="false" final="false" visibility="public"
  67270. deprecated="not deprecated">
  67271. <doc>
  67272. <![CDATA[Get the number of graylisted trackers in the cluster.
  67273. @return graylisted tracker count]]>
  67274. </doc>
  67275. </method>
  67276. <method name="getDecommissionedTaskTrackerCount" return="int"
  67277. abstract="false" native="false" synchronized="false"
  67278. static="false" final="false" visibility="public"
  67279. deprecated="not deprecated">
  67280. <doc>
  67281. <![CDATA[Get the number of decommissioned trackers in the cluster.
  67282. @return decommissioned tracker count]]>
  67283. </doc>
  67284. </method>
  67285. <method name="readFields"
  67286. abstract="false" native="false" synchronized="false"
  67287. static="false" final="false" visibility="public"
  67288. deprecated="not deprecated">
  67289. <param name="in" type="java.io.DataInput"/>
  67290. <exception name="IOException" type="java.io.IOException"/>
  67291. </method>
  67292. <method name="write"
  67293. abstract="false" native="false" synchronized="false"
  67294. static="false" final="false" visibility="public"
  67295. deprecated="not deprecated">
  67296. <param name="out" type="java.io.DataOutput"/>
  67297. <exception name="IOException" type="java.io.IOException"/>
  67298. </method>
  67299. <doc>
  67300. <![CDATA[Status information on the current state of the Map-Reduce cluster.
  67301. <p><code>ClusterMetrics</code> provides clients with information such as:
  67302. <ol>
  67303. <li>
  67304. Size of the cluster.
  67305. </li>
  67306. <li>
  67307. Number of blacklisted and decommissioned trackers.
  67308. </li>
  67309. <li>
  67310. Slot capacity of the cluster.
  67311. </li>
  67312. <li>
  67313. The number of currently occupied/reserved map & reduce slots.
  67314. </li>
  67315. <li>
  67316. The number of currently running map & reduce tasks.
  67317. </li>
  67318. <li>
  67319. The number of job submissions.
  67320. </li>
  67321. </ol></p>]]>
  67322. </doc>
  67323. </class>
  67324. <!-- end class org.apache.hadoop.mapreduce.ClusterMetrics -->
  67325. <!-- start class org.apache.hadoop.mapreduce.Counter -->
  67326. <class name="Counter" extends="java.lang.Object"
  67327. abstract="false"
  67328. static="false" final="false" visibility="public"
  67329. deprecated="not deprecated">
  67330. <implements name="org.apache.hadoop.io.Writable"/>
  67331. <constructor name="Counter"
  67332. static="false" final="false" visibility="protected"
  67333. deprecated="not deprecated">
  67334. </constructor>
  67335. <constructor name="Counter" type="java.lang.String, java.lang.String"
  67336. static="false" final="false" visibility="protected"
  67337. deprecated="not deprecated">
  67338. </constructor>
  67339. <method name="setDisplayName"
  67340. abstract="false" native="false" synchronized="true"
  67341. static="false" final="false" visibility="protected"
  67342. deprecated="not deprecated">
  67343. <param name="displayName" type="java.lang.String"/>
  67344. </method>
  67345. <method name="readFields"
  67346. abstract="false" native="false" synchronized="true"
  67347. static="false" final="false" visibility="public"
  67348. deprecated="not deprecated">
  67349. <param name="in" type="java.io.DataInput"/>
  67350. <exception name="IOException" type="java.io.IOException"/>
  67351. <doc>
  67352. <![CDATA[Read the binary representation of the counter]]>
  67353. </doc>
  67354. </method>
  67355. <method name="write"
  67356. abstract="false" native="false" synchronized="true"
  67357. static="false" final="false" visibility="public"
  67358. deprecated="not deprecated">
  67359. <param name="out" type="java.io.DataOutput"/>
  67360. <exception name="IOException" type="java.io.IOException"/>
  67361. <doc>
  67362. <![CDATA[Write the binary representation of the counter]]>
  67363. </doc>
  67364. </method>
  67365. <method name="getName" return="java.lang.String"
  67366. abstract="false" native="false" synchronized="true"
  67367. static="false" final="false" visibility="public"
  67368. deprecated="not deprecated">
  67369. </method>
  67370. <method name="getDisplayName" return="java.lang.String"
  67371. abstract="false" native="false" synchronized="true"
  67372. static="false" final="false" visibility="public"
  67373. deprecated="not deprecated">
  67374. <doc>
  67375. <![CDATA[Get the name of the counter.
  67376. @return the user facing name of the counter]]>
  67377. </doc>
  67378. </method>
  67379. <method name="getValue" return="long"
  67380. abstract="false" native="false" synchronized="true"
  67381. static="false" final="false" visibility="public"
  67382. deprecated="not deprecated">
  67383. <doc>
  67384. <![CDATA[What is the current value of this counter?
  67385. @return the current value]]>
  67386. </doc>
  67387. </method>
  67388. <method name="setValue"
  67389. abstract="false" native="false" synchronized="true"
  67390. static="false" final="false" visibility="public"
  67391. deprecated="not deprecated">
  67392. <param name="value" type="long"/>
  67393. <doc>
  67394. <![CDATA[Set this counter by the given value
  67395. @param value the value to set]]>
  67396. </doc>
  67397. </method>
  67398. <method name="increment"
  67399. abstract="false" native="false" synchronized="true"
  67400. static="false" final="false" visibility="public"
  67401. deprecated="not deprecated">
  67402. <param name="incr" type="long"/>
  67403. <doc>
  67404. <![CDATA[Increment this counter by the given value
  67405. @param incr the value to increase this counter by]]>
  67406. </doc>
  67407. </method>
  67408. <method name="equals" return="boolean"
  67409. abstract="false" native="false" synchronized="true"
  67410. static="false" final="false" visibility="public"
  67411. deprecated="not deprecated">
  67412. <param name="genericRight" type="java.lang.Object"/>
  67413. </method>
  67414. <method name="hashCode" return="int"
  67415. abstract="false" native="false" synchronized="true"
  67416. static="false" final="false" visibility="public"
  67417. deprecated="not deprecated">
  67418. </method>
  67419. <doc>
  67420. <![CDATA[A named counter that tracks the progress of a map/reduce job.
  67421. <p><code>Counters</code> represent global counters, defined either by the
  67422. Map-Reduce framework or applications. Each <code>Counter</code> is named by
  67423. an {@link Enum} and has a long for the value.</p>
  67424. <p><code>Counters</code> are bunched into Groups, each comprising of
  67425. counters from a particular <code>Enum</code> class.]]>
  67426. </doc>
  67427. </class>
  67428. <!-- end class org.apache.hadoop.mapreduce.Counter -->
  67429. <!-- start class org.apache.hadoop.mapreduce.CounterGroup -->
  67430. <class name="CounterGroup" extends="java.lang.Object"
  67431. abstract="false"
  67432. static="false" final="false" visibility="public"
  67433. deprecated="not deprecated">
  67434. <implements name="org.apache.hadoop.io.Writable"/>
  67435. <implements name="java.lang.Iterable"/>
  67436. <constructor name="CounterGroup" type="java.lang.String"
  67437. static="false" final="false" visibility="protected"
  67438. deprecated="not deprecated">
  67439. </constructor>
  67440. <constructor name="CounterGroup" type="java.lang.String, java.lang.String"
  67441. static="false" final="false" visibility="protected"
  67442. deprecated="not deprecated">
  67443. </constructor>
  67444. <method name="getResourceBundle" return="java.util.ResourceBundle"
  67445. abstract="false" native="false" synchronized="false"
  67446. static="true" final="false" visibility="public"
  67447. deprecated="not deprecated">
  67448. <param name="enumClassName" type="java.lang.String"/>
  67449. <exception name="MissingResourceException" type="java.util.MissingResourceException"/>
  67450. <doc>
  67451. <![CDATA[Returns the specified resource bundle, or throws an exception.
  67452. @throws MissingResourceException if the bundle isn't found]]>
  67453. </doc>
  67454. </method>
  67455. <method name="getName" return="java.lang.String"
  67456. abstract="false" native="false" synchronized="true"
  67457. static="false" final="false" visibility="public"
  67458. deprecated="not deprecated">
  67459. <doc>
  67460. <![CDATA[Get the internal name of the group
  67461. @return the internal name]]>
  67462. </doc>
  67463. </method>
  67464. <method name="getDisplayName" return="java.lang.String"
  67465. abstract="false" native="false" synchronized="true"
  67466. static="false" final="false" visibility="public"
  67467. deprecated="not deprecated">
  67468. <doc>
  67469. <![CDATA[Get the display name of the group.
  67470. @return the human readable name]]>
  67471. </doc>
  67472. </method>
  67473. <method name="findCounter" return="org.apache.hadoop.mapreduce.Counter"
  67474. abstract="false" native="false" synchronized="false"
  67475. static="false" final="false" visibility="protected"
  67476. deprecated="not deprecated">
  67477. <param name="counterName" type="java.lang.String"/>
  67478. <param name="displayName" type="java.lang.String"/>
  67479. <doc>
  67480. <![CDATA[Internal to find a counter in a group.
  67481. @param counterName the name of the counter
  67482. @param displayName the display name of the counter
  67483. @return the counter that was found or added]]>
  67484. </doc>
  67485. </method>
  67486. <method name="findCounter" return="org.apache.hadoop.mapreduce.Counter"
  67487. abstract="false" native="false" synchronized="true"
  67488. static="false" final="false" visibility="public"
  67489. deprecated="not deprecated">
  67490. <param name="counterName" type="java.lang.String"/>
  67491. </method>
  67492. <method name="iterator" return="java.util.Iterator"
  67493. abstract="false" native="false" synchronized="true"
  67494. static="false" final="false" visibility="public"
  67495. deprecated="not deprecated">
  67496. </method>
  67497. <method name="write"
  67498. abstract="false" native="false" synchronized="true"
  67499. static="false" final="false" visibility="public"
  67500. deprecated="not deprecated">
  67501. <param name="out" type="java.io.DataOutput"/>
  67502. <exception name="IOException" type="java.io.IOException"/>
  67503. </method>
  67504. <method name="readFields"
  67505. abstract="false" native="false" synchronized="true"
  67506. static="false" final="false" visibility="public"
  67507. deprecated="not deprecated">
  67508. <param name="in" type="java.io.DataInput"/>
  67509. <exception name="IOException" type="java.io.IOException"/>
  67510. </method>
  67511. <method name="size" return="int"
  67512. abstract="false" native="false" synchronized="true"
  67513. static="false" final="false" visibility="public"
  67514. deprecated="not deprecated">
  67515. <doc>
  67516. <![CDATA[Returns the number of counters in this group.]]>
  67517. </doc>
  67518. </method>
  67519. <method name="equals" return="boolean"
  67520. abstract="false" native="false" synchronized="true"
  67521. static="false" final="false" visibility="public"
  67522. deprecated="not deprecated">
  67523. <param name="genericRight" type="java.lang.Object"/>
  67524. </method>
  67525. <method name="hashCode" return="int"
  67526. abstract="false" native="false" synchronized="true"
  67527. static="false" final="false" visibility="public"
  67528. deprecated="not deprecated">
  67529. </method>
  67530. <method name="incrAllCounters"
  67531. abstract="false" native="false" synchronized="true"
  67532. static="false" final="false" visibility="public"
  67533. deprecated="not deprecated">
  67534. <param name="rightGroup" type="org.apache.hadoop.mapreduce.CounterGroup"/>
  67535. </method>
  67536. <doc>
  67537. <![CDATA[A group of {@link Counter}s that logically belong together. Typically,
  67538. it is an {@link Enum} subclass and the counters are the values.]]>
  67539. </doc>
  67540. </class>
  67541. <!-- end class org.apache.hadoop.mapreduce.CounterGroup -->
  67542. <!-- start class org.apache.hadoop.mapreduce.Counters -->
  67543. <class name="Counters" extends="java.lang.Object"
  67544. abstract="false"
  67545. static="false" final="false" visibility="public"
  67546. deprecated="not deprecated">
  67547. <implements name="org.apache.hadoop.io.Writable"/>
  67548. <implements name="java.lang.Iterable"/>
  67549. <constructor name="Counters"
  67550. static="false" final="false" visibility="public"
  67551. deprecated="not deprecated">
  67552. </constructor>
  67553. <constructor name="Counters" type="org.apache.hadoop.mapred.Counters"
  67554. static="false" final="false" visibility="public"
  67555. deprecated="not deprecated">
  67556. </constructor>
  67557. <method name="findCounter" return="org.apache.hadoop.mapreduce.Counter"
  67558. abstract="false" native="false" synchronized="false"
  67559. static="false" final="false" visibility="public"
  67560. deprecated="not deprecated">
  67561. <param name="groupName" type="java.lang.String"/>
  67562. <param name="counterName" type="java.lang.String"/>
  67563. </method>
  67564. <method name="findCounter" return="org.apache.hadoop.mapreduce.Counter"
  67565. abstract="false" native="false" synchronized="true"
  67566. static="false" final="false" visibility="public"
  67567. deprecated="not deprecated">
  67568. <param name="key" type="java.lang.Enum"/>
  67569. <doc>
  67570. <![CDATA[Find the counter for the given enum. The same enum will always return the
  67571. same counter.
  67572. @param key the counter key
  67573. @return the matching counter object]]>
  67574. </doc>
  67575. </method>
  67576. <method name="getGroupNames" return="java.util.Collection"
  67577. abstract="false" native="false" synchronized="true"
  67578. static="false" final="false" visibility="public"
  67579. deprecated="not deprecated">
  67580. <doc>
  67581. <![CDATA[Returns the names of all counter classes.
  67582. @return Set of counter names.]]>
  67583. </doc>
  67584. </method>
  67585. <method name="iterator" return="java.util.Iterator"
  67586. abstract="false" native="false" synchronized="false"
  67587. static="false" final="false" visibility="public"
  67588. deprecated="not deprecated">
  67589. </method>
  67590. <method name="getGroup" return="org.apache.hadoop.mapreduce.CounterGroup"
  67591. abstract="false" native="false" synchronized="true"
  67592. static="false" final="false" visibility="public"
  67593. deprecated="not deprecated">
  67594. <param name="groupName" type="java.lang.String"/>
  67595. <doc>
  67596. <![CDATA[Returns the named counter group, or an empty group if there is none
  67597. with the specified name.]]>
  67598. </doc>
  67599. </method>
  67600. <method name="countCounters" return="int"
  67601. abstract="false" native="false" synchronized="true"
  67602. static="false" final="false" visibility="public"
  67603. deprecated="not deprecated">
  67604. <doc>
  67605. <![CDATA[Returns the total number of counters, by summing the number of counters
  67606. in each group.]]>
  67607. </doc>
  67608. </method>
  67609. <method name="write"
  67610. abstract="false" native="false" synchronized="true"
  67611. static="false" final="false" visibility="public"
  67612. deprecated="not deprecated">
  67613. <param name="out" type="java.io.DataOutput"/>
  67614. <exception name="IOException" type="java.io.IOException"/>
  67615. <doc>
  67616. <![CDATA[Write the set of groups.
  67617. The external format is:
  67618. #groups (groupName group)*
  67619. i.e. the number of groups followed by 0 or more groups, where each
  67620. group is of the form:
  67621. groupDisplayName #counters (false | true counter)*
  67622. where each counter is of the form:
  67623. name (false | true displayName) value]]>
  67624. </doc>
  67625. </method>
  67626. <method name="readFields"
  67627. abstract="false" native="false" synchronized="true"
  67628. static="false" final="false" visibility="public"
  67629. deprecated="not deprecated">
  67630. <param name="in" type="java.io.DataInput"/>
  67631. <exception name="IOException" type="java.io.IOException"/>
  67632. <doc>
  67633. <![CDATA[Read a set of groups.]]>
  67634. </doc>
  67635. </method>
  67636. <method name="toString" return="java.lang.String"
  67637. abstract="false" native="false" synchronized="true"
  67638. static="false" final="false" visibility="public"
  67639. deprecated="not deprecated">
  67640. <doc>
  67641. <![CDATA[Return textual representation of the counter values.]]>
  67642. </doc>
  67643. </method>
  67644. <method name="incrAllCounters"
  67645. abstract="false" native="false" synchronized="true"
  67646. static="false" final="false" visibility="public"
  67647. deprecated="not deprecated">
  67648. <param name="other" type="org.apache.hadoop.mapreduce.Counters"/>
  67649. <doc>
  67650. <![CDATA[Increments multiple counters by their amounts in another Counters
  67651. instance.
  67652. @param other the other Counters instance]]>
  67653. </doc>
  67654. </method>
  67655. <method name="equals" return="boolean"
  67656. abstract="false" native="false" synchronized="false"
  67657. static="false" final="false" visibility="public"
  67658. deprecated="not deprecated">
  67659. <param name="genericRight" type="java.lang.Object"/>
  67660. </method>
  67661. <method name="hashCode" return="int"
  67662. abstract="false" native="false" synchronized="false"
  67663. static="false" final="false" visibility="public"
  67664. deprecated="not deprecated">
  67665. </method>
  67666. </class>
  67667. <!-- end class org.apache.hadoop.mapreduce.Counters -->
  67668. <!-- start class org.apache.hadoop.mapreduce.ID -->
  67669. <class name="ID" extends="java.lang.Object"
  67670. abstract="true"
  67671. static="false" final="false" visibility="public"
  67672. deprecated="not deprecated">
  67673. <implements name="org.apache.hadoop.io.WritableComparable"/>
  67674. <constructor name="ID" type="int"
  67675. static="false" final="false" visibility="public"
  67676. deprecated="not deprecated">
  67677. <doc>
  67678. <![CDATA[constructs an ID object from the given int]]>
  67679. </doc>
  67680. </constructor>
  67681. <constructor name="ID"
  67682. static="false" final="false" visibility="protected"
  67683. deprecated="not deprecated">
  67684. </constructor>
  67685. <method name="getId" return="int"
  67686. abstract="false" native="false" synchronized="false"
  67687. static="false" final="false" visibility="public"
  67688. deprecated="not deprecated">
  67689. <doc>
  67690. <![CDATA[returns the int which represents the identifier]]>
  67691. </doc>
  67692. </method>
  67693. <method name="toString" return="java.lang.String"
  67694. abstract="false" native="false" synchronized="false"
  67695. static="false" final="false" visibility="public"
  67696. deprecated="not deprecated">
  67697. </method>
  67698. <method name="hashCode" return="int"
  67699. abstract="false" native="false" synchronized="false"
  67700. static="false" final="false" visibility="public"
  67701. deprecated="not deprecated">
  67702. </method>
  67703. <method name="equals" return="boolean"
  67704. abstract="false" native="false" synchronized="false"
  67705. static="false" final="false" visibility="public"
  67706. deprecated="not deprecated">
  67707. <param name="o" type="java.lang.Object"/>
  67708. </method>
  67709. <method name="compareTo" return="int"
  67710. abstract="false" native="false" synchronized="false"
  67711. static="false" final="false" visibility="public"
  67712. deprecated="not deprecated">
  67713. <param name="that" type="org.apache.hadoop.mapreduce.ID"/>
  67714. <doc>
  67715. <![CDATA[Compare IDs by associated numbers]]>
  67716. </doc>
  67717. </method>
  67718. <method name="readFields"
  67719. abstract="false" native="false" synchronized="false"
  67720. static="false" final="false" visibility="public"
  67721. deprecated="not deprecated">
  67722. <param name="in" type="java.io.DataInput"/>
  67723. <exception name="IOException" type="java.io.IOException"/>
  67724. </method>
  67725. <method name="write"
  67726. abstract="false" native="false" synchronized="false"
  67727. static="false" final="false" visibility="public"
  67728. deprecated="not deprecated">
  67729. <param name="out" type="java.io.DataOutput"/>
  67730. <exception name="IOException" type="java.io.IOException"/>
  67731. </method>
  67732. <field name="SEPARATOR" type="char"
  67733. transient="false" volatile="false"
  67734. static="true" final="true" visibility="protected"
  67735. deprecated="not deprecated">
  67736. </field>
  67737. <field name="id" type="int"
  67738. transient="false" volatile="false"
  67739. static="false" final="false" visibility="protected"
  67740. deprecated="not deprecated">
  67741. </field>
  67742. <doc>
  67743. <![CDATA[A general identifier, which internally stores the id
  67744. as an integer. This is the super class of {@link JobID},
  67745. {@link TaskID} and {@link TaskAttemptID}.
  67746. @see JobID
  67747. @see TaskID
  67748. @see TaskAttemptID]]>
  67749. </doc>
  67750. </class>
  67751. <!-- end class org.apache.hadoop.mapreduce.ID -->
  67752. <!-- start class org.apache.hadoop.mapreduce.InputFormat -->
  67753. <class name="InputFormat" extends="java.lang.Object"
  67754. abstract="true"
  67755. static="false" final="false" visibility="public"
  67756. deprecated="not deprecated">
  67757. <constructor name="InputFormat"
  67758. static="false" final="false" visibility="public"
  67759. deprecated="not deprecated">
  67760. </constructor>
  67761. <method name="getSplits" return="java.util.List"
  67762. abstract="true" native="false" synchronized="false"
  67763. static="false" final="false" visibility="public"
  67764. deprecated="not deprecated">
  67765. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  67766. <exception name="IOException" type="java.io.IOException"/>
  67767. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  67768. <doc>
  67769. <![CDATA[Logically split the set of input files for the job.
  67770. <p>Each {@link InputSplit} is then assigned to an individual {@link Mapper}
  67771. for processing.</p>
  67772. <p><i>Note</i>: The split is a <i>logical</i> split of the inputs and the
  67773. input files are not physically split into chunks. For e.g. a split could
  67774. be <i>&lt;input-file-path, start, offset&gt;</i> tuple. The InputFormat
  67775. also creates the {@link RecordReader} to read the {@link InputSplit}.
  67776. @param context job configuration.
  67777. @return an array of {@link InputSplit}s for the job.]]>
  67778. </doc>
  67779. </method>
  67780. <method name="createRecordReader" return="org.apache.hadoop.mapreduce.RecordReader"
  67781. abstract="true" native="false" synchronized="false"
  67782. static="false" final="false" visibility="public"
  67783. deprecated="not deprecated">
  67784. <param name="split" type="org.apache.hadoop.mapreduce.InputSplit"/>
  67785. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  67786. <exception name="IOException" type="java.io.IOException"/>
  67787. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  67788. <doc>
  67789. <![CDATA[Create a record reader for a given split. The framework will call
  67790. {@link RecordReader#initialize(InputSplit, TaskAttemptContext)} before
  67791. the split is used.
  67792. @param split the split to be read
  67793. @param context the information about the task
  67794. @return a new record reader
  67795. @throws IOException
  67796. @throws InterruptedException]]>
  67797. </doc>
  67798. </method>
  67799. <doc>
  67800. <![CDATA[<code>InputFormat</code> describes the input-specification for a
  67801. Map-Reduce job.
  67802. <p>The Map-Reduce framework relies on the <code>InputFormat</code> of the
  67803. job to:<p>
  67804. <ol>
  67805. <li>
  67806. Validate the input-specification of the job.
  67807. <li>
  67808. Split-up the input file(s) into logical {@link InputSplit}s, each of
  67809. which is then assigned to an individual {@link Mapper}.
  67810. </li>
  67811. <li>
  67812. Provide the {@link RecordReader} implementation to be used to glean
  67813. input records from the logical <code>InputSplit</code> for processing by
  67814. the {@link Mapper}.
  67815. </li>
  67816. </ol>
  67817. <p>The default behavior of file-based {@link InputFormat}s, typically
  67818. sub-classes of {@link FileInputFormat}, is to split the
  67819. input into <i>logical</i> {@link InputSplit}s based on the total size, in
  67820. bytes, of the input files. However, the {@link FileSystem} blocksize of
  67821. the input files is treated as an upper bound for input splits. A lower bound
  67822. on the split size can be set via
  67823. <a href="{@docRoot}/../mapred-default.html#mapred.min.split.size">
  67824. mapred.min.split.size</a>.</p>
  67825. <p>Clearly, logical splits based on input-size is insufficient for many
  67826. applications since record boundaries are to respected. In such cases, the
  67827. application has to also implement a {@link RecordReader} on whom lies the
  67828. responsibility to respect record-boundaries and present a record-oriented
  67829. view of the logical <code>InputSplit</code> to the individual task.
  67830. @see InputSplit
  67831. @see RecordReader
  67832. @see FileInputFormat]]>
  67833. </doc>
  67834. </class>
  67835. <!-- end class org.apache.hadoop.mapreduce.InputFormat -->
  67836. <!-- start class org.apache.hadoop.mapreduce.InputSplit -->
  67837. <class name="InputSplit" extends="java.lang.Object"
  67838. abstract="true"
  67839. static="false" final="false" visibility="public"
  67840. deprecated="not deprecated">
  67841. <constructor name="InputSplit"
  67842. static="false" final="false" visibility="public"
  67843. deprecated="not deprecated">
  67844. </constructor>
  67845. <method name="getLength" return="long"
  67846. abstract="true" native="false" synchronized="false"
  67847. static="false" final="false" visibility="public"
  67848. deprecated="not deprecated">
  67849. <exception name="IOException" type="java.io.IOException"/>
  67850. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  67851. <doc>
  67852. <![CDATA[Get the size of the split, so that the input splits can be sorted by size.
  67853. @return the number of bytes in the split
  67854. @throws IOException
  67855. @throws InterruptedException]]>
  67856. </doc>
  67857. </method>
  67858. <method name="getLocations" return="java.lang.String[]"
  67859. abstract="true" native="false" synchronized="false"
  67860. static="false" final="false" visibility="public"
  67861. deprecated="not deprecated">
  67862. <exception name="IOException" type="java.io.IOException"/>
  67863. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  67864. <doc>
  67865. <![CDATA[Get the list of nodes by name where the data for the split would be local.
  67866. The locations do not need to be serialized.
  67867. @return a new array of the node nodes.
  67868. @throws IOException
  67869. @throws InterruptedException]]>
  67870. </doc>
  67871. </method>
  67872. <doc>
  67873. <![CDATA[<code>InputSplit</code> represents the data to be processed by an
  67874. individual {@link Mapper}.
  67875. <p>Typically, it presents a byte-oriented view on the input and is the
  67876. responsibility of {@link RecordReader} of the job to process this and present
  67877. a record-oriented view.
  67878. @see InputFormat
  67879. @see RecordReader]]>
  67880. </doc>
  67881. </class>
  67882. <!-- end class org.apache.hadoop.mapreduce.InputSplit -->
  67883. <!-- start class org.apache.hadoop.mapreduce.Job -->
  67884. <class name="Job" extends="org.apache.hadoop.mapreduce.JobContext"
  67885. abstract="false"
  67886. static="false" final="false" visibility="public"
  67887. deprecated="not deprecated">
  67888. <constructor name="Job"
  67889. static="false" final="false" visibility="public"
  67890. deprecated="not deprecated">
  67891. <exception name="IOException" type="java.io.IOException"/>
  67892. </constructor>
  67893. <constructor name="Job" type="org.apache.hadoop.conf.Configuration"
  67894. static="false" final="false" visibility="public"
  67895. deprecated="not deprecated">
  67896. <exception name="IOException" type="java.io.IOException"/>
  67897. </constructor>
  67898. <constructor name="Job" type="org.apache.hadoop.conf.Configuration, java.lang.String"
  67899. static="false" final="false" visibility="public"
  67900. deprecated="not deprecated">
  67901. <exception name="IOException" type="java.io.IOException"/>
  67902. </constructor>
  67903. <method name="getInstance" return="org.apache.hadoop.mapreduce.Job"
  67904. abstract="false" native="false" synchronized="false"
  67905. static="true" final="false" visibility="public"
  67906. deprecated="not deprecated">
  67907. <exception name="IOException" type="java.io.IOException"/>
  67908. <doc>
  67909. <![CDATA[Creates a new {@link Job}
  67910. A Job will be created with a generic {@link Configuration}.
  67911. @return the {@link Job}
  67912. @throws IOException]]>
  67913. </doc>
  67914. </method>
  67915. <method name="getInstance" return="org.apache.hadoop.mapreduce.Job"
  67916. abstract="false" native="false" synchronized="false"
  67917. static="true" final="false" visibility="public"
  67918. deprecated="not deprecated">
  67919. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  67920. <exception name="IOException" type="java.io.IOException"/>
  67921. <doc>
  67922. <![CDATA[Creates a new {@link Job} with a given {@link Configuration}.
  67923. The <code>Job</code> makes a copy of the <code>Configuration</code> so
  67924. that any necessary internal modifications do not reflect on the incoming
  67925. parameter.
  67926. @param conf the {@link Configuration}
  67927. @return the {@link Job}
  67928. @throws IOException]]>
  67929. </doc>
  67930. </method>
  67931. <method name="getInstance" return="org.apache.hadoop.mapreduce.Job"
  67932. abstract="false" native="false" synchronized="false"
  67933. static="true" final="false" visibility="public"
  67934. deprecated="not deprecated">
  67935. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  67936. <param name="jobName" type="java.lang.String"/>
  67937. <exception name="IOException" type="java.io.IOException"/>
  67938. <doc>
  67939. <![CDATA[Creates a new {@link Job} with a given {@link Configuration}
  67940. and a given jobName.
  67941. The <code>Job</code> makes a copy of the <code>Configuration</code> so
  67942. that any necessary internal modifications do not reflect on the incoming
  67943. parameter.
  67944. @param conf the {@link Configuration}
  67945. @param jobName the job instance's name
  67946. @return the {@link Job}
  67947. @throws IOException]]>
  67948. </doc>
  67949. </method>
  67950. <method name="setNumReduceTasks"
  67951. abstract="false" native="false" synchronized="false"
  67952. static="false" final="false" visibility="public"
  67953. deprecated="not deprecated">
  67954. <param name="tasks" type="int"/>
  67955. <exception name="IllegalStateException" type="java.lang.IllegalStateException"/>
  67956. <doc>
  67957. <![CDATA[Set the number of reduce tasks for the job.
  67958. @param tasks the number of reduce tasks
  67959. @throws IllegalStateException if the job is submitted]]>
  67960. </doc>
  67961. </method>
  67962. <method name="setWorkingDirectory"
  67963. abstract="false" native="false" synchronized="false"
  67964. static="false" final="false" visibility="public"
  67965. deprecated="not deprecated">
  67966. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  67967. <exception name="IOException" type="java.io.IOException"/>
  67968. <doc>
  67969. <![CDATA[Set the current working directory for the default file system.
  67970. @param dir the new current working directory.
  67971. @throws IllegalStateException if the job is submitted]]>
  67972. </doc>
  67973. </method>
  67974. <method name="setInputFormatClass"
  67975. abstract="false" native="false" synchronized="false"
  67976. static="false" final="false" visibility="public"
  67977. deprecated="not deprecated">
  67978. <param name="cls" type="java.lang.Class"/>
  67979. <exception name="IllegalStateException" type="java.lang.IllegalStateException"/>
  67980. <doc>
  67981. <![CDATA[Set the {@link InputFormat} for the job.
  67982. @param cls the <code>InputFormat</code> to use
  67983. @throws IllegalStateException if the job is submitted]]>
  67984. </doc>
  67985. </method>
  67986. <method name="setOutputFormatClass"
  67987. abstract="false" native="false" synchronized="false"
  67988. static="false" final="false" visibility="public"
  67989. deprecated="not deprecated">
  67990. <param name="cls" type="java.lang.Class"/>
  67991. <exception name="IllegalStateException" type="java.lang.IllegalStateException"/>
  67992. <doc>
  67993. <![CDATA[Set the {@link OutputFormat} for the job.
  67994. @param cls the <code>OutputFormat</code> to use
  67995. @throws IllegalStateException if the job is submitted]]>
  67996. </doc>
  67997. </method>
  67998. <method name="setMapperClass"
  67999. abstract="false" native="false" synchronized="false"
  68000. static="false" final="false" visibility="public"
  68001. deprecated="not deprecated">
  68002. <param name="cls" type="java.lang.Class"/>
  68003. <exception name="IllegalStateException" type="java.lang.IllegalStateException"/>
  68004. <doc>
  68005. <![CDATA[Set the {@link Mapper} for the job.
  68006. @param cls the <code>Mapper</code> to use
  68007. @throws IllegalStateException if the job is submitted]]>
  68008. </doc>
  68009. </method>
  68010. <method name="setJarByClass"
  68011. abstract="false" native="false" synchronized="false"
  68012. static="false" final="false" visibility="public"
  68013. deprecated="not deprecated">
  68014. <param name="cls" type="java.lang.Class"/>
  68015. <doc>
  68016. <![CDATA[Set the Jar by finding where a given class came from.
  68017. @param cls the example class]]>
  68018. </doc>
  68019. </method>
  68020. <method name="getJar" return="java.lang.String"
  68021. abstract="false" native="false" synchronized="false"
  68022. static="false" final="false" visibility="public"
  68023. deprecated="not deprecated">
  68024. <doc>
  68025. <![CDATA[Get the pathname of the job's jar.
  68026. @return the pathname]]>
  68027. </doc>
  68028. </method>
  68029. <method name="setCombinerClass"
  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. <exception name="IllegalStateException" type="java.lang.IllegalStateException"/>
  68035. <doc>
  68036. <![CDATA[Set the combiner class for the job.
  68037. @param cls the combiner to use
  68038. @throws IllegalStateException if the job is submitted]]>
  68039. </doc>
  68040. </method>
  68041. <method name="setReducerClass"
  68042. abstract="false" native="false" synchronized="false"
  68043. static="false" final="false" visibility="public"
  68044. deprecated="not deprecated">
  68045. <param name="cls" type="java.lang.Class"/>
  68046. <exception name="IllegalStateException" type="java.lang.IllegalStateException"/>
  68047. <doc>
  68048. <![CDATA[Set the {@link Reducer} for the job.
  68049. @param cls the <code>Reducer</code> to use
  68050. @throws IllegalStateException if the job is submitted]]>
  68051. </doc>
  68052. </method>
  68053. <method name="setPartitionerClass"
  68054. abstract="false" native="false" synchronized="false"
  68055. static="false" final="false" visibility="public"
  68056. deprecated="not deprecated">
  68057. <param name="cls" type="java.lang.Class"/>
  68058. <exception name="IllegalStateException" type="java.lang.IllegalStateException"/>
  68059. <doc>
  68060. <![CDATA[Set the {@link Partitioner} for the job.
  68061. @param cls the <code>Partitioner</code> to use
  68062. @throws IllegalStateException if the job is submitted]]>
  68063. </doc>
  68064. </method>
  68065. <method name="setMapOutputKeyClass"
  68066. abstract="false" native="false" synchronized="false"
  68067. static="false" final="false" visibility="public"
  68068. deprecated="not deprecated">
  68069. <param name="theClass" type="java.lang.Class"/>
  68070. <exception name="IllegalStateException" type="java.lang.IllegalStateException"/>
  68071. <doc>
  68072. <![CDATA[Set the key class for the map output data. This allows the user to
  68073. specify the map output key class to be different than the final output
  68074. value class.
  68075. @param theClass the map output key class.
  68076. @throws IllegalStateException if the job is submitted]]>
  68077. </doc>
  68078. </method>
  68079. <method name="setMapOutputValueClass"
  68080. abstract="false" native="false" synchronized="false"
  68081. static="false" final="false" visibility="public"
  68082. deprecated="not deprecated">
  68083. <param name="theClass" type="java.lang.Class"/>
  68084. <exception name="IllegalStateException" type="java.lang.IllegalStateException"/>
  68085. <doc>
  68086. <![CDATA[Set the value class for the map output data. This allows the user to
  68087. specify the map output value class to be different than the final output
  68088. value class.
  68089. @param theClass the map output value class.
  68090. @throws IllegalStateException if the job is submitted]]>
  68091. </doc>
  68092. </method>
  68093. <method name="setOutputKeyClass"
  68094. abstract="false" native="false" synchronized="false"
  68095. static="false" final="false" visibility="public"
  68096. deprecated="not deprecated">
  68097. <param name="theClass" type="java.lang.Class"/>
  68098. <exception name="IllegalStateException" type="java.lang.IllegalStateException"/>
  68099. <doc>
  68100. <![CDATA[Set the key class for the job output data.
  68101. @param theClass the key class for the job output data.
  68102. @throws IllegalStateException if the job is submitted]]>
  68103. </doc>
  68104. </method>
  68105. <method name="setOutputValueClass"
  68106. abstract="false" native="false" synchronized="false"
  68107. static="false" final="false" visibility="public"
  68108. deprecated="not deprecated">
  68109. <param name="theClass" type="java.lang.Class"/>
  68110. <exception name="IllegalStateException" type="java.lang.IllegalStateException"/>
  68111. <doc>
  68112. <![CDATA[Set the value class for job outputs.
  68113. @param theClass the value class for job outputs.
  68114. @throws IllegalStateException if the job is submitted]]>
  68115. </doc>
  68116. </method>
  68117. <method name="setSortComparatorClass"
  68118. abstract="false" native="false" synchronized="false"
  68119. static="false" final="false" visibility="public"
  68120. deprecated="not deprecated">
  68121. <param name="cls" type="java.lang.Class"/>
  68122. <exception name="IllegalStateException" type="java.lang.IllegalStateException"/>
  68123. <doc>
  68124. <![CDATA[Define the comparator that controls how the keys are sorted before they
  68125. are passed to the {@link Reducer}.
  68126. @param cls the raw comparator
  68127. @throws IllegalStateException if the job is submitted]]>
  68128. </doc>
  68129. </method>
  68130. <method name="setGroupingComparatorClass"
  68131. abstract="false" native="false" synchronized="false"
  68132. static="false" final="false" visibility="public"
  68133. deprecated="not deprecated">
  68134. <param name="cls" type="java.lang.Class"/>
  68135. <exception name="IllegalStateException" type="java.lang.IllegalStateException"/>
  68136. <doc>
  68137. <![CDATA[Define the comparator that controls which keys are grouped together
  68138. for a single call to
  68139. {@link Reducer#reduce(Object, Iterable,
  68140. org.apache.hadoop.mapreduce.Reducer.Context)}
  68141. @param cls the raw comparator to use
  68142. @throws IllegalStateException if the job is submitted]]>
  68143. </doc>
  68144. </method>
  68145. <method name="setJobName"
  68146. abstract="false" native="false" synchronized="false"
  68147. static="false" final="false" visibility="public"
  68148. deprecated="not deprecated">
  68149. <param name="name" type="java.lang.String"/>
  68150. <exception name="IllegalStateException" type="java.lang.IllegalStateException"/>
  68151. <doc>
  68152. <![CDATA[Set the user-specified job name.
  68153. @param name the job's new name.
  68154. @throws IllegalStateException if the job is submitted]]>
  68155. </doc>
  68156. </method>
  68157. <method name="setSpeculativeExecution"
  68158. abstract="false" native="false" synchronized="false"
  68159. static="false" final="false" visibility="public"
  68160. deprecated="not deprecated">
  68161. <param name="speculativeExecution" type="boolean"/>
  68162. <doc>
  68163. <![CDATA[Turn speculative execution on or off for this job.
  68164. @param speculativeExecution <code>true</code> if speculative execution
  68165. should be turned on, else <code>false</code>.]]>
  68166. </doc>
  68167. </method>
  68168. <method name="setMapSpeculativeExecution"
  68169. abstract="false" native="false" synchronized="false"
  68170. static="false" final="false" visibility="public"
  68171. deprecated="not deprecated">
  68172. <param name="speculativeExecution" type="boolean"/>
  68173. <doc>
  68174. <![CDATA[Turn speculative execution on or off for this job for map tasks.
  68175. @param speculativeExecution <code>true</code> if speculative execution
  68176. should be turned on for map tasks,
  68177. else <code>false</code>.]]>
  68178. </doc>
  68179. </method>
  68180. <method name="setReduceSpeculativeExecution"
  68181. abstract="false" native="false" synchronized="false"
  68182. static="false" final="false" visibility="public"
  68183. deprecated="not deprecated">
  68184. <param name="speculativeExecution" type="boolean"/>
  68185. <doc>
  68186. <![CDATA[Turn speculative execution on or off for this job for reduce tasks.
  68187. @param speculativeExecution <code>true</code> if speculative execution
  68188. should be turned on for reduce tasks,
  68189. else <code>false</code>.]]>
  68190. </doc>
  68191. </method>
  68192. <method name="getTrackingURL" return="java.lang.String"
  68193. abstract="false" native="false" synchronized="false"
  68194. static="false" final="false" visibility="public"
  68195. deprecated="not deprecated">
  68196. <doc>
  68197. <![CDATA[Get the URL where some job progress information will be displayed.
  68198. @return the URL where some job progress information will be displayed.]]>
  68199. </doc>
  68200. </method>
  68201. <method name="setupProgress" return="float"
  68202. abstract="false" native="false" synchronized="false"
  68203. static="false" final="false" visibility="public"
  68204. deprecated="not deprecated">
  68205. <exception name="IOException" type="java.io.IOException"/>
  68206. <doc>
  68207. <![CDATA[Get the <i>progress</i> of the job's setup, as a float between 0.0
  68208. and 1.0. When the job setup is completed, the function returns 1.0.
  68209. @return the progress of the job's setup.
  68210. @throws IOException]]>
  68211. </doc>
  68212. </method>
  68213. <method name="mapProgress" return="float"
  68214. abstract="false" native="false" synchronized="false"
  68215. static="false" final="false" visibility="public"
  68216. deprecated="not deprecated">
  68217. <exception name="IOException" type="java.io.IOException"/>
  68218. <doc>
  68219. <![CDATA[Get the <i>progress</i> of the job's map-tasks, as a float between 0.0
  68220. and 1.0. When all map tasks have completed, the function returns 1.0.
  68221. @return the progress of the job's map-tasks.
  68222. @throws IOException]]>
  68223. </doc>
  68224. </method>
  68225. <method name="reduceProgress" return="float"
  68226. abstract="false" native="false" synchronized="false"
  68227. static="false" final="false" visibility="public"
  68228. deprecated="not deprecated">
  68229. <exception name="IOException" type="java.io.IOException"/>
  68230. <doc>
  68231. <![CDATA[Get the <i>progress</i> of the job's reduce-tasks, as a float between 0.0
  68232. and 1.0. When all reduce tasks have completed, the function returns 1.0.
  68233. @return the progress of the job's reduce-tasks.
  68234. @throws IOException]]>
  68235. </doc>
  68236. </method>
  68237. <method name="isComplete" return="boolean"
  68238. abstract="false" native="false" synchronized="false"
  68239. static="false" final="false" visibility="public"
  68240. deprecated="not deprecated">
  68241. <exception name="IOException" type="java.io.IOException"/>
  68242. <doc>
  68243. <![CDATA[Check if the job is finished or not.
  68244. This is a non-blocking call.
  68245. @return <code>true</code> if the job is complete, else <code>false</code>.
  68246. @throws IOException]]>
  68247. </doc>
  68248. </method>
  68249. <method name="isSuccessful" return="boolean"
  68250. abstract="false" native="false" synchronized="false"
  68251. static="false" final="false" visibility="public"
  68252. deprecated="not deprecated">
  68253. <exception name="IOException" type="java.io.IOException"/>
  68254. <doc>
  68255. <![CDATA[Check if the job completed successfully.
  68256. @return <code>true</code> if the job succeeded, else <code>false</code>.
  68257. @throws IOException]]>
  68258. </doc>
  68259. </method>
  68260. <method name="killJob"
  68261. abstract="false" native="false" synchronized="false"
  68262. static="false" final="false" visibility="public"
  68263. deprecated="not deprecated">
  68264. <exception name="IOException" type="java.io.IOException"/>
  68265. <doc>
  68266. <![CDATA[Kill the running job. Blocks until all job tasks have been
  68267. killed as well. If the job is no longer running, it simply returns.
  68268. @throws IOException]]>
  68269. </doc>
  68270. </method>
  68271. <method name="getTaskCompletionEvents" return="org.apache.hadoop.mapred.TaskCompletionEvent[]"
  68272. abstract="false" native="false" synchronized="false"
  68273. static="false" final="false" visibility="public"
  68274. deprecated="not deprecated">
  68275. <param name="startFrom" type="int"/>
  68276. <exception name="IOException" type="java.io.IOException"/>
  68277. <doc>
  68278. <![CDATA[Get events indicating completion (success/failure) of component tasks.
  68279. @param startFrom index to start fetching events from
  68280. @return an array of {@link TaskCompletionEvent}s
  68281. @throws IOException]]>
  68282. </doc>
  68283. </method>
  68284. <method name="killTask"
  68285. abstract="false" native="false" synchronized="false"
  68286. static="false" final="false" visibility="public"
  68287. deprecated="not deprecated">
  68288. <param name="taskId" type="org.apache.hadoop.mapreduce.TaskAttemptID"/>
  68289. <exception name="IOException" type="java.io.IOException"/>
  68290. <doc>
  68291. <![CDATA[Kill indicated task attempt.
  68292. @param taskId the id of the task to be terminated.
  68293. @throws IOException]]>
  68294. </doc>
  68295. </method>
  68296. <method name="failTask"
  68297. abstract="false" native="false" synchronized="false"
  68298. static="false" final="false" visibility="public"
  68299. deprecated="not deprecated">
  68300. <param name="taskId" type="org.apache.hadoop.mapreduce.TaskAttemptID"/>
  68301. <exception name="IOException" type="java.io.IOException"/>
  68302. <doc>
  68303. <![CDATA[Fail indicated task attempt.
  68304. @param taskId the id of the task to be terminated.
  68305. @throws IOException]]>
  68306. </doc>
  68307. </method>
  68308. <method name="getCounters" return="org.apache.hadoop.mapreduce.Counters"
  68309. abstract="false" native="false" synchronized="false"
  68310. static="false" final="false" visibility="public"
  68311. deprecated="not deprecated">
  68312. <exception name="IOException" type="java.io.IOException"/>
  68313. <doc>
  68314. <![CDATA[Gets the counters for this job.
  68315. @return the counters for this job.
  68316. @throws IOException]]>
  68317. </doc>
  68318. </method>
  68319. <method name="setCancelDelegationTokenUponJobCompletion"
  68320. abstract="false" native="false" synchronized="false"
  68321. static="false" final="false" visibility="public"
  68322. deprecated="not deprecated">
  68323. <param name="value" type="boolean"/>
  68324. <doc>
  68325. <![CDATA[Sets the flag that will allow the JobTracker to cancel the HDFS delegation
  68326. tokens upon job completion. Defaults to true.]]>
  68327. </doc>
  68328. </method>
  68329. <method name="submit"
  68330. abstract="false" native="false" synchronized="false"
  68331. static="false" final="false" visibility="public"
  68332. deprecated="not deprecated">
  68333. <exception name="IOException" type="java.io.IOException"/>
  68334. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  68335. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  68336. <doc>
  68337. <![CDATA[Submit the job to the cluster and return immediately.
  68338. @throws IOException]]>
  68339. </doc>
  68340. </method>
  68341. <method name="waitForCompletion" return="boolean"
  68342. abstract="false" native="false" synchronized="false"
  68343. static="false" final="false" visibility="public"
  68344. deprecated="not deprecated">
  68345. <param name="verbose" type="boolean"/>
  68346. <exception name="IOException" type="java.io.IOException"/>
  68347. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  68348. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  68349. <doc>
  68350. <![CDATA[Submit the job to the cluster and wait for it to finish.
  68351. @param verbose print the progress to the user
  68352. @return true if the job succeeded
  68353. @throws IOException thrown if the communication with the
  68354. <code>JobTracker</code> is lost]]>
  68355. </doc>
  68356. </method>
  68357. <doc>
  68358. <![CDATA[The job submitter's view of the Job. It allows the user to configure the
  68359. job, submit it, control its execution, and query the state. The set methods
  68360. only work until the job is submitted, afterwards they will throw an
  68361. IllegalStateException.]]>
  68362. </doc>
  68363. </class>
  68364. <!-- end class org.apache.hadoop.mapreduce.Job -->
  68365. <!-- start class org.apache.hadoop.mapreduce.Job.JobState -->
  68366. <class name="Job.JobState" extends="java.lang.Enum"
  68367. abstract="false"
  68368. static="true" final="true" visibility="public"
  68369. deprecated="not deprecated">
  68370. <method name="values" return="org.apache.hadoop.mapreduce.Job.JobState[]"
  68371. abstract="false" native="false" synchronized="false"
  68372. static="true" final="false" visibility="public"
  68373. deprecated="not deprecated">
  68374. </method>
  68375. <method name="valueOf" return="org.apache.hadoop.mapreduce.Job.JobState"
  68376. abstract="false" native="false" synchronized="false"
  68377. static="true" final="false" visibility="public"
  68378. deprecated="not deprecated">
  68379. <param name="name" type="java.lang.String"/>
  68380. </method>
  68381. <field name="DEFINE" type="org.apache.hadoop.mapreduce.Job.JobState"
  68382. transient="false" volatile="false"
  68383. static="true" final="true" visibility="public"
  68384. deprecated="not deprecated">
  68385. </field>
  68386. <field name="RUNNING" type="org.apache.hadoop.mapreduce.Job.JobState"
  68387. transient="false" volatile="false"
  68388. static="true" final="true" visibility="public"
  68389. deprecated="not deprecated">
  68390. </field>
  68391. </class>
  68392. <!-- end class org.apache.hadoop.mapreduce.Job.JobState -->
  68393. <!-- start class org.apache.hadoop.mapreduce.JobACL -->
  68394. <class name="JobACL" extends="java.lang.Enum"
  68395. abstract="false"
  68396. static="false" final="true" visibility="public"
  68397. deprecated="not deprecated">
  68398. <method name="values" return="org.apache.hadoop.mapreduce.JobACL[]"
  68399. abstract="false" native="false" synchronized="false"
  68400. static="true" final="false" visibility="public"
  68401. deprecated="not deprecated">
  68402. </method>
  68403. <method name="valueOf" return="org.apache.hadoop.mapreduce.JobACL"
  68404. abstract="false" native="false" synchronized="false"
  68405. static="true" final="false" visibility="public"
  68406. deprecated="not deprecated">
  68407. <param name="name" type="java.lang.String"/>
  68408. </method>
  68409. <method name="getAclName" return="java.lang.String"
  68410. abstract="false" native="false" synchronized="false"
  68411. static="false" final="false" visibility="public"
  68412. deprecated="not deprecated">
  68413. <doc>
  68414. <![CDATA[Get the name of the ACL. Here it is same as the name of the configuration
  68415. property for specifying the ACL for the job.
  68416. @return aclName]]>
  68417. </doc>
  68418. </method>
  68419. <field name="VIEW_JOB" type="org.apache.hadoop.mapreduce.JobACL"
  68420. transient="false" volatile="false"
  68421. static="true" final="true" visibility="public"
  68422. deprecated="not deprecated">
  68423. <doc>
  68424. <![CDATA[ACL for 'viewing' job. Dictates who can 'view' some or all of the job
  68425. related details.]]>
  68426. </doc>
  68427. </field>
  68428. <field name="MODIFY_JOB" type="org.apache.hadoop.mapreduce.JobACL"
  68429. transient="false" volatile="false"
  68430. static="true" final="true" visibility="public"
  68431. deprecated="not deprecated">
  68432. <doc>
  68433. <![CDATA[ACL for 'modifying' job. Dictates who can 'modify' the job for e.g., by
  68434. killing the job, killing/failing a task of the job or setting priority of
  68435. the job.]]>
  68436. </doc>
  68437. </field>
  68438. <doc>
  68439. <![CDATA[Job related ACLs]]>
  68440. </doc>
  68441. </class>
  68442. <!-- end class org.apache.hadoop.mapreduce.JobACL -->
  68443. <!-- start class org.apache.hadoop.mapreduce.JobContext -->
  68444. <class name="JobContext" extends="java.lang.Object"
  68445. abstract="false"
  68446. static="false" final="false" visibility="public"
  68447. deprecated="not deprecated">
  68448. <constructor name="JobContext" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.mapreduce.JobID"
  68449. static="false" final="false" visibility="public"
  68450. deprecated="not deprecated">
  68451. </constructor>
  68452. <method name="getConfiguration" return="org.apache.hadoop.conf.Configuration"
  68453. abstract="false" native="false" synchronized="false"
  68454. static="false" final="false" visibility="public"
  68455. deprecated="not deprecated">
  68456. <doc>
  68457. <![CDATA[Return the configuration for the job.
  68458. @return the shared configuration object]]>
  68459. </doc>
  68460. </method>
  68461. <method name="getCredentials" return="org.apache.hadoop.security.Credentials"
  68462. abstract="false" native="false" synchronized="false"
  68463. static="false" final="false" visibility="public"
  68464. deprecated="not deprecated">
  68465. <doc>
  68466. <![CDATA[Get credentials for the job.
  68467. @return credentials for the job]]>
  68468. </doc>
  68469. </method>
  68470. <method name="getJobID" return="org.apache.hadoop.mapreduce.JobID"
  68471. abstract="false" native="false" synchronized="false"
  68472. static="false" final="false" visibility="public"
  68473. deprecated="not deprecated">
  68474. <doc>
  68475. <![CDATA[Get the unique ID for the job.
  68476. @return the object with the job id]]>
  68477. </doc>
  68478. </method>
  68479. <method name="getNumReduceTasks" return="int"
  68480. abstract="false" native="false" synchronized="false"
  68481. static="false" final="false" visibility="public"
  68482. deprecated="not deprecated">
  68483. <doc>
  68484. <![CDATA[Get configured the number of reduce tasks for this job. Defaults to
  68485. <code>1</code>.
  68486. @return the number of reduce tasks for this job.]]>
  68487. </doc>
  68488. </method>
  68489. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  68490. abstract="false" native="false" synchronized="false"
  68491. static="false" final="false" visibility="public"
  68492. deprecated="not deprecated">
  68493. <exception name="IOException" type="java.io.IOException"/>
  68494. <doc>
  68495. <![CDATA[Get the current working directory for the default file system.
  68496. @return the directory name.]]>
  68497. </doc>
  68498. </method>
  68499. <method name="getOutputKeyClass" return="java.lang.Class"
  68500. abstract="false" native="false" synchronized="false"
  68501. static="false" final="false" visibility="public"
  68502. deprecated="not deprecated">
  68503. <doc>
  68504. <![CDATA[Get the key class for the job output data.
  68505. @return the key class for the job output data.]]>
  68506. </doc>
  68507. </method>
  68508. <method name="getOutputValueClass" return="java.lang.Class"
  68509. abstract="false" native="false" synchronized="false"
  68510. static="false" final="false" visibility="public"
  68511. deprecated="not deprecated">
  68512. <doc>
  68513. <![CDATA[Get the value class for job outputs.
  68514. @return the value class for job outputs.]]>
  68515. </doc>
  68516. </method>
  68517. <method name="getMapOutputKeyClass" return="java.lang.Class"
  68518. abstract="false" native="false" synchronized="false"
  68519. static="false" final="false" visibility="public"
  68520. deprecated="not deprecated">
  68521. <doc>
  68522. <![CDATA[Get the key class for the map output data. If it is not set, use the
  68523. (final) output key class. This allows the map output key class to be
  68524. different than the final output key class.
  68525. @return the map output key class.]]>
  68526. </doc>
  68527. </method>
  68528. <method name="getMapOutputValueClass" return="java.lang.Class"
  68529. abstract="false" native="false" synchronized="false"
  68530. static="false" final="false" visibility="public"
  68531. deprecated="not deprecated">
  68532. <doc>
  68533. <![CDATA[Get the value class for the map output data. If it is not set, use the
  68534. (final) output value class This allows the map output value class to be
  68535. different than the final output value class.
  68536. @return the map output value class.]]>
  68537. </doc>
  68538. </method>
  68539. <method name="getJobName" return="java.lang.String"
  68540. abstract="false" native="false" synchronized="false"
  68541. static="false" final="false" visibility="public"
  68542. deprecated="not deprecated">
  68543. <doc>
  68544. <![CDATA[Get the user-specified job name. This is only used to identify the
  68545. job to the user.
  68546. @return the job's name, defaulting to "".]]>
  68547. </doc>
  68548. </method>
  68549. <method name="getInputFormatClass" return="java.lang.Class"
  68550. abstract="false" native="false" synchronized="false"
  68551. static="false" final="false" visibility="public"
  68552. deprecated="not deprecated">
  68553. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  68554. <doc>
  68555. <![CDATA[Get the {@link InputFormat} class for the job.
  68556. @return the {@link InputFormat} class for the job.]]>
  68557. </doc>
  68558. </method>
  68559. <method name="getMapperClass" return="java.lang.Class"
  68560. abstract="false" native="false" synchronized="false"
  68561. static="false" final="false" visibility="public"
  68562. deprecated="not deprecated">
  68563. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  68564. <doc>
  68565. <![CDATA[Get the {@link Mapper} class for the job.
  68566. @return the {@link Mapper} class for the job.]]>
  68567. </doc>
  68568. </method>
  68569. <method name="getCombinerClass" return="java.lang.Class"
  68570. abstract="false" native="false" synchronized="false"
  68571. static="false" final="false" visibility="public"
  68572. deprecated="not deprecated">
  68573. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  68574. <doc>
  68575. <![CDATA[Get the combiner class for the job.
  68576. @return the combiner class for the job.]]>
  68577. </doc>
  68578. </method>
  68579. <method name="getReducerClass" return="java.lang.Class"
  68580. abstract="false" native="false" synchronized="false"
  68581. static="false" final="false" visibility="public"
  68582. deprecated="not deprecated">
  68583. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  68584. <doc>
  68585. <![CDATA[Get the {@link Reducer} class for the job.
  68586. @return the {@link Reducer} class for the job.]]>
  68587. </doc>
  68588. </method>
  68589. <method name="getOutputFormatClass" return="java.lang.Class"
  68590. abstract="false" native="false" synchronized="false"
  68591. static="false" final="false" visibility="public"
  68592. deprecated="not deprecated">
  68593. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  68594. <doc>
  68595. <![CDATA[Get the {@link OutputFormat} class for the job.
  68596. @return the {@link OutputFormat} class for the job.]]>
  68597. </doc>
  68598. </method>
  68599. <method name="getPartitionerClass" return="java.lang.Class"
  68600. abstract="false" native="false" synchronized="false"
  68601. static="false" final="false" visibility="public"
  68602. deprecated="not deprecated">
  68603. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  68604. <doc>
  68605. <![CDATA[Get the {@link Partitioner} class for the job.
  68606. @return the {@link Partitioner} class for the job.]]>
  68607. </doc>
  68608. </method>
  68609. <method name="getSortComparator" return="org.apache.hadoop.io.RawComparator"
  68610. abstract="false" native="false" synchronized="false"
  68611. static="false" final="false" visibility="public"
  68612. deprecated="not deprecated">
  68613. <doc>
  68614. <![CDATA[Get the {@link RawComparator} comparator used to compare keys.
  68615. @return the {@link RawComparator} comparator used to compare keys.]]>
  68616. </doc>
  68617. </method>
  68618. <method name="getJar" return="java.lang.String"
  68619. abstract="false" native="false" synchronized="false"
  68620. static="false" final="false" visibility="public"
  68621. deprecated="not deprecated">
  68622. <doc>
  68623. <![CDATA[Get the pathname of the job's jar.
  68624. @return the pathname]]>
  68625. </doc>
  68626. </method>
  68627. <method name="getGroupingComparator" return="org.apache.hadoop.io.RawComparator"
  68628. abstract="false" native="false" synchronized="false"
  68629. static="false" final="false" visibility="public"
  68630. deprecated="not deprecated">
  68631. <doc>
  68632. <![CDATA[Get the user defined {@link RawComparator} comparator for
  68633. grouping keys of inputs to the reduce.
  68634. @return comparator set by the user for grouping values.
  68635. @see Job#setGroupingComparatorClass(Class) for details.]]>
  68636. </doc>
  68637. </method>
  68638. <field name="INPUT_FORMAT_CLASS_ATTR" type="java.lang.String"
  68639. transient="false" volatile="false"
  68640. static="true" final="true" visibility="protected"
  68641. deprecated="not deprecated">
  68642. </field>
  68643. <field name="MAP_CLASS_ATTR" type="java.lang.String"
  68644. transient="false" volatile="false"
  68645. static="true" final="true" visibility="protected"
  68646. deprecated="not deprecated">
  68647. </field>
  68648. <field name="COMBINE_CLASS_ATTR" type="java.lang.String"
  68649. transient="false" volatile="false"
  68650. static="true" final="true" visibility="protected"
  68651. deprecated="not deprecated">
  68652. </field>
  68653. <field name="REDUCE_CLASS_ATTR" type="java.lang.String"
  68654. transient="false" volatile="false"
  68655. static="true" final="true" visibility="protected"
  68656. deprecated="not deprecated">
  68657. </field>
  68658. <field name="OUTPUT_FORMAT_CLASS_ATTR" type="java.lang.String"
  68659. transient="false" volatile="false"
  68660. static="true" final="true" visibility="protected"
  68661. deprecated="not deprecated">
  68662. </field>
  68663. <field name="PARTITIONER_CLASS_ATTR" type="java.lang.String"
  68664. transient="false" volatile="false"
  68665. static="true" final="true" visibility="protected"
  68666. deprecated="not deprecated">
  68667. </field>
  68668. <field name="conf" type="org.apache.hadoop.mapred.JobConf"
  68669. transient="false" volatile="false"
  68670. static="false" final="true" visibility="protected"
  68671. deprecated="not deprecated">
  68672. </field>
  68673. <field name="credentials" type="org.apache.hadoop.security.Credentials"
  68674. transient="false" volatile="false"
  68675. static="false" final="true" visibility="protected"
  68676. deprecated="not deprecated">
  68677. </field>
  68678. <field name="JOB_NAMENODES" type="java.lang.String"
  68679. transient="false" volatile="false"
  68680. static="true" final="true" visibility="public"
  68681. deprecated="not deprecated">
  68682. </field>
  68683. <field name="JOB_ACL_VIEW_JOB" type="java.lang.String"
  68684. transient="false" volatile="false"
  68685. static="true" final="true" visibility="public"
  68686. deprecated="not deprecated">
  68687. </field>
  68688. <field name="JOB_ACL_MODIFY_JOB" type="java.lang.String"
  68689. transient="false" volatile="false"
  68690. static="true" final="true" visibility="public"
  68691. deprecated="not deprecated">
  68692. </field>
  68693. <field name="CACHE_FILE_VISIBILITIES" type="java.lang.String"
  68694. transient="false" volatile="false"
  68695. static="true" final="true" visibility="public"
  68696. deprecated="not deprecated">
  68697. </field>
  68698. <field name="CACHE_ARCHIVES_VISIBILITIES" type="java.lang.String"
  68699. transient="false" volatile="false"
  68700. static="true" final="true" visibility="public"
  68701. deprecated="not deprecated">
  68702. </field>
  68703. <field name="JOB_CANCEL_DELEGATION_TOKEN" type="java.lang.String"
  68704. transient="false" volatile="false"
  68705. static="true" final="true" visibility="public"
  68706. deprecated="not deprecated">
  68707. </field>
  68708. <field name="USER_LOG_RETAIN_HOURS" type="java.lang.String"
  68709. transient="false" volatile="false"
  68710. static="true" final="true" visibility="public"
  68711. deprecated="not deprecated">
  68712. </field>
  68713. <field name="ugi" type="org.apache.hadoop.security.UserGroupInformation"
  68714. transient="false" volatile="false"
  68715. static="false" final="false" visibility="protected"
  68716. deprecated="not deprecated">
  68717. <doc>
  68718. <![CDATA[The UserGroupInformation object that has a reference to the current user]]>
  68719. </doc>
  68720. </field>
  68721. <doc>
  68722. <![CDATA[A read-only view of the job that is provided to the tasks while they
  68723. are running.]]>
  68724. </doc>
  68725. </class>
  68726. <!-- end class org.apache.hadoop.mapreduce.JobContext -->
  68727. <!-- start class org.apache.hadoop.mapreduce.JobID -->
  68728. <class name="JobID" extends="org.apache.hadoop.mapred.ID"
  68729. abstract="false"
  68730. static="false" final="false" visibility="public"
  68731. deprecated="not deprecated">
  68732. <implements name="java.lang.Comparable"/>
  68733. <constructor name="JobID" type="java.lang.String, int"
  68734. static="false" final="false" visibility="public"
  68735. deprecated="not deprecated">
  68736. <doc>
  68737. <![CDATA[Constructs a JobID object
  68738. @param jtIdentifier jobTracker identifier
  68739. @param id job number]]>
  68740. </doc>
  68741. </constructor>
  68742. <constructor name="JobID"
  68743. static="false" final="false" visibility="public"
  68744. deprecated="not deprecated">
  68745. </constructor>
  68746. <method name="getJtIdentifier" return="java.lang.String"
  68747. abstract="false" native="false" synchronized="false"
  68748. static="false" final="false" visibility="public"
  68749. deprecated="not deprecated">
  68750. </method>
  68751. <method name="equals" return="boolean"
  68752. abstract="false" native="false" synchronized="false"
  68753. static="false" final="false" visibility="public"
  68754. deprecated="not deprecated">
  68755. <param name="o" type="java.lang.Object"/>
  68756. </method>
  68757. <method name="compareTo" return="int"
  68758. abstract="false" native="false" synchronized="false"
  68759. static="false" final="false" visibility="public"
  68760. deprecated="not deprecated">
  68761. <param name="o" type="org.apache.hadoop.mapreduce.ID"/>
  68762. <doc>
  68763. <![CDATA[Compare JobIds by first jtIdentifiers, then by job numbers]]>
  68764. </doc>
  68765. </method>
  68766. <method name="appendTo" return="java.lang.StringBuilder"
  68767. abstract="false" native="false" synchronized="false"
  68768. static="false" final="false" visibility="public"
  68769. deprecated="not deprecated">
  68770. <param name="builder" type="java.lang.StringBuilder"/>
  68771. <doc>
  68772. <![CDATA[Add the stuff after the "job" prefix to the given builder. This is useful,
  68773. because the sub-ids use this substring at the start of their string.
  68774. @param builder the builder to append to
  68775. @return the builder that was passed in]]>
  68776. </doc>
  68777. </method>
  68778. <method name="hashCode" return="int"
  68779. abstract="false" native="false" synchronized="false"
  68780. static="false" final="false" visibility="public"
  68781. deprecated="not deprecated">
  68782. </method>
  68783. <method name="toString" return="java.lang.String"
  68784. abstract="false" native="false" synchronized="false"
  68785. static="false" final="false" visibility="public"
  68786. deprecated="not deprecated">
  68787. </method>
  68788. <method name="readFields"
  68789. abstract="false" native="false" synchronized="false"
  68790. static="false" final="false" visibility="public"
  68791. deprecated="not deprecated">
  68792. <param name="in" type="java.io.DataInput"/>
  68793. <exception name="IOException" type="java.io.IOException"/>
  68794. </method>
  68795. <method name="write"
  68796. abstract="false" native="false" synchronized="false"
  68797. static="false" final="false" visibility="public"
  68798. deprecated="not deprecated">
  68799. <param name="out" type="java.io.DataOutput"/>
  68800. <exception name="IOException" type="java.io.IOException"/>
  68801. </method>
  68802. <method name="forName" return="org.apache.hadoop.mapreduce.JobID"
  68803. abstract="false" native="false" synchronized="false"
  68804. static="true" final="false" visibility="public"
  68805. deprecated="not deprecated">
  68806. <param name="str" type="java.lang.String"/>
  68807. <exception name="IllegalArgumentException" type="java.lang.IllegalArgumentException"/>
  68808. <doc>
  68809. <![CDATA[Construct a JobId object from given string
  68810. @return constructed JobId object or null if the given String is null
  68811. @throws IllegalArgumentException if the given string is malformed]]>
  68812. </doc>
  68813. </method>
  68814. <field name="JOB" type="java.lang.String"
  68815. transient="false" volatile="false"
  68816. static="true" final="true" visibility="protected"
  68817. deprecated="not deprecated">
  68818. </field>
  68819. <field name="JOBID_REGEX" type="java.lang.String"
  68820. transient="false" volatile="false"
  68821. static="true" final="true" visibility="public"
  68822. deprecated="not deprecated">
  68823. </field>
  68824. <field name="idFormat" type="java.text.NumberFormat"
  68825. transient="false" volatile="false"
  68826. static="true" final="true" visibility="protected"
  68827. deprecated="not deprecated">
  68828. </field>
  68829. <doc>
  68830. <![CDATA[JobID represents the immutable and unique identifier for
  68831. the job. JobID consists of two parts. First part
  68832. represents the jobtracker identifier, so that jobID to jobtracker map
  68833. is defined. For cluster setup this string is the jobtracker
  68834. start time, for local setting, it is "local".
  68835. Second part of the JobID is the job number. <br>
  68836. An example JobID is :
  68837. <code>job_200707121733_0003</code> , which represents the third job
  68838. running at the jobtracker started at <code>200707121733</code>.
  68839. <p>
  68840. Applications should never construct or parse JobID strings, but rather
  68841. use appropriate constructors or {@link #forName(String)} method.
  68842. @see TaskID
  68843. @see TaskAttemptID
  68844. @see org.apache.hadoop.mapred.JobTracker#getNewJobId()
  68845. @see org.apache.hadoop.mapred.JobTracker#getStartTime()]]>
  68846. </doc>
  68847. </class>
  68848. <!-- end class org.apache.hadoop.mapreduce.JobID -->
  68849. <!-- start class org.apache.hadoop.mapreduce.JobStatus -->
  68850. <class name="JobStatus" extends="java.lang.Object"
  68851. abstract="false"
  68852. static="false" final="false" visibility="public"
  68853. deprecated="not deprecated">
  68854. <constructor name="JobStatus"
  68855. static="false" final="false" visibility="public"
  68856. deprecated="not deprecated">
  68857. </constructor>
  68858. <doc>
  68859. <![CDATA[Describes the current status of a job.]]>
  68860. </doc>
  68861. </class>
  68862. <!-- end class org.apache.hadoop.mapreduce.JobStatus -->
  68863. <!-- start class org.apache.hadoop.mapreduce.JobStatus.State -->
  68864. <class name="JobStatus.State" extends="java.lang.Enum"
  68865. abstract="false"
  68866. static="true" final="true" visibility="public"
  68867. deprecated="not deprecated">
  68868. <method name="values" return="org.apache.hadoop.mapreduce.JobStatus.State[]"
  68869. abstract="false" native="false" synchronized="false"
  68870. static="true" final="false" visibility="public"
  68871. deprecated="not deprecated">
  68872. </method>
  68873. <method name="valueOf" return="org.apache.hadoop.mapreduce.JobStatus.State"
  68874. abstract="false" native="false" synchronized="false"
  68875. static="true" final="false" visibility="public"
  68876. deprecated="not deprecated">
  68877. <param name="name" type="java.lang.String"/>
  68878. </method>
  68879. <method name="getValue" return="int"
  68880. abstract="false" native="false" synchronized="false"
  68881. static="false" final="false" visibility="public"
  68882. deprecated="not deprecated">
  68883. </method>
  68884. <field name="RUNNING" type="org.apache.hadoop.mapreduce.JobStatus.State"
  68885. transient="false" volatile="false"
  68886. static="true" final="true" visibility="public"
  68887. deprecated="not deprecated">
  68888. </field>
  68889. <field name="SUCCEEDED" type="org.apache.hadoop.mapreduce.JobStatus.State"
  68890. transient="false" volatile="false"
  68891. static="true" final="true" visibility="public"
  68892. deprecated="not deprecated">
  68893. </field>
  68894. <field name="FAILED" type="org.apache.hadoop.mapreduce.JobStatus.State"
  68895. transient="false" volatile="false"
  68896. static="true" final="true" visibility="public"
  68897. deprecated="not deprecated">
  68898. </field>
  68899. <field name="PREP" type="org.apache.hadoop.mapreduce.JobStatus.State"
  68900. transient="false" volatile="false"
  68901. static="true" final="true" visibility="public"
  68902. deprecated="not deprecated">
  68903. </field>
  68904. <field name="KILLED" type="org.apache.hadoop.mapreduce.JobStatus.State"
  68905. transient="false" volatile="false"
  68906. static="true" final="true" visibility="public"
  68907. deprecated="not deprecated">
  68908. </field>
  68909. <doc>
  68910. <![CDATA[Current state of the job]]>
  68911. </doc>
  68912. </class>
  68913. <!-- end class org.apache.hadoop.mapreduce.JobStatus.State -->
  68914. <!-- start class org.apache.hadoop.mapreduce.JobSubmissionFiles -->
  68915. <class name="JobSubmissionFiles" extends="java.lang.Object"
  68916. abstract="false"
  68917. static="false" final="false" visibility="public"
  68918. deprecated="not deprecated">
  68919. <constructor name="JobSubmissionFiles"
  68920. static="false" final="false" visibility="public"
  68921. deprecated="not deprecated">
  68922. </constructor>
  68923. <method name="getJobSplitFile" return="org.apache.hadoop.fs.Path"
  68924. abstract="false" native="false" synchronized="false"
  68925. static="true" final="false" visibility="public"
  68926. deprecated="not deprecated">
  68927. <param name="jobSubmissionDir" type="org.apache.hadoop.fs.Path"/>
  68928. </method>
  68929. <method name="getJobSplitMetaFile" return="org.apache.hadoop.fs.Path"
  68930. abstract="false" native="false" synchronized="false"
  68931. static="true" final="false" visibility="public"
  68932. deprecated="not deprecated">
  68933. <param name="jobSubmissionDir" type="org.apache.hadoop.fs.Path"/>
  68934. </method>
  68935. <method name="getJobConfPath" return="org.apache.hadoop.fs.Path"
  68936. abstract="false" native="false" synchronized="false"
  68937. static="true" final="false" visibility="public"
  68938. deprecated="not deprecated">
  68939. <param name="jobSubmitDir" type="org.apache.hadoop.fs.Path"/>
  68940. <doc>
  68941. <![CDATA[Get the job conf path.]]>
  68942. </doc>
  68943. </method>
  68944. <method name="getJobJar" return="org.apache.hadoop.fs.Path"
  68945. abstract="false" native="false" synchronized="false"
  68946. static="true" final="false" visibility="public"
  68947. deprecated="not deprecated">
  68948. <param name="jobSubmitDir" type="org.apache.hadoop.fs.Path"/>
  68949. <doc>
  68950. <![CDATA[Get the job jar path.]]>
  68951. </doc>
  68952. </method>
  68953. <method name="getJobDistCacheFiles" return="org.apache.hadoop.fs.Path"
  68954. abstract="false" native="false" synchronized="false"
  68955. static="true" final="false" visibility="public"
  68956. deprecated="not deprecated">
  68957. <param name="jobSubmitDir" type="org.apache.hadoop.fs.Path"/>
  68958. <doc>
  68959. <![CDATA[Get the job distributed cache files path.
  68960. @param jobSubmitDir]]>
  68961. </doc>
  68962. </method>
  68963. <method name="getJobDistCacheArchives" 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 distributed cache archives path.
  68970. @param jobSubmitDir]]>
  68971. </doc>
  68972. </method>
  68973. <method name="getJobDistCacheLibjars" return="org.apache.hadoop.fs.Path"
  68974. abstract="false" native="false" synchronized="false"
  68975. static="true" final="false" visibility="public"
  68976. deprecated="not deprecated">
  68977. <param name="jobSubmitDir" type="org.apache.hadoop.fs.Path"/>
  68978. <doc>
  68979. <![CDATA[Get the job distributed cache libjars path.
  68980. @param jobSubmitDir]]>
  68981. </doc>
  68982. </method>
  68983. <method name="getStagingDir" return="org.apache.hadoop.fs.Path"
  68984. abstract="false" native="false" synchronized="false"
  68985. static="true" final="false" visibility="public"
  68986. deprecated="not deprecated">
  68987. <param name="client" type="org.apache.hadoop.mapred.JobClient"/>
  68988. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  68989. <exception name="IOException" type="java.io.IOException"/>
  68990. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  68991. <doc>
  68992. <![CDATA[Initializes the staging directory and returns the path. It also
  68993. keeps track of all necessary ownership & permissions
  68994. @param client
  68995. @param conf]]>
  68996. </doc>
  68997. </method>
  68998. <field name="JOB_DIR_PERMISSION" type="org.apache.hadoop.fs.permission.FsPermission"
  68999. transient="false" volatile="false"
  69000. static="true" final="true" visibility="public"
  69001. deprecated="not deprecated">
  69002. </field>
  69003. <field name="JOB_FILE_PERMISSION" type="org.apache.hadoop.fs.permission.FsPermission"
  69004. transient="false" volatile="false"
  69005. static="true" final="true" visibility="public"
  69006. deprecated="not deprecated">
  69007. </field>
  69008. <doc>
  69009. <![CDATA[A utility to manage job submission files.<br/>
  69010. <b><i>Note that this class is for framework internal usage only and is
  69011. not to be used by users directly.</i></b>]]>
  69012. </doc>
  69013. </class>
  69014. <!-- end class org.apache.hadoop.mapreduce.JobSubmissionFiles -->
  69015. <!-- start class org.apache.hadoop.mapreduce.MapContext -->
  69016. <class name="MapContext" extends="org.apache.hadoop.mapreduce.TaskInputOutputContext"
  69017. abstract="false"
  69018. static="false" final="false" visibility="public"
  69019. deprecated="not deprecated">
  69020. <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"
  69021. static="false" final="false" visibility="public"
  69022. deprecated="not deprecated">
  69023. </constructor>
  69024. <method name="getInputSplit" return="org.apache.hadoop.mapreduce.InputSplit"
  69025. abstract="false" native="false" synchronized="false"
  69026. static="false" final="false" visibility="public"
  69027. deprecated="not deprecated">
  69028. <doc>
  69029. <![CDATA[Get the input split for this map.]]>
  69030. </doc>
  69031. </method>
  69032. <method name="getCurrentKey" return="java.lang.Object"
  69033. abstract="false" native="false" synchronized="false"
  69034. static="false" final="false" visibility="public"
  69035. deprecated="not deprecated">
  69036. <exception name="IOException" type="java.io.IOException"/>
  69037. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  69038. </method>
  69039. <method name="getCurrentValue" return="java.lang.Object"
  69040. abstract="false" native="false" synchronized="false"
  69041. static="false" final="false" visibility="public"
  69042. deprecated="not deprecated">
  69043. <exception name="IOException" type="java.io.IOException"/>
  69044. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  69045. </method>
  69046. <method name="nextKeyValue" return="boolean"
  69047. abstract="false" native="false" synchronized="false"
  69048. static="false" final="false" visibility="public"
  69049. deprecated="not deprecated">
  69050. <exception name="IOException" type="java.io.IOException"/>
  69051. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  69052. </method>
  69053. <doc>
  69054. <![CDATA[The context that is given to the {@link Mapper}.
  69055. @param <KEYIN> the key input type to the Mapper
  69056. @param <VALUEIN> the value input type to the Mapper
  69057. @param <KEYOUT> the key output type from the Mapper
  69058. @param <VALUEOUT> the value output type from the Mapper]]>
  69059. </doc>
  69060. </class>
  69061. <!-- end class org.apache.hadoop.mapreduce.MapContext -->
  69062. <!-- start class org.apache.hadoop.mapreduce.Mapper -->
  69063. <class name="Mapper" extends="java.lang.Object"
  69064. abstract="false"
  69065. static="false" final="false" visibility="public"
  69066. deprecated="not deprecated">
  69067. <constructor name="Mapper"
  69068. static="false" final="false" visibility="public"
  69069. deprecated="not deprecated">
  69070. </constructor>
  69071. <method name="setup"
  69072. abstract="false" native="false" synchronized="false"
  69073. static="false" final="false" visibility="protected"
  69074. deprecated="not deprecated">
  69075. <param name="context" type="org.apache.hadoop.mapreduce.Mapper.Context"/>
  69076. <exception name="IOException" type="java.io.IOException"/>
  69077. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  69078. <doc>
  69079. <![CDATA[Called once at the beginning of the task.]]>
  69080. </doc>
  69081. </method>
  69082. <method name="map"
  69083. abstract="false" native="false" synchronized="false"
  69084. static="false" final="false" visibility="protected"
  69085. deprecated="not deprecated">
  69086. <param name="key" type="java.lang.Object"/>
  69087. <param name="value" type="java.lang.Object"/>
  69088. <param name="context" type="org.apache.hadoop.mapreduce.Mapper.Context"/>
  69089. <exception name="IOException" type="java.io.IOException"/>
  69090. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  69091. <doc>
  69092. <![CDATA[Called once for each key/value pair in the input split. Most applications
  69093. should override this, but the default is the identity function.]]>
  69094. </doc>
  69095. </method>
  69096. <method name="cleanup"
  69097. abstract="false" native="false" synchronized="false"
  69098. static="false" final="false" visibility="protected"
  69099. deprecated="not deprecated">
  69100. <param name="context" type="org.apache.hadoop.mapreduce.Mapper.Context"/>
  69101. <exception name="IOException" type="java.io.IOException"/>
  69102. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  69103. <doc>
  69104. <![CDATA[Called once at the end of the task.]]>
  69105. </doc>
  69106. </method>
  69107. <method name="run"
  69108. abstract="false" native="false" synchronized="false"
  69109. static="false" final="false" visibility="public"
  69110. deprecated="not deprecated">
  69111. <param name="context" type="org.apache.hadoop.mapreduce.Mapper.Context"/>
  69112. <exception name="IOException" type="java.io.IOException"/>
  69113. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  69114. <doc>
  69115. <![CDATA[Expert users can override this method for more complete control over the
  69116. execution of the Mapper.
  69117. @param context
  69118. @throws IOException]]>
  69119. </doc>
  69120. </method>
  69121. <doc>
  69122. <![CDATA[Maps input key/value pairs to a set of intermediate key/value pairs.
  69123. <p>Maps are the individual tasks which transform input records into a
  69124. intermediate records. The transformed intermediate records need not be of
  69125. the same type as the input records. A given input pair may map to zero or
  69126. many output pairs.</p>
  69127. <p>The Hadoop Map-Reduce framework spawns one map task for each
  69128. {@link InputSplit} generated by the {@link InputFormat} for the job.
  69129. <code>Mapper</code> implementations can access the {@link Configuration} for
  69130. the job via the {@link JobContext#getConfiguration()}.
  69131. <p>The framework first calls
  69132. {@link #setup(org.apache.hadoop.mapreduce.Mapper.Context)}, followed by
  69133. {@link #map(Object, Object, Context)}
  69134. for each key/value pair in the <code>InputSplit</code>. Finally
  69135. {@link #cleanup(Context)} is called.</p>
  69136. <p>All intermediate values associated with a given output key are
  69137. subsequently grouped by the framework, and passed to a {@link Reducer} to
  69138. determine the final output. Users can control the sorting and grouping by
  69139. specifying two key {@link RawComparator} classes.</p>
  69140. <p>The <code>Mapper</code> outputs are partitioned per
  69141. <code>Reducer</code>. Users can control which keys (and hence records) go to
  69142. which <code>Reducer</code> by implementing a custom {@link Partitioner}.
  69143. <p>Users can optionally specify a <code>combiner</code>, via
  69144. {@link Job#setCombinerClass(Class)}, to perform local aggregation of the
  69145. intermediate outputs, which helps to cut down the amount of data transferred
  69146. from the <code>Mapper</code> to the <code>Reducer</code>.
  69147. <p>Applications can specify if and how the intermediate
  69148. outputs are to be compressed and which {@link CompressionCodec}s are to be
  69149. used via the <code>Configuration</code>.</p>
  69150. <p>If the job has zero
  69151. reduces then the output of the <code>Mapper</code> is directly written
  69152. to the {@link OutputFormat} without sorting by keys.</p>
  69153. <p>Example:</p>
  69154. <p><blockquote><pre>
  69155. public class TokenCounterMapper
  69156. extends Mapper<Object, Text, Text, IntWritable>{
  69157. private final static IntWritable one = new IntWritable(1);
  69158. private Text word = new Text();
  69159. public void map(Object key, Text value, Context context) throws IOException {
  69160. StringTokenizer itr = new StringTokenizer(value.toString());
  69161. while (itr.hasMoreTokens()) {
  69162. word.set(itr.nextToken());
  69163. context.collect(word, one);
  69164. }
  69165. }
  69166. }
  69167. </pre></blockquote></p>
  69168. <p>Applications may override the {@link #run(Context)} method to exert
  69169. greater control on map processing e.g. multi-threaded <code>Mapper</code>s
  69170. etc.</p>
  69171. @see InputFormat
  69172. @see JobContext
  69173. @see Partitioner
  69174. @see Reducer]]>
  69175. </doc>
  69176. </class>
  69177. <!-- end class org.apache.hadoop.mapreduce.Mapper -->
  69178. <!-- start class org.apache.hadoop.mapreduce.Mapper.Context -->
  69179. <class name="Mapper.Context" extends="org.apache.hadoop.mapreduce.MapContext"
  69180. abstract="false"
  69181. static="false" final="false" visibility="public"
  69182. deprecated="not deprecated">
  69183. <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"
  69184. static="false" final="false" visibility="public"
  69185. deprecated="not deprecated">
  69186. <exception name="IOException" type="java.io.IOException"/>
  69187. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  69188. </constructor>
  69189. </class>
  69190. <!-- end class org.apache.hadoop.mapreduce.Mapper.Context -->
  69191. <!-- start class org.apache.hadoop.mapreduce.OutputCommitter -->
  69192. <class name="OutputCommitter" extends="java.lang.Object"
  69193. abstract="true"
  69194. static="false" final="false" visibility="public"
  69195. deprecated="not deprecated">
  69196. <constructor name="OutputCommitter"
  69197. static="false" final="false" visibility="public"
  69198. deprecated="not deprecated">
  69199. </constructor>
  69200. <method name="setupJob"
  69201. abstract="true" native="false" synchronized="false"
  69202. static="false" final="false" visibility="public"
  69203. deprecated="not deprecated">
  69204. <param name="jobContext" type="org.apache.hadoop.mapreduce.JobContext"/>
  69205. <exception name="IOException" type="java.io.IOException"/>
  69206. <doc>
  69207. <![CDATA[For the framework to setup the job output during initialization
  69208. @param jobContext Context of the job whose output is being written.
  69209. @throws IOException if temporary output could not be created]]>
  69210. </doc>
  69211. </method>
  69212. <method name="commitJob"
  69213. abstract="false" native="false" synchronized="false"
  69214. static="false" final="false" visibility="public"
  69215. deprecated="not deprecated">
  69216. <param name="jobContext" type="org.apache.hadoop.mapreduce.JobContext"/>
  69217. <exception name="IOException" type="java.io.IOException"/>
  69218. <doc>
  69219. <![CDATA[For cleaning up the job's output after job completion. Note that this
  69220. is invoked for jobs with final run state as
  69221. {@link JobStatus.State#SUCCEEDED}
  69222. @param jobContext Context of the job whose output is being written.
  69223. @throws IOException]]>
  69224. </doc>
  69225. </method>
  69226. <method name="cleanupJob"
  69227. abstract="false" native="false" synchronized="false"
  69228. static="false" final="false" visibility="public"
  69229. deprecated="use {@link #commitJob(JobContext)} or
  69230. {@link #abortJob(JobContext, JobStatus.State)} instead">
  69231. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  69232. <exception name="IOException" type="java.io.IOException"/>
  69233. <doc>
  69234. <![CDATA[For cleaning up the job's output after job completion
  69235. @deprecated use {@link #commitJob(JobContext)} or
  69236. {@link #abortJob(JobContext, JobStatus.State)} instead]]>
  69237. </doc>
  69238. </method>
  69239. <method name="abortJob"
  69240. abstract="false" native="false" synchronized="false"
  69241. static="false" final="false" visibility="public"
  69242. deprecated="not deprecated">
  69243. <param name="jobContext" type="org.apache.hadoop.mapreduce.JobContext"/>
  69244. <param name="state" type="org.apache.hadoop.mapreduce.JobStatus.State"/>
  69245. <exception name="IOException" type="java.io.IOException"/>
  69246. <doc>
  69247. <![CDATA[For aborting an unsuccessful job's output. Note that this is invoked for
  69248. jobs with final run state as {@link JobStatus.State#FAILED} or
  69249. {@link JobStatus.State#KILLED}.
  69250. @param jobContext Context of the job whose output is being written.
  69251. @param state final run state of the job, should be either
  69252. {@link JobStatus.State#KILLED} or {@link JobStatus.State#FAILED}
  69253. @throws IOException]]>
  69254. </doc>
  69255. </method>
  69256. <method name="setupTask"
  69257. abstract="true" native="false" synchronized="false"
  69258. static="false" final="false" visibility="public"
  69259. deprecated="not deprecated">
  69260. <param name="taskContext" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  69261. <exception name="IOException" type="java.io.IOException"/>
  69262. <doc>
  69263. <![CDATA[Sets up output for the task.
  69264. @param taskContext Context of the task whose output is being written.
  69265. @throws IOException]]>
  69266. </doc>
  69267. </method>
  69268. <method name="needsTaskCommit" return="boolean"
  69269. abstract="true" native="false" synchronized="false"
  69270. static="false" final="false" visibility="public"
  69271. deprecated="not deprecated">
  69272. <param name="taskContext" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  69273. <exception name="IOException" type="java.io.IOException"/>
  69274. <doc>
  69275. <![CDATA[Check whether task needs a commit
  69276. @param taskContext
  69277. @return true/false
  69278. @throws IOException]]>
  69279. </doc>
  69280. </method>
  69281. <method name="commitTask"
  69282. abstract="true" native="false" synchronized="false"
  69283. static="false" final="false" visibility="public"
  69284. deprecated="not deprecated">
  69285. <param name="taskContext" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  69286. <exception name="IOException" type="java.io.IOException"/>
  69287. <doc>
  69288. <![CDATA[To promote the task's temporary output to final output location
  69289. The task's output is moved to the job's output directory.
  69290. @param taskContext Context of the task whose output is being written.
  69291. @throws IOException if commit is not]]>
  69292. </doc>
  69293. </method>
  69294. <method name="abortTask"
  69295. abstract="true" native="false" synchronized="false"
  69296. static="false" final="false" visibility="public"
  69297. deprecated="not deprecated">
  69298. <param name="taskContext" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  69299. <exception name="IOException" type="java.io.IOException"/>
  69300. <doc>
  69301. <![CDATA[Discard the task output
  69302. @param taskContext
  69303. @throws IOException]]>
  69304. </doc>
  69305. </method>
  69306. <doc>
  69307. <![CDATA[<code>OutputCommitter</code> describes the commit of task output for a
  69308. Map-Reduce job.
  69309. <p>The Map-Reduce framework relies on the <code>OutputCommitter</code> of
  69310. the job to:<p>
  69311. <ol>
  69312. <li>
  69313. Setup the job during initialization. For example, create the temporary
  69314. output directory for the job during the initialization of the job.
  69315. </li>
  69316. <li>
  69317. Cleanup the job after the job completion. For example, remove the
  69318. temporary output directory after the job completion.
  69319. </li>
  69320. <li>
  69321. Setup the task temporary output.
  69322. </li>
  69323. <li>
  69324. Check whether a task needs a commit. This is to avoid the commit
  69325. procedure if a task does not need commit.
  69326. </li>
  69327. <li>
  69328. Commit of the task output.
  69329. </li>
  69330. <li>
  69331. Discard the task commit.
  69332. </li>
  69333. </ol>
  69334. @see org.apache.hadoop.mapreduce.lib.output.FileOutputCommitter
  69335. @see JobContext
  69336. @see TaskAttemptContext]]>
  69337. </doc>
  69338. </class>
  69339. <!-- end class org.apache.hadoop.mapreduce.OutputCommitter -->
  69340. <!-- start class org.apache.hadoop.mapreduce.OutputFormat -->
  69341. <class name="OutputFormat" extends="java.lang.Object"
  69342. abstract="true"
  69343. static="false" final="false" visibility="public"
  69344. deprecated="not deprecated">
  69345. <constructor name="OutputFormat"
  69346. static="false" final="false" visibility="public"
  69347. deprecated="not deprecated">
  69348. </constructor>
  69349. <method name="getRecordWriter" return="org.apache.hadoop.mapreduce.RecordWriter"
  69350. abstract="true" native="false" synchronized="false"
  69351. static="false" final="false" visibility="public"
  69352. deprecated="not deprecated">
  69353. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  69354. <exception name="IOException" type="java.io.IOException"/>
  69355. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  69356. <doc>
  69357. <![CDATA[Get the {@link RecordWriter} for the given task.
  69358. @param context the information about the current task.
  69359. @return a {@link RecordWriter} to write the output for the job.
  69360. @throws IOException]]>
  69361. </doc>
  69362. </method>
  69363. <method name="checkOutputSpecs"
  69364. abstract="true" native="false" synchronized="false"
  69365. static="false" final="false" visibility="public"
  69366. deprecated="not deprecated">
  69367. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  69368. <exception name="IOException" type="java.io.IOException"/>
  69369. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  69370. <doc>
  69371. <![CDATA[Check for validity of the output-specification for the job.
  69372. <p>This is to validate the output specification for the job when it is
  69373. a job is submitted. Typically checks that it does not already exist,
  69374. throwing an exception when it already exists, so that output is not
  69375. overwritten.</p>
  69376. @param context information about the job
  69377. @throws IOException when output should not be attempted]]>
  69378. </doc>
  69379. </method>
  69380. <method name="getOutputCommitter" return="org.apache.hadoop.mapreduce.OutputCommitter"
  69381. abstract="true" native="false" synchronized="false"
  69382. static="false" final="false" visibility="public"
  69383. deprecated="not deprecated">
  69384. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  69385. <exception name="IOException" type="java.io.IOException"/>
  69386. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  69387. <doc>
  69388. <![CDATA[Get the output committer for this output format. This is responsible
  69389. for ensuring the output is committed correctly.
  69390. @param context the task context
  69391. @return an output committer
  69392. @throws IOException
  69393. @throws InterruptedException]]>
  69394. </doc>
  69395. </method>
  69396. <doc>
  69397. <![CDATA[<code>OutputFormat</code> describes the output-specification for a
  69398. Map-Reduce job.
  69399. <p>The Map-Reduce framework relies on the <code>OutputFormat</code> of the
  69400. job to:<p>
  69401. <ol>
  69402. <li>
  69403. Validate the output-specification of the job. For e.g. check that the
  69404. output directory doesn't already exist.
  69405. <li>
  69406. Provide the {@link RecordWriter} implementation to be used to write out
  69407. the output files of the job. Output files are stored in a
  69408. {@link FileSystem}.
  69409. </li>
  69410. </ol>
  69411. @see RecordWriter]]>
  69412. </doc>
  69413. </class>
  69414. <!-- end class org.apache.hadoop.mapreduce.OutputFormat -->
  69415. <!-- start class org.apache.hadoop.mapreduce.Partitioner -->
  69416. <class name="Partitioner" extends="java.lang.Object"
  69417. abstract="true"
  69418. static="false" final="false" visibility="public"
  69419. deprecated="not deprecated">
  69420. <constructor name="Partitioner"
  69421. static="false" final="false" visibility="public"
  69422. deprecated="not deprecated">
  69423. </constructor>
  69424. <method name="getPartition" return="int"
  69425. abstract="true" native="false" synchronized="false"
  69426. static="false" final="false" visibility="public"
  69427. deprecated="not deprecated">
  69428. <param name="key" type="java.lang.Object"/>
  69429. <param name="value" type="java.lang.Object"/>
  69430. <param name="numPartitions" type="int"/>
  69431. <doc>
  69432. <![CDATA[Get the partition number for a given key (hence record) given the total
  69433. number of partitions i.e. number of reduce-tasks for the job.
  69434. <p>Typically a hash function on a all or a subset of the key.</p>
  69435. @param key the key to be partioned.
  69436. @param value the entry value.
  69437. @param numPartitions the total number of partitions.
  69438. @return the partition number for the <code>key</code>.]]>
  69439. </doc>
  69440. </method>
  69441. <doc>
  69442. <![CDATA[Partitions the key space.
  69443. <p><code>Partitioner</code> controls the partitioning of the keys of the
  69444. intermediate map-outputs. The key (or a subset of the key) is used to derive
  69445. the partition, typically by a hash function. The total number of partitions
  69446. is the same as the number of reduce tasks for the job. Hence this controls
  69447. which of the <code>m</code> reduce tasks the intermediate key (and hence the
  69448. record) is sent for reduction.</p>
  69449. @see Reducer]]>
  69450. </doc>
  69451. </class>
  69452. <!-- end class org.apache.hadoop.mapreduce.Partitioner -->
  69453. <!-- start class org.apache.hadoop.mapreduce.RecordReader -->
  69454. <class name="RecordReader" extends="java.lang.Object"
  69455. abstract="true"
  69456. static="false" final="false" visibility="public"
  69457. deprecated="not deprecated">
  69458. <implements name="java.io.Closeable"/>
  69459. <constructor name="RecordReader"
  69460. static="false" final="false" visibility="public"
  69461. deprecated="not deprecated">
  69462. </constructor>
  69463. <method name="initialize"
  69464. abstract="true" native="false" synchronized="false"
  69465. static="false" final="false" visibility="public"
  69466. deprecated="not deprecated">
  69467. <param name="split" type="org.apache.hadoop.mapreduce.InputSplit"/>
  69468. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  69469. <exception name="IOException" type="java.io.IOException"/>
  69470. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  69471. <doc>
  69472. <![CDATA[Called once at initialization.
  69473. @param split the split that defines the range of records to read
  69474. @param context the information about the task
  69475. @throws IOException
  69476. @throws InterruptedException]]>
  69477. </doc>
  69478. </method>
  69479. <method name="nextKeyValue" return="boolean"
  69480. abstract="true" native="false" synchronized="false"
  69481. static="false" final="false" visibility="public"
  69482. deprecated="not deprecated">
  69483. <exception name="IOException" type="java.io.IOException"/>
  69484. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  69485. <doc>
  69486. <![CDATA[Read the next key, value pair.
  69487. @return true if a key/value pair was read
  69488. @throws IOException
  69489. @throws InterruptedException]]>
  69490. </doc>
  69491. </method>
  69492. <method name="getCurrentKey" return="java.lang.Object"
  69493. abstract="true" native="false" synchronized="false"
  69494. static="false" final="false" visibility="public"
  69495. deprecated="not deprecated">
  69496. <exception name="IOException" type="java.io.IOException"/>
  69497. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  69498. <doc>
  69499. <![CDATA[Get the current key
  69500. @return the current key or null if there is no current key
  69501. @throws IOException
  69502. @throws InterruptedException]]>
  69503. </doc>
  69504. </method>
  69505. <method name="getCurrentValue" return="java.lang.Object"
  69506. abstract="true" native="false" synchronized="false"
  69507. static="false" final="false" visibility="public"
  69508. deprecated="not deprecated">
  69509. <exception name="IOException" type="java.io.IOException"/>
  69510. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  69511. <doc>
  69512. <![CDATA[Get the current value.
  69513. @return the object that was read
  69514. @throws IOException
  69515. @throws InterruptedException]]>
  69516. </doc>
  69517. </method>
  69518. <method name="getProgress" return="float"
  69519. abstract="true" native="false" synchronized="false"
  69520. static="false" final="false" visibility="public"
  69521. deprecated="not deprecated">
  69522. <exception name="IOException" type="java.io.IOException"/>
  69523. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  69524. <doc>
  69525. <![CDATA[The current progress of the record reader through its data.
  69526. @return a number between 0.0 and 1.0 that is the fraction of the data read
  69527. @throws IOException
  69528. @throws InterruptedException]]>
  69529. </doc>
  69530. </method>
  69531. <method name="close"
  69532. abstract="true" native="false" synchronized="false"
  69533. static="false" final="false" visibility="public"
  69534. deprecated="not deprecated">
  69535. <exception name="IOException" type="java.io.IOException"/>
  69536. <doc>
  69537. <![CDATA[Close the record reader.]]>
  69538. </doc>
  69539. </method>
  69540. <doc>
  69541. <![CDATA[The record reader breaks the data into key/value pairs for input to the
  69542. {@link Mapper}.
  69543. @param <KEYIN>
  69544. @param <VALUEIN>]]>
  69545. </doc>
  69546. </class>
  69547. <!-- end class org.apache.hadoop.mapreduce.RecordReader -->
  69548. <!-- start class org.apache.hadoop.mapreduce.RecordWriter -->
  69549. <class name="RecordWriter" extends="java.lang.Object"
  69550. abstract="true"
  69551. static="false" final="false" visibility="public"
  69552. deprecated="not deprecated">
  69553. <constructor name="RecordWriter"
  69554. static="false" final="false" visibility="public"
  69555. deprecated="not deprecated">
  69556. </constructor>
  69557. <method name="write"
  69558. abstract="true" native="false" synchronized="false"
  69559. static="false" final="false" visibility="public"
  69560. deprecated="not deprecated">
  69561. <param name="key" type="java.lang.Object"/>
  69562. <param name="value" type="java.lang.Object"/>
  69563. <exception name="IOException" type="java.io.IOException"/>
  69564. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  69565. <doc>
  69566. <![CDATA[Writes a key/value pair.
  69567. @param key the key to write.
  69568. @param value the value to write.
  69569. @throws IOException]]>
  69570. </doc>
  69571. </method>
  69572. <method name="close"
  69573. abstract="true" native="false" synchronized="false"
  69574. static="false" final="false" visibility="public"
  69575. deprecated="not deprecated">
  69576. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  69577. <exception name="IOException" type="java.io.IOException"/>
  69578. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  69579. <doc>
  69580. <![CDATA[Close this <code>RecordWriter</code> to future operations.
  69581. @param context the context of the task
  69582. @throws IOException]]>
  69583. </doc>
  69584. </method>
  69585. <doc>
  69586. <![CDATA[<code>RecordWriter</code> writes the output &lt;key, value&gt; pairs
  69587. to an output file.
  69588. <p><code>RecordWriter</code> implementations write the job outputs to the
  69589. {@link FileSystem}.
  69590. @see OutputFormat]]>
  69591. </doc>
  69592. </class>
  69593. <!-- end class org.apache.hadoop.mapreduce.RecordWriter -->
  69594. <!-- start class org.apache.hadoop.mapreduce.ReduceContext -->
  69595. <class name="ReduceContext" extends="org.apache.hadoop.mapreduce.TaskInputOutputContext"
  69596. abstract="false"
  69597. static="false" final="false" visibility="public"
  69598. deprecated="not deprecated">
  69599. <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"
  69600. static="false" final="false" visibility="public"
  69601. deprecated="not deprecated">
  69602. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  69603. <exception name="IOException" type="java.io.IOException"/>
  69604. </constructor>
  69605. <method name="nextKey" return="boolean"
  69606. abstract="false" native="false" synchronized="false"
  69607. static="false" final="false" visibility="public"
  69608. deprecated="not deprecated">
  69609. <exception name="IOException" type="java.io.IOException"/>
  69610. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  69611. <doc>
  69612. <![CDATA[Start processing next unique key.]]>
  69613. </doc>
  69614. </method>
  69615. <method name="nextKeyValue" return="boolean"
  69616. abstract="false" native="false" synchronized="false"
  69617. static="false" final="false" visibility="public"
  69618. deprecated="not deprecated">
  69619. <exception name="IOException" type="java.io.IOException"/>
  69620. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  69621. <doc>
  69622. <![CDATA[Advance to the next key/value pair.]]>
  69623. </doc>
  69624. </method>
  69625. <method name="getCurrentKey" return="java.lang.Object"
  69626. abstract="false" native="false" synchronized="false"
  69627. static="false" final="false" visibility="public"
  69628. deprecated="not deprecated">
  69629. </method>
  69630. <method name="getCurrentValue" return="java.lang.Object"
  69631. abstract="false" native="false" synchronized="false"
  69632. static="false" final="false" visibility="public"
  69633. deprecated="not deprecated">
  69634. </method>
  69635. <method name="getValues" return="java.lang.Iterable"
  69636. abstract="false" native="false" synchronized="false"
  69637. static="false" final="false" visibility="public"
  69638. deprecated="not deprecated">
  69639. <exception name="IOException" type="java.io.IOException"/>
  69640. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  69641. <doc>
  69642. <![CDATA[Iterate through the values for the current key, reusing the same value
  69643. object, which is stored in the context.
  69644. @return the series of values associated with the current key. All of the
  69645. objects returned directly and indirectly from this method are reused.]]>
  69646. </doc>
  69647. </method>
  69648. <field name="reporter" type="org.apache.hadoop.util.Progressable"
  69649. transient="false" volatile="false"
  69650. static="false" final="false" visibility="protected"
  69651. deprecated="not deprecated">
  69652. </field>
  69653. <doc>
  69654. <![CDATA[The context passed to the {@link Reducer}.
  69655. @param <KEYIN> the class of the input keys
  69656. @param <VALUEIN> the class of the input values
  69657. @param <KEYOUT> the class of the output keys
  69658. @param <VALUEOUT> the class of the output values]]>
  69659. </doc>
  69660. </class>
  69661. <!-- end class org.apache.hadoop.mapreduce.ReduceContext -->
  69662. <!-- start class org.apache.hadoop.mapreduce.ReduceContext.ValueIterable -->
  69663. <class name="ReduceContext.ValueIterable" extends="java.lang.Object"
  69664. abstract="false"
  69665. static="false" final="false" visibility="protected"
  69666. deprecated="not deprecated">
  69667. <implements name="java.lang.Iterable"/>
  69668. <constructor name="ReduceContext.ValueIterable"
  69669. static="false" final="false" visibility="protected"
  69670. deprecated="not deprecated">
  69671. </constructor>
  69672. <method name="iterator" return="java.util.Iterator"
  69673. abstract="false" native="false" synchronized="false"
  69674. static="false" final="false" visibility="public"
  69675. deprecated="not deprecated">
  69676. </method>
  69677. </class>
  69678. <!-- end class org.apache.hadoop.mapreduce.ReduceContext.ValueIterable -->
  69679. <!-- start class org.apache.hadoop.mapreduce.ReduceContext.ValueIterator -->
  69680. <class name="ReduceContext.ValueIterator" extends="java.lang.Object"
  69681. abstract="false"
  69682. static="false" final="false" visibility="protected"
  69683. deprecated="not deprecated">
  69684. <implements name="java.util.Iterator"/>
  69685. <constructor name="ReduceContext.ValueIterator"
  69686. static="false" final="false" visibility="protected"
  69687. deprecated="not deprecated">
  69688. </constructor>
  69689. <method name="hasNext" return="boolean"
  69690. abstract="false" native="false" synchronized="false"
  69691. static="false" final="false" visibility="public"
  69692. deprecated="not deprecated">
  69693. </method>
  69694. <method name="next" return="java.lang.Object"
  69695. abstract="false" native="false" synchronized="false"
  69696. static="false" final="false" visibility="public"
  69697. deprecated="not deprecated">
  69698. </method>
  69699. <method name="remove"
  69700. abstract="false" native="false" synchronized="false"
  69701. static="false" final="false" visibility="public"
  69702. deprecated="not deprecated">
  69703. </method>
  69704. </class>
  69705. <!-- end class org.apache.hadoop.mapreduce.ReduceContext.ValueIterator -->
  69706. <!-- start class org.apache.hadoop.mapreduce.Reducer -->
  69707. <class name="Reducer" extends="java.lang.Object"
  69708. abstract="false"
  69709. static="false" final="false" visibility="public"
  69710. deprecated="not deprecated">
  69711. <constructor name="Reducer"
  69712. static="false" final="false" visibility="public"
  69713. deprecated="not deprecated">
  69714. </constructor>
  69715. <method name="setup"
  69716. abstract="false" native="false" synchronized="false"
  69717. static="false" final="false" visibility="protected"
  69718. deprecated="not deprecated">
  69719. <param name="context" type="org.apache.hadoop.mapreduce.Reducer.Context"/>
  69720. <exception name="IOException" type="java.io.IOException"/>
  69721. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  69722. <doc>
  69723. <![CDATA[Called once at the start of the task.]]>
  69724. </doc>
  69725. </method>
  69726. <method name="reduce"
  69727. abstract="false" native="false" synchronized="false"
  69728. static="false" final="false" visibility="protected"
  69729. deprecated="not deprecated">
  69730. <param name="key" type="java.lang.Object"/>
  69731. <param name="values" type="java.lang.Iterable"/>
  69732. <param name="context" type="org.apache.hadoop.mapreduce.Reducer.Context"/>
  69733. <exception name="IOException" type="java.io.IOException"/>
  69734. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  69735. <doc>
  69736. <![CDATA[This method is called once for each key. Most applications will define
  69737. their reduce class by overriding this method. The default implementation
  69738. is an identity function.]]>
  69739. </doc>
  69740. </method>
  69741. <method name="cleanup"
  69742. abstract="false" native="false" synchronized="false"
  69743. static="false" final="false" visibility="protected"
  69744. deprecated="not deprecated">
  69745. <param name="context" type="org.apache.hadoop.mapreduce.Reducer.Context"/>
  69746. <exception name="IOException" type="java.io.IOException"/>
  69747. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  69748. <doc>
  69749. <![CDATA[Called once at the end of the task.]]>
  69750. </doc>
  69751. </method>
  69752. <method name="run"
  69753. abstract="false" native="false" synchronized="false"
  69754. static="false" final="false" visibility="public"
  69755. deprecated="not deprecated">
  69756. <param name="context" type="org.apache.hadoop.mapreduce.Reducer.Context"/>
  69757. <exception name="IOException" type="java.io.IOException"/>
  69758. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  69759. <doc>
  69760. <![CDATA[Advanced application writers can use the
  69761. {@link #run(org.apache.hadoop.mapreduce.Reducer.Context)} method to
  69762. control how the reduce task works.]]>
  69763. </doc>
  69764. </method>
  69765. <doc>
  69766. <![CDATA[Reduces a set of intermediate values which share a key to a smaller set of
  69767. values.
  69768. <p><code>Reducer</code> implementations
  69769. can access the {@link Configuration} for the job via the
  69770. {@link JobContext#getConfiguration()} method.</p>
  69771. <p><code>Reducer</code> has 3 primary phases:</p>
  69772. <ol>
  69773. <li>
  69774. <h4 id="Shuffle">Shuffle</h4>
  69775. <p>The <code>Reducer</code> copies the sorted output from each
  69776. {@link Mapper} using HTTP across the network.</p>
  69777. </li>
  69778. <li>
  69779. <h4 id="Sort">Sort</h4>
  69780. <p>The framework merge sorts <code>Reducer</code> inputs by
  69781. <code>key</code>s
  69782. (since different <code>Mapper</code>s may have output the same key).</p>
  69783. <p>The shuffle and sort phases occur simultaneously i.e. while outputs are
  69784. being fetched they are merged.</p>
  69785. <h5 id="SecondarySort">SecondarySort</h5>
  69786. <p>To achieve a secondary sort on the values returned by the value
  69787. iterator, the application should extend the key with the secondary
  69788. key and define a grouping comparator. The keys will be sorted using the
  69789. entire key, but will be grouped using the grouping comparator to decide
  69790. which keys and values are sent in the same call to reduce.The grouping
  69791. comparator is specified via
  69792. {@link Job#setGroupingComparatorClass(Class)}. The sort order is
  69793. controlled by
  69794. {@link Job#setSortComparatorClass(Class)}.</p>
  69795. For example, say that you want to find duplicate web pages and tag them
  69796. all with the url of the "best" known example. You would set up the job
  69797. like:
  69798. <ul>
  69799. <li>Map Input Key: url</li>
  69800. <li>Map Input Value: document</li>
  69801. <li>Map Output Key: document checksum, url pagerank</li>
  69802. <li>Map Output Value: url</li>
  69803. <li>Partitioner: by checksum</li>
  69804. <li>OutputKeyComparator: by checksum and then decreasing pagerank</li>
  69805. <li>OutputValueGroupingComparator: by checksum</li>
  69806. </ul>
  69807. </li>
  69808. <li>
  69809. <h4 id="Reduce">Reduce</h4>
  69810. <p>In this phase the
  69811. {@link #reduce(Object, Iterable, Context)}
  69812. method is called for each <code>&lt;key, (collection of values)></code> in
  69813. the sorted inputs.</p>
  69814. <p>The output of the reduce task is typically written to a
  69815. {@link RecordWriter} via
  69816. {@link Context#write(Object, Object)}.</p>
  69817. </li>
  69818. </ol>
  69819. <p>The output of the <code>Reducer</code> is <b>not re-sorted</b>.</p>
  69820. <p>Example:</p>
  69821. <p><blockquote><pre>
  69822. public class IntSumReducer<Key> extends Reducer<Key,IntWritable,
  69823. Key,IntWritable> {
  69824. private IntWritable result = new IntWritable();
  69825. public void reduce(Key key, Iterable<IntWritable> values,
  69826. Context context) throws IOException {
  69827. int sum = 0;
  69828. for (IntWritable val : values) {
  69829. sum += val.get();
  69830. }
  69831. result.set(sum);
  69832. context.collect(key, result);
  69833. }
  69834. }
  69835. </pre></blockquote></p>
  69836. @see Mapper
  69837. @see Partitioner]]>
  69838. </doc>
  69839. </class>
  69840. <!-- end class org.apache.hadoop.mapreduce.Reducer -->
  69841. <!-- start class org.apache.hadoop.mapreduce.Reducer.Context -->
  69842. <class name="Reducer.Context" extends="org.apache.hadoop.mapreduce.ReduceContext"
  69843. abstract="false"
  69844. static="false" final="false" visibility="public"
  69845. deprecated="not deprecated">
  69846. <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"
  69847. static="false" final="false" visibility="public"
  69848. deprecated="not deprecated">
  69849. <exception name="IOException" type="java.io.IOException"/>
  69850. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  69851. </constructor>
  69852. </class>
  69853. <!-- end class org.apache.hadoop.mapreduce.Reducer.Context -->
  69854. <!-- start class org.apache.hadoop.mapreduce.StatusReporter -->
  69855. <class name="StatusReporter" extends="java.lang.Object"
  69856. abstract="true"
  69857. static="false" final="false" visibility="public"
  69858. deprecated="not deprecated">
  69859. <constructor name="StatusReporter"
  69860. static="false" final="false" visibility="public"
  69861. deprecated="not deprecated">
  69862. </constructor>
  69863. <method name="getCounter" return="org.apache.hadoop.mapreduce.Counter"
  69864. abstract="true" native="false" synchronized="false"
  69865. static="false" final="false" visibility="public"
  69866. deprecated="not deprecated">
  69867. <param name="name" type="java.lang.Enum"/>
  69868. </method>
  69869. <method name="getCounter" return="org.apache.hadoop.mapreduce.Counter"
  69870. abstract="true" native="false" synchronized="false"
  69871. static="false" final="false" visibility="public"
  69872. deprecated="not deprecated">
  69873. <param name="group" type="java.lang.String"/>
  69874. <param name="name" type="java.lang.String"/>
  69875. </method>
  69876. <method name="progress"
  69877. abstract="true" native="false" synchronized="false"
  69878. static="false" final="false" visibility="public"
  69879. deprecated="not deprecated">
  69880. </method>
  69881. <method name="getProgress" return="float"
  69882. abstract="true" native="false" synchronized="false"
  69883. static="false" final="false" visibility="public"
  69884. deprecated="not deprecated">
  69885. <doc>
  69886. <![CDATA[Get the current progress.
  69887. @return a number between 0.0 and 1.0 (inclusive) indicating the attempt's
  69888. progress.]]>
  69889. </doc>
  69890. </method>
  69891. <method name="setStatus"
  69892. abstract="true" native="false" synchronized="false"
  69893. static="false" final="false" visibility="public"
  69894. deprecated="not deprecated">
  69895. <param name="status" type="java.lang.String"/>
  69896. </method>
  69897. </class>
  69898. <!-- end class org.apache.hadoop.mapreduce.StatusReporter -->
  69899. <!-- start class org.apache.hadoop.mapreduce.TaskAttemptContext -->
  69900. <class name="TaskAttemptContext" extends="org.apache.hadoop.mapreduce.JobContext"
  69901. abstract="false"
  69902. static="false" final="false" visibility="public"
  69903. deprecated="not deprecated">
  69904. <implements name="org.apache.hadoop.util.Progressable"/>
  69905. <constructor name="TaskAttemptContext" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.mapreduce.TaskAttemptID"
  69906. static="false" final="false" visibility="public"
  69907. deprecated="not deprecated">
  69908. </constructor>
  69909. <method name="getTaskAttemptID" return="org.apache.hadoop.mapreduce.TaskAttemptID"
  69910. abstract="false" native="false" synchronized="false"
  69911. static="false" final="false" visibility="public"
  69912. deprecated="not deprecated">
  69913. <doc>
  69914. <![CDATA[Get the unique name for this task attempt.]]>
  69915. </doc>
  69916. </method>
  69917. <method name="setStatus"
  69918. abstract="false" native="false" synchronized="false"
  69919. static="false" final="false" visibility="public"
  69920. deprecated="not deprecated">
  69921. <param name="msg" type="java.lang.String"/>
  69922. <exception name="IOException" type="java.io.IOException"/>
  69923. <doc>
  69924. <![CDATA[Set the current status of the task to the given string.]]>
  69925. </doc>
  69926. </method>
  69927. <method name="getStatus" return="java.lang.String"
  69928. abstract="false" native="false" synchronized="false"
  69929. static="false" final="false" visibility="public"
  69930. deprecated="not deprecated">
  69931. <doc>
  69932. <![CDATA[Get the last set status message.
  69933. @return the current status message]]>
  69934. </doc>
  69935. </method>
  69936. <method name="progress"
  69937. abstract="false" native="false" synchronized="false"
  69938. static="false" final="false" visibility="public"
  69939. deprecated="not deprecated">
  69940. <doc>
  69941. <![CDATA[Report progress. The subtypes actually do work in this method.]]>
  69942. </doc>
  69943. </method>
  69944. <doc>
  69945. <![CDATA[The context for task attempts.]]>
  69946. </doc>
  69947. </class>
  69948. <!-- end class org.apache.hadoop.mapreduce.TaskAttemptContext -->
  69949. <!-- start class org.apache.hadoop.mapreduce.TaskAttemptID -->
  69950. <class name="TaskAttemptID" extends="org.apache.hadoop.mapred.ID"
  69951. abstract="false"
  69952. static="false" final="false" visibility="public"
  69953. deprecated="not deprecated">
  69954. <constructor name="TaskAttemptID" type="org.apache.hadoop.mapreduce.TaskID, int"
  69955. static="false" final="false" visibility="public"
  69956. deprecated="not deprecated">
  69957. <doc>
  69958. <![CDATA[Constructs a TaskAttemptID object from given {@link TaskID}.
  69959. @param taskId TaskID that this task belongs to
  69960. @param id the task attempt number]]>
  69961. </doc>
  69962. </constructor>
  69963. <constructor name="TaskAttemptID" type="java.lang.String, int, boolean, int, int"
  69964. static="false" final="false" visibility="public"
  69965. deprecated="not deprecated">
  69966. <doc>
  69967. <![CDATA[Constructs a TaskId object from given parts.
  69968. @param jtIdentifier jobTracker identifier
  69969. @param jobId job number
  69970. @param isMap whether the tip is a map
  69971. @param taskId taskId number
  69972. @param id the task attempt number]]>
  69973. </doc>
  69974. </constructor>
  69975. <constructor name="TaskAttemptID"
  69976. static="false" final="false" visibility="public"
  69977. deprecated="not deprecated">
  69978. </constructor>
  69979. <method name="getJobID" return="org.apache.hadoop.mapreduce.JobID"
  69980. abstract="false" native="false" synchronized="false"
  69981. static="false" final="false" visibility="public"
  69982. deprecated="not deprecated">
  69983. <doc>
  69984. <![CDATA[Returns the {@link JobID} object that this task attempt belongs to]]>
  69985. </doc>
  69986. </method>
  69987. <method name="getTaskID" return="org.apache.hadoop.mapreduce.TaskID"
  69988. abstract="false" native="false" synchronized="false"
  69989. static="false" final="false" visibility="public"
  69990. deprecated="not deprecated">
  69991. <doc>
  69992. <![CDATA[Returns the {@link TaskID} object that this task attempt belongs to]]>
  69993. </doc>
  69994. </method>
  69995. <method name="isMap" return="boolean"
  69996. abstract="false" native="false" synchronized="false"
  69997. static="false" final="false" visibility="public"
  69998. deprecated="not deprecated">
  69999. <doc>
  70000. <![CDATA[Returns whether this TaskAttemptID is a map ID]]>
  70001. </doc>
  70002. </method>
  70003. <method name="equals" return="boolean"
  70004. abstract="false" native="false" synchronized="false"
  70005. static="false" final="false" visibility="public"
  70006. deprecated="not deprecated">
  70007. <param name="o" type="java.lang.Object"/>
  70008. </method>
  70009. <method name="appendTo" return="java.lang.StringBuilder"
  70010. abstract="false" native="false" synchronized="false"
  70011. static="false" final="false" visibility="protected"
  70012. deprecated="not deprecated">
  70013. <param name="builder" type="java.lang.StringBuilder"/>
  70014. <doc>
  70015. <![CDATA[Add the unique string to the StringBuilder
  70016. @param builder the builder to append ot
  70017. @return the builder that was passed in.]]>
  70018. </doc>
  70019. </method>
  70020. <method name="readFields"
  70021. abstract="false" native="false" synchronized="false"
  70022. static="false" final="false" visibility="public"
  70023. deprecated="not deprecated">
  70024. <param name="in" type="java.io.DataInput"/>
  70025. <exception name="IOException" type="java.io.IOException"/>
  70026. </method>
  70027. <method name="write"
  70028. abstract="false" native="false" synchronized="false"
  70029. static="false" final="false" visibility="public"
  70030. deprecated="not deprecated">
  70031. <param name="out" type="java.io.DataOutput"/>
  70032. <exception name="IOException" type="java.io.IOException"/>
  70033. </method>
  70034. <method name="hashCode" return="int"
  70035. abstract="false" native="false" synchronized="false"
  70036. static="false" final="false" visibility="public"
  70037. deprecated="not deprecated">
  70038. </method>
  70039. <method name="compareTo" return="int"
  70040. abstract="false" native="false" synchronized="false"
  70041. static="false" final="false" visibility="public"
  70042. deprecated="not deprecated">
  70043. <param name="o" type="org.apache.hadoop.mapreduce.ID"/>
  70044. <doc>
  70045. <![CDATA[Compare TaskIds by first tipIds, then by task numbers.]]>
  70046. </doc>
  70047. </method>
  70048. <method name="toString" return="java.lang.String"
  70049. abstract="false" native="false" synchronized="false"
  70050. static="false" final="false" visibility="public"
  70051. deprecated="not deprecated">
  70052. </method>
  70053. <method name="forName" return="org.apache.hadoop.mapreduce.TaskAttemptID"
  70054. abstract="false" native="false" synchronized="false"
  70055. static="true" final="false" visibility="public"
  70056. deprecated="not deprecated">
  70057. <param name="str" type="java.lang.String"/>
  70058. <exception name="IllegalArgumentException" type="java.lang.IllegalArgumentException"/>
  70059. <doc>
  70060. <![CDATA[Construct a TaskAttemptID object from given string
  70061. @return constructed TaskAttemptID object or null if the given String is null
  70062. @throws IllegalArgumentException if the given string is malformed]]>
  70063. </doc>
  70064. </method>
  70065. <field name="ATTEMPT" type="java.lang.String"
  70066. transient="false" volatile="false"
  70067. static="true" final="true" visibility="protected"
  70068. deprecated="not deprecated">
  70069. </field>
  70070. <doc>
  70071. <![CDATA[TaskAttemptID represents the immutable and unique identifier for
  70072. a task attempt. Each task attempt is one particular instance of a Map or
  70073. Reduce Task identified by its TaskID.
  70074. TaskAttemptID consists of 2 parts. First part is the
  70075. {@link TaskID}, that this TaskAttemptID belongs to.
  70076. Second part is the task attempt number. <br>
  70077. An example TaskAttemptID is :
  70078. <code>attempt_200707121733_0003_m_000005_0</code> , which represents the
  70079. zeroth task attempt for the fifth map task in the third job
  70080. running at the jobtracker started at <code>200707121733</code>.
  70081. <p>
  70082. Applications should never construct or parse TaskAttemptID strings
  70083. , but rather use appropriate constructors or {@link #forName(String)}
  70084. method.
  70085. @see JobID
  70086. @see TaskID]]>
  70087. </doc>
  70088. </class>
  70089. <!-- end class org.apache.hadoop.mapreduce.TaskAttemptID -->
  70090. <!-- start class org.apache.hadoop.mapreduce.TaskID -->
  70091. <class name="TaskID" extends="org.apache.hadoop.mapred.ID"
  70092. abstract="false"
  70093. static="false" final="false" visibility="public"
  70094. deprecated="not deprecated">
  70095. <constructor name="TaskID" type="org.apache.hadoop.mapreduce.JobID, boolean, int"
  70096. static="false" final="false" visibility="public"
  70097. deprecated="not deprecated">
  70098. <doc>
  70099. <![CDATA[Constructs a TaskID object from given {@link JobID}.
  70100. @param jobId JobID that this tip belongs to
  70101. @param isMap whether the tip is a map
  70102. @param id the tip number]]>
  70103. </doc>
  70104. </constructor>
  70105. <constructor name="TaskID" type="java.lang.String, int, boolean, int"
  70106. static="false" final="false" visibility="public"
  70107. deprecated="not deprecated">
  70108. <doc>
  70109. <![CDATA[Constructs a TaskInProgressId object from given parts.
  70110. @param jtIdentifier jobTracker identifier
  70111. @param jobId job number
  70112. @param isMap whether the tip is a map
  70113. @param id the tip number]]>
  70114. </doc>
  70115. </constructor>
  70116. <constructor name="TaskID"
  70117. static="false" final="false" visibility="public"
  70118. deprecated="not deprecated">
  70119. </constructor>
  70120. <method name="getJobID" return="org.apache.hadoop.mapreduce.JobID"
  70121. abstract="false" native="false" synchronized="false"
  70122. static="false" final="false" visibility="public"
  70123. deprecated="not deprecated">
  70124. <doc>
  70125. <![CDATA[Returns the {@link JobID} object that this tip belongs to]]>
  70126. </doc>
  70127. </method>
  70128. <method name="isMap" return="boolean"
  70129. abstract="false" native="false" synchronized="false"
  70130. static="false" final="false" visibility="public"
  70131. deprecated="not deprecated">
  70132. <doc>
  70133. <![CDATA[Returns whether this TaskID is a map ID]]>
  70134. </doc>
  70135. </method>
  70136. <method name="equals" return="boolean"
  70137. abstract="false" native="false" synchronized="false"
  70138. static="false" final="false" visibility="public"
  70139. deprecated="not deprecated">
  70140. <param name="o" type="java.lang.Object"/>
  70141. </method>
  70142. <method name="compareTo" return="int"
  70143. abstract="false" native="false" synchronized="false"
  70144. static="false" final="false" visibility="public"
  70145. deprecated="not deprecated">
  70146. <param name="o" type="org.apache.hadoop.mapreduce.ID"/>
  70147. <doc>
  70148. <![CDATA[Compare TaskInProgressIds by first jobIds, then by tip numbers. Reduces are
  70149. defined as greater then maps.]]>
  70150. </doc>
  70151. </method>
  70152. <method name="toString" return="java.lang.String"
  70153. abstract="false" native="false" synchronized="false"
  70154. static="false" final="false" visibility="public"
  70155. deprecated="not deprecated">
  70156. </method>
  70157. <method name="appendTo" return="java.lang.StringBuilder"
  70158. abstract="false" native="false" synchronized="false"
  70159. static="false" final="false" visibility="protected"
  70160. deprecated="not deprecated">
  70161. <param name="builder" type="java.lang.StringBuilder"/>
  70162. <doc>
  70163. <![CDATA[Add the unique string to the given builder.
  70164. @param builder the builder to append to
  70165. @return the builder that was passed in]]>
  70166. </doc>
  70167. </method>
  70168. <method name="hashCode" return="int"
  70169. abstract="false" native="false" synchronized="false"
  70170. static="false" final="false" visibility="public"
  70171. deprecated="not deprecated">
  70172. </method>
  70173. <method name="readFields"
  70174. abstract="false" native="false" synchronized="false"
  70175. static="false" final="false" visibility="public"
  70176. deprecated="not deprecated">
  70177. <param name="in" type="java.io.DataInput"/>
  70178. <exception name="IOException" type="java.io.IOException"/>
  70179. </method>
  70180. <method name="write"
  70181. abstract="false" native="false" synchronized="false"
  70182. static="false" final="false" visibility="public"
  70183. deprecated="not deprecated">
  70184. <param name="out" type="java.io.DataOutput"/>
  70185. <exception name="IOException" type="java.io.IOException"/>
  70186. </method>
  70187. <method name="forName" return="org.apache.hadoop.mapreduce.TaskID"
  70188. abstract="false" native="false" synchronized="false"
  70189. static="true" final="false" visibility="public"
  70190. deprecated="not deprecated">
  70191. <param name="str" type="java.lang.String"/>
  70192. <exception name="IllegalArgumentException" type="java.lang.IllegalArgumentException"/>
  70193. <doc>
  70194. <![CDATA[Construct a TaskID object from given string
  70195. @return constructed TaskID object or null if the given String is null
  70196. @throws IllegalArgumentException if the given string is malformed]]>
  70197. </doc>
  70198. </method>
  70199. <field name="TASK" type="java.lang.String"
  70200. transient="false" volatile="false"
  70201. static="true" final="true" visibility="protected"
  70202. deprecated="not deprecated">
  70203. </field>
  70204. <field name="idFormat" type="java.text.NumberFormat"
  70205. transient="false" volatile="false"
  70206. static="true" final="true" visibility="protected"
  70207. deprecated="not deprecated">
  70208. </field>
  70209. <doc>
  70210. <![CDATA[TaskID represents the immutable and unique identifier for
  70211. a Map or Reduce Task. Each TaskID encompasses multiple attempts made to
  70212. execute the Map or Reduce Task, each of which are uniquely indentified by
  70213. their TaskAttemptID.
  70214. TaskID consists of 3 parts. First part is the {@link JobID}, that this
  70215. TaskInProgress belongs to. Second part of the TaskID is either 'm' or 'r'
  70216. representing whether the task is a map task or a reduce task.
  70217. And the third part is the task number. <br>
  70218. An example TaskID is :
  70219. <code>task_200707121733_0003_m_000005</code> , which represents the
  70220. fifth map task in the third job running at the jobtracker
  70221. started at <code>200707121733</code>.
  70222. <p>
  70223. Applications should never construct or parse TaskID strings
  70224. , but rather use appropriate constructors or {@link #forName(String)}
  70225. method.
  70226. @see JobID
  70227. @see TaskAttemptID]]>
  70228. </doc>
  70229. </class>
  70230. <!-- end class org.apache.hadoop.mapreduce.TaskID -->
  70231. <!-- start class org.apache.hadoop.mapreduce.TaskInputOutputContext -->
  70232. <class name="TaskInputOutputContext" extends="org.apache.hadoop.mapreduce.TaskAttemptContext"
  70233. abstract="true"
  70234. static="false" final="false" visibility="public"
  70235. deprecated="not deprecated">
  70236. <implements name="org.apache.hadoop.util.Progressable"/>
  70237. <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"
  70238. static="false" final="false" visibility="public"
  70239. deprecated="not deprecated">
  70240. </constructor>
  70241. <method name="nextKeyValue" return="boolean"
  70242. abstract="true" native="false" synchronized="false"
  70243. static="false" final="false" visibility="public"
  70244. deprecated="not deprecated">
  70245. <exception name="IOException" type="java.io.IOException"/>
  70246. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  70247. <doc>
  70248. <![CDATA[Advance to the next key, value pair, returning null if at end.
  70249. @return the key object that was read into, or null if no more]]>
  70250. </doc>
  70251. </method>
  70252. <method name="getCurrentKey" return="java.lang.Object"
  70253. abstract="true" native="false" synchronized="false"
  70254. static="false" final="false" visibility="public"
  70255. deprecated="not deprecated">
  70256. <exception name="IOException" type="java.io.IOException"/>
  70257. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  70258. <doc>
  70259. <![CDATA[Get the current key.
  70260. @return the current key object or null if there isn't one
  70261. @throws IOException
  70262. @throws InterruptedException]]>
  70263. </doc>
  70264. </method>
  70265. <method name="getCurrentValue" return="java.lang.Object"
  70266. abstract="true" native="false" synchronized="false"
  70267. static="false" final="false" visibility="public"
  70268. deprecated="not deprecated">
  70269. <exception name="IOException" type="java.io.IOException"/>
  70270. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  70271. <doc>
  70272. <![CDATA[Get the current value.
  70273. @return the value object that was read into
  70274. @throws IOException
  70275. @throws InterruptedException]]>
  70276. </doc>
  70277. </method>
  70278. <method name="write"
  70279. abstract="false" native="false" synchronized="false"
  70280. static="false" final="false" visibility="public"
  70281. deprecated="not deprecated">
  70282. <param name="key" type="java.lang.Object"/>
  70283. <param name="value" type="java.lang.Object"/>
  70284. <exception name="IOException" type="java.io.IOException"/>
  70285. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  70286. <doc>
  70287. <![CDATA[Generate an output key/value pair.]]>
  70288. </doc>
  70289. </method>
  70290. <method name="getCounter" return="org.apache.hadoop.mapreduce.Counter"
  70291. abstract="false" native="false" synchronized="false"
  70292. static="false" final="false" visibility="public"
  70293. deprecated="not deprecated">
  70294. <param name="counterName" type="java.lang.Enum"/>
  70295. </method>
  70296. <method name="getCounter" return="org.apache.hadoop.mapreduce.Counter"
  70297. abstract="false" native="false" synchronized="false"
  70298. static="false" final="false" visibility="public"
  70299. deprecated="not deprecated">
  70300. <param name="groupName" type="java.lang.String"/>
  70301. <param name="counterName" type="java.lang.String"/>
  70302. </method>
  70303. <method name="progress"
  70304. abstract="false" native="false" synchronized="false"
  70305. static="false" final="false" visibility="public"
  70306. deprecated="not deprecated">
  70307. </method>
  70308. <method name="getProgress" return="float"
  70309. abstract="false" native="false" synchronized="false"
  70310. static="false" final="false" visibility="public"
  70311. deprecated="not deprecated">
  70312. </method>
  70313. <method name="setStatus"
  70314. abstract="false" native="false" synchronized="false"
  70315. static="false" final="false" visibility="public"
  70316. deprecated="not deprecated">
  70317. <param name="status" type="java.lang.String"/>
  70318. </method>
  70319. <method name="getOutputCommitter" return="org.apache.hadoop.mapreduce.OutputCommitter"
  70320. abstract="false" native="false" synchronized="false"
  70321. static="false" final="false" visibility="public"
  70322. deprecated="not deprecated">
  70323. </method>
  70324. <doc>
  70325. <![CDATA[A context object that allows input and output from the task. It is only
  70326. supplied to the {@link Mapper} or {@link Reducer}.
  70327. @param <KEYIN> the input key type for the task
  70328. @param <VALUEIN> the input value type for the task
  70329. @param <KEYOUT> the output key type for the task
  70330. @param <VALUEOUT> the output value type for the task]]>
  70331. </doc>
  70332. </class>
  70333. <!-- end class org.apache.hadoop.mapreduce.TaskInputOutputContext -->
  70334. <!-- start class org.apache.hadoop.mapreduce.TaskType -->
  70335. <class name="TaskType" extends="java.lang.Enum"
  70336. abstract="false"
  70337. static="false" final="true" visibility="public"
  70338. deprecated="not deprecated">
  70339. <method name="values" return="org.apache.hadoop.mapreduce.TaskType[]"
  70340. abstract="false" native="false" synchronized="false"
  70341. static="true" final="false" visibility="public"
  70342. deprecated="not deprecated">
  70343. </method>
  70344. <method name="valueOf" return="org.apache.hadoop.mapreduce.TaskType"
  70345. abstract="false" native="false" synchronized="false"
  70346. static="true" final="false" visibility="public"
  70347. deprecated="not deprecated">
  70348. <param name="name" type="java.lang.String"/>
  70349. </method>
  70350. <field name="MAP" type="org.apache.hadoop.mapreduce.TaskType"
  70351. transient="false" volatile="false"
  70352. static="true" final="true" visibility="public"
  70353. deprecated="not deprecated">
  70354. </field>
  70355. <field name="REDUCE" type="org.apache.hadoop.mapreduce.TaskType"
  70356. transient="false" volatile="false"
  70357. static="true" final="true" visibility="public"
  70358. deprecated="not deprecated">
  70359. </field>
  70360. <field name="JOB_SETUP" type="org.apache.hadoop.mapreduce.TaskType"
  70361. transient="false" volatile="false"
  70362. static="true" final="true" visibility="public"
  70363. deprecated="not deprecated">
  70364. </field>
  70365. <field name="JOB_CLEANUP" type="org.apache.hadoop.mapreduce.TaskType"
  70366. transient="false" volatile="false"
  70367. static="true" final="true" visibility="public"
  70368. deprecated="not deprecated">
  70369. </field>
  70370. <field name="TASK_CLEANUP" type="org.apache.hadoop.mapreduce.TaskType"
  70371. transient="false" volatile="false"
  70372. static="true" final="true" visibility="public"
  70373. deprecated="not deprecated">
  70374. </field>
  70375. <doc>
  70376. <![CDATA[Enum for map, reduce, job-setup, job-cleanup, task-cleanup task types.]]>
  70377. </doc>
  70378. </class>
  70379. <!-- end class org.apache.hadoop.mapreduce.TaskType -->
  70380. </package>
  70381. <package name="org.apache.hadoop.mapreduce.lib.db">
  70382. <!-- start class org.apache.hadoop.mapreduce.lib.db.BigDecimalSplitter -->
  70383. <class name="BigDecimalSplitter" extends="java.lang.Object"
  70384. abstract="false"
  70385. static="false" final="false" visibility="public"
  70386. deprecated="not deprecated">
  70387. <implements name="org.apache.hadoop.mapreduce.lib.db.DBSplitter"/>
  70388. <constructor name="BigDecimalSplitter"
  70389. static="false" final="false" visibility="public"
  70390. deprecated="not deprecated">
  70391. </constructor>
  70392. <method name="split" return="java.util.List"
  70393. abstract="false" native="false" synchronized="false"
  70394. static="false" final="false" visibility="public"
  70395. deprecated="not deprecated">
  70396. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  70397. <param name="results" type="java.sql.ResultSet"/>
  70398. <param name="colName" type="java.lang.String"/>
  70399. <exception name="SQLException" type="java.sql.SQLException"/>
  70400. </method>
  70401. <method name="tryDivide" return="java.math.BigDecimal"
  70402. abstract="false" native="false" synchronized="false"
  70403. static="false" final="false" visibility="protected"
  70404. deprecated="not deprecated">
  70405. <param name="numerator" type="java.math.BigDecimal"/>
  70406. <param name="denominator" type="java.math.BigDecimal"/>
  70407. <doc>
  70408. <![CDATA[Divide numerator by denominator. If impossible in exact mode, use rounding.]]>
  70409. </doc>
  70410. </method>
  70411. <doc>
  70412. <![CDATA[Implement DBSplitter over BigDecimal values.]]>
  70413. </doc>
  70414. </class>
  70415. <!-- end class org.apache.hadoop.mapreduce.lib.db.BigDecimalSplitter -->
  70416. <!-- start class org.apache.hadoop.mapreduce.lib.db.BooleanSplitter -->
  70417. <class name="BooleanSplitter" extends="java.lang.Object"
  70418. abstract="false"
  70419. static="false" final="false" visibility="public"
  70420. deprecated="not deprecated">
  70421. <implements name="org.apache.hadoop.mapreduce.lib.db.DBSplitter"/>
  70422. <constructor name="BooleanSplitter"
  70423. static="false" final="false" visibility="public"
  70424. deprecated="not deprecated">
  70425. </constructor>
  70426. <method name="split" return="java.util.List"
  70427. abstract="false" native="false" synchronized="false"
  70428. static="false" final="false" visibility="public"
  70429. deprecated="not deprecated">
  70430. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  70431. <param name="results" type="java.sql.ResultSet"/>
  70432. <param name="colName" type="java.lang.String"/>
  70433. <exception name="SQLException" type="java.sql.SQLException"/>
  70434. </method>
  70435. <doc>
  70436. <![CDATA[Implement DBSplitter over boolean values.]]>
  70437. </doc>
  70438. </class>
  70439. <!-- end class org.apache.hadoop.mapreduce.lib.db.BooleanSplitter -->
  70440. <!-- start class org.apache.hadoop.mapreduce.lib.db.DataDrivenDBInputFormat -->
  70441. <class name="DataDrivenDBInputFormat" extends="org.apache.hadoop.mapreduce.lib.db.DBInputFormat"
  70442. abstract="false"
  70443. static="false" final="false" visibility="public"
  70444. deprecated="not deprecated">
  70445. <implements name="org.apache.hadoop.conf.Configurable"/>
  70446. <constructor name="DataDrivenDBInputFormat"
  70447. static="false" final="false" visibility="public"
  70448. deprecated="not deprecated">
  70449. </constructor>
  70450. <method name="getSplitter" return="org.apache.hadoop.mapreduce.lib.db.DBSplitter"
  70451. abstract="false" native="false" synchronized="false"
  70452. static="false" final="false" visibility="protected"
  70453. deprecated="not deprecated">
  70454. <param name="sqlDataType" type="int"/>
  70455. <doc>
  70456. <![CDATA[@return the DBSplitter implementation to use to divide the table/query into InputSplits.]]>
  70457. </doc>
  70458. </method>
  70459. <method name="getSplits" return="java.util.List"
  70460. abstract="false" native="false" synchronized="false"
  70461. static="false" final="false" visibility="public"
  70462. deprecated="not deprecated">
  70463. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  70464. <exception name="IOException" type="java.io.IOException"/>
  70465. <doc>
  70466. <![CDATA[{@inheritDoc}]]>
  70467. </doc>
  70468. </method>
  70469. <method name="getBoundingValsQuery" return="java.lang.String"
  70470. abstract="false" native="false" synchronized="false"
  70471. static="false" final="false" visibility="protected"
  70472. deprecated="not deprecated">
  70473. <doc>
  70474. <![CDATA[@return a query which returns the minimum and maximum values for
  70475. the order-by column.
  70476. The min value should be in the first column, and the
  70477. max value should be in the second column of the results.]]>
  70478. </doc>
  70479. </method>
  70480. <method name="setBoundingQuery"
  70481. abstract="false" native="false" synchronized="false"
  70482. static="true" final="false" visibility="public"
  70483. deprecated="not deprecated">
  70484. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  70485. <param name="query" type="java.lang.String"/>
  70486. <doc>
  70487. <![CDATA[Set the user-defined bounding query to use with a user-defined query.
  70488. This *must* include the substring "$CONDITIONS"
  70489. (DataDrivenDBInputFormat.SUBSTITUTE_TOKEN) inside the WHERE clause,
  70490. so that DataDrivenDBInputFormat knows where to insert split clauses.
  70491. e.g., "SELECT foo FROM mytable WHERE $CONDITIONS"
  70492. This will be expanded to something like:
  70493. SELECT foo FROM mytable WHERE (id &gt; 100) AND (id &lt; 250)
  70494. inside each split.]]>
  70495. </doc>
  70496. </method>
  70497. <method name="createDBRecordReader" return="org.apache.hadoop.mapreduce.RecordReader"
  70498. abstract="false" native="false" synchronized="false"
  70499. static="false" final="false" visibility="protected"
  70500. deprecated="not deprecated">
  70501. <param name="split" type="org.apache.hadoop.mapreduce.lib.db.DBInputFormat.DBInputSplit"/>
  70502. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  70503. <exception name="IOException" type="java.io.IOException"/>
  70504. </method>
  70505. <method name="setInput"
  70506. abstract="false" native="false" synchronized="false"
  70507. static="true" final="false" visibility="public"
  70508. deprecated="not deprecated">
  70509. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  70510. <param name="inputClass" type="java.lang.Class"/>
  70511. <param name="tableName" type="java.lang.String"/>
  70512. <param name="conditions" type="java.lang.String"/>
  70513. <param name="splitBy" type="java.lang.String"/>
  70514. <param name="fieldNames" type="java.lang.String[]"/>
  70515. <doc>
  70516. <![CDATA[Note that the "orderBy" column is called the "splitBy" in this version.
  70517. We reuse the same field, but it's not strictly ordering it -- just partitioning
  70518. the results.]]>
  70519. </doc>
  70520. </method>
  70521. <method name="setInput"
  70522. abstract="false" native="false" synchronized="false"
  70523. static="true" final="false" visibility="public"
  70524. deprecated="not deprecated">
  70525. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  70526. <param name="inputClass" type="java.lang.Class"/>
  70527. <param name="inputQuery" type="java.lang.String"/>
  70528. <param name="inputBoundingQuery" type="java.lang.String"/>
  70529. <doc>
  70530. <![CDATA[setInput() takes a custom query and a separate "bounding query" to use
  70531. instead of the custom "count query" used by DBInputFormat.]]>
  70532. </doc>
  70533. </method>
  70534. <field name="SUBSTITUTE_TOKEN" type="java.lang.String"
  70535. transient="false" volatile="false"
  70536. static="true" final="true" visibility="public"
  70537. deprecated="not deprecated">
  70538. <doc>
  70539. <![CDATA[If users are providing their own query, the following string is expected to
  70540. appear in the WHERE clause, which will be substituted with a pair of conditions
  70541. on the input to allow input splits to parallelise the import.]]>
  70542. </doc>
  70543. </field>
  70544. <doc>
  70545. <![CDATA[A InputFormat that reads input data from an SQL table.
  70546. Operates like DBInputFormat, but instead of using LIMIT and OFFSET to demarcate
  70547. splits, it tries to generate WHERE clauses which separate the data into roughly
  70548. equivalent shards.]]>
  70549. </doc>
  70550. </class>
  70551. <!-- end class org.apache.hadoop.mapreduce.lib.db.DataDrivenDBInputFormat -->
  70552. <!-- start class org.apache.hadoop.mapreduce.lib.db.DataDrivenDBInputFormat.DataDrivenDBInputSplit -->
  70553. <class name="DataDrivenDBInputFormat.DataDrivenDBInputSplit" extends="org.apache.hadoop.mapreduce.lib.db.DBInputFormat.DBInputSplit"
  70554. abstract="false"
  70555. static="true" final="false" visibility="public"
  70556. deprecated="not deprecated">
  70557. <constructor name="DataDrivenDBInputFormat.DataDrivenDBInputSplit"
  70558. static="false" final="false" visibility="public"
  70559. deprecated="not deprecated">
  70560. <doc>
  70561. <![CDATA[Default Constructor]]>
  70562. </doc>
  70563. </constructor>
  70564. <constructor name="DataDrivenDBInputFormat.DataDrivenDBInputSplit" type="java.lang.String, java.lang.String"
  70565. static="false" final="false" visibility="public"
  70566. deprecated="not deprecated">
  70567. <doc>
  70568. <![CDATA[Convenience Constructor
  70569. @param lower the string to be put in the WHERE clause to guard on the 'lower' end
  70570. @param upper the string to be put in the WHERE clause to guard on the 'upper' end]]>
  70571. </doc>
  70572. </constructor>
  70573. <method name="getLength" return="long"
  70574. abstract="false" native="false" synchronized="false"
  70575. static="false" final="false" visibility="public"
  70576. deprecated="not deprecated">
  70577. <exception name="IOException" type="java.io.IOException"/>
  70578. <doc>
  70579. <![CDATA[@return The total row count in this split]]>
  70580. </doc>
  70581. </method>
  70582. <method name="readFields"
  70583. abstract="false" native="false" synchronized="false"
  70584. static="false" final="false" visibility="public"
  70585. deprecated="not deprecated">
  70586. <param name="input" type="java.io.DataInput"/>
  70587. <exception name="IOException" type="java.io.IOException"/>
  70588. <doc>
  70589. <![CDATA[{@inheritDoc}]]>
  70590. </doc>
  70591. </method>
  70592. <method name="write"
  70593. abstract="false" native="false" synchronized="false"
  70594. static="false" final="false" visibility="public"
  70595. deprecated="not deprecated">
  70596. <param name="output" type="java.io.DataOutput"/>
  70597. <exception name="IOException" type="java.io.IOException"/>
  70598. <doc>
  70599. <![CDATA[{@inheritDoc}]]>
  70600. </doc>
  70601. </method>
  70602. <method name="getLowerClause" return="java.lang.String"
  70603. abstract="false" native="false" synchronized="false"
  70604. static="false" final="false" visibility="public"
  70605. deprecated="not deprecated">
  70606. </method>
  70607. <method name="getUpperClause" return="java.lang.String"
  70608. abstract="false" native="false" synchronized="false"
  70609. static="false" final="false" visibility="public"
  70610. deprecated="not deprecated">
  70611. </method>
  70612. <doc>
  70613. <![CDATA[A InputSplit that spans a set of rows]]>
  70614. </doc>
  70615. </class>
  70616. <!-- end class org.apache.hadoop.mapreduce.lib.db.DataDrivenDBInputFormat.DataDrivenDBInputSplit -->
  70617. <!-- start class org.apache.hadoop.mapreduce.lib.db.DataDrivenDBRecordReader -->
  70618. <class name="DataDrivenDBRecordReader" extends="org.apache.hadoop.mapreduce.lib.db.DBRecordReader"
  70619. abstract="false"
  70620. static="false" final="false" visibility="public"
  70621. deprecated="not deprecated">
  70622. <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"
  70623. static="false" final="false" visibility="public"
  70624. deprecated="not deprecated">
  70625. <exception name="SQLException" type="java.sql.SQLException"/>
  70626. <doc>
  70627. <![CDATA[@param split The InputSplit to read data for
  70628. @throws SQLException]]>
  70629. </doc>
  70630. </constructor>
  70631. <method name="getSelectQuery" return="java.lang.String"
  70632. abstract="false" native="false" synchronized="false"
  70633. static="false" final="false" visibility="protected"
  70634. deprecated="not deprecated">
  70635. <doc>
  70636. <![CDATA[Returns the query for selecting the records,
  70637. subclasses can override this for custom behaviour.]]>
  70638. </doc>
  70639. </method>
  70640. <doc>
  70641. <![CDATA[A RecordReader that reads records from a SQL table,
  70642. using data-driven WHERE clause splits.
  70643. Emits LongWritables containing the record number as
  70644. key and DBWritables as value.]]>
  70645. </doc>
  70646. </class>
  70647. <!-- end class org.apache.hadoop.mapreduce.lib.db.DataDrivenDBRecordReader -->
  70648. <!-- start class org.apache.hadoop.mapreduce.lib.db.DateSplitter -->
  70649. <class name="DateSplitter" extends="org.apache.hadoop.mapreduce.lib.db.IntegerSplitter"
  70650. abstract="false"
  70651. static="false" final="false" visibility="public"
  70652. deprecated="not deprecated">
  70653. <constructor name="DateSplitter"
  70654. static="false" final="false" visibility="public"
  70655. deprecated="not deprecated">
  70656. </constructor>
  70657. <method name="split" return="java.util.List"
  70658. abstract="false" native="false" synchronized="false"
  70659. static="false" final="false" visibility="public"
  70660. deprecated="not deprecated">
  70661. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  70662. <param name="results" type="java.sql.ResultSet"/>
  70663. <param name="colName" type="java.lang.String"/>
  70664. <exception name="SQLException" type="java.sql.SQLException"/>
  70665. </method>
  70666. <method name="dateToString" return="java.lang.String"
  70667. abstract="false" native="false" synchronized="false"
  70668. static="false" final="false" visibility="protected"
  70669. deprecated="not deprecated">
  70670. <param name="d" type="java.util.Date"/>
  70671. <doc>
  70672. <![CDATA[Given a Date 'd', format it as a string for use in a SQL date
  70673. comparison operation.
  70674. @param d the date to format.
  70675. @return the string representing this date in SQL with any appropriate
  70676. quotation characters, etc.]]>
  70677. </doc>
  70678. </method>
  70679. <doc>
  70680. <![CDATA[Implement DBSplitter over date/time values.
  70681. Make use of logic from IntegerSplitter, since date/time are just longs
  70682. in Java.]]>
  70683. </doc>
  70684. </class>
  70685. <!-- end class org.apache.hadoop.mapreduce.lib.db.DateSplitter -->
  70686. <!-- start class org.apache.hadoop.mapreduce.lib.db.DBConfiguration -->
  70687. <class name="DBConfiguration" extends="java.lang.Object"
  70688. abstract="false"
  70689. static="false" final="false" visibility="public"
  70690. deprecated="not deprecated">
  70691. <constructor name="DBConfiguration" type="org.apache.hadoop.conf.Configuration"
  70692. static="false" final="false" visibility="public"
  70693. deprecated="not deprecated">
  70694. </constructor>
  70695. <method name="configureDB"
  70696. abstract="false" native="false" synchronized="false"
  70697. static="true" final="false" visibility="public"
  70698. deprecated="not deprecated">
  70699. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  70700. <param name="driverClass" type="java.lang.String"/>
  70701. <param name="dbUrl" type="java.lang.String"/>
  70702. <param name="userName" type="java.lang.String"/>
  70703. <param name="passwd" type="java.lang.String"/>
  70704. <doc>
  70705. <![CDATA[Sets the DB access related fields in the {@link Configuration}.
  70706. @param conf the configuration
  70707. @param driverClass JDBC Driver class name
  70708. @param dbUrl JDBC DB access URL.
  70709. @param userName DB access username
  70710. @param passwd DB access passwd]]>
  70711. </doc>
  70712. </method>
  70713. <method name="configureDB"
  70714. abstract="false" native="false" synchronized="false"
  70715. static="true" final="false" visibility="public"
  70716. deprecated="not deprecated">
  70717. <param name="job" type="org.apache.hadoop.conf.Configuration"/>
  70718. <param name="driverClass" type="java.lang.String"/>
  70719. <param name="dbUrl" type="java.lang.String"/>
  70720. <doc>
  70721. <![CDATA[Sets the DB access related fields in the JobConf.
  70722. @param job the job
  70723. @param driverClass JDBC Driver class name
  70724. @param dbUrl JDBC DB access URL.]]>
  70725. </doc>
  70726. </method>
  70727. <method name="getConnection" return="java.sql.Connection"
  70728. abstract="false" native="false" synchronized="false"
  70729. static="false" final="false" visibility="public"
  70730. deprecated="not deprecated">
  70731. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  70732. <exception name="SQLException" type="java.sql.SQLException"/>
  70733. <doc>
  70734. <![CDATA[Returns a connection object o the DB
  70735. @throws ClassNotFoundException
  70736. @throws SQLException]]>
  70737. </doc>
  70738. </method>
  70739. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  70740. abstract="false" native="false" synchronized="false"
  70741. static="false" final="false" visibility="public"
  70742. deprecated="not deprecated">
  70743. </method>
  70744. <method name="getInputTableName" return="java.lang.String"
  70745. abstract="false" native="false" synchronized="false"
  70746. static="false" final="false" visibility="public"
  70747. deprecated="not deprecated">
  70748. </method>
  70749. <method name="setInputTableName"
  70750. abstract="false" native="false" synchronized="false"
  70751. static="false" final="false" visibility="public"
  70752. deprecated="not deprecated">
  70753. <param name="tableName" type="java.lang.String"/>
  70754. </method>
  70755. <method name="getInputFieldNames" return="java.lang.String[]"
  70756. abstract="false" native="false" synchronized="false"
  70757. static="false" final="false" visibility="public"
  70758. deprecated="not deprecated">
  70759. </method>
  70760. <method name="setInputFieldNames"
  70761. abstract="false" native="false" synchronized="false"
  70762. static="false" final="false" visibility="public"
  70763. deprecated="not deprecated">
  70764. <param name="fieldNames" type="java.lang.String[]"/>
  70765. </method>
  70766. <method name="getInputConditions" return="java.lang.String"
  70767. abstract="false" native="false" synchronized="false"
  70768. static="false" final="false" visibility="public"
  70769. deprecated="not deprecated">
  70770. </method>
  70771. <method name="setInputConditions"
  70772. abstract="false" native="false" synchronized="false"
  70773. static="false" final="false" visibility="public"
  70774. deprecated="not deprecated">
  70775. <param name="conditions" type="java.lang.String"/>
  70776. </method>
  70777. <method name="getInputOrderBy" return="java.lang.String"
  70778. abstract="false" native="false" synchronized="false"
  70779. static="false" final="false" visibility="public"
  70780. deprecated="not deprecated">
  70781. </method>
  70782. <method name="setInputOrderBy"
  70783. abstract="false" native="false" synchronized="false"
  70784. static="false" final="false" visibility="public"
  70785. deprecated="not deprecated">
  70786. <param name="orderby" type="java.lang.String"/>
  70787. </method>
  70788. <method name="getInputQuery" return="java.lang.String"
  70789. abstract="false" native="false" synchronized="false"
  70790. static="false" final="false" visibility="public"
  70791. deprecated="not deprecated">
  70792. </method>
  70793. <method name="setInputQuery"
  70794. abstract="false" native="false" synchronized="false"
  70795. static="false" final="false" visibility="public"
  70796. deprecated="not deprecated">
  70797. <param name="query" type="java.lang.String"/>
  70798. </method>
  70799. <method name="getInputCountQuery" return="java.lang.String"
  70800. abstract="false" native="false" synchronized="false"
  70801. static="false" final="false" visibility="public"
  70802. deprecated="not deprecated">
  70803. </method>
  70804. <method name="setInputCountQuery"
  70805. abstract="false" native="false" synchronized="false"
  70806. static="false" final="false" visibility="public"
  70807. deprecated="not deprecated">
  70808. <param name="query" type="java.lang.String"/>
  70809. </method>
  70810. <method name="setInputBoundingQuery"
  70811. abstract="false" native="false" synchronized="false"
  70812. static="false" final="false" visibility="public"
  70813. deprecated="not deprecated">
  70814. <param name="query" type="java.lang.String"/>
  70815. </method>
  70816. <method name="getInputBoundingQuery" return="java.lang.String"
  70817. abstract="false" native="false" synchronized="false"
  70818. static="false" final="false" visibility="public"
  70819. deprecated="not deprecated">
  70820. </method>
  70821. <method name="getInputClass" return="java.lang.Class"
  70822. abstract="false" native="false" synchronized="false"
  70823. static="false" final="false" visibility="public"
  70824. deprecated="not deprecated">
  70825. </method>
  70826. <method name="setInputClass"
  70827. abstract="false" native="false" synchronized="false"
  70828. static="false" final="false" visibility="public"
  70829. deprecated="not deprecated">
  70830. <param name="inputClass" type="java.lang.Class"/>
  70831. </method>
  70832. <method name="getOutputTableName" return="java.lang.String"
  70833. abstract="false" native="false" synchronized="false"
  70834. static="false" final="false" visibility="public"
  70835. deprecated="not deprecated">
  70836. </method>
  70837. <method name="setOutputTableName"
  70838. abstract="false" native="false" synchronized="false"
  70839. static="false" final="false" visibility="public"
  70840. deprecated="not deprecated">
  70841. <param name="tableName" type="java.lang.String"/>
  70842. </method>
  70843. <method name="getOutputFieldNames" return="java.lang.String[]"
  70844. abstract="false" native="false" synchronized="false"
  70845. static="false" final="false" visibility="public"
  70846. deprecated="not deprecated">
  70847. </method>
  70848. <method name="setOutputFieldNames"
  70849. abstract="false" native="false" synchronized="false"
  70850. static="false" final="false" visibility="public"
  70851. deprecated="not deprecated">
  70852. <param name="fieldNames" type="java.lang.String[]"/>
  70853. </method>
  70854. <method name="setOutputFieldCount"
  70855. abstract="false" native="false" synchronized="false"
  70856. static="false" final="false" visibility="public"
  70857. deprecated="not deprecated">
  70858. <param name="fieldCount" type="int"/>
  70859. </method>
  70860. <method name="getOutputFieldCount" return="int"
  70861. abstract="false" native="false" synchronized="false"
  70862. static="false" final="false" visibility="public"
  70863. deprecated="not deprecated">
  70864. </method>
  70865. <field name="DRIVER_CLASS_PROPERTY" type="java.lang.String"
  70866. transient="false" volatile="false"
  70867. static="true" final="true" visibility="public"
  70868. deprecated="not deprecated">
  70869. <doc>
  70870. <![CDATA[The JDBC Driver class name]]>
  70871. </doc>
  70872. </field>
  70873. <field name="URL_PROPERTY" type="java.lang.String"
  70874. transient="false" volatile="false"
  70875. static="true" final="true" visibility="public"
  70876. deprecated="not deprecated">
  70877. <doc>
  70878. <![CDATA[JDBC Database access URL]]>
  70879. </doc>
  70880. </field>
  70881. <field name="USERNAME_PROPERTY" type="java.lang.String"
  70882. transient="false" volatile="false"
  70883. static="true" final="true" visibility="public"
  70884. deprecated="not deprecated">
  70885. <doc>
  70886. <![CDATA[User name to access the database]]>
  70887. </doc>
  70888. </field>
  70889. <field name="PASSWORD_PROPERTY" type="java.lang.String"
  70890. transient="false" volatile="false"
  70891. static="true" final="true" visibility="public"
  70892. deprecated="not deprecated">
  70893. <doc>
  70894. <![CDATA[Password to access the database]]>
  70895. </doc>
  70896. </field>
  70897. <field name="INPUT_TABLE_NAME_PROPERTY" type="java.lang.String"
  70898. transient="false" volatile="false"
  70899. static="true" final="true" visibility="public"
  70900. deprecated="not deprecated">
  70901. <doc>
  70902. <![CDATA[Input table name]]>
  70903. </doc>
  70904. </field>
  70905. <field name="INPUT_FIELD_NAMES_PROPERTY" type="java.lang.String"
  70906. transient="false" volatile="false"
  70907. static="true" final="true" visibility="public"
  70908. deprecated="not deprecated">
  70909. <doc>
  70910. <![CDATA[Field names in the Input table]]>
  70911. </doc>
  70912. </field>
  70913. <field name="INPUT_CONDITIONS_PROPERTY" type="java.lang.String"
  70914. transient="false" volatile="false"
  70915. static="true" final="true" visibility="public"
  70916. deprecated="not deprecated">
  70917. <doc>
  70918. <![CDATA[WHERE clause in the input SELECT statement]]>
  70919. </doc>
  70920. </field>
  70921. <field name="INPUT_ORDER_BY_PROPERTY" type="java.lang.String"
  70922. transient="false" volatile="false"
  70923. static="true" final="true" visibility="public"
  70924. deprecated="not deprecated">
  70925. <doc>
  70926. <![CDATA[ORDER BY clause in the input SELECT statement]]>
  70927. </doc>
  70928. </field>
  70929. <field name="INPUT_QUERY" type="java.lang.String"
  70930. transient="false" volatile="false"
  70931. static="true" final="true" visibility="public"
  70932. deprecated="not deprecated">
  70933. <doc>
  70934. <![CDATA[Whole input query, exluding LIMIT...OFFSET]]>
  70935. </doc>
  70936. </field>
  70937. <field name="INPUT_COUNT_QUERY" type="java.lang.String"
  70938. transient="false" volatile="false"
  70939. static="true" final="true" visibility="public"
  70940. deprecated="not deprecated">
  70941. <doc>
  70942. <![CDATA[Input query to get the count of records]]>
  70943. </doc>
  70944. </field>
  70945. <field name="INPUT_BOUNDING_QUERY" type="java.lang.String"
  70946. transient="false" volatile="false"
  70947. static="true" final="true" visibility="public"
  70948. deprecated="not deprecated">
  70949. <doc>
  70950. <![CDATA[Input query to get the max and min values of the jdbc.input.query]]>
  70951. </doc>
  70952. </field>
  70953. <field name="INPUT_CLASS_PROPERTY" type="java.lang.String"
  70954. transient="false" volatile="false"
  70955. static="true" final="true" visibility="public"
  70956. deprecated="not deprecated">
  70957. <doc>
  70958. <![CDATA[Class name implementing DBWritable which will hold input tuples]]>
  70959. </doc>
  70960. </field>
  70961. <field name="OUTPUT_TABLE_NAME_PROPERTY" type="java.lang.String"
  70962. transient="false" volatile="false"
  70963. static="true" final="true" visibility="public"
  70964. deprecated="not deprecated">
  70965. <doc>
  70966. <![CDATA[Output table name]]>
  70967. </doc>
  70968. </field>
  70969. <field name="OUTPUT_FIELD_NAMES_PROPERTY" type="java.lang.String"
  70970. transient="false" volatile="false"
  70971. static="true" final="true" visibility="public"
  70972. deprecated="not deprecated">
  70973. <doc>
  70974. <![CDATA[Field names in the Output table]]>
  70975. </doc>
  70976. </field>
  70977. <field name="OUTPUT_FIELD_COUNT_PROPERTY" type="java.lang.String"
  70978. transient="false" volatile="false"
  70979. static="true" final="true" visibility="public"
  70980. deprecated="not deprecated">
  70981. <doc>
  70982. <![CDATA[Number of fields in the Output table]]>
  70983. </doc>
  70984. </field>
  70985. <doc>
  70986. <![CDATA[A container for configuration property names for jobs with DB input/output.
  70987. The job can be configured using the static methods in this class,
  70988. {@link DBInputFormat}, and {@link DBOutputFormat}.
  70989. Alternatively, the properties can be set in the configuration with proper
  70990. values.
  70991. @see DBConfiguration#configureDB(Configuration, String, String, String, String)
  70992. @see DBInputFormat#setInput(Job, Class, String, String)
  70993. @see DBInputFormat#setInput(Job, Class, String, String, String, String...)
  70994. @see DBOutputFormat#setOutput(Job, String, String...)]]>
  70995. </doc>
  70996. </class>
  70997. <!-- end class org.apache.hadoop.mapreduce.lib.db.DBConfiguration -->
  70998. <!-- start class org.apache.hadoop.mapreduce.lib.db.DBInputFormat -->
  70999. <class name="DBInputFormat" extends="org.apache.hadoop.mapreduce.InputFormat"
  71000. abstract="false"
  71001. static="false" final="false" visibility="public"
  71002. deprecated="not deprecated">
  71003. <implements name="org.apache.hadoop.conf.Configurable"/>
  71004. <constructor name="DBInputFormat"
  71005. static="false" final="false" visibility="public"
  71006. deprecated="not deprecated">
  71007. </constructor>
  71008. <method name="setConf"
  71009. abstract="false" native="false" synchronized="false"
  71010. static="false" final="false" visibility="public"
  71011. deprecated="not deprecated">
  71012. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  71013. <doc>
  71014. <![CDATA[{@inheritDoc}]]>
  71015. </doc>
  71016. </method>
  71017. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  71018. abstract="false" native="false" synchronized="false"
  71019. static="false" final="false" visibility="public"
  71020. deprecated="not deprecated">
  71021. </method>
  71022. <method name="getDBConf" return="org.apache.hadoop.mapreduce.lib.db.DBConfiguration"
  71023. abstract="false" native="false" synchronized="false"
  71024. static="false" final="false" visibility="public"
  71025. deprecated="not deprecated">
  71026. </method>
  71027. <method name="getConnection" return="java.sql.Connection"
  71028. abstract="false" native="false" synchronized="false"
  71029. static="false" final="false" visibility="public"
  71030. deprecated="not deprecated">
  71031. </method>
  71032. <method name="getDBProductName" return="java.lang.String"
  71033. abstract="false" native="false" synchronized="false"
  71034. static="false" final="false" visibility="public"
  71035. deprecated="not deprecated">
  71036. </method>
  71037. <method name="createDBRecordReader" return="org.apache.hadoop.mapreduce.RecordReader"
  71038. abstract="false" native="false" synchronized="false"
  71039. static="false" final="false" visibility="protected"
  71040. deprecated="not deprecated">
  71041. <param name="split" type="org.apache.hadoop.mapreduce.lib.db.DBInputFormat.DBInputSplit"/>
  71042. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  71043. <exception name="IOException" type="java.io.IOException"/>
  71044. </method>
  71045. <method name="createRecordReader" return="org.apache.hadoop.mapreduce.RecordReader"
  71046. abstract="false" native="false" synchronized="false"
  71047. static="false" final="false" visibility="public"
  71048. deprecated="not deprecated">
  71049. <param name="split" type="org.apache.hadoop.mapreduce.InputSplit"/>
  71050. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  71051. <exception name="IOException" type="java.io.IOException"/>
  71052. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  71053. <doc>
  71054. <![CDATA[{@inheritDoc}]]>
  71055. </doc>
  71056. </method>
  71057. <method name="getSplits" return="java.util.List"
  71058. abstract="false" native="false" synchronized="false"
  71059. static="false" final="false" visibility="public"
  71060. deprecated="not deprecated">
  71061. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  71062. <exception name="IOException" type="java.io.IOException"/>
  71063. <doc>
  71064. <![CDATA[{@inheritDoc}]]>
  71065. </doc>
  71066. </method>
  71067. <method name="getCountQuery" return="java.lang.String"
  71068. abstract="false" native="false" synchronized="false"
  71069. static="false" final="false" visibility="protected"
  71070. deprecated="not deprecated">
  71071. <doc>
  71072. <![CDATA[Returns the query for getting the total number of rows,
  71073. subclasses can override this for custom behaviour.]]>
  71074. </doc>
  71075. </method>
  71076. <method name="setInput"
  71077. abstract="false" native="false" synchronized="false"
  71078. static="true" final="false" visibility="public"
  71079. deprecated="not deprecated">
  71080. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  71081. <param name="inputClass" type="java.lang.Class"/>
  71082. <param name="tableName" type="java.lang.String"/>
  71083. <param name="conditions" type="java.lang.String"/>
  71084. <param name="orderBy" type="java.lang.String"/>
  71085. <param name="fieldNames" type="java.lang.String[]"/>
  71086. <doc>
  71087. <![CDATA[Initializes the map-part of the job with the appropriate input settings.
  71088. @param job The map-reduce job
  71089. @param inputClass the class object implementing DBWritable, which is the
  71090. Java object holding tuple fields.
  71091. @param tableName The table to read data from
  71092. @param conditions The condition which to select data with,
  71093. eg. '(updated > 20070101 AND length > 0)'
  71094. @param orderBy the fieldNames in the orderBy clause.
  71095. @param fieldNames The field names in the table
  71096. @see #setInput(Job, Class, String, String)]]>
  71097. </doc>
  71098. </method>
  71099. <method name="setInput"
  71100. abstract="false" native="false" synchronized="false"
  71101. static="true" final="false" visibility="public"
  71102. deprecated="not deprecated">
  71103. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  71104. <param name="inputClass" type="java.lang.Class"/>
  71105. <param name="inputQuery" type="java.lang.String"/>
  71106. <param name="inputCountQuery" type="java.lang.String"/>
  71107. <doc>
  71108. <![CDATA[Initializes the map-part of the job with the appropriate input settings.
  71109. @param job The map-reduce job
  71110. @param inputClass the class object implementing DBWritable, which is the
  71111. Java object holding tuple fields.
  71112. @param inputQuery the input query to select fields. Example :
  71113. "SELECT f1, f2, f3 FROM Mytable ORDER BY f1"
  71114. @param inputCountQuery the input query that returns
  71115. the number of records in the table.
  71116. Example : "SELECT COUNT(f1) FROM Mytable"
  71117. @see #setInput(Job, Class, String, String, String, String...)]]>
  71118. </doc>
  71119. </method>
  71120. <method name="closeConnection"
  71121. abstract="false" native="false" synchronized="false"
  71122. static="false" final="false" visibility="protected"
  71123. deprecated="not deprecated">
  71124. </method>
  71125. <doc>
  71126. <![CDATA[A InputFormat that reads input data from an SQL table.
  71127. <p>
  71128. DBInputFormat emits LongWritables containing the record number as
  71129. key and DBWritables as value.
  71130. The SQL query, and input class can be using one of the two
  71131. setInput methods.]]>
  71132. </doc>
  71133. </class>
  71134. <!-- end class org.apache.hadoop.mapreduce.lib.db.DBInputFormat -->
  71135. <!-- start class org.apache.hadoop.mapreduce.lib.db.DBInputFormat.DBInputSplit -->
  71136. <class name="DBInputFormat.DBInputSplit" extends="org.apache.hadoop.mapreduce.InputSplit"
  71137. abstract="false"
  71138. static="true" final="false" visibility="public"
  71139. deprecated="not deprecated">
  71140. <implements name="org.apache.hadoop.io.Writable"/>
  71141. <constructor name="DBInputFormat.DBInputSplit"
  71142. static="false" final="false" visibility="public"
  71143. deprecated="not deprecated">
  71144. <doc>
  71145. <![CDATA[Default Constructor]]>
  71146. </doc>
  71147. </constructor>
  71148. <constructor name="DBInputFormat.DBInputSplit" type="long, long"
  71149. static="false" final="false" visibility="public"
  71150. deprecated="not deprecated">
  71151. <doc>
  71152. <![CDATA[Convenience Constructor
  71153. @param start the index of the first row to select
  71154. @param end the index of the last row to select]]>
  71155. </doc>
  71156. </constructor>
  71157. <method name="getLocations" return="java.lang.String[]"
  71158. abstract="false" native="false" synchronized="false"
  71159. static="false" final="false" visibility="public"
  71160. deprecated="not deprecated">
  71161. <exception name="IOException" type="java.io.IOException"/>
  71162. <doc>
  71163. <![CDATA[{@inheritDoc}]]>
  71164. </doc>
  71165. </method>
  71166. <method name="getStart" return="long"
  71167. abstract="false" native="false" synchronized="false"
  71168. static="false" final="false" visibility="public"
  71169. deprecated="not deprecated">
  71170. <doc>
  71171. <![CDATA[@return The index of the first row to select]]>
  71172. </doc>
  71173. </method>
  71174. <method name="getEnd" return="long"
  71175. abstract="false" native="false" synchronized="false"
  71176. static="false" final="false" visibility="public"
  71177. deprecated="not deprecated">
  71178. <doc>
  71179. <![CDATA[@return The index of the last row to select]]>
  71180. </doc>
  71181. </method>
  71182. <method name="getLength" return="long"
  71183. abstract="false" native="false" synchronized="false"
  71184. static="false" final="false" visibility="public"
  71185. deprecated="not deprecated">
  71186. <exception name="IOException" type="java.io.IOException"/>
  71187. <doc>
  71188. <![CDATA[@return The total row count in this split]]>
  71189. </doc>
  71190. </method>
  71191. <method name="readFields"
  71192. abstract="false" native="false" synchronized="false"
  71193. static="false" final="false" visibility="public"
  71194. deprecated="not deprecated">
  71195. <param name="input" type="java.io.DataInput"/>
  71196. <exception name="IOException" type="java.io.IOException"/>
  71197. <doc>
  71198. <![CDATA[{@inheritDoc}]]>
  71199. </doc>
  71200. </method>
  71201. <method name="write"
  71202. abstract="false" native="false" synchronized="false"
  71203. static="false" final="false" visibility="public"
  71204. deprecated="not deprecated">
  71205. <param name="output" type="java.io.DataOutput"/>
  71206. <exception name="IOException" type="java.io.IOException"/>
  71207. <doc>
  71208. <![CDATA[{@inheritDoc}]]>
  71209. </doc>
  71210. </method>
  71211. <doc>
  71212. <![CDATA[A InputSplit that spans a set of rows]]>
  71213. </doc>
  71214. </class>
  71215. <!-- end class org.apache.hadoop.mapreduce.lib.db.DBInputFormat.DBInputSplit -->
  71216. <!-- start class org.apache.hadoop.mapreduce.lib.db.DBInputFormat.NullDBWritable -->
  71217. <class name="DBInputFormat.NullDBWritable" extends="java.lang.Object"
  71218. abstract="false"
  71219. static="true" final="false" visibility="public"
  71220. deprecated="not deprecated">
  71221. <implements name="org.apache.hadoop.mapreduce.lib.db.DBWritable"/>
  71222. <implements name="org.apache.hadoop.io.Writable"/>
  71223. <constructor name="DBInputFormat.NullDBWritable"
  71224. static="false" final="false" visibility="public"
  71225. deprecated="not deprecated">
  71226. </constructor>
  71227. <method name="readFields"
  71228. abstract="false" native="false" synchronized="false"
  71229. static="false" final="false" visibility="public"
  71230. deprecated="not deprecated">
  71231. <param name="in" type="java.io.DataInput"/>
  71232. <exception name="IOException" type="java.io.IOException"/>
  71233. </method>
  71234. <method name="readFields"
  71235. abstract="false" native="false" synchronized="false"
  71236. static="false" final="false" visibility="public"
  71237. deprecated="not deprecated">
  71238. <param name="arg0" type="java.sql.ResultSet"/>
  71239. <exception name="SQLException" type="java.sql.SQLException"/>
  71240. </method>
  71241. <method name="write"
  71242. abstract="false" native="false" synchronized="false"
  71243. static="false" final="false" visibility="public"
  71244. deprecated="not deprecated">
  71245. <param name="out" type="java.io.DataOutput"/>
  71246. <exception name="IOException" type="java.io.IOException"/>
  71247. </method>
  71248. <method name="write"
  71249. abstract="false" native="false" synchronized="false"
  71250. static="false" final="false" visibility="public"
  71251. deprecated="not deprecated">
  71252. <param name="arg0" type="java.sql.PreparedStatement"/>
  71253. <exception name="SQLException" type="java.sql.SQLException"/>
  71254. </method>
  71255. <doc>
  71256. <![CDATA[A Class that does nothing, implementing DBWritable]]>
  71257. </doc>
  71258. </class>
  71259. <!-- end class org.apache.hadoop.mapreduce.lib.db.DBInputFormat.NullDBWritable -->
  71260. <!-- start class org.apache.hadoop.mapreduce.lib.db.DBOutputFormat -->
  71261. <class name="DBOutputFormat" extends="org.apache.hadoop.mapreduce.OutputFormat"
  71262. abstract="false"
  71263. static="false" final="false" visibility="public"
  71264. deprecated="not deprecated">
  71265. <constructor name="DBOutputFormat"
  71266. static="false" final="false" visibility="public"
  71267. deprecated="not deprecated">
  71268. </constructor>
  71269. <method name="checkOutputSpecs"
  71270. abstract="false" native="false" synchronized="false"
  71271. static="false" final="false" visibility="public"
  71272. deprecated="not deprecated">
  71273. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  71274. <exception name="IOException" type="java.io.IOException"/>
  71275. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  71276. </method>
  71277. <method name="getOutputCommitter" return="org.apache.hadoop.mapreduce.OutputCommitter"
  71278. abstract="false" native="false" synchronized="false"
  71279. static="false" final="false" visibility="public"
  71280. deprecated="not deprecated">
  71281. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  71282. <exception name="IOException" type="java.io.IOException"/>
  71283. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  71284. </method>
  71285. <method name="constructQuery" return="java.lang.String"
  71286. abstract="false" native="false" synchronized="false"
  71287. static="false" final="false" visibility="public"
  71288. deprecated="not deprecated">
  71289. <param name="table" type="java.lang.String"/>
  71290. <param name="fieldNames" type="java.lang.String[]"/>
  71291. <doc>
  71292. <![CDATA[Constructs the query used as the prepared statement to insert data.
  71293. @param table
  71294. the table to insert into
  71295. @param fieldNames
  71296. the fields to insert into. If field names are unknown, supply an
  71297. array of nulls.]]>
  71298. </doc>
  71299. </method>
  71300. <method name="getRecordWriter" return="org.apache.hadoop.mapreduce.RecordWriter"
  71301. abstract="false" native="false" synchronized="false"
  71302. static="false" final="false" visibility="public"
  71303. deprecated="not deprecated">
  71304. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  71305. <exception name="IOException" type="java.io.IOException"/>
  71306. <doc>
  71307. <![CDATA[{@inheritDoc}]]>
  71308. </doc>
  71309. </method>
  71310. <method name="setOutput"
  71311. abstract="false" native="false" synchronized="false"
  71312. static="true" final="false" visibility="public"
  71313. deprecated="not deprecated">
  71314. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  71315. <param name="tableName" type="java.lang.String"/>
  71316. <param name="fieldNames" type="java.lang.String[]"/>
  71317. <exception name="IOException" type="java.io.IOException"/>
  71318. <doc>
  71319. <![CDATA[Initializes the reduce-part of the job with
  71320. the appropriate output settings
  71321. @param job The job
  71322. @param tableName The table to insert data into
  71323. @param fieldNames The field names in the table.]]>
  71324. </doc>
  71325. </method>
  71326. <method name="setOutput"
  71327. abstract="false" native="false" synchronized="false"
  71328. static="true" final="false" visibility="public"
  71329. deprecated="not deprecated">
  71330. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  71331. <param name="tableName" type="java.lang.String"/>
  71332. <param name="fieldCount" type="int"/>
  71333. <exception name="IOException" type="java.io.IOException"/>
  71334. <doc>
  71335. <![CDATA[Initializes the reduce-part of the job
  71336. with the appropriate output settings
  71337. @param job The job
  71338. @param tableName The table to insert data into
  71339. @param fieldCount the number of fields in the table.]]>
  71340. </doc>
  71341. </method>
  71342. <doc>
  71343. <![CDATA[A OutputFormat that sends the reduce output to a SQL table.
  71344. <p>
  71345. {@link DBOutputFormat} accepts &lt;key,value&gt; pairs, where
  71346. key has a type extending DBWritable. Returned {@link RecordWriter}
  71347. writes <b>only the key</b> to the database with a batch SQL query.]]>
  71348. </doc>
  71349. </class>
  71350. <!-- end class org.apache.hadoop.mapreduce.lib.db.DBOutputFormat -->
  71351. <!-- start class org.apache.hadoop.mapreduce.lib.db.DBOutputFormat.DBRecordWriter -->
  71352. <class name="DBOutputFormat.DBRecordWriter" extends="org.apache.hadoop.mapreduce.RecordWriter"
  71353. abstract="false"
  71354. static="false" final="false" visibility="public"
  71355. deprecated="not deprecated">
  71356. <constructor name="DBOutputFormat.DBRecordWriter"
  71357. static="false" final="false" visibility="public"
  71358. deprecated="not deprecated">
  71359. <exception name="SQLException" type="java.sql.SQLException"/>
  71360. </constructor>
  71361. <constructor name="DBOutputFormat.DBRecordWriter" type="java.sql.Connection, java.sql.PreparedStatement"
  71362. static="false" final="false" visibility="public"
  71363. deprecated="not deprecated">
  71364. <exception name="SQLException" type="java.sql.SQLException"/>
  71365. </constructor>
  71366. <method name="getConnection" return="java.sql.Connection"
  71367. abstract="false" native="false" synchronized="false"
  71368. static="false" final="false" visibility="public"
  71369. deprecated="not deprecated">
  71370. </method>
  71371. <method name="getStatement" return="java.sql.PreparedStatement"
  71372. abstract="false" native="false" synchronized="false"
  71373. static="false" final="false" visibility="public"
  71374. deprecated="not deprecated">
  71375. </method>
  71376. <method name="close"
  71377. abstract="false" native="false" synchronized="false"
  71378. static="false" final="false" visibility="public"
  71379. deprecated="not deprecated">
  71380. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  71381. <exception name="IOException" type="java.io.IOException"/>
  71382. <doc>
  71383. <![CDATA[{@inheritDoc}]]>
  71384. </doc>
  71385. </method>
  71386. <method name="write"
  71387. abstract="false" native="false" synchronized="false"
  71388. static="false" final="false" visibility="public"
  71389. deprecated="not deprecated">
  71390. <param name="key" type="org.apache.hadoop.mapreduce.lib.db.DBWritable"/>
  71391. <param name="value" type="java.lang.Object"/>
  71392. <exception name="IOException" type="java.io.IOException"/>
  71393. <doc>
  71394. <![CDATA[{@inheritDoc}]]>
  71395. </doc>
  71396. </method>
  71397. <doc>
  71398. <![CDATA[A RecordWriter that writes the reduce output to a SQL table]]>
  71399. </doc>
  71400. </class>
  71401. <!-- end class org.apache.hadoop.mapreduce.lib.db.DBOutputFormat.DBRecordWriter -->
  71402. <!-- start class org.apache.hadoop.mapreduce.lib.db.DBRecordReader -->
  71403. <class name="DBRecordReader" extends="org.apache.hadoop.mapreduce.RecordReader"
  71404. abstract="false"
  71405. static="false" final="false" visibility="public"
  71406. deprecated="not deprecated">
  71407. <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"
  71408. static="false" final="false" visibility="public"
  71409. deprecated="not deprecated">
  71410. <exception name="SQLException" type="java.sql.SQLException"/>
  71411. <doc>
  71412. <![CDATA[@param split The InputSplit to read data for
  71413. @throws SQLException]]>
  71414. </doc>
  71415. </constructor>
  71416. <method name="executeQuery" return="java.sql.ResultSet"
  71417. abstract="false" native="false" synchronized="false"
  71418. static="false" final="false" visibility="protected"
  71419. deprecated="not deprecated">
  71420. <param name="query" type="java.lang.String"/>
  71421. <exception name="SQLException" type="java.sql.SQLException"/>
  71422. </method>
  71423. <method name="getSelectQuery" return="java.lang.String"
  71424. abstract="false" native="false" synchronized="false"
  71425. static="false" final="false" visibility="protected"
  71426. deprecated="not deprecated">
  71427. <doc>
  71428. <![CDATA[Returns the query for selecting the records,
  71429. subclasses can override this for custom behaviour.]]>
  71430. </doc>
  71431. </method>
  71432. <method name="close"
  71433. abstract="false" native="false" synchronized="false"
  71434. static="false" final="false" visibility="public"
  71435. deprecated="not deprecated">
  71436. <exception name="IOException" type="java.io.IOException"/>
  71437. <doc>
  71438. <![CDATA[{@inheritDoc}]]>
  71439. </doc>
  71440. </method>
  71441. <method name="initialize"
  71442. abstract="false" native="false" synchronized="false"
  71443. static="false" final="false" visibility="public"
  71444. deprecated="not deprecated">
  71445. <param name="split" type="org.apache.hadoop.mapreduce.InputSplit"/>
  71446. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  71447. <exception name="IOException" type="java.io.IOException"/>
  71448. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  71449. </method>
  71450. <method name="getCurrentKey" return="org.apache.hadoop.io.LongWritable"
  71451. abstract="false" native="false" synchronized="false"
  71452. static="false" final="false" visibility="public"
  71453. deprecated="not deprecated">
  71454. <doc>
  71455. <![CDATA[{@inheritDoc}]]>
  71456. </doc>
  71457. </method>
  71458. <method name="getCurrentValue" return="org.apache.hadoop.mapreduce.lib.db.DBWritable"
  71459. abstract="false" native="false" synchronized="false"
  71460. static="false" final="false" visibility="public"
  71461. deprecated="not deprecated">
  71462. <doc>
  71463. <![CDATA[{@inheritDoc}]]>
  71464. </doc>
  71465. </method>
  71466. <method name="createValue" return="org.apache.hadoop.mapreduce.lib.db.DBWritable"
  71467. abstract="false" native="false" synchronized="false"
  71468. static="false" final="false" visibility="public"
  71469. deprecated="deprecated, no comment">
  71470. <doc>
  71471. <![CDATA[@deprecated]]>
  71472. </doc>
  71473. </method>
  71474. <method name="getPos" return="long"
  71475. abstract="false" native="false" synchronized="false"
  71476. static="false" final="false" visibility="public"
  71477. deprecated="deprecated, no comment">
  71478. <exception name="IOException" type="java.io.IOException"/>
  71479. <doc>
  71480. <![CDATA[@deprecated]]>
  71481. </doc>
  71482. </method>
  71483. <method name="next" return="boolean"
  71484. abstract="false" native="false" synchronized="false"
  71485. static="false" final="false" visibility="public"
  71486. deprecated="Use {@link #nextKeyValue()}">
  71487. <param name="key" type="org.apache.hadoop.io.LongWritable"/>
  71488. <param name="value" type="org.apache.hadoop.mapreduce.lib.db.DBWritable"/>
  71489. <exception name="IOException" type="java.io.IOException"/>
  71490. <doc>
  71491. <![CDATA[@deprecated Use {@link #nextKeyValue()}]]>
  71492. </doc>
  71493. </method>
  71494. <method name="getProgress" return="float"
  71495. abstract="false" native="false" synchronized="false"
  71496. static="false" final="false" visibility="public"
  71497. deprecated="not deprecated">
  71498. <exception name="IOException" type="java.io.IOException"/>
  71499. <doc>
  71500. <![CDATA[{@inheritDoc}]]>
  71501. </doc>
  71502. </method>
  71503. <method name="nextKeyValue" return="boolean"
  71504. abstract="false" native="false" synchronized="false"
  71505. static="false" final="false" visibility="public"
  71506. deprecated="not deprecated">
  71507. <exception name="IOException" type="java.io.IOException"/>
  71508. <doc>
  71509. <![CDATA[{@inheritDoc}]]>
  71510. </doc>
  71511. </method>
  71512. <method name="getSplit" return="org.apache.hadoop.mapreduce.lib.db.DBInputFormat.DBInputSplit"
  71513. abstract="false" native="false" synchronized="false"
  71514. static="false" final="false" visibility="protected"
  71515. deprecated="not deprecated">
  71516. </method>
  71517. <method name="getFieldNames" return="java.lang.String[]"
  71518. abstract="false" native="false" synchronized="false"
  71519. static="false" final="false" visibility="protected"
  71520. deprecated="not deprecated">
  71521. </method>
  71522. <method name="getTableName" return="java.lang.String"
  71523. abstract="false" native="false" synchronized="false"
  71524. static="false" final="false" visibility="protected"
  71525. deprecated="not deprecated">
  71526. </method>
  71527. <method name="getConditions" return="java.lang.String"
  71528. abstract="false" native="false" synchronized="false"
  71529. static="false" final="false" visibility="protected"
  71530. deprecated="not deprecated">
  71531. </method>
  71532. <method name="getDBConf" return="org.apache.hadoop.mapreduce.lib.db.DBConfiguration"
  71533. abstract="false" native="false" synchronized="false"
  71534. static="false" final="false" visibility="protected"
  71535. deprecated="not deprecated">
  71536. </method>
  71537. <method name="getConnection" return="java.sql.Connection"
  71538. abstract="false" native="false" synchronized="false"
  71539. static="false" final="false" visibility="protected"
  71540. deprecated="not deprecated">
  71541. </method>
  71542. <method name="getStatement" return="java.sql.PreparedStatement"
  71543. abstract="false" native="false" synchronized="false"
  71544. static="false" final="false" visibility="protected"
  71545. deprecated="not deprecated">
  71546. </method>
  71547. <method name="setStatement"
  71548. abstract="false" native="false" synchronized="false"
  71549. static="false" final="false" visibility="protected"
  71550. deprecated="not deprecated">
  71551. <param name="stmt" type="java.sql.PreparedStatement"/>
  71552. </method>
  71553. <field name="statement" type="java.sql.PreparedStatement"
  71554. transient="false" volatile="false"
  71555. static="false" final="false" visibility="protected"
  71556. deprecated="not deprecated">
  71557. </field>
  71558. <doc>
  71559. <![CDATA[A RecordReader that reads records from a SQL table.
  71560. Emits LongWritables containing the record number as
  71561. key and DBWritables as value.]]>
  71562. </doc>
  71563. </class>
  71564. <!-- end class org.apache.hadoop.mapreduce.lib.db.DBRecordReader -->
  71565. <!-- start interface org.apache.hadoop.mapreduce.lib.db.DBSplitter -->
  71566. <interface name="DBSplitter" abstract="true"
  71567. static="false" final="false" visibility="public"
  71568. deprecated="not deprecated">
  71569. <method name="split" return="java.util.List"
  71570. abstract="false" native="false" synchronized="false"
  71571. static="false" final="false" visibility="public"
  71572. deprecated="not deprecated">
  71573. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  71574. <param name="results" type="java.sql.ResultSet"/>
  71575. <param name="colName" type="java.lang.String"/>
  71576. <exception name="SQLException" type="java.sql.SQLException"/>
  71577. <doc>
  71578. <![CDATA[Given a ResultSet containing one record (and already advanced to that record)
  71579. with two columns (a low value, and a high value, both of the same type), determine
  71580. a set of splits that span the given values.]]>
  71581. </doc>
  71582. </method>
  71583. <doc>
  71584. <![CDATA[DBSplitter will generate DBInputSplits to use with DataDrivenDBInputFormat.
  71585. DataDrivenDBInputFormat needs to interpolate between two values that
  71586. represent the lowest and highest valued records to import. Depending
  71587. on the data-type of the column, this requires different behavior.
  71588. DBSplitter implementations should perform this for a data type or family
  71589. of data types.]]>
  71590. </doc>
  71591. </interface>
  71592. <!-- end interface org.apache.hadoop.mapreduce.lib.db.DBSplitter -->
  71593. <!-- start interface org.apache.hadoop.mapreduce.lib.db.DBWritable -->
  71594. <interface name="DBWritable" abstract="true"
  71595. static="false" final="false" visibility="public"
  71596. deprecated="not deprecated">
  71597. <method name="write"
  71598. abstract="false" native="false" synchronized="false"
  71599. static="false" final="false" visibility="public"
  71600. deprecated="not deprecated">
  71601. <param name="statement" type="java.sql.PreparedStatement"/>
  71602. <exception name="SQLException" type="java.sql.SQLException"/>
  71603. <doc>
  71604. <![CDATA[Sets the fields of the object in the {@link PreparedStatement}.
  71605. @param statement the statement that the fields are put into.
  71606. @throws SQLException]]>
  71607. </doc>
  71608. </method>
  71609. <method name="readFields"
  71610. abstract="false" native="false" synchronized="false"
  71611. static="false" final="false" visibility="public"
  71612. deprecated="not deprecated">
  71613. <param name="resultSet" type="java.sql.ResultSet"/>
  71614. <exception name="SQLException" type="java.sql.SQLException"/>
  71615. <doc>
  71616. <![CDATA[Reads the fields of the object from the {@link ResultSet}.
  71617. @param resultSet the {@link ResultSet} to get the fields from.
  71618. @throws SQLException]]>
  71619. </doc>
  71620. </method>
  71621. <doc>
  71622. <![CDATA[Objects that are read from/written to a database should implement
  71623. <code>DBWritable</code>. DBWritable, is similar to {@link Writable}
  71624. except that the {@link #write(PreparedStatement)} method takes a
  71625. {@link PreparedStatement}, and {@link #readFields(ResultSet)}
  71626. takes a {@link ResultSet}.
  71627. <p>
  71628. Implementations are responsible for writing the fields of the object
  71629. to PreparedStatement, and reading the fields of the object from the
  71630. ResultSet.
  71631. <p>Example:</p>
  71632. If we have the following table in the database :
  71633. <pre>
  71634. CREATE TABLE MyTable (
  71635. counter INTEGER NOT NULL,
  71636. timestamp BIGINT NOT NULL,
  71637. );
  71638. </pre>
  71639. then we can read/write the tuples from/to the table with :
  71640. <p><pre>
  71641. public class MyWritable implements Writable, DBWritable {
  71642. // Some data
  71643. private int counter;
  71644. private long timestamp;
  71645. //Writable#write() implementation
  71646. public void write(DataOutput out) throws IOException {
  71647. out.writeInt(counter);
  71648. out.writeLong(timestamp);
  71649. }
  71650. //Writable#readFields() implementation
  71651. public void readFields(DataInput in) throws IOException {
  71652. counter = in.readInt();
  71653. timestamp = in.readLong();
  71654. }
  71655. public void write(PreparedStatement statement) throws SQLException {
  71656. statement.setInt(1, counter);
  71657. statement.setLong(2, timestamp);
  71658. }
  71659. public void readFields(ResultSet resultSet) throws SQLException {
  71660. counter = resultSet.getInt(1);
  71661. timestamp = resultSet.getLong(2);
  71662. }
  71663. }
  71664. </pre></p>]]>
  71665. </doc>
  71666. </interface>
  71667. <!-- end interface org.apache.hadoop.mapreduce.lib.db.DBWritable -->
  71668. <!-- start class org.apache.hadoop.mapreduce.lib.db.FloatSplitter -->
  71669. <class name="FloatSplitter" extends="java.lang.Object"
  71670. abstract="false"
  71671. static="false" final="false" visibility="public"
  71672. deprecated="not deprecated">
  71673. <implements name="org.apache.hadoop.mapreduce.lib.db.DBSplitter"/>
  71674. <constructor name="FloatSplitter"
  71675. static="false" final="false" visibility="public"
  71676. deprecated="not deprecated">
  71677. </constructor>
  71678. <method name="split" return="java.util.List"
  71679. abstract="false" native="false" synchronized="false"
  71680. static="false" final="false" visibility="public"
  71681. deprecated="not deprecated">
  71682. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  71683. <param name="results" type="java.sql.ResultSet"/>
  71684. <param name="colName" type="java.lang.String"/>
  71685. <exception name="SQLException" type="java.sql.SQLException"/>
  71686. </method>
  71687. <doc>
  71688. <![CDATA[Implement DBSplitter over floating-point values.]]>
  71689. </doc>
  71690. </class>
  71691. <!-- end class org.apache.hadoop.mapreduce.lib.db.FloatSplitter -->
  71692. <!-- start class org.apache.hadoop.mapreduce.lib.db.IntegerSplitter -->
  71693. <class name="IntegerSplitter" extends="java.lang.Object"
  71694. abstract="false"
  71695. static="false" final="false" visibility="public"
  71696. deprecated="not deprecated">
  71697. <implements name="org.apache.hadoop.mapreduce.lib.db.DBSplitter"/>
  71698. <constructor name="IntegerSplitter"
  71699. static="false" final="false" visibility="public"
  71700. deprecated="not deprecated">
  71701. </constructor>
  71702. <method name="split" return="java.util.List"
  71703. abstract="false" native="false" synchronized="false"
  71704. static="false" final="false" visibility="public"
  71705. deprecated="not deprecated">
  71706. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  71707. <param name="results" type="java.sql.ResultSet"/>
  71708. <param name="colName" type="java.lang.String"/>
  71709. <exception name="SQLException" type="java.sql.SQLException"/>
  71710. </method>
  71711. <doc>
  71712. <![CDATA[Implement DBSplitter over integer values.]]>
  71713. </doc>
  71714. </class>
  71715. <!-- end class org.apache.hadoop.mapreduce.lib.db.IntegerSplitter -->
  71716. <!-- start class org.apache.hadoop.mapreduce.lib.db.MySQLDataDrivenDBRecordReader -->
  71717. <class name="MySQLDataDrivenDBRecordReader" extends="org.apache.hadoop.mapreduce.lib.db.DataDrivenDBRecordReader"
  71718. abstract="false"
  71719. static="false" final="false" visibility="public"
  71720. deprecated="not deprecated">
  71721. <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"
  71722. static="false" final="false" visibility="public"
  71723. deprecated="not deprecated">
  71724. <exception name="SQLException" type="java.sql.SQLException"/>
  71725. </constructor>
  71726. <method name="executeQuery" return="java.sql.ResultSet"
  71727. abstract="false" native="false" synchronized="false"
  71728. static="false" final="false" visibility="protected"
  71729. deprecated="not deprecated">
  71730. <param name="query" type="java.lang.String"/>
  71731. <exception name="SQLException" type="java.sql.SQLException"/>
  71732. </method>
  71733. <doc>
  71734. <![CDATA[A RecordReader that reads records from a MySQL table via DataDrivenDBRecordReader]]>
  71735. </doc>
  71736. </class>
  71737. <!-- end class org.apache.hadoop.mapreduce.lib.db.MySQLDataDrivenDBRecordReader -->
  71738. <!-- start class org.apache.hadoop.mapreduce.lib.db.MySQLDBRecordReader -->
  71739. <class name="MySQLDBRecordReader" extends="org.apache.hadoop.mapreduce.lib.db.DBRecordReader"
  71740. abstract="false"
  71741. static="false" final="false" visibility="public"
  71742. deprecated="not deprecated">
  71743. <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"
  71744. static="false" final="false" visibility="public"
  71745. deprecated="not deprecated">
  71746. <exception name="SQLException" type="java.sql.SQLException"/>
  71747. </constructor>
  71748. <method name="executeQuery" return="java.sql.ResultSet"
  71749. abstract="false" native="false" synchronized="false"
  71750. static="false" final="false" visibility="protected"
  71751. deprecated="not deprecated">
  71752. <param name="query" type="java.lang.String"/>
  71753. <exception name="SQLException" type="java.sql.SQLException"/>
  71754. </method>
  71755. <doc>
  71756. <![CDATA[A RecordReader that reads records from a MySQL table.]]>
  71757. </doc>
  71758. </class>
  71759. <!-- end class org.apache.hadoop.mapreduce.lib.db.MySQLDBRecordReader -->
  71760. <!-- start class org.apache.hadoop.mapreduce.lib.db.OracleDataDrivenDBInputFormat -->
  71761. <class name="OracleDataDrivenDBInputFormat" extends="org.apache.hadoop.mapreduce.lib.db.DataDrivenDBInputFormat"
  71762. abstract="false"
  71763. static="false" final="false" visibility="public"
  71764. deprecated="not deprecated">
  71765. <implements name="org.apache.hadoop.conf.Configurable"/>
  71766. <constructor name="OracleDataDrivenDBInputFormat"
  71767. static="false" final="false" visibility="public"
  71768. deprecated="not deprecated">
  71769. </constructor>
  71770. <method name="getSplitter" return="org.apache.hadoop.mapreduce.lib.db.DBSplitter"
  71771. abstract="false" native="false" synchronized="false"
  71772. static="false" final="false" visibility="protected"
  71773. deprecated="not deprecated">
  71774. <param name="sqlDataType" type="int"/>
  71775. <doc>
  71776. <![CDATA[@return the DBSplitter implementation to use to divide the table/query into InputSplits.]]>
  71777. </doc>
  71778. </method>
  71779. <method name="createDBRecordReader" return="org.apache.hadoop.mapreduce.RecordReader"
  71780. abstract="false" native="false" synchronized="false"
  71781. static="false" final="false" visibility="protected"
  71782. deprecated="not deprecated">
  71783. <param name="split" type="org.apache.hadoop.mapreduce.lib.db.DBInputFormat.DBInputSplit"/>
  71784. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  71785. <exception name="IOException" type="java.io.IOException"/>
  71786. </method>
  71787. <doc>
  71788. <![CDATA[A InputFormat that reads input data from an SQL table in an Oracle db.]]>
  71789. </doc>
  71790. </class>
  71791. <!-- end class org.apache.hadoop.mapreduce.lib.db.OracleDataDrivenDBInputFormat -->
  71792. <!-- start class org.apache.hadoop.mapreduce.lib.db.OracleDataDrivenDBRecordReader -->
  71793. <class name="OracleDataDrivenDBRecordReader" extends="org.apache.hadoop.mapreduce.lib.db.DataDrivenDBRecordReader"
  71794. abstract="false"
  71795. static="false" final="false" visibility="public"
  71796. deprecated="not deprecated">
  71797. <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"
  71798. static="false" final="false" visibility="public"
  71799. deprecated="not deprecated">
  71800. <exception name="SQLException" type="java.sql.SQLException"/>
  71801. </constructor>
  71802. <doc>
  71803. <![CDATA[A RecordReader that reads records from a Oracle table via DataDrivenDBRecordReader]]>
  71804. </doc>
  71805. </class>
  71806. <!-- end class org.apache.hadoop.mapreduce.lib.db.OracleDataDrivenDBRecordReader -->
  71807. <!-- start class org.apache.hadoop.mapreduce.lib.db.OracleDateSplitter -->
  71808. <class name="OracleDateSplitter" extends="org.apache.hadoop.mapreduce.lib.db.DateSplitter"
  71809. abstract="false"
  71810. static="false" final="false" visibility="public"
  71811. deprecated="not deprecated">
  71812. <constructor name="OracleDateSplitter"
  71813. static="false" final="false" visibility="public"
  71814. deprecated="not deprecated">
  71815. </constructor>
  71816. <method name="dateToString" return="java.lang.String"
  71817. abstract="false" native="false" synchronized="false"
  71818. static="false" final="false" visibility="protected"
  71819. deprecated="not deprecated">
  71820. <param name="d" type="java.util.Date"/>
  71821. </method>
  71822. <doc>
  71823. <![CDATA[Implement DBSplitter over date/time values returned by an Oracle db.
  71824. Make use of logic from DateSplitter, since this just needs to use
  71825. some Oracle-specific functions on the formatting end when generating
  71826. InputSplits.]]>
  71827. </doc>
  71828. </class>
  71829. <!-- end class org.apache.hadoop.mapreduce.lib.db.OracleDateSplitter -->
  71830. <!-- start class org.apache.hadoop.mapreduce.lib.db.OracleDBRecordReader -->
  71831. <class name="OracleDBRecordReader" extends="org.apache.hadoop.mapreduce.lib.db.DBRecordReader"
  71832. abstract="false"
  71833. static="false" final="false" visibility="public"
  71834. deprecated="not deprecated">
  71835. <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"
  71836. static="false" final="false" visibility="public"
  71837. deprecated="not deprecated">
  71838. <exception name="SQLException" type="java.sql.SQLException"/>
  71839. </constructor>
  71840. <method name="getSelectQuery" return="java.lang.String"
  71841. abstract="false" native="false" synchronized="false"
  71842. static="false" final="false" visibility="protected"
  71843. deprecated="not deprecated">
  71844. <doc>
  71845. <![CDATA[Returns the query for selecting the records from an Oracle DB.]]>
  71846. </doc>
  71847. </method>
  71848. <method name="setSessionTimeZone"
  71849. abstract="false" native="false" synchronized="false"
  71850. static="true" final="false" visibility="public"
  71851. deprecated="not deprecated">
  71852. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  71853. <param name="conn" type="java.sql.Connection"/>
  71854. <exception name="SQLException" type="java.sql.SQLException"/>
  71855. <doc>
  71856. <![CDATA[Set session time zone
  71857. @param conf The current configuration.
  71858. We read the 'oracle.sessionTimeZone' property from here.
  71859. @param conn The connection to alter the timezone properties of.]]>
  71860. </doc>
  71861. </method>
  71862. <field name="SESSION_TIMEZONE_KEY" type="java.lang.String"
  71863. transient="false" volatile="false"
  71864. static="true" final="true" visibility="public"
  71865. deprecated="not deprecated">
  71866. <doc>
  71867. <![CDATA[Configuration key to set to a timezone string.]]>
  71868. </doc>
  71869. </field>
  71870. <doc>
  71871. <![CDATA[A RecordReader that reads records from an Oracle SQL table.]]>
  71872. </doc>
  71873. </class>
  71874. <!-- end class org.apache.hadoop.mapreduce.lib.db.OracleDBRecordReader -->
  71875. <!-- start class org.apache.hadoop.mapreduce.lib.db.TextSplitter -->
  71876. <class name="TextSplitter" extends="org.apache.hadoop.mapreduce.lib.db.BigDecimalSplitter"
  71877. abstract="false"
  71878. static="false" final="false" visibility="public"
  71879. deprecated="not deprecated">
  71880. <constructor name="TextSplitter"
  71881. static="false" final="false" visibility="public"
  71882. deprecated="not deprecated">
  71883. </constructor>
  71884. <method name="split" return="java.util.List"
  71885. abstract="false" native="false" synchronized="false"
  71886. static="false" final="false" visibility="public"
  71887. deprecated="not deprecated">
  71888. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  71889. <param name="results" type="java.sql.ResultSet"/>
  71890. <param name="colName" type="java.lang.String"/>
  71891. <exception name="SQLException" type="java.sql.SQLException"/>
  71892. <doc>
  71893. <![CDATA[This method needs to determine the splits between two user-provided strings.
  71894. In the case where the user's strings are 'A' and 'Z', this is not hard; we
  71895. could create two splits from ['A', 'M') and ['M', 'Z'], 26 splits for strings
  71896. beginning with each letter, etc.
  71897. If a user has provided us with the strings "Ham" and "Haze", however, we need
  71898. to create splits that differ in the third letter.
  71899. The algorithm used is as follows:
  71900. Since there are 2**16 unicode characters, we interpret characters as digits in
  71901. base 65536. Given a string 's' containing characters s_0, s_1 .. s_n, we interpret
  71902. the string as the number: 0.s_0 s_1 s_2.. s_n in base 65536. Having mapped the
  71903. low and high strings into floating-point values, we then use the BigDecimalSplitter
  71904. to establish the even split points, then map the resulting floating point values
  71905. back into strings.]]>
  71906. </doc>
  71907. </method>
  71908. <doc>
  71909. <![CDATA[Implement DBSplitter over text strings.]]>
  71910. </doc>
  71911. </class>
  71912. <!-- end class org.apache.hadoop.mapreduce.lib.db.TextSplitter -->
  71913. </package>
  71914. <package name="org.apache.hadoop.mapreduce.lib.fieldsel">
  71915. <!-- start class org.apache.hadoop.mapreduce.lib.fieldsel.FieldSelectionHelper -->
  71916. <class name="FieldSelectionHelper" extends="java.lang.Object"
  71917. abstract="false"
  71918. static="false" final="false" visibility="public"
  71919. deprecated="not deprecated">
  71920. <constructor name="FieldSelectionHelper"
  71921. static="false" final="false" visibility="public"
  71922. deprecated="not deprecated">
  71923. </constructor>
  71924. <constructor name="FieldSelectionHelper" type="org.apache.hadoop.io.Text, org.apache.hadoop.io.Text"
  71925. static="false" final="false" visibility="public"
  71926. deprecated="not deprecated">
  71927. </constructor>
  71928. <method name="parseOutputKeyValueSpec" return="int"
  71929. abstract="false" native="false" synchronized="false"
  71930. static="true" final="false" visibility="public"
  71931. deprecated="not deprecated">
  71932. <param name="keyValueSpec" type="java.lang.String"/>
  71933. <param name="keyFieldList" type="java.util.List"/>
  71934. <param name="valueFieldList" type="java.util.List"/>
  71935. </method>
  71936. <method name="specToString" return="java.lang.String"
  71937. abstract="false" native="false" synchronized="false"
  71938. static="true" final="false" visibility="public"
  71939. deprecated="not deprecated">
  71940. <param name="fieldSeparator" type="java.lang.String"/>
  71941. <param name="keyValueSpec" type="java.lang.String"/>
  71942. <param name="allValueFieldsFrom" type="int"/>
  71943. <param name="keyFieldList" type="java.util.List"/>
  71944. <param name="valueFieldList" type="java.util.List"/>
  71945. </method>
  71946. <method name="getKey" return="org.apache.hadoop.io.Text"
  71947. abstract="false" native="false" synchronized="false"
  71948. static="false" final="false" visibility="public"
  71949. deprecated="not deprecated">
  71950. </method>
  71951. <method name="getValue" return="org.apache.hadoop.io.Text"
  71952. abstract="false" native="false" synchronized="false"
  71953. static="false" final="false" visibility="public"
  71954. deprecated="not deprecated">
  71955. </method>
  71956. <method name="extractOutputKeyValue"
  71957. abstract="false" native="false" synchronized="false"
  71958. static="false" final="false" visibility="public"
  71959. deprecated="not deprecated">
  71960. <param name="key" type="java.lang.String"/>
  71961. <param name="val" type="java.lang.String"/>
  71962. <param name="fieldSep" type="java.lang.String"/>
  71963. <param name="keyFieldList" type="java.util.List"/>
  71964. <param name="valFieldList" type="java.util.List"/>
  71965. <param name="allValueFieldsFrom" type="int"/>
  71966. <param name="ignoreKey" type="boolean"/>
  71967. <param name="isMap" type="boolean"/>
  71968. </method>
  71969. <field name="emptyText" type="org.apache.hadoop.io.Text"
  71970. transient="false" volatile="false"
  71971. static="true" final="false" visibility="public"
  71972. deprecated="not deprecated">
  71973. </field>
  71974. <field name="DATA_FIELD_SEPERATOR" type="java.lang.String"
  71975. transient="false" volatile="false"
  71976. static="true" final="true" visibility="public"
  71977. deprecated="not deprecated">
  71978. </field>
  71979. <field name="MAP_OUTPUT_KEY_VALUE_SPEC" type="java.lang.String"
  71980. transient="false" volatile="false"
  71981. static="true" final="true" visibility="public"
  71982. deprecated="not deprecated">
  71983. </field>
  71984. <field name="REDUCE_OUTPUT_KEY_VALUE_SPEC" type="java.lang.String"
  71985. transient="false" volatile="false"
  71986. static="true" final="true" visibility="public"
  71987. deprecated="not deprecated">
  71988. </field>
  71989. <doc>
  71990. <![CDATA[This class implements a mapper/reducer class that can be used to perform
  71991. field selections in a manner similar to unix cut. The input data is treated
  71992. as fields separated by a user specified separator (the default value is
  71993. "\t"). The user can specify a list of fields that form the map output keys,
  71994. and a list of fields that form the map output values. If the inputformat is
  71995. TextInputFormat, the mapper will ignore the key to the map function. and the
  71996. fields are from the value only. Otherwise, the fields are the union of those
  71997. from the key and those from the value.
  71998. The field separator is under attribute "mapreduce.fieldsel.data.field.separator"
  71999. The map output field list spec is under attribute
  72000. "mapreduce.fieldsel.map.output.key.value.fields.spec".
  72001. The value is expected to be like "keyFieldsSpec:valueFieldsSpec"
  72002. key/valueFieldsSpec are comma (,) separated field spec: fieldSpec,fieldSpec,fieldSpec ...
  72003. Each field spec can be a simple number (e.g. 5) specifying a specific field, or a range
  72004. (like 2-5) to specify a range of fields, or an open range (like 3-) specifying all
  72005. the fields starting from field 3. The open range field spec applies value fields only.
  72006. They have no effect on the key fields.
  72007. 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,
  72008. and use fields 6,5,1,2,3,7 and above for values.
  72009. The reduce output field list spec is under attribute
  72010. "mapreduce.fieldsel.reduce.output.key.value.fields.spec".
  72011. The reducer extracts output key/value pairs in a similar manner, except that
  72012. the key is never ignored.]]>
  72013. </doc>
  72014. </class>
  72015. <!-- end class org.apache.hadoop.mapreduce.lib.fieldsel.FieldSelectionHelper -->
  72016. <!-- start class org.apache.hadoop.mapreduce.lib.fieldsel.FieldSelectionMapper -->
  72017. <class name="FieldSelectionMapper" extends="org.apache.hadoop.mapreduce.Mapper"
  72018. abstract="false"
  72019. static="false" final="false" visibility="public"
  72020. deprecated="not deprecated">
  72021. <constructor name="FieldSelectionMapper"
  72022. static="false" final="false" visibility="public"
  72023. deprecated="not deprecated">
  72024. </constructor>
  72025. <method name="setup"
  72026. abstract="false" native="false" synchronized="false"
  72027. static="false" final="false" visibility="public"
  72028. deprecated="not deprecated">
  72029. <param name="context" type="org.apache.hadoop.mapreduce.Mapper.Context"/>
  72030. <exception name="IOException" type="java.io.IOException"/>
  72031. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  72032. </method>
  72033. <method name="map"
  72034. abstract="false" native="false" synchronized="false"
  72035. static="false" final="false" visibility="public"
  72036. deprecated="not deprecated">
  72037. <param name="key" type="java.lang.Object"/>
  72038. <param name="val" type="java.lang.Object"/>
  72039. <param name="context" type="org.apache.hadoop.mapreduce.Mapper.Context"/>
  72040. <exception name="IOException" type="java.io.IOException"/>
  72041. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  72042. <doc>
  72043. <![CDATA[The identify function. Input key/value pair is written directly to output.]]>
  72044. </doc>
  72045. </method>
  72046. <field name="LOG" type="org.apache.commons.logging.Log"
  72047. transient="false" volatile="false"
  72048. static="true" final="true" visibility="public"
  72049. deprecated="not deprecated">
  72050. </field>
  72051. <doc>
  72052. <![CDATA[This class implements a mapper class that can be used to perform
  72053. field selections in a manner similar to unix cut. The input data is treated
  72054. as fields separated by a user specified separator (the default value is
  72055. "\t"). The user can specify a list of fields that form the map output keys,
  72056. and a list of fields that form the map output values. If the inputformat is
  72057. TextInputFormat, the mapper will ignore the key to the map function. and the
  72058. fields are from the value only. Otherwise, the fields are the union of those
  72059. from the key and those from the value.
  72060. The field separator is under attribute "mapreduce.fieldsel.data.field.separator"
  72061. The map output field list spec is under attribute
  72062. "mapreduce.fieldsel.map.output.key.value.fields.spec".
  72063. The value is expected to be like
  72064. "keyFieldsSpec:valueFieldsSpec" key/valueFieldsSpec are comma (,) separated
  72065. field spec: fieldSpec,fieldSpec,fieldSpec ... Each field spec can be a
  72066. simple number (e.g. 5) specifying a specific field, or a range (like 2-5)
  72067. to specify a range of fields, or an open range (like 3-) specifying all
  72068. the fields starting from field 3. The open range field spec applies value
  72069. fields only. They have no effect on the key fields.
  72070. Here is an example: "4,3,0,1:6,5,1-3,7-". It specifies to use fields
  72071. 4,3,0 and 1 for keys, and use fields 6,5,1,2,3,7 and above for values.]]>
  72072. </doc>
  72073. </class>
  72074. <!-- end class org.apache.hadoop.mapreduce.lib.fieldsel.FieldSelectionMapper -->
  72075. <!-- start class org.apache.hadoop.mapreduce.lib.fieldsel.FieldSelectionReducer -->
  72076. <class name="FieldSelectionReducer" extends="org.apache.hadoop.mapreduce.Reducer"
  72077. abstract="false"
  72078. static="false" final="false" visibility="public"
  72079. deprecated="not deprecated">
  72080. <constructor name="FieldSelectionReducer"
  72081. static="false" final="false" visibility="public"
  72082. deprecated="not deprecated">
  72083. </constructor>
  72084. <method name="setup"
  72085. abstract="false" native="false" synchronized="false"
  72086. static="false" final="false" visibility="public"
  72087. deprecated="not deprecated">
  72088. <param name="context" type="org.apache.hadoop.mapreduce.Reducer.Context"/>
  72089. <exception name="IOException" type="java.io.IOException"/>
  72090. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  72091. </method>
  72092. <method name="reduce"
  72093. abstract="false" native="false" synchronized="false"
  72094. static="false" final="false" visibility="public"
  72095. deprecated="not deprecated">
  72096. <param name="key" type="org.apache.hadoop.io.Text"/>
  72097. <param name="values" type="java.lang.Iterable"/>
  72098. <param name="context" type="org.apache.hadoop.mapreduce.Reducer.Context"/>
  72099. <exception name="IOException" type="java.io.IOException"/>
  72100. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  72101. </method>
  72102. <field name="LOG" type="org.apache.commons.logging.Log"
  72103. transient="false" volatile="false"
  72104. static="true" final="true" visibility="public"
  72105. deprecated="not deprecated">
  72106. </field>
  72107. <doc>
  72108. <![CDATA[This class implements a reducer class that can be used to perform field
  72109. selections in a manner similar to unix cut.
  72110. The input data is treated as fields separated by a user specified
  72111. separator (the default value is "\t"). The user can specify a list of
  72112. fields that form the reduce output keys, and a list of fields that form
  72113. the reduce output values. The fields are the union of those from the key
  72114. and those from the value.
  72115. The field separator is under attribute "mapreduce.fieldsel.data.field.separator"
  72116. The reduce output field list spec is under attribute
  72117. "mapreduce.fieldsel.reduce.output.key.value.fields.spec".
  72118. The value is expected to be like
  72119. "keyFieldsSpec:valueFieldsSpec" key/valueFieldsSpec are comma (,)
  72120. separated field spec: fieldSpec,fieldSpec,fieldSpec ... Each field spec
  72121. can be a simple number (e.g. 5) specifying a specific field, or a range
  72122. (like 2-5) to specify a range of fields, or an open range (like 3-)
  72123. specifying all the fields starting from field 3. The open range field
  72124. spec applies value fields only. They have no effect on the key fields.
  72125. Here is an example: "4,3,0,1:6,5,1-3,7-". It specifies to use fields
  72126. 4,3,0 and 1 for keys, and use fields 6,5,1,2,3,7 and above for values.]]>
  72127. </doc>
  72128. </class>
  72129. <!-- end class org.apache.hadoop.mapreduce.lib.fieldsel.FieldSelectionReducer -->
  72130. </package>
  72131. <package name="org.apache.hadoop.mapreduce.lib.input">
  72132. <!-- start class org.apache.hadoop.mapreduce.lib.input.CombineFileInputFormat -->
  72133. <class name="CombineFileInputFormat" extends="org.apache.hadoop.mapreduce.lib.input.FileInputFormat"
  72134. abstract="true"
  72135. static="false" final="false" visibility="public"
  72136. deprecated="not deprecated">
  72137. <constructor name="CombineFileInputFormat"
  72138. static="false" final="false" visibility="public"
  72139. deprecated="not deprecated">
  72140. <doc>
  72141. <![CDATA[default constructor]]>
  72142. </doc>
  72143. </constructor>
  72144. <method name="setMaxSplitSize"
  72145. abstract="false" native="false" synchronized="false"
  72146. static="false" final="false" visibility="protected"
  72147. deprecated="not deprecated">
  72148. <param name="maxSplitSize" type="long"/>
  72149. <doc>
  72150. <![CDATA[Specify the maximum size (in bytes) of each split. Each split is
  72151. approximately equal to the specified size.]]>
  72152. </doc>
  72153. </method>
  72154. <method name="setMinSplitSizeNode"
  72155. abstract="false" native="false" synchronized="false"
  72156. static="false" final="false" visibility="protected"
  72157. deprecated="not deprecated">
  72158. <param name="minSplitSizeNode" type="long"/>
  72159. <doc>
  72160. <![CDATA[Specify the minimum size (in bytes) of each split per node.
  72161. This applies to data that is left over after combining data on a single
  72162. node into splits that are of maximum size specified by maxSplitSize.
  72163. This leftover data will be combined into its own split if its size
  72164. exceeds minSplitSizeNode.]]>
  72165. </doc>
  72166. </method>
  72167. <method name="setMinSplitSizeRack"
  72168. abstract="false" native="false" synchronized="false"
  72169. static="false" final="false" visibility="protected"
  72170. deprecated="not deprecated">
  72171. <param name="minSplitSizeRack" type="long"/>
  72172. <doc>
  72173. <![CDATA[Specify the minimum size (in bytes) of each split per rack.
  72174. This applies to data that is left over after combining data on a single
  72175. rack into splits that are of maximum size specified by maxSplitSize.
  72176. This leftover data will be combined into its own split if its size
  72177. exceeds minSplitSizeRack.]]>
  72178. </doc>
  72179. </method>
  72180. <method name="createPool"
  72181. abstract="false" native="false" synchronized="false"
  72182. static="false" final="false" visibility="protected"
  72183. deprecated="not deprecated">
  72184. <param name="filters" type="java.util.List"/>
  72185. <doc>
  72186. <![CDATA[Create a new pool and add the filters to it.
  72187. A split cannot have files from different pools.]]>
  72188. </doc>
  72189. </method>
  72190. <method name="createPool"
  72191. abstract="false" native="false" synchronized="false"
  72192. static="false" final="false" visibility="protected"
  72193. deprecated="not deprecated">
  72194. <param name="filters" type="org.apache.hadoop.fs.PathFilter[]"/>
  72195. <doc>
  72196. <![CDATA[Create a new pool and add the filters to it.
  72197. A pathname can satisfy any one of the specified filters.
  72198. A split cannot have files from different pools.]]>
  72199. </doc>
  72200. </method>
  72201. <method name="isSplitable" return="boolean"
  72202. abstract="false" native="false" synchronized="false"
  72203. static="false" final="false" visibility="protected"
  72204. deprecated="not deprecated">
  72205. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  72206. <param name="file" type="org.apache.hadoop.fs.Path"/>
  72207. </method>
  72208. <method name="getSplits" return="java.util.List"
  72209. abstract="false" native="false" synchronized="false"
  72210. static="false" final="false" visibility="public"
  72211. deprecated="not deprecated">
  72212. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  72213. <exception name="IOException" type="java.io.IOException"/>
  72214. </method>
  72215. <method name="createRecordReader" return="org.apache.hadoop.mapreduce.RecordReader"
  72216. abstract="true" native="false" synchronized="false"
  72217. static="false" final="false" visibility="public"
  72218. deprecated="not deprecated">
  72219. <param name="split" type="org.apache.hadoop.mapreduce.InputSplit"/>
  72220. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  72221. <exception name="IOException" type="java.io.IOException"/>
  72222. <doc>
  72223. <![CDATA[This is not implemented yet.]]>
  72224. </doc>
  72225. </method>
  72226. <method name="getFileBlockLocations" return="org.apache.hadoop.fs.BlockLocation[]"
  72227. abstract="false" native="false" synchronized="false"
  72228. static="false" final="false" visibility="protected"
  72229. deprecated="not deprecated">
  72230. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  72231. <param name="stat" type="org.apache.hadoop.fs.FileStatus"/>
  72232. <exception name="IOException" type="java.io.IOException"/>
  72233. </method>
  72234. <field name="SPLIT_MINSIZE_PERNODE" type="java.lang.String"
  72235. transient="false" volatile="false"
  72236. static="true" final="true" visibility="public"
  72237. deprecated="not deprecated">
  72238. </field>
  72239. <field name="SPLIT_MINSIZE_PERRACK" type="java.lang.String"
  72240. transient="false" volatile="false"
  72241. static="true" final="true" visibility="public"
  72242. deprecated="not deprecated">
  72243. </field>
  72244. <doc>
  72245. <![CDATA[An abstract {@link InputFormat} that returns {@link CombineFileSplit}'s in
  72246. {@link InputFormat#getSplits(JobContext)} method.
  72247. Splits are constructed from the files under the input paths.
  72248. A split cannot have files from different pools.
  72249. Each split returned may contain blocks from different files.
  72250. If a maxSplitSize is specified, then blocks on the same node are
  72251. combined to form a single split. Blocks that are left over are
  72252. then combined with other blocks in the same rack.
  72253. If maxSplitSize is not specified, then blocks from the same rack
  72254. are combined in a single split; no attempt is made to create
  72255. node-local splits.
  72256. If the maxSplitSize is equal to the block size, then this class
  72257. is similar to the default splitting behavior in Hadoop: each
  72258. block is a locally processed split.
  72259. Subclasses implement
  72260. {@link InputFormat#createRecordReader(InputSplit, TaskAttemptContext)}
  72261. to construct <code>RecordReader</code>'s for
  72262. <code>CombineFileSplit</code>'s.
  72263. @see CombineFileSplit]]>
  72264. </doc>
  72265. </class>
  72266. <!-- end class org.apache.hadoop.mapreduce.lib.input.CombineFileInputFormat -->
  72267. <!-- start class org.apache.hadoop.mapreduce.lib.input.CombineFileRecordReader -->
  72268. <class name="CombineFileRecordReader" extends="org.apache.hadoop.mapreduce.RecordReader"
  72269. abstract="false"
  72270. static="false" final="false" visibility="public"
  72271. deprecated="not deprecated">
  72272. <constructor name="CombineFileRecordReader" type="org.apache.hadoop.mapreduce.lib.input.CombineFileSplit, org.apache.hadoop.mapreduce.TaskAttemptContext, java.lang.Class"
  72273. static="false" final="false" visibility="public"
  72274. deprecated="not deprecated">
  72275. <exception name="IOException" type="java.io.IOException"/>
  72276. <doc>
  72277. <![CDATA[A generic RecordReader that can hand out different recordReaders
  72278. for each chunk in the CombineFileSplit.]]>
  72279. </doc>
  72280. </constructor>
  72281. <method name="initialize"
  72282. abstract="false" native="false" synchronized="false"
  72283. static="false" final="false" visibility="public"
  72284. deprecated="not deprecated">
  72285. <param name="split" type="org.apache.hadoop.mapreduce.InputSplit"/>
  72286. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  72287. <exception name="IOException" type="java.io.IOException"/>
  72288. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  72289. </method>
  72290. <method name="nextKeyValue" return="boolean"
  72291. abstract="false" native="false" synchronized="false"
  72292. static="false" final="false" visibility="public"
  72293. deprecated="not deprecated">
  72294. <exception name="IOException" type="java.io.IOException"/>
  72295. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  72296. </method>
  72297. <method name="getCurrentKey" return="java.lang.Object"
  72298. abstract="false" native="false" synchronized="false"
  72299. static="false" final="false" visibility="public"
  72300. deprecated="not deprecated">
  72301. <exception name="IOException" type="java.io.IOException"/>
  72302. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  72303. </method>
  72304. <method name="getCurrentValue" return="java.lang.Object"
  72305. abstract="false" native="false" synchronized="false"
  72306. static="false" final="false" visibility="public"
  72307. deprecated="not deprecated">
  72308. <exception name="IOException" type="java.io.IOException"/>
  72309. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  72310. </method>
  72311. <method name="close"
  72312. abstract="false" native="false" synchronized="false"
  72313. static="false" final="false" visibility="public"
  72314. deprecated="not deprecated">
  72315. <exception name="IOException" type="java.io.IOException"/>
  72316. </method>
  72317. <method name="getProgress" return="float"
  72318. abstract="false" native="false" synchronized="false"
  72319. static="false" final="false" visibility="public"
  72320. deprecated="not deprecated">
  72321. <exception name="IOException" type="java.io.IOException"/>
  72322. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  72323. <doc>
  72324. <![CDATA[return progress based on the amount of data processed so far.]]>
  72325. </doc>
  72326. </method>
  72327. <method name="initNextRecordReader" return="boolean"
  72328. abstract="false" native="false" synchronized="false"
  72329. static="false" final="false" visibility="protected"
  72330. deprecated="not deprecated">
  72331. <exception name="IOException" type="java.io.IOException"/>
  72332. <doc>
  72333. <![CDATA[Get the record reader for the next chunk in this CombineFileSplit.]]>
  72334. </doc>
  72335. </method>
  72336. <field name="split" type="org.apache.hadoop.mapreduce.lib.input.CombineFileSplit"
  72337. transient="false" volatile="false"
  72338. static="false" final="false" visibility="protected"
  72339. deprecated="not deprecated">
  72340. </field>
  72341. <field name="rrClass" type="java.lang.Class"
  72342. transient="false" volatile="false"
  72343. static="false" final="false" visibility="protected"
  72344. deprecated="not deprecated">
  72345. </field>
  72346. <field name="rrConstructor" type="java.lang.reflect.Constructor"
  72347. transient="false" volatile="false"
  72348. static="false" final="false" visibility="protected"
  72349. deprecated="not deprecated">
  72350. </field>
  72351. <field name="fs" type="org.apache.hadoop.fs.FileSystem"
  72352. transient="false" volatile="false"
  72353. static="false" final="false" visibility="protected"
  72354. deprecated="not deprecated">
  72355. </field>
  72356. <field name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"
  72357. transient="false" volatile="false"
  72358. static="false" final="false" visibility="protected"
  72359. deprecated="not deprecated">
  72360. </field>
  72361. <field name="idx" type="int"
  72362. transient="false" volatile="false"
  72363. static="false" final="false" visibility="protected"
  72364. deprecated="not deprecated">
  72365. </field>
  72366. <field name="progress" type="long"
  72367. transient="false" volatile="false"
  72368. static="false" final="false" visibility="protected"
  72369. deprecated="not deprecated">
  72370. </field>
  72371. <field name="curReader" type="org.apache.hadoop.mapreduce.RecordReader"
  72372. transient="false" volatile="false"
  72373. static="false" final="false" visibility="protected"
  72374. deprecated="not deprecated">
  72375. </field>
  72376. <doc>
  72377. <![CDATA[A generic RecordReader that can hand out different recordReaders
  72378. for each chunk in a {@link CombineFileSplit}.
  72379. A CombineFileSplit can combine data chunks from multiple files.
  72380. This class allows using different RecordReaders for processing
  72381. these data chunks from different files.
  72382. @see CombineFileSplit]]>
  72383. </doc>
  72384. </class>
  72385. <!-- end class org.apache.hadoop.mapreduce.lib.input.CombineFileRecordReader -->
  72386. <!-- start class org.apache.hadoop.mapreduce.lib.input.CombineFileSplit -->
  72387. <class name="CombineFileSplit" extends="org.apache.hadoop.mapreduce.InputSplit"
  72388. abstract="false"
  72389. static="false" final="false" visibility="public"
  72390. deprecated="not deprecated">
  72391. <implements name="org.apache.hadoop.io.Writable"/>
  72392. <constructor name="CombineFileSplit"
  72393. static="false" final="false" visibility="public"
  72394. deprecated="not deprecated">
  72395. <doc>
  72396. <![CDATA[default constructor]]>
  72397. </doc>
  72398. </constructor>
  72399. <constructor name="CombineFileSplit" type="org.apache.hadoop.fs.Path[], long[], long[], java.lang.String[]"
  72400. static="false" final="false" visibility="public"
  72401. deprecated="not deprecated">
  72402. </constructor>
  72403. <constructor name="CombineFileSplit" type="org.apache.hadoop.fs.Path[], long[]"
  72404. static="false" final="false" visibility="public"
  72405. deprecated="not deprecated">
  72406. </constructor>
  72407. <constructor name="CombineFileSplit" type="org.apache.hadoop.mapreduce.lib.input.CombineFileSplit"
  72408. static="false" final="false" visibility="public"
  72409. deprecated="not deprecated">
  72410. <exception name="IOException" type="java.io.IOException"/>
  72411. <doc>
  72412. <![CDATA[Copy constructor]]>
  72413. </doc>
  72414. </constructor>
  72415. <method name="getLength" return="long"
  72416. abstract="false" native="false" synchronized="false"
  72417. static="false" final="false" visibility="public"
  72418. deprecated="not deprecated">
  72419. </method>
  72420. <method name="getStartOffsets" return="long[]"
  72421. abstract="false" native="false" synchronized="false"
  72422. static="false" final="false" visibility="public"
  72423. deprecated="not deprecated">
  72424. <doc>
  72425. <![CDATA[Returns an array containing the start offsets of the files in the split]]>
  72426. </doc>
  72427. </method>
  72428. <method name="getLengths" return="long[]"
  72429. abstract="false" native="false" synchronized="false"
  72430. static="false" final="false" visibility="public"
  72431. deprecated="not deprecated">
  72432. <doc>
  72433. <![CDATA[Returns an array containing the lengths of the files in the split]]>
  72434. </doc>
  72435. </method>
  72436. <method name="getOffset" return="long"
  72437. abstract="false" native="false" synchronized="false"
  72438. static="false" final="false" visibility="public"
  72439. deprecated="not deprecated">
  72440. <param name="i" type="int"/>
  72441. <doc>
  72442. <![CDATA[Returns the start offset of the i<sup>th</sup> Path]]>
  72443. </doc>
  72444. </method>
  72445. <method name="getLength" return="long"
  72446. abstract="false" native="false" synchronized="false"
  72447. static="false" final="false" visibility="public"
  72448. deprecated="not deprecated">
  72449. <param name="i" type="int"/>
  72450. <doc>
  72451. <![CDATA[Returns the length of the i<sup>th</sup> Path]]>
  72452. </doc>
  72453. </method>
  72454. <method name="getNumPaths" return="int"
  72455. abstract="false" native="false" synchronized="false"
  72456. static="false" final="false" visibility="public"
  72457. deprecated="not deprecated">
  72458. <doc>
  72459. <![CDATA[Returns the number of Paths in the split]]>
  72460. </doc>
  72461. </method>
  72462. <method name="getPath" return="org.apache.hadoop.fs.Path"
  72463. abstract="false" native="false" synchronized="false"
  72464. static="false" final="false" visibility="public"
  72465. deprecated="not deprecated">
  72466. <param name="i" type="int"/>
  72467. <doc>
  72468. <![CDATA[Returns the i<sup>th</sup> Path]]>
  72469. </doc>
  72470. </method>
  72471. <method name="getPaths" return="org.apache.hadoop.fs.Path[]"
  72472. abstract="false" native="false" synchronized="false"
  72473. static="false" final="false" visibility="public"
  72474. deprecated="not deprecated">
  72475. <doc>
  72476. <![CDATA[Returns all the Paths in the split]]>
  72477. </doc>
  72478. </method>
  72479. <method name="getLocations" return="java.lang.String[]"
  72480. abstract="false" native="false" synchronized="false"
  72481. static="false" final="false" visibility="public"
  72482. deprecated="not deprecated">
  72483. <exception name="IOException" type="java.io.IOException"/>
  72484. <doc>
  72485. <![CDATA[Returns all the Paths where this input-split resides]]>
  72486. </doc>
  72487. </method>
  72488. <method name="readFields"
  72489. abstract="false" native="false" synchronized="false"
  72490. static="false" final="false" visibility="public"
  72491. deprecated="not deprecated">
  72492. <param name="in" type="java.io.DataInput"/>
  72493. <exception name="IOException" type="java.io.IOException"/>
  72494. </method>
  72495. <method name="write"
  72496. abstract="false" native="false" synchronized="false"
  72497. static="false" final="false" visibility="public"
  72498. deprecated="not deprecated">
  72499. <param name="out" type="java.io.DataOutput"/>
  72500. <exception name="IOException" type="java.io.IOException"/>
  72501. </method>
  72502. <method name="toString" return="java.lang.String"
  72503. abstract="false" native="false" synchronized="false"
  72504. static="false" final="false" visibility="public"
  72505. deprecated="not deprecated">
  72506. </method>
  72507. <doc>
  72508. <![CDATA[A sub-collection of input files.
  72509. Unlike {@link FileSplit}, CombineFileSplit class does not represent
  72510. a split of a file, but a split of input files into smaller sets.
  72511. A split may contain blocks from different file but all
  72512. the blocks in the same split are probably local to some rack <br>
  72513. CombineFileSplit can be used to implement {@link RecordReader}'s,
  72514. with reading one record per file.
  72515. @see FileSplit
  72516. @see CombineFileInputFormat]]>
  72517. </doc>
  72518. </class>
  72519. <!-- end class org.apache.hadoop.mapreduce.lib.input.CombineFileSplit -->
  72520. <!-- start class org.apache.hadoop.mapreduce.lib.input.DelegatingInputFormat -->
  72521. <class name="DelegatingInputFormat" extends="org.apache.hadoop.mapreduce.InputFormat"
  72522. abstract="false"
  72523. static="false" final="false" visibility="public"
  72524. deprecated="not deprecated">
  72525. <constructor name="DelegatingInputFormat"
  72526. static="false" final="false" visibility="public"
  72527. deprecated="not deprecated">
  72528. </constructor>
  72529. <method name="getSplits" return="java.util.List"
  72530. abstract="false" native="false" synchronized="false"
  72531. static="false" final="false" visibility="public"
  72532. deprecated="not deprecated">
  72533. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  72534. <exception name="IOException" type="java.io.IOException"/>
  72535. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  72536. </method>
  72537. <method name="createRecordReader" return="org.apache.hadoop.mapreduce.RecordReader"
  72538. abstract="false" native="false" synchronized="false"
  72539. static="false" final="false" visibility="public"
  72540. deprecated="not deprecated">
  72541. <param name="split" type="org.apache.hadoop.mapreduce.InputSplit"/>
  72542. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  72543. <exception name="IOException" type="java.io.IOException"/>
  72544. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  72545. </method>
  72546. <doc>
  72547. <![CDATA[An {@link InputFormat} that delegates behavior of paths to multiple other
  72548. InputFormats.
  72549. @see MultipleInputs#addInputPath(Job, Path, Class, Class)]]>
  72550. </doc>
  72551. </class>
  72552. <!-- end class org.apache.hadoop.mapreduce.lib.input.DelegatingInputFormat -->
  72553. <!-- start class org.apache.hadoop.mapreduce.lib.input.DelegatingMapper -->
  72554. <class name="DelegatingMapper" extends="org.apache.hadoop.mapreduce.Mapper"
  72555. abstract="false"
  72556. static="false" final="false" visibility="public"
  72557. deprecated="not deprecated">
  72558. <constructor name="DelegatingMapper"
  72559. static="false" final="false" visibility="public"
  72560. deprecated="not deprecated">
  72561. </constructor>
  72562. <method name="setup"
  72563. abstract="false" native="false" synchronized="false"
  72564. static="false" final="false" visibility="protected"
  72565. deprecated="not deprecated">
  72566. <param name="context" type="org.apache.hadoop.mapreduce.Mapper.Context"/>
  72567. <exception name="IOException" type="java.io.IOException"/>
  72568. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  72569. </method>
  72570. <method name="run"
  72571. abstract="false" native="false" synchronized="false"
  72572. static="false" final="false" visibility="public"
  72573. deprecated="not deprecated">
  72574. <param name="context" type="org.apache.hadoop.mapreduce.Mapper.Context"/>
  72575. <exception name="IOException" type="java.io.IOException"/>
  72576. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  72577. </method>
  72578. <doc>
  72579. <![CDATA[An {@link Mapper} that delegates behavior of paths to multiple other
  72580. mappers.
  72581. @see MultipleInputs#addInputPath(Job, Path, Class, Class)]]>
  72582. </doc>
  72583. </class>
  72584. <!-- end class org.apache.hadoop.mapreduce.lib.input.DelegatingMapper -->
  72585. <!-- start class org.apache.hadoop.mapreduce.lib.input.DelegatingRecordReader -->
  72586. <class name="DelegatingRecordReader" extends="org.apache.hadoop.mapreduce.RecordReader"
  72587. abstract="false"
  72588. static="false" final="false" visibility="public"
  72589. deprecated="not deprecated">
  72590. <constructor name="DelegatingRecordReader" type="org.apache.hadoop.mapreduce.InputSplit, org.apache.hadoop.mapreduce.TaskAttemptContext"
  72591. static="false" final="false" visibility="public"
  72592. deprecated="not deprecated">
  72593. <exception name="IOException" type="java.io.IOException"/>
  72594. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  72595. <doc>
  72596. <![CDATA[Constructs the DelegatingRecordReader.
  72597. @param split TaggegInputSplit object
  72598. @param context TaskAttemptContext object
  72599. @throws IOException
  72600. @throws InterruptedException]]>
  72601. </doc>
  72602. </constructor>
  72603. <method name="close"
  72604. abstract="false" native="false" synchronized="false"
  72605. static="false" final="false" visibility="public"
  72606. deprecated="not deprecated">
  72607. <exception name="IOException" type="java.io.IOException"/>
  72608. </method>
  72609. <method name="getCurrentKey" return="java.lang.Object"
  72610. abstract="false" native="false" synchronized="false"
  72611. static="false" final="false" visibility="public"
  72612. deprecated="not deprecated">
  72613. <exception name="IOException" type="java.io.IOException"/>
  72614. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  72615. </method>
  72616. <method name="getCurrentValue" return="java.lang.Object"
  72617. abstract="false" native="false" synchronized="false"
  72618. static="false" final="false" visibility="public"
  72619. deprecated="not deprecated">
  72620. <exception name="IOException" type="java.io.IOException"/>
  72621. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  72622. </method>
  72623. <method name="getProgress" return="float"
  72624. abstract="false" native="false" synchronized="false"
  72625. static="false" final="false" visibility="public"
  72626. deprecated="not deprecated">
  72627. <exception name="IOException" type="java.io.IOException"/>
  72628. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  72629. </method>
  72630. <method name="initialize"
  72631. abstract="false" native="false" synchronized="false"
  72632. static="false" final="false" visibility="public"
  72633. deprecated="not deprecated">
  72634. <param name="split" type="org.apache.hadoop.mapreduce.InputSplit"/>
  72635. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  72636. <exception name="IOException" type="java.io.IOException"/>
  72637. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  72638. </method>
  72639. <method name="nextKeyValue" return="boolean"
  72640. abstract="false" native="false" synchronized="false"
  72641. static="false" final="false" visibility="public"
  72642. deprecated="not deprecated">
  72643. <exception name="IOException" type="java.io.IOException"/>
  72644. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  72645. </method>
  72646. <doc>
  72647. <![CDATA[This is a delegating RecordReader, which delegates the functionality to the
  72648. underlying record reader in {@link TaggedInputSplit}]]>
  72649. </doc>
  72650. </class>
  72651. <!-- end class org.apache.hadoop.mapreduce.lib.input.DelegatingRecordReader -->
  72652. <!-- start class org.apache.hadoop.mapreduce.lib.input.FileInputFormat -->
  72653. <class name="FileInputFormat" extends="org.apache.hadoop.mapreduce.InputFormat"
  72654. abstract="true"
  72655. static="false" final="false" visibility="public"
  72656. deprecated="not deprecated">
  72657. <constructor name="FileInputFormat"
  72658. static="false" final="false" visibility="public"
  72659. deprecated="not deprecated">
  72660. </constructor>
  72661. <method name="getFormatMinSplitSize" return="long"
  72662. abstract="false" native="false" synchronized="false"
  72663. static="false" final="false" visibility="protected"
  72664. deprecated="not deprecated">
  72665. <doc>
  72666. <![CDATA[Get the lower bound on split size imposed by the format.
  72667. @return the number of bytes of the minimal split for this format]]>
  72668. </doc>
  72669. </method>
  72670. <method name="isSplitable" return="boolean"
  72671. abstract="false" native="false" synchronized="false"
  72672. static="false" final="false" visibility="protected"
  72673. deprecated="not deprecated">
  72674. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  72675. <param name="filename" type="org.apache.hadoop.fs.Path"/>
  72676. <doc>
  72677. <![CDATA[Is the given filename splitable? Usually, true, but if the file is
  72678. stream compressed, it will not be.
  72679. <code>FileInputFormat</code> implementations can override this and return
  72680. <code>false</code> to ensure that individual input files are never split-up
  72681. so that {@link Mapper}s process entire files.
  72682. @param context the job context
  72683. @param filename the file name to check
  72684. @return is this file splitable?]]>
  72685. </doc>
  72686. </method>
  72687. <method name="setInputPathFilter"
  72688. abstract="false" native="false" synchronized="false"
  72689. static="true" final="false" visibility="public"
  72690. deprecated="not deprecated">
  72691. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  72692. <param name="filter" type="java.lang.Class"/>
  72693. <doc>
  72694. <![CDATA[Set a PathFilter to be applied to the input paths for the map-reduce job.
  72695. @param job the job to modify
  72696. @param filter the PathFilter class use for filtering the input paths.]]>
  72697. </doc>
  72698. </method>
  72699. <method name="setMinInputSplitSize"
  72700. abstract="false" native="false" synchronized="false"
  72701. static="true" final="false" visibility="public"
  72702. deprecated="not deprecated">
  72703. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  72704. <param name="size" type="long"/>
  72705. <doc>
  72706. <![CDATA[Set the minimum input split size
  72707. @param job the job to modify
  72708. @param size the minimum size]]>
  72709. </doc>
  72710. </method>
  72711. <method name="getMinSplitSize" return="long"
  72712. abstract="false" native="false" synchronized="false"
  72713. static="true" final="false" visibility="public"
  72714. deprecated="not deprecated">
  72715. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  72716. <doc>
  72717. <![CDATA[Get the minimum split size
  72718. @param job the job
  72719. @return the minimum number of bytes that can be in a split]]>
  72720. </doc>
  72721. </method>
  72722. <method name="setMaxInputSplitSize"
  72723. abstract="false" native="false" synchronized="false"
  72724. static="true" final="false" visibility="public"
  72725. deprecated="not deprecated">
  72726. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  72727. <param name="size" type="long"/>
  72728. <doc>
  72729. <![CDATA[Set the maximum split size
  72730. @param job the job to modify
  72731. @param size the maximum split size]]>
  72732. </doc>
  72733. </method>
  72734. <method name="getMaxSplitSize" return="long"
  72735. abstract="false" native="false" synchronized="false"
  72736. static="true" final="false" visibility="public"
  72737. deprecated="not deprecated">
  72738. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  72739. <doc>
  72740. <![CDATA[Get the maximum split size.
  72741. @param context the job to look at.
  72742. @return the maximum number of bytes a split can include]]>
  72743. </doc>
  72744. </method>
  72745. <method name="getInputPathFilter" return="org.apache.hadoop.fs.PathFilter"
  72746. abstract="false" native="false" synchronized="false"
  72747. static="true" final="false" visibility="public"
  72748. deprecated="not deprecated">
  72749. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  72750. <doc>
  72751. <![CDATA[Get a PathFilter instance of the filter set for the input paths.
  72752. @return the PathFilter instance set for the job, NULL if none has been set.]]>
  72753. </doc>
  72754. </method>
  72755. <method name="listStatus" return="java.util.List"
  72756. abstract="false" native="false" synchronized="false"
  72757. static="false" final="false" visibility="protected"
  72758. deprecated="not deprecated">
  72759. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  72760. <exception name="IOException" type="java.io.IOException"/>
  72761. <doc>
  72762. <![CDATA[List input directories.
  72763. Subclasses may override to, e.g., select only files matching a regular
  72764. expression.
  72765. @param job the job to list input paths for
  72766. @return array of FileStatus objects
  72767. @throws IOException if zero items.]]>
  72768. </doc>
  72769. </method>
  72770. <method name="getSplits" return="java.util.List"
  72771. abstract="false" native="false" synchronized="false"
  72772. static="false" final="false" visibility="public"
  72773. deprecated="not deprecated">
  72774. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  72775. <exception name="IOException" type="java.io.IOException"/>
  72776. <doc>
  72777. <![CDATA[Generate the list of files and make them into FileSplits.]]>
  72778. </doc>
  72779. </method>
  72780. <method name="computeSplitSize" return="long"
  72781. abstract="false" native="false" synchronized="false"
  72782. static="false" final="false" visibility="protected"
  72783. deprecated="not deprecated">
  72784. <param name="blockSize" type="long"/>
  72785. <param name="minSize" type="long"/>
  72786. <param name="maxSize" type="long"/>
  72787. </method>
  72788. <method name="getBlockIndex" return="int"
  72789. abstract="false" native="false" synchronized="false"
  72790. static="false" final="false" visibility="protected"
  72791. deprecated="not deprecated">
  72792. <param name="blkLocations" type="org.apache.hadoop.fs.BlockLocation[]"/>
  72793. <param name="offset" type="long"/>
  72794. </method>
  72795. <method name="setInputPaths"
  72796. abstract="false" native="false" synchronized="false"
  72797. static="true" final="false" visibility="public"
  72798. deprecated="not deprecated">
  72799. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  72800. <param name="commaSeparatedPaths" type="java.lang.String"/>
  72801. <exception name="IOException" type="java.io.IOException"/>
  72802. <doc>
  72803. <![CDATA[Sets the given comma separated paths as the list of inputs
  72804. for the map-reduce job.
  72805. @param job the job
  72806. @param commaSeparatedPaths Comma separated paths to be set as
  72807. the list of inputs for the map-reduce job.]]>
  72808. </doc>
  72809. </method>
  72810. <method name="addInputPaths"
  72811. abstract="false" native="false" synchronized="false"
  72812. static="true" final="false" visibility="public"
  72813. deprecated="not deprecated">
  72814. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  72815. <param name="commaSeparatedPaths" type="java.lang.String"/>
  72816. <exception name="IOException" type="java.io.IOException"/>
  72817. <doc>
  72818. <![CDATA[Add the given comma separated paths to the list of inputs for
  72819. the map-reduce job.
  72820. @param job The job to modify
  72821. @param commaSeparatedPaths Comma separated paths to be added to
  72822. the list of inputs for the map-reduce job.]]>
  72823. </doc>
  72824. </method>
  72825. <method name="setInputPaths"
  72826. abstract="false" native="false" synchronized="false"
  72827. static="true" final="false" visibility="public"
  72828. deprecated="not deprecated">
  72829. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  72830. <param name="inputPaths" type="org.apache.hadoop.fs.Path[]"/>
  72831. <exception name="IOException" type="java.io.IOException"/>
  72832. <doc>
  72833. <![CDATA[Set the array of {@link Path}s as the list of inputs
  72834. for the map-reduce job.
  72835. @param job The job to modify
  72836. @param inputPaths the {@link Path}s of the input directories/files
  72837. for the map-reduce job.]]>
  72838. </doc>
  72839. </method>
  72840. <method name="addInputPath"
  72841. abstract="false" native="false" synchronized="false"
  72842. static="true" final="false" visibility="public"
  72843. deprecated="not deprecated">
  72844. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  72845. <param name="path" type="org.apache.hadoop.fs.Path"/>
  72846. <exception name="IOException" type="java.io.IOException"/>
  72847. <doc>
  72848. <![CDATA[Add a {@link Path} to the list of inputs for the map-reduce job.
  72849. @param job The {@link Job} to modify
  72850. @param path {@link Path} to be added to the list of inputs for
  72851. the map-reduce job.]]>
  72852. </doc>
  72853. </method>
  72854. <method name="getInputPaths" return="org.apache.hadoop.fs.Path[]"
  72855. abstract="false" native="false" synchronized="false"
  72856. static="true" final="false" visibility="public"
  72857. deprecated="not deprecated">
  72858. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  72859. <doc>
  72860. <![CDATA[Get the list of input {@link Path}s for the map-reduce job.
  72861. @param context The job
  72862. @return the list of input {@link Path}s for the map-reduce job.]]>
  72863. </doc>
  72864. </method>
  72865. <doc>
  72866. <![CDATA[A base class for file-based {@link InputFormat}s.
  72867. <p><code>FileInputFormat</code> is the base class for all file-based
  72868. <code>InputFormat</code>s. This provides a generic implementation of
  72869. {@link #getSplits(JobContext)}.
  72870. Subclasses of <code>FileInputFormat</code> can also override the
  72871. {@link #isSplitable(JobContext, Path)} method to ensure input-files are
  72872. not split-up and are processed as a whole by {@link Mapper}s.]]>
  72873. </doc>
  72874. </class>
  72875. <!-- end class org.apache.hadoop.mapreduce.lib.input.FileInputFormat -->
  72876. <!-- start class org.apache.hadoop.mapreduce.lib.input.FileInputFormat.Counter -->
  72877. <class name="FileInputFormat.Counter" extends="java.lang.Enum"
  72878. abstract="false"
  72879. static="true" final="true" visibility="public"
  72880. deprecated="not deprecated">
  72881. <method name="values" return="org.apache.hadoop.mapreduce.lib.input.FileInputFormat.Counter[]"
  72882. abstract="false" native="false" synchronized="false"
  72883. static="true" final="false" visibility="public"
  72884. deprecated="not deprecated">
  72885. </method>
  72886. <method name="valueOf" return="org.apache.hadoop.mapreduce.lib.input.FileInputFormat.Counter"
  72887. abstract="false" native="false" synchronized="false"
  72888. static="true" final="false" visibility="public"
  72889. deprecated="not deprecated">
  72890. <param name="name" type="java.lang.String"/>
  72891. </method>
  72892. <field name="BYTES_READ" type="org.apache.hadoop.mapreduce.lib.input.FileInputFormat.Counter"
  72893. transient="false" volatile="false"
  72894. static="true" final="true" visibility="public"
  72895. deprecated="not deprecated">
  72896. </field>
  72897. </class>
  72898. <!-- end class org.apache.hadoop.mapreduce.lib.input.FileInputFormat.Counter -->
  72899. <!-- start class org.apache.hadoop.mapreduce.lib.input.FileSplit -->
  72900. <class name="FileSplit" extends="org.apache.hadoop.mapreduce.InputSplit"
  72901. abstract="false"
  72902. static="false" final="false" visibility="public"
  72903. deprecated="not deprecated">
  72904. <implements name="org.apache.hadoop.io.Writable"/>
  72905. <constructor name="FileSplit" type="org.apache.hadoop.fs.Path, long, long, java.lang.String[]"
  72906. static="false" final="false" visibility="public"
  72907. deprecated="not deprecated">
  72908. <doc>
  72909. <![CDATA[Constructs a split with host information
  72910. @param file the file name
  72911. @param start the position of the first byte in the file to process
  72912. @param length the number of bytes in the file to process
  72913. @param hosts the list of hosts containing the block, possibly null]]>
  72914. </doc>
  72915. </constructor>
  72916. <method name="getPath" return="org.apache.hadoop.fs.Path"
  72917. abstract="false" native="false" synchronized="false"
  72918. static="false" final="false" visibility="public"
  72919. deprecated="not deprecated">
  72920. <doc>
  72921. <![CDATA[The file containing this split's data.]]>
  72922. </doc>
  72923. </method>
  72924. <method name="getStart" return="long"
  72925. abstract="false" native="false" synchronized="false"
  72926. static="false" final="false" visibility="public"
  72927. deprecated="not deprecated">
  72928. <doc>
  72929. <![CDATA[The position of the first byte in the file to process.]]>
  72930. </doc>
  72931. </method>
  72932. <method name="getLength" return="long"
  72933. abstract="false" native="false" synchronized="false"
  72934. static="false" final="false" visibility="public"
  72935. deprecated="not deprecated">
  72936. <doc>
  72937. <![CDATA[The number of bytes in the file to process.]]>
  72938. </doc>
  72939. </method>
  72940. <method name="toString" return="java.lang.String"
  72941. abstract="false" native="false" synchronized="false"
  72942. static="false" final="false" visibility="public"
  72943. deprecated="not deprecated">
  72944. </method>
  72945. <method name="write"
  72946. abstract="false" native="false" synchronized="false"
  72947. static="false" final="false" visibility="public"
  72948. deprecated="not deprecated">
  72949. <param name="out" type="java.io.DataOutput"/>
  72950. <exception name="IOException" type="java.io.IOException"/>
  72951. </method>
  72952. <method name="readFields"
  72953. abstract="false" native="false" synchronized="false"
  72954. static="false" final="false" visibility="public"
  72955. deprecated="not deprecated">
  72956. <param name="in" type="java.io.DataInput"/>
  72957. <exception name="IOException" type="java.io.IOException"/>
  72958. </method>
  72959. <method name="getLocations" return="java.lang.String[]"
  72960. abstract="false" native="false" synchronized="false"
  72961. static="false" final="false" visibility="public"
  72962. deprecated="not deprecated">
  72963. <exception name="IOException" type="java.io.IOException"/>
  72964. </method>
  72965. <doc>
  72966. <![CDATA[A section of an input file. Returned by {@link
  72967. InputFormat#getSplits(JobContext)} and passed to
  72968. {@link InputFormat#createRecordReader(InputSplit,TaskAttemptContext)}.]]>
  72969. </doc>
  72970. </class>
  72971. <!-- end class org.apache.hadoop.mapreduce.lib.input.FileSplit -->
  72972. <!-- start class org.apache.hadoop.mapreduce.lib.input.InvalidInputException -->
  72973. <class name="InvalidInputException" extends="java.io.IOException"
  72974. abstract="false"
  72975. static="false" final="false" visibility="public"
  72976. deprecated="not deprecated">
  72977. <constructor name="InvalidInputException" type="java.util.List"
  72978. static="false" final="false" visibility="public"
  72979. deprecated="not deprecated">
  72980. <doc>
  72981. <![CDATA[Create the exception with the given list.
  72982. @param probs the list of problems to report. this list is not copied.]]>
  72983. </doc>
  72984. </constructor>
  72985. <method name="getProblems" return="java.util.List"
  72986. abstract="false" native="false" synchronized="false"
  72987. static="false" final="false" visibility="public"
  72988. deprecated="not deprecated">
  72989. <doc>
  72990. <![CDATA[Get the complete list of the problems reported.
  72991. @return the list of problems, which must not be modified]]>
  72992. </doc>
  72993. </method>
  72994. <method name="getMessage" return="java.lang.String"
  72995. abstract="false" native="false" synchronized="false"
  72996. static="false" final="false" visibility="public"
  72997. deprecated="not deprecated">
  72998. <doc>
  72999. <![CDATA[Get a summary message of the problems found.
  73000. @return the concatenated messages from all of the problems.]]>
  73001. </doc>
  73002. </method>
  73003. <doc>
  73004. <![CDATA[This class wraps a list of problems with the input, so that the user
  73005. can get a list of problems together instead of finding and fixing them one
  73006. by one.]]>
  73007. </doc>
  73008. </class>
  73009. <!-- end class org.apache.hadoop.mapreduce.lib.input.InvalidInputException -->
  73010. <!-- start class org.apache.hadoop.mapreduce.lib.input.KeyValueLineRecordReader -->
  73011. <class name="KeyValueLineRecordReader" extends="org.apache.hadoop.mapreduce.RecordReader"
  73012. abstract="false"
  73013. static="false" final="false" visibility="public"
  73014. deprecated="not deprecated">
  73015. <constructor name="KeyValueLineRecordReader" type="org.apache.hadoop.conf.Configuration"
  73016. static="false" final="false" visibility="public"
  73017. deprecated="not deprecated">
  73018. <exception name="IOException" type="java.io.IOException"/>
  73019. </constructor>
  73020. <method name="getKeyClass" return="java.lang.Class"
  73021. abstract="false" native="false" synchronized="false"
  73022. static="false" final="false" visibility="public"
  73023. deprecated="not deprecated">
  73024. </method>
  73025. <method name="initialize"
  73026. abstract="false" native="false" synchronized="false"
  73027. static="false" final="false" visibility="public"
  73028. deprecated="not deprecated">
  73029. <param name="genericSplit" type="org.apache.hadoop.mapreduce.InputSplit"/>
  73030. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  73031. <exception name="IOException" type="java.io.IOException"/>
  73032. </method>
  73033. <method name="findSeparator" return="int"
  73034. abstract="false" native="false" synchronized="false"
  73035. static="true" final="false" visibility="public"
  73036. deprecated="not deprecated">
  73037. <param name="utf" type="byte[]"/>
  73038. <param name="start" type="int"/>
  73039. <param name="length" type="int"/>
  73040. <param name="sep" type="byte"/>
  73041. </method>
  73042. <method name="setKeyValue"
  73043. abstract="false" native="false" synchronized="false"
  73044. static="true" final="false" visibility="public"
  73045. deprecated="not deprecated">
  73046. <param name="key" type="org.apache.hadoop.io.Text"/>
  73047. <param name="value" type="org.apache.hadoop.io.Text"/>
  73048. <param name="line" type="byte[]"/>
  73049. <param name="lineLen" type="int"/>
  73050. <param name="pos" type="int"/>
  73051. </method>
  73052. <method name="nextKeyValue" return="boolean"
  73053. abstract="false" native="false" synchronized="true"
  73054. static="false" final="false" visibility="public"
  73055. deprecated="not deprecated">
  73056. <exception name="IOException" type="java.io.IOException"/>
  73057. <doc>
  73058. <![CDATA[Read key/value pair in a line.]]>
  73059. </doc>
  73060. </method>
  73061. <method name="getCurrentKey" return="org.apache.hadoop.io.Text"
  73062. abstract="false" native="false" synchronized="false"
  73063. static="false" final="false" visibility="public"
  73064. deprecated="not deprecated">
  73065. </method>
  73066. <method name="getCurrentValue" return="org.apache.hadoop.io.Text"
  73067. abstract="false" native="false" synchronized="false"
  73068. static="false" final="false" visibility="public"
  73069. deprecated="not deprecated">
  73070. </method>
  73071. <method name="getProgress" return="float"
  73072. abstract="false" native="false" synchronized="false"
  73073. static="false" final="false" visibility="public"
  73074. deprecated="not deprecated">
  73075. <exception name="IOException" type="java.io.IOException"/>
  73076. </method>
  73077. <method name="close"
  73078. abstract="false" native="false" synchronized="true"
  73079. static="false" final="false" visibility="public"
  73080. deprecated="not deprecated">
  73081. <exception name="IOException" type="java.io.IOException"/>
  73082. </method>
  73083. <field name="KEY_VALUE_SEPERATOR" type="java.lang.String"
  73084. transient="false" volatile="false"
  73085. static="true" final="true" visibility="public"
  73086. deprecated="not deprecated">
  73087. </field>
  73088. <doc>
  73089. <![CDATA[This class treats a line in the input as a key/value pair separated by a
  73090. separator character. The separator can be specified in config file
  73091. under the attribute name mapreduce.input.keyvaluelinerecordreader.key.value.separator. The default
  73092. separator is the tab character ('\t').]]>
  73093. </doc>
  73094. </class>
  73095. <!-- end class org.apache.hadoop.mapreduce.lib.input.KeyValueLineRecordReader -->
  73096. <!-- start class org.apache.hadoop.mapreduce.lib.input.KeyValueTextInputFormat -->
  73097. <class name="KeyValueTextInputFormat" extends="org.apache.hadoop.mapreduce.lib.input.FileInputFormat"
  73098. abstract="false"
  73099. static="false" final="false" visibility="public"
  73100. deprecated="not deprecated">
  73101. <constructor name="KeyValueTextInputFormat"
  73102. static="false" final="false" visibility="public"
  73103. deprecated="not deprecated">
  73104. </constructor>
  73105. <method name="isSplitable" return="boolean"
  73106. abstract="false" native="false" synchronized="false"
  73107. static="false" final="false" visibility="protected"
  73108. deprecated="not deprecated">
  73109. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  73110. <param name="file" type="org.apache.hadoop.fs.Path"/>
  73111. </method>
  73112. <method name="createRecordReader" return="org.apache.hadoop.mapreduce.RecordReader"
  73113. abstract="false" native="false" synchronized="false"
  73114. static="false" final="false" visibility="public"
  73115. deprecated="not deprecated">
  73116. <param name="genericSplit" type="org.apache.hadoop.mapreduce.InputSplit"/>
  73117. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  73118. <exception name="IOException" type="java.io.IOException"/>
  73119. </method>
  73120. <doc>
  73121. <![CDATA[An {@link InputFormat} for plain text files. Files are broken into lines.
  73122. Either line feed or carriage-return are used to signal end of line.
  73123. Each line is divided into key and value parts by a separator byte. If no
  73124. such a byte exists, the key will be the entire line and value will be empty.]]>
  73125. </doc>
  73126. </class>
  73127. <!-- end class org.apache.hadoop.mapreduce.lib.input.KeyValueTextInputFormat -->
  73128. <!-- start class org.apache.hadoop.mapreduce.lib.input.LineRecordReader -->
  73129. <class name="LineRecordReader" extends="org.apache.hadoop.mapreduce.RecordReader"
  73130. abstract="false"
  73131. static="false" final="false" visibility="public"
  73132. deprecated="not deprecated">
  73133. <constructor name="LineRecordReader"
  73134. static="false" final="false" visibility="public"
  73135. deprecated="not deprecated">
  73136. </constructor>
  73137. <method name="initialize"
  73138. abstract="false" native="false" synchronized="false"
  73139. static="false" final="false" visibility="public"
  73140. deprecated="not deprecated">
  73141. <param name="genericSplit" type="org.apache.hadoop.mapreduce.InputSplit"/>
  73142. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  73143. <exception name="IOException" type="java.io.IOException"/>
  73144. </method>
  73145. <method name="nextKeyValue" return="boolean"
  73146. abstract="false" native="false" synchronized="false"
  73147. static="false" final="false" visibility="public"
  73148. deprecated="not deprecated">
  73149. <exception name="IOException" type="java.io.IOException"/>
  73150. </method>
  73151. <method name="getCurrentKey" return="org.apache.hadoop.io.LongWritable"
  73152. abstract="false" native="false" synchronized="false"
  73153. static="false" final="false" visibility="public"
  73154. deprecated="not deprecated">
  73155. </method>
  73156. <method name="getCurrentValue" return="org.apache.hadoop.io.Text"
  73157. abstract="false" native="false" synchronized="false"
  73158. static="false" final="false" visibility="public"
  73159. deprecated="not deprecated">
  73160. </method>
  73161. <method name="getProgress" return="float"
  73162. abstract="false" native="false" synchronized="false"
  73163. static="false" final="false" visibility="public"
  73164. deprecated="not deprecated">
  73165. <exception name="IOException" type="java.io.IOException"/>
  73166. <doc>
  73167. <![CDATA[Get the progress within the split]]>
  73168. </doc>
  73169. </method>
  73170. <method name="close"
  73171. abstract="false" native="false" synchronized="true"
  73172. static="false" final="false" visibility="public"
  73173. deprecated="not deprecated">
  73174. <exception name="IOException" type="java.io.IOException"/>
  73175. </method>
  73176. <doc>
  73177. <![CDATA[Treats keys as offset in file and value as line.]]>
  73178. </doc>
  73179. </class>
  73180. <!-- end class org.apache.hadoop.mapreduce.lib.input.LineRecordReader -->
  73181. <!-- start class org.apache.hadoop.mapreduce.lib.input.MultipleInputs -->
  73182. <class name="MultipleInputs" extends="java.lang.Object"
  73183. abstract="false"
  73184. static="false" final="false" visibility="public"
  73185. deprecated="not deprecated">
  73186. <constructor name="MultipleInputs"
  73187. static="false" final="false" visibility="public"
  73188. deprecated="not deprecated">
  73189. </constructor>
  73190. <method name="addInputPath"
  73191. abstract="false" native="false" synchronized="false"
  73192. static="true" final="false" visibility="public"
  73193. deprecated="not deprecated">
  73194. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  73195. <param name="path" type="org.apache.hadoop.fs.Path"/>
  73196. <param name="inputFormatClass" type="java.lang.Class"/>
  73197. <doc>
  73198. <![CDATA[Add a {@link Path} with a custom {@link InputFormat} to the list of
  73199. inputs for the map-reduce job.
  73200. @param job The {@link Job}
  73201. @param path {@link Path} to be added to the list of inputs for the job
  73202. @param inputFormatClass {@link InputFormat} class to use for this path]]>
  73203. </doc>
  73204. </method>
  73205. <method name="addInputPath"
  73206. abstract="false" native="false" synchronized="false"
  73207. static="true" final="false" visibility="public"
  73208. deprecated="not deprecated">
  73209. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  73210. <param name="path" type="org.apache.hadoop.fs.Path"/>
  73211. <param name="inputFormatClass" type="java.lang.Class"/>
  73212. <param name="mapperClass" type="java.lang.Class"/>
  73213. <doc>
  73214. <![CDATA[Add a {@link Path} with a custom {@link InputFormat} and
  73215. {@link Mapper} to the list of inputs for the map-reduce job.
  73216. @param job The {@link Job}
  73217. @param path {@link Path} to be added to the list of inputs for the job
  73218. @param inputFormatClass {@link InputFormat} class to use for this path
  73219. @param mapperClass {@link Mapper} class to use for this path]]>
  73220. </doc>
  73221. </method>
  73222. <field name="DIR_FORMATS" type="java.lang.String"
  73223. transient="false" volatile="false"
  73224. static="true" final="true" visibility="public"
  73225. deprecated="not deprecated">
  73226. </field>
  73227. <field name="DIR_MAPPERS" type="java.lang.String"
  73228. transient="false" volatile="false"
  73229. static="true" final="true" visibility="public"
  73230. deprecated="not deprecated">
  73231. </field>
  73232. <doc>
  73233. <![CDATA[This class supports MapReduce jobs that have multiple input paths with
  73234. a different {@link InputFormat} and {@link Mapper} for each path]]>
  73235. </doc>
  73236. </class>
  73237. <!-- end class org.apache.hadoop.mapreduce.lib.input.MultipleInputs -->
  73238. <!-- start class org.apache.hadoop.mapreduce.lib.input.NLineInputFormat -->
  73239. <class name="NLineInputFormat" extends="org.apache.hadoop.mapreduce.lib.input.FileInputFormat"
  73240. abstract="false"
  73241. static="false" final="false" visibility="public"
  73242. deprecated="not deprecated">
  73243. <constructor name="NLineInputFormat"
  73244. static="false" final="false" visibility="public"
  73245. deprecated="not deprecated">
  73246. </constructor>
  73247. <method name="createRecordReader" return="org.apache.hadoop.mapreduce.RecordReader"
  73248. abstract="false" native="false" synchronized="false"
  73249. static="false" final="false" visibility="public"
  73250. deprecated="not deprecated">
  73251. <param name="genericSplit" type="org.apache.hadoop.mapreduce.InputSplit"/>
  73252. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  73253. <exception name="IOException" type="java.io.IOException"/>
  73254. </method>
  73255. <method name="getSplits" return="java.util.List"
  73256. abstract="false" native="false" synchronized="false"
  73257. static="false" final="false" visibility="public"
  73258. deprecated="not deprecated">
  73259. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  73260. <exception name="IOException" type="java.io.IOException"/>
  73261. <doc>
  73262. <![CDATA[Logically splits the set of input files for the job, splits N lines
  73263. of the input as one split.
  73264. @see FileInputFormat#getSplits(JobContext)]]>
  73265. </doc>
  73266. </method>
  73267. <method name="getSplitsForFile" return="java.util.List"
  73268. abstract="false" native="false" synchronized="false"
  73269. static="true" final="false" visibility="public"
  73270. deprecated="not deprecated">
  73271. <param name="status" type="org.apache.hadoop.fs.FileStatus"/>
  73272. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  73273. <param name="numLinesPerSplit" type="int"/>
  73274. <exception name="IOException" type="java.io.IOException"/>
  73275. </method>
  73276. <method name="createFileSplit" return="org.apache.hadoop.mapreduce.lib.input.FileSplit"
  73277. abstract="false" native="false" synchronized="false"
  73278. static="true" final="false" visibility="protected"
  73279. deprecated="not deprecated">
  73280. <param name="fileName" type="org.apache.hadoop.fs.Path"/>
  73281. <param name="begin" type="long"/>
  73282. <param name="length" type="long"/>
  73283. <doc>
  73284. <![CDATA[NLineInputFormat uses LineRecordReader, which always reads
  73285. (and consumes) at least one character out of its upper split
  73286. boundary. So to make sure that each mapper gets N lines, we
  73287. move back the upper split limits of each split
  73288. by one character here.
  73289. @param fileName Path of file
  73290. @param begin the position of the first byte in the file to process
  73291. @param length number of bytes in InputSplit
  73292. @return FileSplit]]>
  73293. </doc>
  73294. </method>
  73295. <method name="setNumLinesPerSplit"
  73296. abstract="false" native="false" synchronized="false"
  73297. static="true" final="false" visibility="public"
  73298. deprecated="not deprecated">
  73299. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  73300. <param name="numLines" type="int"/>
  73301. <doc>
  73302. <![CDATA[Set the number of lines per split
  73303. @param job the job to modify
  73304. @param numLines the number of lines per split]]>
  73305. </doc>
  73306. </method>
  73307. <method name="getNumLinesPerSplit" return="int"
  73308. abstract="false" native="false" synchronized="false"
  73309. static="true" final="false" visibility="public"
  73310. deprecated="not deprecated">
  73311. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  73312. <doc>
  73313. <![CDATA[Get the number of lines per split
  73314. @param job the job
  73315. @return the number of lines per split]]>
  73316. </doc>
  73317. </method>
  73318. <field name="LINES_PER_MAP" type="java.lang.String"
  73319. transient="false" volatile="false"
  73320. static="true" final="true" visibility="public"
  73321. deprecated="not deprecated">
  73322. </field>
  73323. <doc>
  73324. <![CDATA[NLineInputFormat which splits N lines of input as one split.
  73325. In many "pleasantly" parallel applications, each process/mapper
  73326. processes the same input file (s), but with computations are
  73327. controlled by different parameters.(Referred to as "parameter sweeps").
  73328. One way to achieve this, is to specify a set of parameters
  73329. (one set per line) as input in a control file
  73330. (which is the input path to the map-reduce application,
  73331. where as the input dataset is specified
  73332. via a config variable in JobConf.).
  73333. The NLineInputFormat can be used in such applications, that splits
  73334. the input file such that by default, one line is fed as
  73335. a value to one map task, and key is the offset.
  73336. i.e. (k,v) is (LongWritable, Text).
  73337. The location hints will span the whole mapred cluster.]]>
  73338. </doc>
  73339. </class>
  73340. <!-- end class org.apache.hadoop.mapreduce.lib.input.NLineInputFormat -->
  73341. <!-- start class org.apache.hadoop.mapreduce.lib.input.SequenceFileAsBinaryInputFormat -->
  73342. <class name="SequenceFileAsBinaryInputFormat" extends="org.apache.hadoop.mapreduce.lib.input.SequenceFileInputFormat"
  73343. abstract="false"
  73344. static="false" final="false" visibility="public"
  73345. deprecated="not deprecated">
  73346. <constructor name="SequenceFileAsBinaryInputFormat"
  73347. static="false" final="false" visibility="public"
  73348. deprecated="not deprecated">
  73349. </constructor>
  73350. <method name="createRecordReader" return="org.apache.hadoop.mapreduce.RecordReader"
  73351. abstract="false" native="false" synchronized="false"
  73352. static="false" final="false" visibility="public"
  73353. deprecated="not deprecated">
  73354. <param name="split" type="org.apache.hadoop.mapreduce.InputSplit"/>
  73355. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  73356. <exception name="IOException" type="java.io.IOException"/>
  73357. </method>
  73358. <doc>
  73359. <![CDATA[InputFormat reading keys, values from SequenceFiles in binary (raw)
  73360. format.]]>
  73361. </doc>
  73362. </class>
  73363. <!-- end class org.apache.hadoop.mapreduce.lib.input.SequenceFileAsBinaryInputFormat -->
  73364. <!-- start class org.apache.hadoop.mapreduce.lib.input.SequenceFileAsBinaryInputFormat.SequenceFileAsBinaryRecordReader -->
  73365. <class name="SequenceFileAsBinaryInputFormat.SequenceFileAsBinaryRecordReader" extends="org.apache.hadoop.mapreduce.RecordReader"
  73366. abstract="false"
  73367. static="true" final="false" visibility="public"
  73368. deprecated="not deprecated">
  73369. <constructor name="SequenceFileAsBinaryInputFormat.SequenceFileAsBinaryRecordReader"
  73370. static="false" final="false" visibility="public"
  73371. deprecated="not deprecated">
  73372. </constructor>
  73373. <method name="initialize"
  73374. abstract="false" native="false" synchronized="false"
  73375. static="false" final="false" visibility="public"
  73376. deprecated="not deprecated">
  73377. <param name="split" type="org.apache.hadoop.mapreduce.InputSplit"/>
  73378. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  73379. <exception name="IOException" type="java.io.IOException"/>
  73380. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  73381. </method>
  73382. <method name="getCurrentKey" return="org.apache.hadoop.io.BytesWritable"
  73383. abstract="false" native="false" synchronized="false"
  73384. static="false" final="false" visibility="public"
  73385. deprecated="not deprecated">
  73386. <exception name="IOException" type="java.io.IOException"/>
  73387. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  73388. </method>
  73389. <method name="getCurrentValue" return="org.apache.hadoop.io.BytesWritable"
  73390. abstract="false" native="false" synchronized="false"
  73391. static="false" final="false" visibility="public"
  73392. deprecated="not deprecated">
  73393. <exception name="IOException" type="java.io.IOException"/>
  73394. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  73395. </method>
  73396. <method name="getKeyClassName" return="java.lang.String"
  73397. abstract="false" native="false" synchronized="false"
  73398. static="false" final="false" visibility="public"
  73399. deprecated="not deprecated">
  73400. <doc>
  73401. <![CDATA[Retrieve the name of the key class for this SequenceFile.
  73402. @see org.apache.hadoop.io.SequenceFile.Reader#getKeyClassName]]>
  73403. </doc>
  73404. </method>
  73405. <method name="getValueClassName" return="java.lang.String"
  73406. abstract="false" native="false" synchronized="false"
  73407. static="false" final="false" visibility="public"
  73408. deprecated="not deprecated">
  73409. <doc>
  73410. <![CDATA[Retrieve the name of the value class for this SequenceFile.
  73411. @see org.apache.hadoop.io.SequenceFile.Reader#getValueClassName]]>
  73412. </doc>
  73413. </method>
  73414. <method name="nextKeyValue" return="boolean"
  73415. abstract="false" native="false" synchronized="true"
  73416. static="false" final="false" visibility="public"
  73417. deprecated="not deprecated">
  73418. <exception name="IOException" type="java.io.IOException"/>
  73419. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  73420. <doc>
  73421. <![CDATA[Read raw bytes from a SequenceFile.]]>
  73422. </doc>
  73423. </method>
  73424. <method name="close"
  73425. abstract="false" native="false" synchronized="false"
  73426. static="false" final="false" visibility="public"
  73427. deprecated="not deprecated">
  73428. <exception name="IOException" type="java.io.IOException"/>
  73429. </method>
  73430. <method name="getProgress" return="float"
  73431. abstract="false" native="false" synchronized="false"
  73432. static="false" final="false" visibility="public"
  73433. deprecated="not deprecated">
  73434. <exception name="IOException" type="java.io.IOException"/>
  73435. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  73436. <doc>
  73437. <![CDATA[Return the progress within the input split
  73438. @return 0.0 to 1.0 of the input byte range]]>
  73439. </doc>
  73440. </method>
  73441. <doc>
  73442. <![CDATA[Read records from a SequenceFile as binary (raw) bytes.]]>
  73443. </doc>
  73444. </class>
  73445. <!-- end class org.apache.hadoop.mapreduce.lib.input.SequenceFileAsBinaryInputFormat.SequenceFileAsBinaryRecordReader -->
  73446. <!-- start class org.apache.hadoop.mapreduce.lib.input.SequenceFileAsTextInputFormat -->
  73447. <class name="SequenceFileAsTextInputFormat" extends="org.apache.hadoop.mapreduce.lib.input.SequenceFileInputFormat"
  73448. abstract="false"
  73449. static="false" final="false" visibility="public"
  73450. deprecated="not deprecated">
  73451. <constructor name="SequenceFileAsTextInputFormat"
  73452. static="false" final="false" visibility="public"
  73453. deprecated="not deprecated">
  73454. </constructor>
  73455. <method name="createRecordReader" return="org.apache.hadoop.mapreduce.RecordReader"
  73456. abstract="false" native="false" synchronized="false"
  73457. static="false" final="false" visibility="public"
  73458. deprecated="not deprecated">
  73459. <param name="split" type="org.apache.hadoop.mapreduce.InputSplit"/>
  73460. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  73461. <exception name="IOException" type="java.io.IOException"/>
  73462. </method>
  73463. <doc>
  73464. <![CDATA[This class is similar to SequenceFileInputFormat, except it generates
  73465. SequenceFileAsTextRecordReader which converts the input keys and values
  73466. to their String forms by calling toString() method.]]>
  73467. </doc>
  73468. </class>
  73469. <!-- end class org.apache.hadoop.mapreduce.lib.input.SequenceFileAsTextInputFormat -->
  73470. <!-- start class org.apache.hadoop.mapreduce.lib.input.SequenceFileAsTextRecordReader -->
  73471. <class name="SequenceFileAsTextRecordReader" extends="org.apache.hadoop.mapreduce.RecordReader"
  73472. abstract="false"
  73473. static="false" final="false" visibility="public"
  73474. deprecated="not deprecated">
  73475. <constructor name="SequenceFileAsTextRecordReader"
  73476. static="false" final="false" visibility="public"
  73477. deprecated="not deprecated">
  73478. <exception name="IOException" type="java.io.IOException"/>
  73479. </constructor>
  73480. <method name="initialize"
  73481. abstract="false" native="false" synchronized="false"
  73482. static="false" final="false" visibility="public"
  73483. deprecated="not deprecated">
  73484. <param name="split" type="org.apache.hadoop.mapreduce.InputSplit"/>
  73485. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  73486. <exception name="IOException" type="java.io.IOException"/>
  73487. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  73488. </method>
  73489. <method name="getCurrentKey" return="org.apache.hadoop.io.Text"
  73490. abstract="false" native="false" synchronized="false"
  73491. static="false" final="false" visibility="public"
  73492. deprecated="not deprecated">
  73493. <exception name="IOException" type="java.io.IOException"/>
  73494. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  73495. </method>
  73496. <method name="getCurrentValue" return="org.apache.hadoop.io.Text"
  73497. abstract="false" native="false" synchronized="false"
  73498. static="false" final="false" visibility="public"
  73499. deprecated="not deprecated">
  73500. <exception name="IOException" type="java.io.IOException"/>
  73501. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  73502. </method>
  73503. <method name="nextKeyValue" return="boolean"
  73504. abstract="false" native="false" synchronized="true"
  73505. static="false" final="false" visibility="public"
  73506. deprecated="not deprecated">
  73507. <exception name="IOException" type="java.io.IOException"/>
  73508. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  73509. <doc>
  73510. <![CDATA[Read key/value pair in a line.]]>
  73511. </doc>
  73512. </method>
  73513. <method name="getProgress" return="float"
  73514. abstract="false" native="false" synchronized="false"
  73515. static="false" final="false" visibility="public"
  73516. deprecated="not deprecated">
  73517. <exception name="IOException" type="java.io.IOException"/>
  73518. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  73519. </method>
  73520. <method name="close"
  73521. abstract="false" native="false" synchronized="true"
  73522. static="false" final="false" visibility="public"
  73523. deprecated="not deprecated">
  73524. <exception name="IOException" type="java.io.IOException"/>
  73525. </method>
  73526. <doc>
  73527. <![CDATA[This class converts the input keys and values to their String forms by
  73528. calling toString() method. This class to SequenceFileAsTextInputFormat
  73529. class is as LineRecordReader class to TextInputFormat class.]]>
  73530. </doc>
  73531. </class>
  73532. <!-- end class org.apache.hadoop.mapreduce.lib.input.SequenceFileAsTextRecordReader -->
  73533. <!-- start class org.apache.hadoop.mapreduce.lib.input.SequenceFileInputFilter -->
  73534. <class name="SequenceFileInputFilter" extends="org.apache.hadoop.mapreduce.lib.input.SequenceFileInputFormat"
  73535. abstract="false"
  73536. static="false" final="false" visibility="public"
  73537. deprecated="not deprecated">
  73538. <constructor name="SequenceFileInputFilter"
  73539. static="false" final="false" visibility="public"
  73540. deprecated="not deprecated">
  73541. </constructor>
  73542. <method name="createRecordReader" return="org.apache.hadoop.mapreduce.RecordReader"
  73543. abstract="false" native="false" synchronized="false"
  73544. static="false" final="false" visibility="public"
  73545. deprecated="not deprecated">
  73546. <param name="split" type="org.apache.hadoop.mapreduce.InputSplit"/>
  73547. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  73548. <exception name="IOException" type="java.io.IOException"/>
  73549. <doc>
  73550. <![CDATA[Create a record reader for the given split
  73551. @param split file split
  73552. @param context the task-attempt context
  73553. @return RecordReader]]>
  73554. </doc>
  73555. </method>
  73556. <method name="setFilterClass"
  73557. abstract="false" native="false" synchronized="false"
  73558. static="true" final="false" visibility="public"
  73559. deprecated="not deprecated">
  73560. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  73561. <param name="filterClass" type="java.lang.Class"/>
  73562. <doc>
  73563. <![CDATA[set the filter class
  73564. @param job The job
  73565. @param filterClass filter class]]>
  73566. </doc>
  73567. </method>
  73568. <field name="LOG" type="org.apache.commons.logging.Log"
  73569. transient="false" volatile="false"
  73570. static="true" final="true" visibility="public"
  73571. deprecated="not deprecated">
  73572. </field>
  73573. <field name="FILTER_CLASS" type="java.lang.String"
  73574. transient="false" volatile="false"
  73575. static="true" final="true" visibility="public"
  73576. deprecated="not deprecated">
  73577. </field>
  73578. <field name="FILTER_FREQUENCY" type="java.lang.String"
  73579. transient="false" volatile="false"
  73580. static="true" final="true" visibility="public"
  73581. deprecated="not deprecated">
  73582. </field>
  73583. <field name="FILTER_REGEX" type="java.lang.String"
  73584. transient="false" volatile="false"
  73585. static="true" final="true" visibility="public"
  73586. deprecated="not deprecated">
  73587. </field>
  73588. <doc>
  73589. <![CDATA[A class that allows a map/red job to work on a sample of sequence files.
  73590. The sample is decided by the filter class set by the job.]]>
  73591. </doc>
  73592. </class>
  73593. <!-- end class org.apache.hadoop.mapreduce.lib.input.SequenceFileInputFilter -->
  73594. <!-- start interface org.apache.hadoop.mapreduce.lib.input.SequenceFileInputFilter.Filter -->
  73595. <interface name="SequenceFileInputFilter.Filter" abstract="true"
  73596. static="true" final="false" visibility="public"
  73597. deprecated="not deprecated">
  73598. <implements name="org.apache.hadoop.conf.Configurable"/>
  73599. <method name="accept" return="boolean"
  73600. abstract="false" native="false" synchronized="false"
  73601. static="false" final="false" visibility="public"
  73602. deprecated="not deprecated">
  73603. <param name="key" type="java.lang.Object"/>
  73604. <doc>
  73605. <![CDATA[filter function
  73606. Decide if a record should be filtered or not
  73607. @param key record key
  73608. @return true if a record is accepted; return false otherwise]]>
  73609. </doc>
  73610. </method>
  73611. <doc>
  73612. <![CDATA[filter interface]]>
  73613. </doc>
  73614. </interface>
  73615. <!-- end interface org.apache.hadoop.mapreduce.lib.input.SequenceFileInputFilter.Filter -->
  73616. <!-- start class org.apache.hadoop.mapreduce.lib.input.SequenceFileInputFilter.FilterBase -->
  73617. <class name="SequenceFileInputFilter.FilterBase" extends="java.lang.Object"
  73618. abstract="true"
  73619. static="true" final="false" visibility="public"
  73620. deprecated="not deprecated">
  73621. <implements name="org.apache.hadoop.mapreduce.lib.input.SequenceFileInputFilter.Filter"/>
  73622. <constructor name="SequenceFileInputFilter.FilterBase"
  73623. static="false" final="false" visibility="public"
  73624. deprecated="not deprecated">
  73625. </constructor>
  73626. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  73627. abstract="false" native="false" synchronized="false"
  73628. static="false" final="false" visibility="public"
  73629. deprecated="not deprecated">
  73630. </method>
  73631. <doc>
  73632. <![CDATA[base class for Filters]]>
  73633. </doc>
  73634. </class>
  73635. <!-- end class org.apache.hadoop.mapreduce.lib.input.SequenceFileInputFilter.FilterBase -->
  73636. <!-- start class org.apache.hadoop.mapreduce.lib.input.SequenceFileInputFilter.MD5Filter -->
  73637. <class name="SequenceFileInputFilter.MD5Filter" extends="org.apache.hadoop.mapreduce.lib.input.SequenceFileInputFilter.FilterBase"
  73638. abstract="false"
  73639. static="true" final="false" visibility="public"
  73640. deprecated="not deprecated">
  73641. <constructor name="SequenceFileInputFilter.MD5Filter"
  73642. static="false" final="false" visibility="public"
  73643. deprecated="not deprecated">
  73644. </constructor>
  73645. <method name="setFrequency"
  73646. abstract="false" native="false" synchronized="false"
  73647. static="true" final="false" visibility="public"
  73648. deprecated="not deprecated">
  73649. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  73650. <param name="frequency" type="int"/>
  73651. <doc>
  73652. <![CDATA[set the filtering frequency in configuration
  73653. @param conf configuration
  73654. @param frequency filtering frequency]]>
  73655. </doc>
  73656. </method>
  73657. <method name="setConf"
  73658. abstract="false" native="false" synchronized="false"
  73659. static="false" final="false" visibility="public"
  73660. deprecated="not deprecated">
  73661. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  73662. <doc>
  73663. <![CDATA[configure the filter according to configuration
  73664. @param conf configuration]]>
  73665. </doc>
  73666. </method>
  73667. <method name="accept" return="boolean"
  73668. abstract="false" native="false" synchronized="false"
  73669. static="false" final="false" visibility="public"
  73670. deprecated="not deprecated">
  73671. <param name="key" type="java.lang.Object"/>
  73672. <doc>
  73673. <![CDATA[Filtering method
  73674. If MD5(key) % frequency==0, return true; otherwise return false
  73675. @see Filter#accept(Object)]]>
  73676. </doc>
  73677. </method>
  73678. <field name="MD5_LEN" type="int"
  73679. transient="false" volatile="false"
  73680. static="true" final="true" visibility="public"
  73681. deprecated="not deprecated">
  73682. </field>
  73683. <doc>
  73684. <![CDATA[This class returns a set of records by examing the MD5 digest of its
  73685. key against a filtering frequency <i>f</i>. The filtering criteria is
  73686. MD5(key) % f == 0.]]>
  73687. </doc>
  73688. </class>
  73689. <!-- end class org.apache.hadoop.mapreduce.lib.input.SequenceFileInputFilter.MD5Filter -->
  73690. <!-- start class org.apache.hadoop.mapreduce.lib.input.SequenceFileInputFilter.PercentFilter -->
  73691. <class name="SequenceFileInputFilter.PercentFilter" extends="org.apache.hadoop.mapreduce.lib.input.SequenceFileInputFilter.FilterBase"
  73692. abstract="false"
  73693. static="true" final="false" visibility="public"
  73694. deprecated="not deprecated">
  73695. <constructor name="SequenceFileInputFilter.PercentFilter"
  73696. static="false" final="false" visibility="public"
  73697. deprecated="not deprecated">
  73698. </constructor>
  73699. <method name="setFrequency"
  73700. abstract="false" native="false" synchronized="false"
  73701. static="true" final="false" visibility="public"
  73702. deprecated="not deprecated">
  73703. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  73704. <param name="frequency" type="int"/>
  73705. <doc>
  73706. <![CDATA[set the frequency and stores it in conf
  73707. @param conf configuration
  73708. @param frequency filtering frequencey]]>
  73709. </doc>
  73710. </method>
  73711. <method name="setConf"
  73712. abstract="false" native="false" synchronized="false"
  73713. static="false" final="false" visibility="public"
  73714. deprecated="not deprecated">
  73715. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  73716. <doc>
  73717. <![CDATA[configure the filter by checking the configuration
  73718. @param conf configuration]]>
  73719. </doc>
  73720. </method>
  73721. <method name="accept" return="boolean"
  73722. abstract="false" native="false" synchronized="false"
  73723. static="false" final="false" visibility="public"
  73724. deprecated="not deprecated">
  73725. <param name="key" type="java.lang.Object"/>
  73726. <doc>
  73727. <![CDATA[Filtering method
  73728. If record# % frequency==0, return true; otherwise return false
  73729. @see Filter#accept(Object)]]>
  73730. </doc>
  73731. </method>
  73732. <doc>
  73733. <![CDATA[This class returns a percentage of records
  73734. The percentage is determined by a filtering frequency <i>f</i> using
  73735. the criteria record# % f == 0.
  73736. For example, if the frequency is 10, one out of 10 records is returned.]]>
  73737. </doc>
  73738. </class>
  73739. <!-- end class org.apache.hadoop.mapreduce.lib.input.SequenceFileInputFilter.PercentFilter -->
  73740. <!-- start class org.apache.hadoop.mapreduce.lib.input.SequenceFileInputFilter.RegexFilter -->
  73741. <class name="SequenceFileInputFilter.RegexFilter" extends="org.apache.hadoop.mapreduce.lib.input.SequenceFileInputFilter.FilterBase"
  73742. abstract="false"
  73743. static="true" final="false" visibility="public"
  73744. deprecated="not deprecated">
  73745. <constructor name="SequenceFileInputFilter.RegexFilter"
  73746. static="false" final="false" visibility="public"
  73747. deprecated="not deprecated">
  73748. </constructor>
  73749. <method name="setPattern"
  73750. abstract="false" native="false" synchronized="false"
  73751. static="true" final="false" visibility="public"
  73752. deprecated="not deprecated">
  73753. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  73754. <param name="regex" type="java.lang.String"/>
  73755. <exception name="PatternSyntaxException" type="java.util.regex.PatternSyntaxException"/>
  73756. <doc>
  73757. <![CDATA[Define the filtering regex and stores it in conf
  73758. @param conf where the regex is set
  73759. @param regex regex used as a filter]]>
  73760. </doc>
  73761. </method>
  73762. <method name="setConf"
  73763. abstract="false" native="false" synchronized="false"
  73764. static="false" final="false" visibility="public"
  73765. deprecated="not deprecated">
  73766. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  73767. <doc>
  73768. <![CDATA[configure the Filter by checking the configuration]]>
  73769. </doc>
  73770. </method>
  73771. <method name="accept" return="boolean"
  73772. abstract="false" native="false" synchronized="false"
  73773. static="false" final="false" visibility="public"
  73774. deprecated="not deprecated">
  73775. <param name="key" type="java.lang.Object"/>
  73776. <doc>
  73777. <![CDATA[Filtering method
  73778. If key matches the regex, return true; otherwise return false
  73779. @see Filter#accept(Object)]]>
  73780. </doc>
  73781. </method>
  73782. <doc>
  73783. <![CDATA[Records filter by matching key to regex]]>
  73784. </doc>
  73785. </class>
  73786. <!-- end class org.apache.hadoop.mapreduce.lib.input.SequenceFileInputFilter.RegexFilter -->
  73787. <!-- start class org.apache.hadoop.mapreduce.lib.input.SequenceFileInputFormat -->
  73788. <class name="SequenceFileInputFormat" extends="org.apache.hadoop.mapreduce.lib.input.FileInputFormat"
  73789. abstract="false"
  73790. static="false" final="false" visibility="public"
  73791. deprecated="not deprecated">
  73792. <constructor name="SequenceFileInputFormat"
  73793. static="false" final="false" visibility="public"
  73794. deprecated="not deprecated">
  73795. </constructor>
  73796. <method name="createRecordReader" return="org.apache.hadoop.mapreduce.RecordReader"
  73797. abstract="false" native="false" synchronized="false"
  73798. static="false" final="false" visibility="public"
  73799. deprecated="not deprecated">
  73800. <param name="split" type="org.apache.hadoop.mapreduce.InputSplit"/>
  73801. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  73802. <exception name="IOException" type="java.io.IOException"/>
  73803. </method>
  73804. <method name="getFormatMinSplitSize" return="long"
  73805. abstract="false" native="false" synchronized="false"
  73806. static="false" final="false" visibility="protected"
  73807. deprecated="not deprecated">
  73808. </method>
  73809. <method name="listStatus" return="java.util.List"
  73810. abstract="false" native="false" synchronized="false"
  73811. static="false" final="false" visibility="protected"
  73812. deprecated="not deprecated">
  73813. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  73814. <exception name="IOException" type="java.io.IOException"/>
  73815. </method>
  73816. <doc>
  73817. <![CDATA[An {@link InputFormat} for {@link SequenceFile}s.]]>
  73818. </doc>
  73819. </class>
  73820. <!-- end class org.apache.hadoop.mapreduce.lib.input.SequenceFileInputFormat -->
  73821. <!-- start class org.apache.hadoop.mapreduce.lib.input.SequenceFileRecordReader -->
  73822. <class name="SequenceFileRecordReader" extends="org.apache.hadoop.mapreduce.RecordReader"
  73823. abstract="false"
  73824. static="false" final="false" visibility="public"
  73825. deprecated="not deprecated">
  73826. <constructor name="SequenceFileRecordReader"
  73827. static="false" final="false" visibility="public"
  73828. deprecated="not deprecated">
  73829. </constructor>
  73830. <method name="initialize"
  73831. abstract="false" native="false" synchronized="false"
  73832. static="false" final="false" visibility="public"
  73833. deprecated="not deprecated">
  73834. <param name="split" type="org.apache.hadoop.mapreduce.InputSplit"/>
  73835. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  73836. <exception name="IOException" type="java.io.IOException"/>
  73837. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  73838. </method>
  73839. <method name="nextKeyValue" return="boolean"
  73840. abstract="false" native="false" synchronized="false"
  73841. static="false" final="false" visibility="public"
  73842. deprecated="not deprecated">
  73843. <exception name="IOException" type="java.io.IOException"/>
  73844. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  73845. </method>
  73846. <method name="getCurrentKey" return="java.lang.Object"
  73847. abstract="false" native="false" synchronized="false"
  73848. static="false" final="false" visibility="public"
  73849. deprecated="not deprecated">
  73850. </method>
  73851. <method name="getCurrentValue" return="java.lang.Object"
  73852. abstract="false" native="false" synchronized="false"
  73853. static="false" final="false" visibility="public"
  73854. deprecated="not deprecated">
  73855. </method>
  73856. <method name="getProgress" return="float"
  73857. abstract="false" native="false" synchronized="false"
  73858. static="false" final="false" visibility="public"
  73859. deprecated="not deprecated">
  73860. <exception name="IOException" type="java.io.IOException"/>
  73861. <doc>
  73862. <![CDATA[Return the progress within the input split
  73863. @return 0.0 to 1.0 of the input byte range]]>
  73864. </doc>
  73865. </method>
  73866. <method name="close"
  73867. abstract="false" native="false" synchronized="true"
  73868. static="false" final="false" visibility="public"
  73869. deprecated="not deprecated">
  73870. <exception name="IOException" type="java.io.IOException"/>
  73871. </method>
  73872. <field name="conf" type="org.apache.hadoop.conf.Configuration"
  73873. transient="false" volatile="false"
  73874. static="false" final="false" visibility="protected"
  73875. deprecated="not deprecated">
  73876. </field>
  73877. <doc>
  73878. <![CDATA[An {@link RecordReader} for {@link SequenceFile}s.]]>
  73879. </doc>
  73880. </class>
  73881. <!-- end class org.apache.hadoop.mapreduce.lib.input.SequenceFileRecordReader -->
  73882. <!-- start class org.apache.hadoop.mapreduce.lib.input.TextInputFormat -->
  73883. <class name="TextInputFormat" extends="org.apache.hadoop.mapreduce.lib.input.FileInputFormat"
  73884. abstract="false"
  73885. static="false" final="false" visibility="public"
  73886. deprecated="not deprecated">
  73887. <constructor name="TextInputFormat"
  73888. static="false" final="false" visibility="public"
  73889. deprecated="not deprecated">
  73890. </constructor>
  73891. <method name="createRecordReader" return="org.apache.hadoop.mapreduce.RecordReader"
  73892. abstract="false" native="false" synchronized="false"
  73893. static="false" final="false" visibility="public"
  73894. deprecated="not deprecated">
  73895. <param name="split" type="org.apache.hadoop.mapreduce.InputSplit"/>
  73896. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  73897. </method>
  73898. <method name="isSplitable" return="boolean"
  73899. abstract="false" native="false" synchronized="false"
  73900. static="false" final="false" visibility="protected"
  73901. deprecated="not deprecated">
  73902. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  73903. <param name="file" type="org.apache.hadoop.fs.Path"/>
  73904. </method>
  73905. <doc>
  73906. <![CDATA[An {@link InputFormat} for plain text files. Files are broken into lines.
  73907. Either linefeed or carriage-return are used to signal end of line. Keys are
  73908. the position in the file, and values are the line of text..]]>
  73909. </doc>
  73910. </class>
  73911. <!-- end class org.apache.hadoop.mapreduce.lib.input.TextInputFormat -->
  73912. </package>
  73913. <package name="org.apache.hadoop.mapreduce.lib.jobcontrol">
  73914. <!-- start class org.apache.hadoop.mapreduce.lib.jobcontrol.ControlledJob -->
  73915. <class name="ControlledJob" extends="java.lang.Object"
  73916. abstract="false"
  73917. static="false" final="false" visibility="public"
  73918. deprecated="not deprecated">
  73919. <constructor name="ControlledJob" type="org.apache.hadoop.mapreduce.Job, java.util.List"
  73920. static="false" final="false" visibility="public"
  73921. deprecated="not deprecated">
  73922. <exception name="IOException" type="java.io.IOException"/>
  73923. <doc>
  73924. <![CDATA[Construct a job.
  73925. @param job a mapreduce job to be executed.
  73926. @param dependingJobs an array of jobs the current job depends on]]>
  73927. </doc>
  73928. </constructor>
  73929. <constructor name="ControlledJob" type="org.apache.hadoop.conf.Configuration"
  73930. static="false" final="false" visibility="public"
  73931. deprecated="not deprecated">
  73932. <exception name="IOException" type="java.io.IOException"/>
  73933. <doc>
  73934. <![CDATA[Construct a job.
  73935. @param conf mapred job configuration representing a job to be executed.
  73936. @throws IOException]]>
  73937. </doc>
  73938. </constructor>
  73939. <method name="toString" return="java.lang.String"
  73940. abstract="false" native="false" synchronized="false"
  73941. static="false" final="false" visibility="public"
  73942. deprecated="not deprecated">
  73943. </method>
  73944. <method name="getJobName" return="java.lang.String"
  73945. abstract="false" native="false" synchronized="false"
  73946. static="false" final="false" visibility="public"
  73947. deprecated="not deprecated">
  73948. <doc>
  73949. <![CDATA[@return the job name of this job]]>
  73950. </doc>
  73951. </method>
  73952. <method name="setJobName"
  73953. abstract="false" native="false" synchronized="false"
  73954. static="false" final="false" visibility="public"
  73955. deprecated="not deprecated">
  73956. <param name="jobName" type="java.lang.String"/>
  73957. <doc>
  73958. <![CDATA[Set the job name for this job.
  73959. @param jobName the job name]]>
  73960. </doc>
  73961. </method>
  73962. <method name="getJobID" return="java.lang.String"
  73963. abstract="false" native="false" synchronized="false"
  73964. static="false" final="false" visibility="public"
  73965. deprecated="not deprecated">
  73966. <doc>
  73967. <![CDATA[@return the job ID of this job assigned by JobControl]]>
  73968. </doc>
  73969. </method>
  73970. <method name="setJobID"
  73971. abstract="false" native="false" synchronized="false"
  73972. static="false" final="false" visibility="public"
  73973. deprecated="not deprecated">
  73974. <param name="id" type="java.lang.String"/>
  73975. <doc>
  73976. <![CDATA[Set the job ID for this job.
  73977. @param id the job ID]]>
  73978. </doc>
  73979. </method>
  73980. <method name="getMapredJobID" return="org.apache.hadoop.mapreduce.JobID"
  73981. abstract="false" native="false" synchronized="false"
  73982. static="false" final="false" visibility="public"
  73983. deprecated="not deprecated">
  73984. <doc>
  73985. <![CDATA[@return the mapred ID of this job as assigned by the
  73986. mapred framework.]]>
  73987. </doc>
  73988. </method>
  73989. <method name="getJob" return="org.apache.hadoop.mapreduce.Job"
  73990. abstract="false" native="false" synchronized="true"
  73991. static="false" final="false" visibility="public"
  73992. deprecated="not deprecated">
  73993. <doc>
  73994. <![CDATA[@return the mapreduce job]]>
  73995. </doc>
  73996. </method>
  73997. <method name="setJob"
  73998. abstract="false" native="false" synchronized="true"
  73999. static="false" final="false" visibility="public"
  74000. deprecated="not deprecated">
  74001. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  74002. <doc>
  74003. <![CDATA[Set the mapreduce job
  74004. @param job the mapreduce job for this job.]]>
  74005. </doc>
  74006. </method>
  74007. <method name="getJobState" return="org.apache.hadoop.mapreduce.lib.jobcontrol.ControlledJob.State"
  74008. abstract="false" native="false" synchronized="true"
  74009. static="false" final="false" visibility="public"
  74010. deprecated="not deprecated">
  74011. <doc>
  74012. <![CDATA[@return the state of this job]]>
  74013. </doc>
  74014. </method>
  74015. <method name="setJobState"
  74016. abstract="false" native="false" synchronized="true"
  74017. static="false" final="false" visibility="protected"
  74018. deprecated="not deprecated">
  74019. <param name="state" type="org.apache.hadoop.mapreduce.lib.jobcontrol.ControlledJob.State"/>
  74020. <doc>
  74021. <![CDATA[Set the state for this job.
  74022. @param state the new state for this job.]]>
  74023. </doc>
  74024. </method>
  74025. <method name="getMessage" return="java.lang.String"
  74026. abstract="false" native="false" synchronized="true"
  74027. static="false" final="false" visibility="public"
  74028. deprecated="not deprecated">
  74029. <doc>
  74030. <![CDATA[@return the message of this job]]>
  74031. </doc>
  74032. </method>
  74033. <method name="setMessage"
  74034. abstract="false" native="false" synchronized="true"
  74035. static="false" final="false" visibility="public"
  74036. deprecated="not deprecated">
  74037. <param name="message" type="java.lang.String"/>
  74038. <doc>
  74039. <![CDATA[Set the message for this job.
  74040. @param message the message for this job.]]>
  74041. </doc>
  74042. </method>
  74043. <method name="getDependentJobs" return="java.util.List"
  74044. abstract="false" native="false" synchronized="false"
  74045. static="false" final="false" visibility="public"
  74046. deprecated="not deprecated">
  74047. <doc>
  74048. <![CDATA[@return the depending jobs of this job]]>
  74049. </doc>
  74050. </method>
  74051. <method name="addDependingJob" return="boolean"
  74052. abstract="false" native="false" synchronized="true"
  74053. static="false" final="false" visibility="public"
  74054. deprecated="not deprecated">
  74055. <param name="dependingJob" type="org.apache.hadoop.mapreduce.lib.jobcontrol.ControlledJob"/>
  74056. <doc>
  74057. <![CDATA[Add a job to this jobs' dependency list.
  74058. Dependent jobs can only be added while a Job
  74059. is waiting to run, not during or afterwards.
  74060. @param dependingJob Job that this Job depends on.
  74061. @return <tt>true</tt> if the Job was added.]]>
  74062. </doc>
  74063. </method>
  74064. <method name="isCompleted" return="boolean"
  74065. abstract="false" native="false" synchronized="true"
  74066. static="false" final="false" visibility="public"
  74067. deprecated="not deprecated">
  74068. <doc>
  74069. <![CDATA[@return true if this job is in a complete state]]>
  74070. </doc>
  74071. </method>
  74072. <method name="isReady" return="boolean"
  74073. abstract="false" native="false" synchronized="true"
  74074. static="false" final="false" visibility="public"
  74075. deprecated="not deprecated">
  74076. <doc>
  74077. <![CDATA[@return true if this job is in READY state]]>
  74078. </doc>
  74079. </method>
  74080. <method name="killJob"
  74081. abstract="false" native="false" synchronized="false"
  74082. static="false" final="false" visibility="public"
  74083. deprecated="not deprecated">
  74084. <exception name="IOException" type="java.io.IOException"/>
  74085. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  74086. </method>
  74087. <method name="failJob"
  74088. abstract="false" native="false" synchronized="true"
  74089. static="false" final="false" visibility="public"
  74090. deprecated="not deprecated">
  74091. <param name="message" type="java.lang.String"/>
  74092. <exception name="IOException" type="java.io.IOException"/>
  74093. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  74094. </method>
  74095. <method name="submit"
  74096. abstract="false" native="false" synchronized="true"
  74097. static="false" final="false" visibility="protected"
  74098. deprecated="not deprecated">
  74099. <doc>
  74100. <![CDATA[Submit this job to mapred. The state becomes RUNNING if submission
  74101. is successful, FAILED otherwise.]]>
  74102. </doc>
  74103. </method>
  74104. <field name="CREATE_DIR" type="java.lang.String"
  74105. transient="false" volatile="false"
  74106. static="true" final="true" visibility="public"
  74107. deprecated="not deprecated">
  74108. </field>
  74109. <doc>
  74110. <![CDATA[This class encapsulates a MapReduce job and its dependency. It monitors
  74111. the states of the depending jobs and updates the state of this job.
  74112. A job starts in the WAITING state. If it does not have any depending jobs,
  74113. or all of the depending jobs are in SUCCESS state, then the job state
  74114. will become READY. If any depending jobs fail, the job will fail too.
  74115. When in READY state, the job can be submitted to Hadoop for execution, with
  74116. the state changing into RUNNING state. From RUNNING state, the job
  74117. can get into SUCCESS or FAILED state, depending
  74118. the status of the job execution.]]>
  74119. </doc>
  74120. </class>
  74121. <!-- end class org.apache.hadoop.mapreduce.lib.jobcontrol.ControlledJob -->
  74122. <!-- start class org.apache.hadoop.mapreduce.lib.jobcontrol.ControlledJob.State -->
  74123. <class name="ControlledJob.State" extends="java.lang.Enum"
  74124. abstract="false"
  74125. static="true" final="true" visibility="public"
  74126. deprecated="not deprecated">
  74127. <method name="values" return="org.apache.hadoop.mapreduce.lib.jobcontrol.ControlledJob.State[]"
  74128. abstract="false" native="false" synchronized="false"
  74129. static="true" final="false" visibility="public"
  74130. deprecated="not deprecated">
  74131. </method>
  74132. <method name="valueOf" return="org.apache.hadoop.mapreduce.lib.jobcontrol.ControlledJob.State"
  74133. abstract="false" native="false" synchronized="false"
  74134. static="true" final="false" visibility="public"
  74135. deprecated="not deprecated">
  74136. <param name="name" type="java.lang.String"/>
  74137. </method>
  74138. <field name="SUCCESS" type="org.apache.hadoop.mapreduce.lib.jobcontrol.ControlledJob.State"
  74139. transient="false" volatile="false"
  74140. static="true" final="true" visibility="public"
  74141. deprecated="not deprecated">
  74142. </field>
  74143. <field name="WAITING" type="org.apache.hadoop.mapreduce.lib.jobcontrol.ControlledJob.State"
  74144. transient="false" volatile="false"
  74145. static="true" final="true" visibility="public"
  74146. deprecated="not deprecated">
  74147. </field>
  74148. <field name="RUNNING" type="org.apache.hadoop.mapreduce.lib.jobcontrol.ControlledJob.State"
  74149. transient="false" volatile="false"
  74150. static="true" final="true" visibility="public"
  74151. deprecated="not deprecated">
  74152. </field>
  74153. <field name="READY" type="org.apache.hadoop.mapreduce.lib.jobcontrol.ControlledJob.State"
  74154. transient="false" volatile="false"
  74155. static="true" final="true" visibility="public"
  74156. deprecated="not deprecated">
  74157. </field>
  74158. <field name="FAILED" type="org.apache.hadoop.mapreduce.lib.jobcontrol.ControlledJob.State"
  74159. transient="false" volatile="false"
  74160. static="true" final="true" visibility="public"
  74161. deprecated="not deprecated">
  74162. </field>
  74163. <field name="DEPENDENT_FAILED" type="org.apache.hadoop.mapreduce.lib.jobcontrol.ControlledJob.State"
  74164. transient="false" volatile="false"
  74165. static="true" final="true" visibility="public"
  74166. deprecated="not deprecated">
  74167. </field>
  74168. </class>
  74169. <!-- end class org.apache.hadoop.mapreduce.lib.jobcontrol.ControlledJob.State -->
  74170. <!-- start class org.apache.hadoop.mapreduce.lib.jobcontrol.JobControl -->
  74171. <class name="JobControl" extends="java.lang.Object"
  74172. abstract="false"
  74173. static="false" final="false" visibility="public"
  74174. deprecated="not deprecated">
  74175. <implements name="java.lang.Runnable"/>
  74176. <constructor name="JobControl" type="java.lang.String"
  74177. static="false" final="false" visibility="public"
  74178. deprecated="not deprecated">
  74179. <doc>
  74180. <![CDATA[Construct a job control for a group of jobs.
  74181. @param groupName a name identifying this group]]>
  74182. </doc>
  74183. </constructor>
  74184. <method name="getWaitingJobList" return="java.util.List"
  74185. abstract="false" native="false" synchronized="false"
  74186. static="false" final="false" visibility="public"
  74187. deprecated="not deprecated">
  74188. <doc>
  74189. <![CDATA[@return the jobs in the waiting state]]>
  74190. </doc>
  74191. </method>
  74192. <method name="getRunningJobList" return="java.util.List"
  74193. abstract="false" native="false" synchronized="false"
  74194. static="false" final="false" visibility="public"
  74195. deprecated="not deprecated">
  74196. <doc>
  74197. <![CDATA[@return the jobs in the running state]]>
  74198. </doc>
  74199. </method>
  74200. <method name="getReadyJobsList" return="java.util.List"
  74201. abstract="false" native="false" synchronized="false"
  74202. static="false" final="false" visibility="public"
  74203. deprecated="not deprecated">
  74204. <doc>
  74205. <![CDATA[@return the jobs in the ready state]]>
  74206. </doc>
  74207. </method>
  74208. <method name="getSuccessfulJobList" return="java.util.List"
  74209. abstract="false" native="false" synchronized="false"
  74210. static="false" final="false" visibility="public"
  74211. deprecated="not deprecated">
  74212. <doc>
  74213. <![CDATA[@return the jobs in the success state]]>
  74214. </doc>
  74215. </method>
  74216. <method name="getFailedJobList" return="java.util.List"
  74217. abstract="false" native="false" synchronized="false"
  74218. static="false" final="false" visibility="public"
  74219. deprecated="not deprecated">
  74220. </method>
  74221. <method name="addJob" return="java.lang.String"
  74222. abstract="false" native="false" synchronized="true"
  74223. static="false" final="false" visibility="public"
  74224. deprecated="not deprecated">
  74225. <param name="aJob" type="org.apache.hadoop.mapreduce.lib.jobcontrol.ControlledJob"/>
  74226. <doc>
  74227. <![CDATA[Add a new job.
  74228. @param aJob the new job]]>
  74229. </doc>
  74230. </method>
  74231. <method name="addJobCollection"
  74232. abstract="false" native="false" synchronized="false"
  74233. static="false" final="false" visibility="public"
  74234. deprecated="not deprecated">
  74235. <param name="jobs" type="java.util.Collection"/>
  74236. <doc>
  74237. <![CDATA[Add a collection of jobs
  74238. @param jobs]]>
  74239. </doc>
  74240. </method>
  74241. <method name="getThreadState" return="org.apache.hadoop.mapreduce.lib.jobcontrol.JobControl.ThreadState"
  74242. abstract="false" native="false" synchronized="false"
  74243. static="false" final="false" visibility="public"
  74244. deprecated="not deprecated">
  74245. <doc>
  74246. <![CDATA[@return the thread state]]>
  74247. </doc>
  74248. </method>
  74249. <method name="stop"
  74250. abstract="false" native="false" synchronized="false"
  74251. static="false" final="false" visibility="public"
  74252. deprecated="not deprecated">
  74253. <doc>
  74254. <![CDATA[set the thread state to STOPPING so that the
  74255. thread will stop when it wakes up.]]>
  74256. </doc>
  74257. </method>
  74258. <method name="suspend"
  74259. abstract="false" native="false" synchronized="false"
  74260. static="false" final="false" visibility="public"
  74261. deprecated="not deprecated">
  74262. <doc>
  74263. <![CDATA[suspend the running thread]]>
  74264. </doc>
  74265. </method>
  74266. <method name="resume"
  74267. abstract="false" native="false" synchronized="false"
  74268. static="false" final="false" visibility="public"
  74269. deprecated="not deprecated">
  74270. <doc>
  74271. <![CDATA[resume the suspended thread]]>
  74272. </doc>
  74273. </method>
  74274. <method name="allFinished" return="boolean"
  74275. abstract="false" native="false" synchronized="true"
  74276. static="false" final="false" visibility="public"
  74277. deprecated="not deprecated">
  74278. </method>
  74279. <method name="run"
  74280. abstract="false" native="false" synchronized="false"
  74281. static="false" final="false" visibility="public"
  74282. deprecated="not deprecated">
  74283. <doc>
  74284. <![CDATA[The main loop for the thread.
  74285. The loop does the following:
  74286. Check the states of the running jobs
  74287. Update the states of waiting jobs
  74288. Submit the jobs in ready state]]>
  74289. </doc>
  74290. </method>
  74291. <doc>
  74292. <![CDATA[This class encapsulates a set of MapReduce jobs and its dependency.
  74293. It tracks the states of the jobs by placing them into different tables
  74294. according to their states.
  74295. This class provides APIs for the client app to add a job to the group
  74296. and to get the jobs in the group in different states. When a job is
  74297. added, an ID unique to the group is assigned to the job.
  74298. This class has a thread that submits jobs when they become ready,
  74299. monitors the states of the running jobs, and updates the states of jobs
  74300. based on the state changes of their depending jobs states. The class
  74301. provides APIs for suspending/resuming the thread, and
  74302. for stopping the thread.]]>
  74303. </doc>
  74304. </class>
  74305. <!-- end class org.apache.hadoop.mapreduce.lib.jobcontrol.JobControl -->
  74306. <!-- start class org.apache.hadoop.mapreduce.lib.jobcontrol.JobControl.ThreadState -->
  74307. <class name="JobControl.ThreadState" extends="java.lang.Enum"
  74308. abstract="false"
  74309. static="true" final="true" visibility="public"
  74310. deprecated="not deprecated">
  74311. <method name="values" return="org.apache.hadoop.mapreduce.lib.jobcontrol.JobControl.ThreadState[]"
  74312. abstract="false" native="false" synchronized="false"
  74313. static="true" final="false" visibility="public"
  74314. deprecated="not deprecated">
  74315. </method>
  74316. <method name="valueOf" return="org.apache.hadoop.mapreduce.lib.jobcontrol.JobControl.ThreadState"
  74317. abstract="false" native="false" synchronized="false"
  74318. static="true" final="false" visibility="public"
  74319. deprecated="not deprecated">
  74320. <param name="name" type="java.lang.String"/>
  74321. </method>
  74322. <field name="RUNNING" type="org.apache.hadoop.mapreduce.lib.jobcontrol.JobControl.ThreadState"
  74323. transient="false" volatile="false"
  74324. static="true" final="true" visibility="public"
  74325. deprecated="not deprecated">
  74326. </field>
  74327. <field name="SUSPENDED" type="org.apache.hadoop.mapreduce.lib.jobcontrol.JobControl.ThreadState"
  74328. transient="false" volatile="false"
  74329. static="true" final="true" visibility="public"
  74330. deprecated="not deprecated">
  74331. </field>
  74332. <field name="STOPPED" type="org.apache.hadoop.mapreduce.lib.jobcontrol.JobControl.ThreadState"
  74333. transient="false" volatile="false"
  74334. static="true" final="true" visibility="public"
  74335. deprecated="not deprecated">
  74336. </field>
  74337. <field name="STOPPING" type="org.apache.hadoop.mapreduce.lib.jobcontrol.JobControl.ThreadState"
  74338. transient="false" volatile="false"
  74339. static="true" final="true" visibility="public"
  74340. deprecated="not deprecated">
  74341. </field>
  74342. <field name="READY" type="org.apache.hadoop.mapreduce.lib.jobcontrol.JobControl.ThreadState"
  74343. transient="false" volatile="false"
  74344. static="true" final="true" visibility="public"
  74345. deprecated="not deprecated">
  74346. </field>
  74347. </class>
  74348. <!-- end class org.apache.hadoop.mapreduce.lib.jobcontrol.JobControl.ThreadState -->
  74349. </package>
  74350. <package name="org.apache.hadoop.mapreduce.lib.map">
  74351. <!-- start class org.apache.hadoop.mapreduce.lib.map.InverseMapper -->
  74352. <class name="InverseMapper" extends="org.apache.hadoop.mapreduce.Mapper"
  74353. abstract="false"
  74354. static="false" final="false" visibility="public"
  74355. deprecated="not deprecated">
  74356. <constructor name="InverseMapper"
  74357. static="false" final="false" visibility="public"
  74358. deprecated="not deprecated">
  74359. </constructor>
  74360. <method name="map"
  74361. abstract="false" native="false" synchronized="false"
  74362. static="false" final="false" visibility="public"
  74363. deprecated="not deprecated">
  74364. <param name="key" type="java.lang.Object"/>
  74365. <param name="value" type="java.lang.Object"/>
  74366. <param name="context" type="org.apache.hadoop.mapreduce.Mapper.Context"/>
  74367. <exception name="IOException" type="java.io.IOException"/>
  74368. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  74369. <doc>
  74370. <![CDATA[The inverse function. Input keys and values are swapped.]]>
  74371. </doc>
  74372. </method>
  74373. <doc>
  74374. <![CDATA[A {@link Mapper} that swaps keys and values.]]>
  74375. </doc>
  74376. </class>
  74377. <!-- end class org.apache.hadoop.mapreduce.lib.map.InverseMapper -->
  74378. <!-- start class org.apache.hadoop.mapreduce.lib.map.MultithreadedMapper -->
  74379. <class name="MultithreadedMapper" extends="org.apache.hadoop.mapreduce.Mapper"
  74380. abstract="false"
  74381. static="false" final="false" visibility="public"
  74382. deprecated="not deprecated">
  74383. <constructor name="MultithreadedMapper"
  74384. static="false" final="false" visibility="public"
  74385. deprecated="not deprecated">
  74386. </constructor>
  74387. <method name="getNumberOfThreads" return="int"
  74388. abstract="false" native="false" synchronized="false"
  74389. static="true" final="false" visibility="public"
  74390. deprecated="not deprecated">
  74391. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  74392. <doc>
  74393. <![CDATA[The number of threads in the thread pool that will run the map function.
  74394. @param job the job
  74395. @return the number of threads]]>
  74396. </doc>
  74397. </method>
  74398. <method name="setNumberOfThreads"
  74399. abstract="false" native="false" synchronized="false"
  74400. static="true" final="false" visibility="public"
  74401. deprecated="not deprecated">
  74402. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  74403. <param name="threads" type="int"/>
  74404. <doc>
  74405. <![CDATA[Set the number of threads in the pool for running maps.
  74406. @param job the job to modify
  74407. @param threads the new number of threads]]>
  74408. </doc>
  74409. </method>
  74410. <method name="getMapperClass" return="java.lang.Class"
  74411. abstract="false" native="false" synchronized="false"
  74412. static="true" final="false" visibility="public"
  74413. deprecated="not deprecated">
  74414. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  74415. <doc>
  74416. <![CDATA[Get the application's mapper class.
  74417. @param <K1> the map's input key type
  74418. @param <V1> the map's input value type
  74419. @param <K2> the map's output key type
  74420. @param <V2> the map's output value type
  74421. @param job the job
  74422. @return the mapper class to run]]>
  74423. </doc>
  74424. </method>
  74425. <method name="setMapperClass"
  74426. abstract="false" native="false" synchronized="false"
  74427. static="true" final="false" visibility="public"
  74428. deprecated="not deprecated">
  74429. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  74430. <param name="cls" type="java.lang.Class"/>
  74431. <doc>
  74432. <![CDATA[Set the application's mapper class.
  74433. @param <K1> the map input key type
  74434. @param <V1> the map input value type
  74435. @param <K2> the map output key type
  74436. @param <V2> the map output value type
  74437. @param job the job to modify
  74438. @param cls the class to use as the mapper]]>
  74439. </doc>
  74440. </method>
  74441. <method name="run"
  74442. abstract="false" native="false" synchronized="false"
  74443. static="false" final="false" visibility="public"
  74444. deprecated="not deprecated">
  74445. <param name="context" type="org.apache.hadoop.mapreduce.Mapper.Context"/>
  74446. <exception name="IOException" type="java.io.IOException"/>
  74447. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  74448. <doc>
  74449. <![CDATA[Run the application's maps using a thread pool.]]>
  74450. </doc>
  74451. </method>
  74452. <doc>
  74453. <![CDATA[Multithreaded implementation for @link org.apache.hadoop.mapreduce.Mapper.
  74454. <p>
  74455. It can be used instead of the default implementation,
  74456. @link org.apache.hadoop.mapred.MapRunner, when the Map operation is not CPU
  74457. bound in order to improve throughput.
  74458. <p>
  74459. Mapper implementations using this MapRunnable must be thread-safe.
  74460. <p>
  74461. The Map-Reduce job has to be configured with the mapper to use via
  74462. {@link #setMapperClass(Configuration, Class)} and
  74463. the number of thread the thread-pool can use with the
  74464. {@link #getNumberOfThreads(Configuration) method. The default
  74465. value is 10 threads.
  74466. <p>]]>
  74467. </doc>
  74468. </class>
  74469. <!-- end class org.apache.hadoop.mapreduce.lib.map.MultithreadedMapper -->
  74470. <!-- start class org.apache.hadoop.mapreduce.lib.map.TokenCounterMapper -->
  74471. <class name="TokenCounterMapper" extends="org.apache.hadoop.mapreduce.Mapper"
  74472. abstract="false"
  74473. static="false" final="false" visibility="public"
  74474. deprecated="not deprecated">
  74475. <constructor name="TokenCounterMapper"
  74476. static="false" final="false" visibility="public"
  74477. deprecated="not deprecated">
  74478. </constructor>
  74479. <method name="map"
  74480. abstract="false" native="false" synchronized="false"
  74481. static="false" final="false" visibility="public"
  74482. deprecated="not deprecated">
  74483. <param name="key" type="java.lang.Object"/>
  74484. <param name="value" type="org.apache.hadoop.io.Text"/>
  74485. <param name="context" type="org.apache.hadoop.mapreduce.Mapper.Context"/>
  74486. <exception name="IOException" type="java.io.IOException"/>
  74487. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  74488. </method>
  74489. <doc>
  74490. <![CDATA[Tokenize the input values and emit each word with a count of 1.]]>
  74491. </doc>
  74492. </class>
  74493. <!-- end class org.apache.hadoop.mapreduce.lib.map.TokenCounterMapper -->
  74494. </package>
  74495. <package name="org.apache.hadoop.mapreduce.lib.output">
  74496. <!-- start class org.apache.hadoop.mapreduce.lib.output.FileOutputCommitter -->
  74497. <class name="FileOutputCommitter" extends="org.apache.hadoop.mapreduce.OutputCommitter"
  74498. abstract="false"
  74499. static="false" final="false" visibility="public"
  74500. deprecated="not deprecated">
  74501. <constructor name="FileOutputCommitter" type="org.apache.hadoop.fs.Path, org.apache.hadoop.mapreduce.TaskAttemptContext"
  74502. static="false" final="false" visibility="public"
  74503. deprecated="not deprecated">
  74504. <exception name="IOException" type="java.io.IOException"/>
  74505. <doc>
  74506. <![CDATA[Create a file output committer
  74507. @param outputPath the job's output path
  74508. @param context the task's context
  74509. @throws IOException]]>
  74510. </doc>
  74511. </constructor>
  74512. <method name="setupJob"
  74513. abstract="false" native="false" synchronized="false"
  74514. static="false" final="false" visibility="public"
  74515. deprecated="not deprecated">
  74516. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  74517. <exception name="IOException" type="java.io.IOException"/>
  74518. <doc>
  74519. <![CDATA[Create the temporary directory that is the root of all of the task
  74520. work directories.
  74521. @param context the job's context]]>
  74522. </doc>
  74523. </method>
  74524. <method name="commitJob"
  74525. abstract="false" native="false" synchronized="false"
  74526. static="false" final="false" visibility="public"
  74527. deprecated="not deprecated">
  74528. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  74529. <exception name="IOException" type="java.io.IOException"/>
  74530. <doc>
  74531. <![CDATA[Delete the temporary directory, including all of the work directories.
  74532. This is called for all jobs whose final run state is SUCCEEDED
  74533. @param context the job's context.]]>
  74534. </doc>
  74535. </method>
  74536. <method name="cleanupJob"
  74537. abstract="false" native="false" synchronized="false"
  74538. static="false" final="false" visibility="public"
  74539. deprecated="not deprecated">
  74540. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  74541. <exception name="IOException" type="java.io.IOException"/>
  74542. </method>
  74543. <method name="abortJob"
  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. <param name="state" type="org.apache.hadoop.mapreduce.JobStatus.State"/>
  74549. <exception name="IOException" type="java.io.IOException"/>
  74550. <doc>
  74551. <![CDATA[Delete the temporary directory, including all of the work directories.
  74552. @param context the job's context
  74553. @param state final run state of the job, should be FAILED or KILLED]]>
  74554. </doc>
  74555. </method>
  74556. <method name="setupTask"
  74557. abstract="false" native="false" synchronized="false"
  74558. static="false" final="false" visibility="public"
  74559. deprecated="not deprecated">
  74560. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  74561. <exception name="IOException" type="java.io.IOException"/>
  74562. <doc>
  74563. <![CDATA[No task setup required.]]>
  74564. </doc>
  74565. </method>
  74566. <method name="commitTask"
  74567. abstract="false" native="false" synchronized="false"
  74568. static="false" final="false" visibility="public"
  74569. deprecated="not deprecated">
  74570. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  74571. <exception name="IOException" type="java.io.IOException"/>
  74572. <doc>
  74573. <![CDATA[Move the files from the work directory to the job output directory
  74574. @param context the task context]]>
  74575. </doc>
  74576. </method>
  74577. <method name="abortTask"
  74578. abstract="false" native="false" synchronized="false"
  74579. static="false" final="false" visibility="public"
  74580. deprecated="not deprecated">
  74581. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  74582. <doc>
  74583. <![CDATA[Delete the work directory]]>
  74584. </doc>
  74585. </method>
  74586. <method name="needsTaskCommit" return="boolean"
  74587. abstract="false" native="false" synchronized="false"
  74588. static="false" final="false" visibility="public"
  74589. deprecated="not deprecated">
  74590. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  74591. <exception name="IOException" type="java.io.IOException"/>
  74592. <doc>
  74593. <![CDATA[Did this task write any files in the work directory?
  74594. @param context the task's context]]>
  74595. </doc>
  74596. </method>
  74597. <method name="getWorkPath" return="org.apache.hadoop.fs.Path"
  74598. abstract="false" native="false" synchronized="false"
  74599. static="false" final="false" visibility="public"
  74600. deprecated="not deprecated">
  74601. <exception name="IOException" type="java.io.IOException"/>
  74602. <doc>
  74603. <![CDATA[Get the directory that the task should write results into
  74604. @return the work directory
  74605. @throws IOException]]>
  74606. </doc>
  74607. </method>
  74608. <field name="TEMP_DIR_NAME" type="java.lang.String"
  74609. transient="false" volatile="false"
  74610. static="true" final="true" visibility="protected"
  74611. deprecated="not deprecated">
  74612. <doc>
  74613. <![CDATA[Temporary directory name]]>
  74614. </doc>
  74615. </field>
  74616. <field name="SUCCEEDED_FILE_NAME" type="java.lang.String"
  74617. transient="false" volatile="false"
  74618. static="true" final="true" visibility="public"
  74619. deprecated="not deprecated">
  74620. </field>
  74621. <doc>
  74622. <![CDATA[An {@link OutputCommitter} that commits files specified
  74623. in job output directory i.e. ${mapred.output.dir}.]]>
  74624. </doc>
  74625. </class>
  74626. <!-- end class org.apache.hadoop.mapreduce.lib.output.FileOutputCommitter -->
  74627. <!-- start class org.apache.hadoop.mapreduce.lib.output.FileOutputFormat -->
  74628. <class name="FileOutputFormat" extends="org.apache.hadoop.mapreduce.OutputFormat"
  74629. abstract="true"
  74630. static="false" final="false" visibility="public"
  74631. deprecated="not deprecated">
  74632. <constructor name="FileOutputFormat"
  74633. static="false" final="false" visibility="public"
  74634. deprecated="not deprecated">
  74635. </constructor>
  74636. <method name="setCompressOutput"
  74637. abstract="false" native="false" synchronized="false"
  74638. static="true" final="false" visibility="public"
  74639. deprecated="not deprecated">
  74640. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  74641. <param name="compress" type="boolean"/>
  74642. <doc>
  74643. <![CDATA[Set whether the output of the job is compressed.
  74644. @param job the job to modify
  74645. @param compress should the output of the job be compressed?]]>
  74646. </doc>
  74647. </method>
  74648. <method name="getCompressOutput" return="boolean"
  74649. abstract="false" native="false" synchronized="false"
  74650. static="true" final="false" visibility="public"
  74651. deprecated="not deprecated">
  74652. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  74653. <doc>
  74654. <![CDATA[Is the job output compressed?
  74655. @param job the Job to look in
  74656. @return <code>true</code> if the job output should be compressed,
  74657. <code>false</code> otherwise]]>
  74658. </doc>
  74659. </method>
  74660. <method name="setOutputCompressorClass"
  74661. abstract="false" native="false" synchronized="false"
  74662. static="true" final="false" visibility="public"
  74663. deprecated="not deprecated">
  74664. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  74665. <param name="codecClass" type="java.lang.Class"/>
  74666. <doc>
  74667. <![CDATA[Set the {@link CompressionCodec} to be used to compress job outputs.
  74668. @param job the job to modify
  74669. @param codecClass the {@link CompressionCodec} to be used to
  74670. compress the job outputs]]>
  74671. </doc>
  74672. </method>
  74673. <method name="getOutputCompressorClass" return="java.lang.Class"
  74674. abstract="false" native="false" synchronized="false"
  74675. static="true" final="false" visibility="public"
  74676. deprecated="not deprecated">
  74677. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  74678. <param name="defaultValue" type="java.lang.Class"/>
  74679. <doc>
  74680. <![CDATA[Get the {@link CompressionCodec} for compressing the job outputs.
  74681. @param job the {@link Job} to look in
  74682. @param defaultValue the {@link CompressionCodec} to return if not set
  74683. @return the {@link CompressionCodec} to be used to compress the
  74684. job outputs
  74685. @throws IllegalArgumentException if the class was specified, but not found]]>
  74686. </doc>
  74687. </method>
  74688. <method name="getRecordWriter" return="org.apache.hadoop.mapreduce.RecordWriter"
  74689. abstract="true" native="false" synchronized="false"
  74690. static="false" final="false" visibility="public"
  74691. deprecated="not deprecated">
  74692. <param name="job" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  74693. <exception name="IOException" type="java.io.IOException"/>
  74694. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  74695. </method>
  74696. <method name="checkOutputSpecs"
  74697. abstract="false" native="false" synchronized="false"
  74698. static="false" final="false" visibility="public"
  74699. deprecated="not deprecated">
  74700. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  74701. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.mapred.FileAlreadyExistsException"/>
  74702. <exception name="IOException" type="java.io.IOException"/>
  74703. </method>
  74704. <method name="setOutputPath"
  74705. abstract="false" native="false" synchronized="false"
  74706. static="true" final="false" visibility="public"
  74707. deprecated="not deprecated">
  74708. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  74709. <param name="outputDir" type="org.apache.hadoop.fs.Path"/>
  74710. <doc>
  74711. <![CDATA[Set the {@link Path} of the output directory for the map-reduce job.
  74712. @param job The job to modify
  74713. @param outputDir the {@link Path} of the output directory for
  74714. the map-reduce job.]]>
  74715. </doc>
  74716. </method>
  74717. <method name="getOutputPath" return="org.apache.hadoop.fs.Path"
  74718. abstract="false" native="false" synchronized="false"
  74719. static="true" final="false" visibility="public"
  74720. deprecated="not deprecated">
  74721. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  74722. <doc>
  74723. <![CDATA[Get the {@link Path} to the output directory for the map-reduce job.
  74724. @return the {@link Path} to the output directory for the map-reduce job.
  74725. @see FileOutputFormat#getWorkOutputPath(TaskInputOutputContext)]]>
  74726. </doc>
  74727. </method>
  74728. <method name="getWorkOutputPath" return="org.apache.hadoop.fs.Path"
  74729. abstract="false" native="false" synchronized="false"
  74730. static="true" final="false" visibility="public"
  74731. deprecated="not deprecated">
  74732. <param name="context" type="org.apache.hadoop.mapreduce.TaskInputOutputContext"/>
  74733. <exception name="IOException" type="java.io.IOException"/>
  74734. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  74735. <doc>
  74736. <![CDATA[Get the {@link Path} to the task's temporary output directory
  74737. for the map-reduce job
  74738. <h4 id="SideEffectFiles">Tasks' Side-Effect Files</h4>
  74739. <p>Some applications need to create/write-to side-files, which differ from
  74740. the actual job-outputs.
  74741. <p>In such cases there could be issues with 2 instances of the same TIP
  74742. (running simultaneously e.g. speculative tasks) trying to open/write-to the
  74743. same file (path) on HDFS. Hence the application-writer will have to pick
  74744. unique names per task-attempt (e.g. using the attemptid, say
  74745. <tt>attempt_200709221812_0001_m_000000_0</tt>), not just per TIP.</p>
  74746. <p>To get around this the Map-Reduce framework helps the application-writer
  74747. out by maintaining a special
  74748. <tt>${mapred.output.dir}/_temporary/_${taskid}</tt>
  74749. sub-directory for each task-attempt on HDFS where the output of the
  74750. task-attempt goes. On successful completion of the task-attempt the files
  74751. in the <tt>${mapred.output.dir}/_temporary/_${taskid}</tt> (only)
  74752. are <i>promoted</i> to <tt>${mapred.output.dir}</tt>. Of course, the
  74753. framework discards the sub-directory of unsuccessful task-attempts. This
  74754. is completely transparent to the application.</p>
  74755. <p>The application-writer can take advantage of this by creating any
  74756. side-files required in a work directory during execution
  74757. of his task i.e. via
  74758. {@link #getWorkOutputPath(TaskInputOutputContext)}, and
  74759. the framework will move them out similarly - thus she doesn't have to pick
  74760. unique paths per task-attempt.</p>
  74761. <p>The entire discussion holds true for maps of jobs with
  74762. reducer=NONE (i.e. 0 reduces) since output of the map, in that case,
  74763. goes directly to HDFS.</p>
  74764. @return the {@link Path} to the task's temporary output directory
  74765. for the map-reduce job.]]>
  74766. </doc>
  74767. </method>
  74768. <method name="getPathForWorkFile" return="org.apache.hadoop.fs.Path"
  74769. abstract="false" native="false" synchronized="false"
  74770. static="true" final="false" visibility="public"
  74771. deprecated="not deprecated">
  74772. <param name="context" type="org.apache.hadoop.mapreduce.TaskInputOutputContext"/>
  74773. <param name="name" type="java.lang.String"/>
  74774. <param name="extension" type="java.lang.String"/>
  74775. <exception name="IOException" type="java.io.IOException"/>
  74776. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  74777. <doc>
  74778. <![CDATA[Helper function to generate a {@link Path} for a file that is unique for
  74779. the task within the job output directory.
  74780. <p>The path can be used to create custom files from within the map and
  74781. reduce tasks. The path name will be unique for each task. The path parent
  74782. will be the job output directory.</p>ls
  74783. <p>This method uses the {@link #getUniqueFile} method to make the file name
  74784. unique for the task.</p>
  74785. @param context the context for the task.
  74786. @param name the name for the file.
  74787. @param extension the extension for the file
  74788. @return a unique path accross all tasks of the job.]]>
  74789. </doc>
  74790. </method>
  74791. <method name="getUniqueFile" return="java.lang.String"
  74792. abstract="false" native="false" synchronized="true"
  74793. static="true" final="false" visibility="public"
  74794. deprecated="not deprecated">
  74795. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  74796. <param name="name" type="java.lang.String"/>
  74797. <param name="extension" type="java.lang.String"/>
  74798. <doc>
  74799. <![CDATA[Generate a unique filename, based on the task id, name, and extension
  74800. @param context the task that is calling this
  74801. @param name the base filename
  74802. @param extension the filename extension
  74803. @return a string like $name-[mr]-$id$extension]]>
  74804. </doc>
  74805. </method>
  74806. <method name="getDefaultWorkFile" return="org.apache.hadoop.fs.Path"
  74807. abstract="false" native="false" synchronized="false"
  74808. static="false" final="false" visibility="public"
  74809. deprecated="not deprecated">
  74810. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  74811. <param name="extension" type="java.lang.String"/>
  74812. <exception name="IOException" type="java.io.IOException"/>
  74813. <doc>
  74814. <![CDATA[Get the default path and filename for the output format.
  74815. @param context the task context
  74816. @param extension an extension to add to the filename
  74817. @return a full path $output/_temporary/$taskid/part-[mr]-$id
  74818. @throws IOException]]>
  74819. </doc>
  74820. </method>
  74821. <method name="getOutputName" return="java.lang.String"
  74822. abstract="false" native="false" synchronized="false"
  74823. static="true" final="false" visibility="protected"
  74824. deprecated="not deprecated">
  74825. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  74826. <doc>
  74827. <![CDATA[Get the base output name for the output file.]]>
  74828. </doc>
  74829. </method>
  74830. <method name="setOutputName"
  74831. abstract="false" native="false" synchronized="false"
  74832. static="true" final="false" visibility="protected"
  74833. deprecated="not deprecated">
  74834. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  74835. <param name="name" type="java.lang.String"/>
  74836. <doc>
  74837. <![CDATA[Set the base output name for output file to be created.]]>
  74838. </doc>
  74839. </method>
  74840. <method name="getOutputCommitter" return="org.apache.hadoop.mapreduce.OutputCommitter"
  74841. abstract="false" native="false" synchronized="true"
  74842. static="false" final="false" visibility="public"
  74843. deprecated="not deprecated">
  74844. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  74845. <exception name="IOException" type="java.io.IOException"/>
  74846. </method>
  74847. <field name="BASE_OUTPUT_NAME" type="java.lang.String"
  74848. transient="false" volatile="false"
  74849. static="true" final="true" visibility="protected"
  74850. deprecated="not deprecated">
  74851. </field>
  74852. <field name="PART" type="java.lang.String"
  74853. transient="false" volatile="false"
  74854. static="true" final="true" visibility="protected"
  74855. deprecated="not deprecated">
  74856. </field>
  74857. <doc>
  74858. <![CDATA[A base class for {@link OutputFormat}s that read from {@link FileSystem}s.]]>
  74859. </doc>
  74860. </class>
  74861. <!-- end class org.apache.hadoop.mapreduce.lib.output.FileOutputFormat -->
  74862. <!-- start class org.apache.hadoop.mapreduce.lib.output.FileOutputFormat.Counter -->
  74863. <class name="FileOutputFormat.Counter" extends="java.lang.Enum"
  74864. abstract="false"
  74865. static="true" final="true" visibility="public"
  74866. deprecated="not deprecated">
  74867. <method name="values" return="org.apache.hadoop.mapreduce.lib.output.FileOutputFormat.Counter[]"
  74868. abstract="false" native="false" synchronized="false"
  74869. static="true" final="false" visibility="public"
  74870. deprecated="not deprecated">
  74871. </method>
  74872. <method name="valueOf" return="org.apache.hadoop.mapreduce.lib.output.FileOutputFormat.Counter"
  74873. abstract="false" native="false" synchronized="false"
  74874. static="true" final="false" visibility="public"
  74875. deprecated="not deprecated">
  74876. <param name="name" type="java.lang.String"/>
  74877. </method>
  74878. <field name="BYTES_WRITTEN" type="org.apache.hadoop.mapreduce.lib.output.FileOutputFormat.Counter"
  74879. transient="false" volatile="false"
  74880. static="true" final="true" visibility="public"
  74881. deprecated="not deprecated">
  74882. </field>
  74883. </class>
  74884. <!-- end class org.apache.hadoop.mapreduce.lib.output.FileOutputFormat.Counter -->
  74885. <!-- start class org.apache.hadoop.mapreduce.lib.output.FilterOutputFormat -->
  74886. <class name="FilterOutputFormat" extends="org.apache.hadoop.mapreduce.OutputFormat"
  74887. abstract="false"
  74888. static="false" final="false" visibility="public"
  74889. deprecated="not deprecated">
  74890. <constructor name="FilterOutputFormat"
  74891. static="false" final="false" visibility="public"
  74892. deprecated="not deprecated">
  74893. </constructor>
  74894. <constructor name="FilterOutputFormat" type="org.apache.hadoop.mapreduce.OutputFormat"
  74895. static="false" final="false" visibility="public"
  74896. deprecated="not deprecated">
  74897. <doc>
  74898. <![CDATA[Create a FilterOutputFormat based on the underlying output format.
  74899. @param baseOut the underlying OutputFormat]]>
  74900. </doc>
  74901. </constructor>
  74902. <method name="getRecordWriter" return="org.apache.hadoop.mapreduce.RecordWriter"
  74903. abstract="false" native="false" synchronized="false"
  74904. static="false" final="false" visibility="public"
  74905. deprecated="not deprecated">
  74906. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  74907. <exception name="IOException" type="java.io.IOException"/>
  74908. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  74909. </method>
  74910. <method name="checkOutputSpecs"
  74911. abstract="false" native="false" synchronized="false"
  74912. static="false" final="false" visibility="public"
  74913. deprecated="not deprecated">
  74914. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  74915. <exception name="IOException" type="java.io.IOException"/>
  74916. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  74917. </method>
  74918. <method name="getOutputCommitter" return="org.apache.hadoop.mapreduce.OutputCommitter"
  74919. abstract="false" native="false" synchronized="false"
  74920. static="false" final="false" visibility="public"
  74921. deprecated="not deprecated">
  74922. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  74923. <exception name="IOException" type="java.io.IOException"/>
  74924. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  74925. </method>
  74926. <field name="baseOut" type="org.apache.hadoop.mapreduce.OutputFormat"
  74927. transient="false" volatile="false"
  74928. static="false" final="false" visibility="protected"
  74929. deprecated="not deprecated">
  74930. </field>
  74931. <doc>
  74932. <![CDATA[FilterOutputFormat is a convenience class that wraps OutputFormat.]]>
  74933. </doc>
  74934. </class>
  74935. <!-- end class org.apache.hadoop.mapreduce.lib.output.FilterOutputFormat -->
  74936. <!-- start class org.apache.hadoop.mapreduce.lib.output.FilterOutputFormat.FilterRecordWriter -->
  74937. <class name="FilterOutputFormat.FilterRecordWriter" extends="org.apache.hadoop.mapreduce.RecordWriter"
  74938. abstract="false"
  74939. static="true" final="false" visibility="public"
  74940. deprecated="not deprecated">
  74941. <constructor name="FilterOutputFormat.FilterRecordWriter"
  74942. static="false" final="false" visibility="public"
  74943. deprecated="not deprecated">
  74944. </constructor>
  74945. <constructor name="FilterOutputFormat.FilterRecordWriter" type="org.apache.hadoop.mapreduce.RecordWriter"
  74946. static="false" final="false" visibility="public"
  74947. deprecated="not deprecated">
  74948. </constructor>
  74949. <method name="write"
  74950. abstract="false" native="false" synchronized="false"
  74951. static="false" final="false" visibility="public"
  74952. deprecated="not deprecated">
  74953. <param name="key" type="java.lang.Object"/>
  74954. <param name="value" type="java.lang.Object"/>
  74955. <exception name="IOException" type="java.io.IOException"/>
  74956. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  74957. </method>
  74958. <method name="close"
  74959. abstract="false" native="false" synchronized="false"
  74960. static="false" final="false" visibility="public"
  74961. deprecated="not deprecated">
  74962. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  74963. <exception name="IOException" type="java.io.IOException"/>
  74964. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  74965. </method>
  74966. <field name="rawWriter" type="org.apache.hadoop.mapreduce.RecordWriter"
  74967. transient="false" volatile="false"
  74968. static="false" final="false" visibility="protected"
  74969. deprecated="not deprecated">
  74970. </field>
  74971. <doc>
  74972. <![CDATA[<code>FilterRecordWriter</code> is a convenience wrapper
  74973. class that extends the {@link RecordWriter}.]]>
  74974. </doc>
  74975. </class>
  74976. <!-- end class org.apache.hadoop.mapreduce.lib.output.FilterOutputFormat.FilterRecordWriter -->
  74977. <!-- start class org.apache.hadoop.mapreduce.lib.output.LazyOutputFormat -->
  74978. <class name="LazyOutputFormat" extends="org.apache.hadoop.mapreduce.lib.output.FilterOutputFormat"
  74979. abstract="false"
  74980. static="false" final="false" visibility="public"
  74981. deprecated="not deprecated">
  74982. <constructor name="LazyOutputFormat"
  74983. static="false" final="false" visibility="public"
  74984. deprecated="not deprecated">
  74985. </constructor>
  74986. <method name="setOutputFormatClass"
  74987. abstract="false" native="false" synchronized="false"
  74988. static="true" final="false" visibility="public"
  74989. deprecated="not deprecated">
  74990. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  74991. <param name="theClass" type="java.lang.Class"/>
  74992. <doc>
  74993. <![CDATA[Set the underlying output format for LazyOutputFormat.
  74994. @param job the {@link Job} to modify
  74995. @param theClass the underlying class]]>
  74996. </doc>
  74997. </method>
  74998. <method name="getRecordWriter" return="org.apache.hadoop.mapreduce.RecordWriter"
  74999. abstract="false" native="false" synchronized="false"
  75000. static="false" final="false" visibility="public"
  75001. deprecated="not deprecated">
  75002. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  75003. <exception name="IOException" type="java.io.IOException"/>
  75004. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  75005. </method>
  75006. <method name="checkOutputSpecs"
  75007. abstract="false" native="false" synchronized="false"
  75008. static="false" final="false" visibility="public"
  75009. deprecated="not deprecated">
  75010. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  75011. <exception name="IOException" type="java.io.IOException"/>
  75012. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  75013. </method>
  75014. <method name="getOutputCommitter" return="org.apache.hadoop.mapreduce.OutputCommitter"
  75015. abstract="false" native="false" synchronized="false"
  75016. static="false" final="false" visibility="public"
  75017. deprecated="not deprecated">
  75018. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  75019. <exception name="IOException" type="java.io.IOException"/>
  75020. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  75021. </method>
  75022. <field name="OUTPUT_FORMAT" type="java.lang.String"
  75023. transient="false" volatile="false"
  75024. static="true" final="false" visibility="public"
  75025. deprecated="not deprecated">
  75026. </field>
  75027. <doc>
  75028. <![CDATA[A Convenience class that creates output lazily.]]>
  75029. </doc>
  75030. </class>
  75031. <!-- end class org.apache.hadoop.mapreduce.lib.output.LazyOutputFormat -->
  75032. <!-- start class org.apache.hadoop.mapreduce.lib.output.MultipleOutputs -->
  75033. <class name="MultipleOutputs" extends="java.lang.Object"
  75034. abstract="false"
  75035. static="false" final="false" visibility="public"
  75036. deprecated="not deprecated">
  75037. <constructor name="MultipleOutputs" type="org.apache.hadoop.mapreduce.TaskInputOutputContext"
  75038. static="false" final="false" visibility="public"
  75039. deprecated="not deprecated">
  75040. <doc>
  75041. <![CDATA[Creates and initializes multiple outputs support,
  75042. it should be instantiated in the Mapper/Reducer setup method.
  75043. @param context the TaskInputOutputContext object]]>
  75044. </doc>
  75045. </constructor>
  75046. <method name="addNamedOutput"
  75047. abstract="false" native="false" synchronized="false"
  75048. static="true" final="false" visibility="public"
  75049. deprecated="not deprecated">
  75050. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  75051. <param name="namedOutput" type="java.lang.String"/>
  75052. <param name="outputFormatClass" type="java.lang.Class"/>
  75053. <param name="keyClass" type="java.lang.Class"/>
  75054. <param name="valueClass" type="java.lang.Class"/>
  75055. <doc>
  75056. <![CDATA[Adds a named output for the job.
  75057. <p/>
  75058. @param job job to add the named output
  75059. @param namedOutput named output name, it has to be a word, letters
  75060. and numbers only, cannot be the word 'part' as
  75061. that is reserved for the default output.
  75062. @param outputFormatClass OutputFormat class.
  75063. @param keyClass key class
  75064. @param valueClass value class]]>
  75065. </doc>
  75066. </method>
  75067. <method name="setCountersEnabled"
  75068. abstract="false" native="false" synchronized="false"
  75069. static="true" final="false" visibility="public"
  75070. deprecated="not deprecated">
  75071. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  75072. <param name="enabled" type="boolean"/>
  75073. <doc>
  75074. <![CDATA[Enables or disables counters for the named outputs.
  75075. The counters group is the {@link MultipleOutputs} class name.
  75076. The names of the counters are the same as the named outputs. These
  75077. counters count the number records written to each output name.
  75078. By default these counters are disabled.
  75079. @param job job to enable counters
  75080. @param enabled indicates if the counters will be enabled or not.]]>
  75081. </doc>
  75082. </method>
  75083. <method name="getCountersEnabled" return="boolean"
  75084. abstract="false" native="false" synchronized="false"
  75085. static="true" final="false" visibility="public"
  75086. deprecated="not deprecated">
  75087. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  75088. <doc>
  75089. <![CDATA[Returns if the counters for the named outputs are enabled or not.
  75090. By default these counters are disabled.
  75091. @param job the job
  75092. @return TRUE if the counters are enabled, FALSE if they are disabled.]]>
  75093. </doc>
  75094. </method>
  75095. <method name="write"
  75096. abstract="false" native="false" synchronized="false"
  75097. static="false" final="false" visibility="public"
  75098. deprecated="not deprecated">
  75099. <param name="namedOutput" type="java.lang.String"/>
  75100. <param name="key" type="java.lang.Object"/>
  75101. <param name="value" type="java.lang.Object"/>
  75102. <exception name="IOException" type="java.io.IOException"/>
  75103. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  75104. <doc>
  75105. <![CDATA[Write key and value to the namedOutput.
  75106. Output path is a unique file generated for the namedOutput.
  75107. For example, {namedOutput}-(m|r)-{part-number}
  75108. @param namedOutput the named output name
  75109. @param key the key
  75110. @param value the value]]>
  75111. </doc>
  75112. </method>
  75113. <method name="write"
  75114. abstract="false" native="false" synchronized="false"
  75115. static="false" final="false" visibility="public"
  75116. deprecated="not deprecated">
  75117. <param name="namedOutput" type="java.lang.String"/>
  75118. <param name="key" type="java.lang.Object"/>
  75119. <param name="value" type="java.lang.Object"/>
  75120. <param name="baseOutputPath" type="java.lang.String"/>
  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 baseOutputPath using the namedOutput.
  75125. @param namedOutput the named output name
  75126. @param key the key
  75127. @param value the value
  75128. @param baseOutputPath base-output path to write the record to.
  75129. Note: Framework will generate unique filename for the baseOutputPath]]>
  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="key" type="java.lang.Object"/>
  75137. <param name="value" type="java.lang.Object"/>
  75138. <param name="baseOutputPath" type="java.lang.String"/>
  75139. <exception name="IOException" type="java.io.IOException"/>
  75140. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  75141. <doc>
  75142. <![CDATA[Write key value to an output file name.
  75143. Gets the record writer from job's output format.
  75144. Job's output format should be a FileOutputFormat.
  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="close"
  75152. abstract="false" native="false" synchronized="false"
  75153. static="false" final="false" visibility="public"
  75154. deprecated="not deprecated">
  75155. <exception name="IOException" type="java.io.IOException"/>
  75156. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  75157. <doc>
  75158. <![CDATA[Closes all the opened outputs.
  75159. This should be called from cleanup method of map/reduce task.
  75160. If overridden subclasses must invoke <code>super.close()</code> at the
  75161. end of their <code>close()</code>]]>
  75162. </doc>
  75163. </method>
  75164. <doc>
  75165. <![CDATA[The MultipleOutputs class simplifies writing output data
  75166. to multiple outputs
  75167. <p>
  75168. Case one: writing to additional outputs other than the job default output.
  75169. Each additional output, or named output, may be configured with its own
  75170. <code>OutputFormat</code>, with its own key class and with its own value
  75171. class.
  75172. <p>
  75173. Case two: to write data to different files provided by user
  75174. </p>
  75175. <p>
  75176. MultipleOutputs supports counters, by default they are disabled. The
  75177. counters group is the {@link MultipleOutputs} class name. The names of the
  75178. counters are the same as the output name. These count the number records
  75179. written to each output name.
  75180. </p>
  75181. Usage pattern for job submission:
  75182. <pre>
  75183. Job job = new Job();
  75184. FileInputFormat.setInputPath(job, inDir);
  75185. FileOutputFormat.setOutputPath(job, outDir);
  75186. job.setMapperClass(MOMap.class);
  75187. job.setReducerClass(MOReduce.class);
  75188. ...
  75189. // Defines additional single text based output 'text' for the job
  75190. MultipleOutputs.addNamedOutput(job, "text", TextOutputFormat.class,
  75191. LongWritable.class, Text.class);
  75192. // Defines additional sequence-file based output 'sequence' for the job
  75193. MultipleOutputs.addNamedOutput(job, "seq",
  75194. SequenceFileOutputFormat.class,
  75195. LongWritable.class, Text.class);
  75196. ...
  75197. job.waitForCompletion(true);
  75198. ...
  75199. </pre>
  75200. <p>
  75201. Usage in Reducer:
  75202. <pre>
  75203. <K, V> String generateFileName(K k, V v) {
  75204. return k.toString() + "_" + v.toString();
  75205. }
  75206. public class MOReduce extends
  75207. Reducer&lt;WritableComparable, Writable,WritableComparable, Writable&gt; {
  75208. private MultipleOutputs mos;
  75209. public void setup(Context context) {
  75210. ...
  75211. mos = new MultipleOutputs(context);
  75212. }
  75213. public void reduce(WritableComparable key, Iterator&lt;Writable&gt; values,
  75214. Context context)
  75215. throws IOException {
  75216. ...
  75217. mos.write("text", , key, new Text("Hello"));
  75218. mos.write("seq", LongWritable(1), new Text("Bye"), "seq_a");
  75219. mos.write("seq", LongWritable(2), key, new Text("Chau"), "seq_b");
  75220. mos.write(key, new Text("value"), generateFileName(key, new Text("value")));
  75221. ...
  75222. }
  75223. public void cleanup(Context) throws IOException {
  75224. mos.close();
  75225. ...
  75226. }
  75227. }
  75228. </pre>]]>
  75229. </doc>
  75230. </class>
  75231. <!-- end class org.apache.hadoop.mapreduce.lib.output.MultipleOutputs -->
  75232. <!-- start class org.apache.hadoop.mapreduce.lib.output.NullOutputFormat -->
  75233. <class name="NullOutputFormat" extends="org.apache.hadoop.mapreduce.OutputFormat"
  75234. abstract="false"
  75235. static="false" final="false" visibility="public"
  75236. deprecated="not deprecated">
  75237. <constructor name="NullOutputFormat"
  75238. static="false" final="false" visibility="public"
  75239. deprecated="not deprecated">
  75240. </constructor>
  75241. <method name="getRecordWriter" return="org.apache.hadoop.mapreduce.RecordWriter"
  75242. abstract="false" native="false" synchronized="false"
  75243. static="false" final="false" visibility="public"
  75244. deprecated="not deprecated">
  75245. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  75246. </method>
  75247. <method name="checkOutputSpecs"
  75248. abstract="false" native="false" synchronized="false"
  75249. static="false" final="false" visibility="public"
  75250. deprecated="not deprecated">
  75251. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  75252. </method>
  75253. <method name="getOutputCommitter" return="org.apache.hadoop.mapreduce.OutputCommitter"
  75254. abstract="false" native="false" synchronized="false"
  75255. static="false" final="false" visibility="public"
  75256. deprecated="not deprecated">
  75257. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  75258. </method>
  75259. <doc>
  75260. <![CDATA[Consume all outputs and put them in /dev/null.]]>
  75261. </doc>
  75262. </class>
  75263. <!-- end class org.apache.hadoop.mapreduce.lib.output.NullOutputFormat -->
  75264. <!-- start class org.apache.hadoop.mapreduce.lib.output.SequenceFileAsBinaryOutputFormat -->
  75265. <class name="SequenceFileAsBinaryOutputFormat" extends="org.apache.hadoop.mapreduce.lib.output.SequenceFileOutputFormat"
  75266. abstract="false"
  75267. static="false" final="false" visibility="public"
  75268. deprecated="not deprecated">
  75269. <constructor name="SequenceFileAsBinaryOutputFormat"
  75270. static="false" final="false" visibility="public"
  75271. deprecated="not deprecated">
  75272. </constructor>
  75273. <method name="setSequenceFileOutputKeyClass"
  75274. abstract="false" native="false" synchronized="false"
  75275. static="true" final="false" visibility="public"
  75276. deprecated="not deprecated">
  75277. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  75278. <param name="theClass" type="java.lang.Class"/>
  75279. <doc>
  75280. <![CDATA[Set the key class for the {@link SequenceFile}
  75281. <p>This allows the user to specify the key class to be different
  75282. from the actual class ({@link BytesWritable}) used for writing </p>
  75283. @param job the {@link Job} to modify
  75284. @param theClass the SequenceFile output key class.]]>
  75285. </doc>
  75286. </method>
  75287. <method name="setSequenceFileOutputValueClass"
  75288. abstract="false" native="false" synchronized="false"
  75289. static="true" final="false" visibility="public"
  75290. deprecated="not deprecated">
  75291. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  75292. <param name="theClass" type="java.lang.Class"/>
  75293. <doc>
  75294. <![CDATA[Set the value class for the {@link SequenceFile}
  75295. <p>This allows the user to specify the value class to be different
  75296. from the actual class ({@link BytesWritable}) used for writing </p>
  75297. @param job the {@link Job} to modify
  75298. @param theClass the SequenceFile output key class.]]>
  75299. </doc>
  75300. </method>
  75301. <method name="getSequenceFileOutputKeyClass" return="java.lang.Class"
  75302. abstract="false" native="false" synchronized="false"
  75303. static="true" final="false" visibility="public"
  75304. deprecated="not deprecated">
  75305. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  75306. <doc>
  75307. <![CDATA[Get the key class for the {@link SequenceFile}
  75308. @return the key class of the {@link SequenceFile}]]>
  75309. </doc>
  75310. </method>
  75311. <method name="getSequenceFileOutputValueClass" return="java.lang.Class"
  75312. abstract="false" native="false" synchronized="false"
  75313. static="true" final="false" visibility="public"
  75314. deprecated="not deprecated">
  75315. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  75316. <doc>
  75317. <![CDATA[Get the value class for the {@link SequenceFile}
  75318. @return the value class of the {@link SequenceFile}]]>
  75319. </doc>
  75320. </method>
  75321. <method name="getRecordWriter" return="org.apache.hadoop.mapreduce.RecordWriter"
  75322. abstract="false" native="false" synchronized="false"
  75323. static="false" final="false" visibility="public"
  75324. deprecated="not deprecated">
  75325. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  75326. <exception name="IOException" type="java.io.IOException"/>
  75327. </method>
  75328. <method name="getSequenceWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  75329. abstract="false" native="false" synchronized="false"
  75330. static="false" final="false" visibility="protected"
  75331. deprecated="not deprecated">
  75332. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  75333. <param name="keyClass" type="java.lang.Class"/>
  75334. <param name="valueClass" type="java.lang.Class"/>
  75335. <exception name="IOException" type="java.io.IOException"/>
  75336. </method>
  75337. <method name="checkOutputSpecs"
  75338. abstract="false" native="false" synchronized="false"
  75339. static="false" final="false" visibility="public"
  75340. deprecated="not deprecated">
  75341. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  75342. <exception name="IOException" type="java.io.IOException"/>
  75343. </method>
  75344. <field name="KEY_CLASS" type="java.lang.String"
  75345. transient="false" volatile="false"
  75346. static="true" final="false" visibility="public"
  75347. deprecated="not deprecated">
  75348. </field>
  75349. <field name="VALUE_CLASS" type="java.lang.String"
  75350. transient="false" volatile="false"
  75351. static="true" final="false" visibility="public"
  75352. deprecated="not deprecated">
  75353. </field>
  75354. <doc>
  75355. <![CDATA[An {@link org.apache.hadoop.mapreduce.OutputFormat} that writes keys,
  75356. values to {@link SequenceFile}s in binary(raw) format]]>
  75357. </doc>
  75358. </class>
  75359. <!-- end class org.apache.hadoop.mapreduce.lib.output.SequenceFileAsBinaryOutputFormat -->
  75360. <!-- start class org.apache.hadoop.mapreduce.lib.output.SequenceFileAsBinaryOutputFormat.WritableValueBytes -->
  75361. <class name="SequenceFileAsBinaryOutputFormat.WritableValueBytes" extends="java.lang.Object"
  75362. abstract="false"
  75363. static="true" final="false" visibility="public"
  75364. deprecated="not deprecated">
  75365. <implements name="org.apache.hadoop.io.SequenceFile.ValueBytes"/>
  75366. <constructor name="SequenceFileAsBinaryOutputFormat.WritableValueBytes"
  75367. static="false" final="false" visibility="public"
  75368. deprecated="not deprecated">
  75369. </constructor>
  75370. <constructor name="SequenceFileAsBinaryOutputFormat.WritableValueBytes" type="org.apache.hadoop.io.BytesWritable"
  75371. static="false" final="false" visibility="public"
  75372. deprecated="not deprecated">
  75373. </constructor>
  75374. <method name="reset"
  75375. abstract="false" native="false" synchronized="false"
  75376. static="false" final="false" visibility="public"
  75377. deprecated="not deprecated">
  75378. <param name="value" type="org.apache.hadoop.io.BytesWritable"/>
  75379. </method>
  75380. <method name="writeUncompressedBytes"
  75381. abstract="false" native="false" synchronized="false"
  75382. static="false" final="false" visibility="public"
  75383. deprecated="not deprecated">
  75384. <param name="outStream" type="java.io.DataOutputStream"/>
  75385. <exception name="IOException" type="java.io.IOException"/>
  75386. </method>
  75387. <method name="writeCompressedBytes"
  75388. abstract="false" native="false" synchronized="false"
  75389. static="false" final="false" visibility="public"
  75390. deprecated="not deprecated">
  75391. <param name="outStream" type="java.io.DataOutputStream"/>
  75392. <exception name="IllegalArgumentException" type="java.lang.IllegalArgumentException"/>
  75393. <exception name="IOException" type="java.io.IOException"/>
  75394. </method>
  75395. <method name="getSize" return="int"
  75396. abstract="false" native="false" synchronized="false"
  75397. static="false" final="false" visibility="public"
  75398. deprecated="not deprecated">
  75399. </method>
  75400. <doc>
  75401. <![CDATA[Inner class used for appendRaw]]>
  75402. </doc>
  75403. </class>
  75404. <!-- end class org.apache.hadoop.mapreduce.lib.output.SequenceFileAsBinaryOutputFormat.WritableValueBytes -->
  75405. <!-- start class org.apache.hadoop.mapreduce.lib.output.SequenceFileOutputFormat -->
  75406. <class name="SequenceFileOutputFormat" extends="org.apache.hadoop.mapreduce.lib.output.FileOutputFormat"
  75407. abstract="false"
  75408. static="false" final="false" visibility="public"
  75409. deprecated="not deprecated">
  75410. <constructor name="SequenceFileOutputFormat"
  75411. static="false" final="false" visibility="public"
  75412. deprecated="not deprecated">
  75413. </constructor>
  75414. <method name="getRecordWriter" return="org.apache.hadoop.mapreduce.RecordWriter"
  75415. abstract="false" native="false" synchronized="false"
  75416. static="false" final="false" visibility="public"
  75417. deprecated="not deprecated">
  75418. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  75419. <exception name="IOException" type="java.io.IOException"/>
  75420. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  75421. </method>
  75422. <method name="getOutputCompressionType" return="org.apache.hadoop.io.SequenceFile.CompressionType"
  75423. abstract="false" native="false" synchronized="false"
  75424. static="true" final="false" visibility="public"
  75425. deprecated="not deprecated">
  75426. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  75427. <doc>
  75428. <![CDATA[Get the {@link CompressionType} for the output {@link SequenceFile}.
  75429. @param job the {@link Job}
  75430. @return the {@link CompressionType} for the output {@link SequenceFile},
  75431. defaulting to {@link CompressionType#RECORD}]]>
  75432. </doc>
  75433. </method>
  75434. <method name="setOutputCompressionType"
  75435. abstract="false" native="false" synchronized="false"
  75436. static="true" final="false" visibility="public"
  75437. deprecated="not deprecated">
  75438. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  75439. <param name="style" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  75440. <doc>
  75441. <![CDATA[Set the {@link CompressionType} for the output {@link SequenceFile}.
  75442. @param job the {@link Job} to modify
  75443. @param style the {@link CompressionType} for the output
  75444. {@link SequenceFile}]]>
  75445. </doc>
  75446. </method>
  75447. <doc>
  75448. <![CDATA[An {@link OutputFormat} that writes {@link SequenceFile}s.]]>
  75449. </doc>
  75450. </class>
  75451. <!-- end class org.apache.hadoop.mapreduce.lib.output.SequenceFileOutputFormat -->
  75452. <!-- start class org.apache.hadoop.mapreduce.lib.output.TextOutputFormat -->
  75453. <class name="TextOutputFormat" extends="org.apache.hadoop.mapreduce.lib.output.FileOutputFormat"
  75454. abstract="false"
  75455. static="false" final="false" visibility="public"
  75456. deprecated="not deprecated">
  75457. <constructor name="TextOutputFormat"
  75458. static="false" final="false" visibility="public"
  75459. deprecated="not deprecated">
  75460. </constructor>
  75461. <method name="getRecordWriter" return="org.apache.hadoop.mapreduce.RecordWriter"
  75462. abstract="false" native="false" synchronized="false"
  75463. static="false" final="false" visibility="public"
  75464. deprecated="not deprecated">
  75465. <param name="job" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  75466. <exception name="IOException" type="java.io.IOException"/>
  75467. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  75468. </method>
  75469. <doc>
  75470. <![CDATA[An {@link OutputFormat} that writes plain text files.]]>
  75471. </doc>
  75472. </class>
  75473. <!-- end class org.apache.hadoop.mapreduce.lib.output.TextOutputFormat -->
  75474. <!-- start class org.apache.hadoop.mapreduce.lib.output.TextOutputFormat.LineRecordWriter -->
  75475. <class name="TextOutputFormat.LineRecordWriter" extends="org.apache.hadoop.mapreduce.RecordWriter"
  75476. abstract="false"
  75477. static="true" final="false" visibility="protected"
  75478. deprecated="not deprecated">
  75479. <constructor name="TextOutputFormat.LineRecordWriter" type="java.io.DataOutputStream, java.lang.String"
  75480. static="false" final="false" visibility="public"
  75481. deprecated="not deprecated">
  75482. </constructor>
  75483. <constructor name="TextOutputFormat.LineRecordWriter" type="java.io.DataOutputStream"
  75484. static="false" final="false" visibility="public"
  75485. deprecated="not deprecated">
  75486. </constructor>
  75487. <method name="write"
  75488. abstract="false" native="false" synchronized="true"
  75489. static="false" final="false" visibility="public"
  75490. deprecated="not deprecated">
  75491. <param name="key" type="java.lang.Object"/>
  75492. <param name="value" type="java.lang.Object"/>
  75493. <exception name="IOException" type="java.io.IOException"/>
  75494. </method>
  75495. <method name="close"
  75496. abstract="false" native="false" synchronized="true"
  75497. static="false" final="false" visibility="public"
  75498. deprecated="not deprecated">
  75499. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  75500. <exception name="IOException" type="java.io.IOException"/>
  75501. </method>
  75502. <field name="out" type="java.io.DataOutputStream"
  75503. transient="false" volatile="false"
  75504. static="false" final="false" visibility="protected"
  75505. deprecated="not deprecated">
  75506. </field>
  75507. </class>
  75508. <!-- end class org.apache.hadoop.mapreduce.lib.output.TextOutputFormat.LineRecordWriter -->
  75509. </package>
  75510. <package name="org.apache.hadoop.mapreduce.lib.partition">
  75511. <!-- start class org.apache.hadoop.mapreduce.lib.partition.BinaryPartitioner -->
  75512. <class name="BinaryPartitioner" extends="org.apache.hadoop.mapreduce.Partitioner"
  75513. abstract="false"
  75514. static="false" final="false" visibility="public"
  75515. deprecated="not deprecated">
  75516. <implements name="org.apache.hadoop.conf.Configurable"/>
  75517. <constructor name="BinaryPartitioner"
  75518. static="false" final="false" visibility="public"
  75519. deprecated="not deprecated">
  75520. </constructor>
  75521. <method name="setOffsets"
  75522. abstract="false" native="false" synchronized="false"
  75523. static="true" final="false" visibility="public"
  75524. deprecated="not deprecated">
  75525. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  75526. <param name="left" type="int"/>
  75527. <param name="right" type="int"/>
  75528. <doc>
  75529. <![CDATA[Set the subarray to be used for partitioning to
  75530. <code>bytes[left:(right+1)]</code> in Python syntax.
  75531. @param conf configuration object
  75532. @param left left Python-style offset
  75533. @param right right Python-style offset]]>
  75534. </doc>
  75535. </method>
  75536. <method name="setLeftOffset"
  75537. abstract="false" native="false" synchronized="false"
  75538. static="true" final="false" visibility="public"
  75539. deprecated="not deprecated">
  75540. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  75541. <param name="offset" type="int"/>
  75542. <doc>
  75543. <![CDATA[Set the subarray to be used for partitioning to
  75544. <code>bytes[offset:]</code> in Python syntax.
  75545. @param conf configuration object
  75546. @param offset left Python-style offset]]>
  75547. </doc>
  75548. </method>
  75549. <method name="setRightOffset"
  75550. abstract="false" native="false" synchronized="false"
  75551. static="true" final="false" visibility="public"
  75552. deprecated="not deprecated">
  75553. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  75554. <param name="offset" type="int"/>
  75555. <doc>
  75556. <![CDATA[Set the subarray to be used for partitioning to
  75557. <code>bytes[:(offset+1)]</code> in Python syntax.
  75558. @param conf configuration object
  75559. @param offset right Python-style offset]]>
  75560. </doc>
  75561. </method>
  75562. <method name="setConf"
  75563. abstract="false" native="false" synchronized="false"
  75564. static="false" final="false" visibility="public"
  75565. deprecated="not deprecated">
  75566. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  75567. </method>
  75568. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  75569. abstract="false" native="false" synchronized="false"
  75570. static="false" final="false" visibility="public"
  75571. deprecated="not deprecated">
  75572. </method>
  75573. <method name="getPartition" return="int"
  75574. abstract="false" native="false" synchronized="false"
  75575. static="false" final="false" visibility="public"
  75576. deprecated="not deprecated">
  75577. <param name="key" type="org.apache.hadoop.io.BinaryComparable"/>
  75578. <param name="value" type="java.lang.Object"/>
  75579. <param name="numPartitions" type="int"/>
  75580. <doc>
  75581. <![CDATA[Use (the specified slice of the array returned by)
  75582. {@link BinaryComparable#getBytes()} to partition.]]>
  75583. </doc>
  75584. </method>
  75585. <doc>
  75586. <![CDATA[<p>Partition {@link BinaryComparable} keys using a configurable part of
  75587. the bytes array returned by {@link BinaryComparable#getBytes()}.</p>
  75588. <p>The subarray to be used for the partitioning can be defined by means
  75589. of the following properties:
  75590. <ul>
  75591. <li>
  75592. <i>mapred.binary.partitioner.left.offset</i>:
  75593. left offset in array (0 by default)
  75594. </li>
  75595. <li>
  75596. <i>mapred.binary.partitioner.right.offset</i>:
  75597. right offset in array (-1 by default)
  75598. </li>
  75599. </ul>
  75600. Like in Python, both negative and positive offsets are allowed, but
  75601. the meaning is slightly different. In case of an array of length 5,
  75602. for instance, the possible offsets are:
  75603. <pre><code>
  75604. +---+---+---+---+---+
  75605. | B | B | B | B | B |
  75606. +---+---+---+---+---+
  75607. 0 1 2 3 4
  75608. -5 -4 -3 -2 -1
  75609. </code></pre>
  75610. The first row of numbers gives the position of the offsets 0...5 in
  75611. the array; the second row gives the corresponding negative offsets.
  75612. Contrary to Python, the specified subarray has byte <code>i</code>
  75613. and <code>j</code> as first and last element, repectively, when
  75614. <code>i</code> and <code>j</code> are the left and right offset.
  75615. <p>For Hadoop programs written in Java, it is advisable to use one of
  75616. the following static convenience methods for setting the offsets:
  75617. <ul>
  75618. <li>{@link #setOffsets}</li>
  75619. <li>{@link #setLeftOffset}</li>
  75620. <li>{@link #setRightOffset}</li>
  75621. </ul></p>]]>
  75622. </doc>
  75623. </class>
  75624. <!-- end class org.apache.hadoop.mapreduce.lib.partition.BinaryPartitioner -->
  75625. <!-- start class org.apache.hadoop.mapreduce.lib.partition.HashPartitioner -->
  75626. <class name="HashPartitioner" extends="org.apache.hadoop.mapreduce.Partitioner"
  75627. abstract="false"
  75628. static="false" final="false" visibility="public"
  75629. deprecated="not deprecated">
  75630. <constructor name="HashPartitioner"
  75631. static="false" final="false" visibility="public"
  75632. deprecated="not deprecated">
  75633. </constructor>
  75634. <method name="getPartition" return="int"
  75635. abstract="false" native="false" synchronized="false"
  75636. static="false" final="false" visibility="public"
  75637. deprecated="not deprecated">
  75638. <param name="key" type="java.lang.Object"/>
  75639. <param name="value" type="java.lang.Object"/>
  75640. <param name="numReduceTasks" type="int"/>
  75641. <doc>
  75642. <![CDATA[Use {@link Object#hashCode()} to partition.]]>
  75643. </doc>
  75644. </method>
  75645. <doc>
  75646. <![CDATA[Partition keys by their {@link Object#hashCode()}.]]>
  75647. </doc>
  75648. </class>
  75649. <!-- end class org.apache.hadoop.mapreduce.lib.partition.HashPartitioner -->
  75650. <!-- start class org.apache.hadoop.mapreduce.lib.partition.InputSampler -->
  75651. <class name="InputSampler" extends="org.apache.hadoop.conf.Configured"
  75652. abstract="false"
  75653. static="false" final="false" visibility="public"
  75654. deprecated="not deprecated">
  75655. <implements name="org.apache.hadoop.util.Tool"/>
  75656. <constructor name="InputSampler" type="org.apache.hadoop.conf.Configuration"
  75657. static="false" final="false" visibility="public"
  75658. deprecated="not deprecated">
  75659. </constructor>
  75660. <method name="writePartitionFile"
  75661. abstract="false" native="false" synchronized="false"
  75662. static="true" final="false" visibility="public"
  75663. deprecated="not deprecated">
  75664. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  75665. <param name="sampler" type="org.apache.hadoop.mapreduce.lib.partition.InputSampler.Sampler"/>
  75666. <exception name="IOException" type="java.io.IOException"/>
  75667. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  75668. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  75669. <doc>
  75670. <![CDATA[Write a partition file for the given job, using the Sampler provided.
  75671. Queries the sampler for a sample keyset, sorts by the output key
  75672. comparator, selects the keys for each rank, and writes to the destination
  75673. returned from {@link TotalOrderPartitioner#getPartitionFile}.]]>
  75674. </doc>
  75675. </method>
  75676. <method name="run" return="int"
  75677. abstract="false" native="false" synchronized="false"
  75678. static="false" final="false" visibility="public"
  75679. deprecated="not deprecated">
  75680. <param name="args" type="java.lang.String[]"/>
  75681. <exception name="Exception" type="java.lang.Exception"/>
  75682. <doc>
  75683. <![CDATA[Driver for InputSampler from the command line.
  75684. Configures a JobConf instance and calls {@link #writePartitionFile}.]]>
  75685. </doc>
  75686. </method>
  75687. <method name="main"
  75688. abstract="false" native="false" synchronized="false"
  75689. static="true" final="false" visibility="public"
  75690. deprecated="not deprecated">
  75691. <param name="args" type="java.lang.String[]"/>
  75692. <exception name="Exception" type="java.lang.Exception"/>
  75693. </method>
  75694. <doc>
  75695. <![CDATA[Utility for collecting samples and writing a partition file for
  75696. {@link TotalOrderPartitioner}.]]>
  75697. </doc>
  75698. </class>
  75699. <!-- end class org.apache.hadoop.mapreduce.lib.partition.InputSampler -->
  75700. <!-- start class org.apache.hadoop.mapreduce.lib.partition.InputSampler.IntervalSampler -->
  75701. <class name="InputSampler.IntervalSampler" extends="java.lang.Object"
  75702. abstract="false"
  75703. static="true" final="false" visibility="public"
  75704. deprecated="not deprecated">
  75705. <implements name="org.apache.hadoop.mapreduce.lib.partition.InputSampler.Sampler"/>
  75706. <constructor name="InputSampler.IntervalSampler" type="double"
  75707. static="false" final="false" visibility="public"
  75708. deprecated="not deprecated">
  75709. <doc>
  75710. <![CDATA[Create a new IntervalSampler sampling <em>all</em> splits.
  75711. @param freq The frequency with which records will be emitted.]]>
  75712. </doc>
  75713. </constructor>
  75714. <constructor name="InputSampler.IntervalSampler" type="double, int"
  75715. static="false" final="false" visibility="public"
  75716. deprecated="not deprecated">
  75717. <doc>
  75718. <![CDATA[Create a new IntervalSampler.
  75719. @param freq The frequency with which records will be emitted.
  75720. @param maxSplitsSampled The maximum number of splits to examine.
  75721. @see #getSample]]>
  75722. </doc>
  75723. </constructor>
  75724. <method name="getSample" return="java.lang.Object[]"
  75725. abstract="false" native="false" synchronized="false"
  75726. static="false" final="false" visibility="public"
  75727. deprecated="not deprecated">
  75728. <param name="inf" type="org.apache.hadoop.mapreduce.InputFormat"/>
  75729. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  75730. <exception name="IOException" type="java.io.IOException"/>
  75731. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  75732. <doc>
  75733. <![CDATA[For each split sampled, emit when the ratio of the number of records
  75734. retained to the total record count is less than the specified
  75735. frequency.]]>
  75736. </doc>
  75737. </method>
  75738. <doc>
  75739. <![CDATA[Sample from s splits at regular intervals.
  75740. Useful for sorted data.]]>
  75741. </doc>
  75742. </class>
  75743. <!-- end class org.apache.hadoop.mapreduce.lib.partition.InputSampler.IntervalSampler -->
  75744. <!-- start class org.apache.hadoop.mapreduce.lib.partition.InputSampler.RandomSampler -->
  75745. <class name="InputSampler.RandomSampler" extends="java.lang.Object"
  75746. abstract="false"
  75747. static="true" final="false" visibility="public"
  75748. deprecated="not deprecated">
  75749. <implements name="org.apache.hadoop.mapreduce.lib.partition.InputSampler.Sampler"/>
  75750. <constructor name="InputSampler.RandomSampler" type="double, int"
  75751. static="false" final="false" visibility="public"
  75752. deprecated="not deprecated">
  75753. <doc>
  75754. <![CDATA[Create a new RandomSampler sampling <em>all</em> splits.
  75755. This will read every split at the client, which is very expensive.
  75756. @param freq Probability with which a key will be chosen.
  75757. @param numSamples Total number of samples to obtain from all selected
  75758. splits.]]>
  75759. </doc>
  75760. </constructor>
  75761. <constructor name="InputSampler.RandomSampler" type="double, int, int"
  75762. static="false" final="false" visibility="public"
  75763. deprecated="not deprecated">
  75764. <doc>
  75765. <![CDATA[Create a new RandomSampler.
  75766. @param freq Probability with which a key will be chosen.
  75767. @param numSamples Total number of samples to obtain from all selected
  75768. splits.
  75769. @param maxSplitsSampled The maximum number of splits to examine.]]>
  75770. </doc>
  75771. </constructor>
  75772. <method name="getSample" return="java.lang.Object[]"
  75773. abstract="false" native="false" synchronized="false"
  75774. static="false" final="false" visibility="public"
  75775. deprecated="not deprecated">
  75776. <param name="inf" type="org.apache.hadoop.mapreduce.InputFormat"/>
  75777. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  75778. <exception name="IOException" type="java.io.IOException"/>
  75779. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  75780. <doc>
  75781. <![CDATA[Randomize the split order, then take the specified number of keys from
  75782. each split sampled, where each key is selected with the specified
  75783. probability and possibly replaced by a subsequently selected key when
  75784. the quota of keys from that split is satisfied.]]>
  75785. </doc>
  75786. </method>
  75787. <doc>
  75788. <![CDATA[Sample from random points in the input.
  75789. General-purpose sampler. Takes numSamples / maxSplitsSampled inputs from
  75790. each split.]]>
  75791. </doc>
  75792. </class>
  75793. <!-- end class org.apache.hadoop.mapreduce.lib.partition.InputSampler.RandomSampler -->
  75794. <!-- start interface org.apache.hadoop.mapreduce.lib.partition.InputSampler.Sampler -->
  75795. <interface name="InputSampler.Sampler" abstract="true"
  75796. static="true" final="false" visibility="public"
  75797. deprecated="not deprecated">
  75798. <method name="getSample" return="java.lang.Object[]"
  75799. abstract="false" native="false" synchronized="false"
  75800. static="false" final="false" visibility="public"
  75801. deprecated="not deprecated">
  75802. <param name="inf" type="org.apache.hadoop.mapreduce.InputFormat"/>
  75803. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  75804. <exception name="IOException" type="java.io.IOException"/>
  75805. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  75806. <doc>
  75807. <![CDATA[For a given job, collect and return a subset of the keys from the
  75808. input data.]]>
  75809. </doc>
  75810. </method>
  75811. <doc>
  75812. <![CDATA[Interface to sample using an
  75813. {@link org.apache.hadoop.mapreduce.InputFormat}.]]>
  75814. </doc>
  75815. </interface>
  75816. <!-- end interface org.apache.hadoop.mapreduce.lib.partition.InputSampler.Sampler -->
  75817. <!-- start class org.apache.hadoop.mapreduce.lib.partition.InputSampler.SplitSampler -->
  75818. <class name="InputSampler.SplitSampler" extends="java.lang.Object"
  75819. abstract="false"
  75820. static="true" final="false" visibility="public"
  75821. deprecated="not deprecated">
  75822. <implements name="org.apache.hadoop.mapreduce.lib.partition.InputSampler.Sampler"/>
  75823. <constructor name="InputSampler.SplitSampler" type="int"
  75824. static="false" final="false" visibility="public"
  75825. deprecated="not deprecated">
  75826. <doc>
  75827. <![CDATA[Create a SplitSampler sampling <em>all</em> splits.
  75828. Takes the first numSamples / numSplits records from each split.
  75829. @param numSamples Total number of samples to obtain from all selected
  75830. splits.]]>
  75831. </doc>
  75832. </constructor>
  75833. <constructor name="InputSampler.SplitSampler" type="int, int"
  75834. static="false" final="false" visibility="public"
  75835. deprecated="not deprecated">
  75836. <doc>
  75837. <![CDATA[Create a new SplitSampler.
  75838. @param numSamples Total number of samples to obtain from all selected
  75839. splits.
  75840. @param maxSplitsSampled The maximum number of splits to examine.]]>
  75841. </doc>
  75842. </constructor>
  75843. <method name="getSample" return="java.lang.Object[]"
  75844. abstract="false" native="false" synchronized="false"
  75845. static="false" final="false" visibility="public"
  75846. deprecated="not deprecated">
  75847. <param name="inf" type="org.apache.hadoop.mapreduce.InputFormat"/>
  75848. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  75849. <exception name="IOException" type="java.io.IOException"/>
  75850. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  75851. <doc>
  75852. <![CDATA[From each split sampled, take the first numSamples / numSplits records.]]>
  75853. </doc>
  75854. </method>
  75855. <doc>
  75856. <![CDATA[Samples the first n records from s splits.
  75857. Inexpensive way to sample random data.]]>
  75858. </doc>
  75859. </class>
  75860. <!-- end class org.apache.hadoop.mapreduce.lib.partition.InputSampler.SplitSampler -->
  75861. <!-- start class org.apache.hadoop.mapreduce.lib.partition.KeyFieldBasedComparator -->
  75862. <class name="KeyFieldBasedComparator" extends="org.apache.hadoop.io.WritableComparator"
  75863. abstract="false"
  75864. static="false" final="false" visibility="public"
  75865. deprecated="not deprecated">
  75866. <implements name="org.apache.hadoop.conf.Configurable"/>
  75867. <constructor name="KeyFieldBasedComparator"
  75868. static="false" final="false" visibility="public"
  75869. deprecated="not deprecated">
  75870. </constructor>
  75871. <method name="setConf"
  75872. abstract="false" native="false" synchronized="false"
  75873. static="false" final="false" visibility="public"
  75874. deprecated="not deprecated">
  75875. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  75876. </method>
  75877. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  75878. abstract="false" native="false" synchronized="false"
  75879. static="false" final="false" visibility="public"
  75880. deprecated="not deprecated">
  75881. </method>
  75882. <method name="compare" return="int"
  75883. abstract="false" native="false" synchronized="false"
  75884. static="false" final="false" visibility="public"
  75885. deprecated="not deprecated">
  75886. <param name="b1" type="byte[]"/>
  75887. <param name="s1" type="int"/>
  75888. <param name="l1" type="int"/>
  75889. <param name="b2" type="byte[]"/>
  75890. <param name="s2" type="int"/>
  75891. <param name="l2" type="int"/>
  75892. </method>
  75893. <method name="setKeyFieldComparatorOptions"
  75894. abstract="false" native="false" synchronized="false"
  75895. static="true" final="false" visibility="public"
  75896. deprecated="not deprecated">
  75897. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  75898. <param name="keySpec" type="java.lang.String"/>
  75899. <doc>
  75900. <![CDATA[Set the {@link KeyFieldBasedComparator} options used to compare keys.
  75901. @param keySpec the key specification of the form -k pos1[,pos2], where,
  75902. pos is of the form f[.c][opts], where f is the number
  75903. of the key field to use, and c is the number of the first character from
  75904. the beginning of the field. Fields and character posns are numbered
  75905. starting with 1; a character position of zero in pos2 indicates the
  75906. field's last character. If '.c' is omitted from pos1, it defaults to 1
  75907. (the beginning of the field); if omitted from pos2, it defaults to 0
  75908. (the end of the field). opts are ordering options. The supported options
  75909. are:
  75910. -n, (Sort numerically)
  75911. -r, (Reverse the result of comparison)]]>
  75912. </doc>
  75913. </method>
  75914. <method name="getKeyFieldComparatorOption" return="java.lang.String"
  75915. abstract="false" native="false" synchronized="false"
  75916. static="true" final="false" visibility="public"
  75917. deprecated="not deprecated">
  75918. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  75919. <doc>
  75920. <![CDATA[Get the {@link KeyFieldBasedComparator} options]]>
  75921. </doc>
  75922. </method>
  75923. <field name="COMPARATOR_OPTIONS" type="java.lang.String"
  75924. transient="false" volatile="false"
  75925. static="true" final="false" visibility="public"
  75926. deprecated="not deprecated">
  75927. </field>
  75928. <doc>
  75929. <![CDATA[This comparator implementation provides a subset of the features provided
  75930. by the Unix/GNU Sort. In particular, the supported features are:
  75931. -n, (Sort numerically)
  75932. -r, (Reverse the result of comparison)
  75933. -k pos1[,pos2], where pos is of the form f[.c][opts], where f is the number
  75934. of the field to use, and c is the number of the first character from the
  75935. beginning of the field. Fields and character posns are numbered starting
  75936. with 1; a character position of zero in pos2 indicates the field's last
  75937. character. If '.c' is omitted from pos1, it defaults to 1 (the beginning
  75938. of the field); if omitted from pos2, it defaults to 0 (the end of the
  75939. field). opts are ordering options (any of 'nr' as described above).
  75940. We assume that the fields in the key are separated by
  75941. mapreduce.map.output.key.field.separator.]]>
  75942. </doc>
  75943. </class>
  75944. <!-- end class org.apache.hadoop.mapreduce.lib.partition.KeyFieldBasedComparator -->
  75945. <!-- start class org.apache.hadoop.mapreduce.lib.partition.KeyFieldBasedPartitioner -->
  75946. <class name="KeyFieldBasedPartitioner" extends="org.apache.hadoop.mapreduce.Partitioner"
  75947. abstract="false"
  75948. static="false" final="false" visibility="public"
  75949. deprecated="not deprecated">
  75950. <implements name="org.apache.hadoop.conf.Configurable"/>
  75951. <constructor name="KeyFieldBasedPartitioner"
  75952. static="false" final="false" visibility="public"
  75953. deprecated="not deprecated">
  75954. </constructor>
  75955. <method name="setConf"
  75956. abstract="false" native="false" synchronized="false"
  75957. static="false" final="false" visibility="public"
  75958. deprecated="not deprecated">
  75959. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  75960. </method>
  75961. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  75962. abstract="false" native="false" synchronized="false"
  75963. static="false" final="false" visibility="public"
  75964. deprecated="not deprecated">
  75965. </method>
  75966. <method name="getPartition" return="int"
  75967. abstract="false" native="false" synchronized="false"
  75968. static="false" final="false" visibility="public"
  75969. deprecated="not deprecated">
  75970. <param name="key" type="java.lang.Object"/>
  75971. <param name="value" type="java.lang.Object"/>
  75972. <param name="numReduceTasks" type="int"/>
  75973. </method>
  75974. <method name="hashCode" return="int"
  75975. abstract="false" native="false" synchronized="false"
  75976. static="false" final="false" visibility="protected"
  75977. deprecated="not deprecated">
  75978. <param name="b" type="byte[]"/>
  75979. <param name="start" type="int"/>
  75980. <param name="end" type="int"/>
  75981. <param name="currentHash" type="int"/>
  75982. </method>
  75983. <method name="getPartition" return="int"
  75984. abstract="false" native="false" synchronized="false"
  75985. static="false" final="false" visibility="protected"
  75986. deprecated="not deprecated">
  75987. <param name="hash" type="int"/>
  75988. <param name="numReduceTasks" type="int"/>
  75989. </method>
  75990. <method name="setKeyFieldPartitionerOptions"
  75991. abstract="false" native="false" synchronized="false"
  75992. static="false" final="false" visibility="public"
  75993. deprecated="not deprecated">
  75994. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  75995. <param name="keySpec" type="java.lang.String"/>
  75996. <doc>
  75997. <![CDATA[Set the {@link KeyFieldBasedPartitioner} options used for
  75998. {@link Partitioner}
  75999. @param keySpec the key specification of the form -k pos1[,pos2], where,
  76000. pos is of the form f[.c][opts], where f is the number
  76001. of the key field to use, and c is the number of the first character from
  76002. the beginning of the field. Fields and character posns are numbered
  76003. starting with 1; a character position of zero in pos2 indicates the
  76004. field's last character. If '.c' is omitted from pos1, it defaults to 1
  76005. (the beginning of the field); if omitted from pos2, it defaults to 0
  76006. (the end of the field).]]>
  76007. </doc>
  76008. </method>
  76009. <method name="getKeyFieldPartitionerOption" return="java.lang.String"
  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.JobContext"/>
  76014. <doc>
  76015. <![CDATA[Get the {@link KeyFieldBasedPartitioner} options]]>
  76016. </doc>
  76017. </method>
  76018. <field name="PARTITIONER_OPTIONS" type="java.lang.String"
  76019. transient="false" volatile="false"
  76020. static="true" final="false" visibility="public"
  76021. deprecated="not deprecated">
  76022. </field>
  76023. <doc>
  76024. <![CDATA[Defines a way to partition keys based on certain key fields (also see
  76025. {@link KeyFieldBasedComparator}.
  76026. The key specification supported is of the form -k pos1[,pos2], where,
  76027. pos is of the form f[.c][opts], where f is the number
  76028. of the key field to use, and c is the number of the first character from
  76029. the beginning of the field. Fields and character posns are numbered
  76030. starting with 1; a character position of zero in pos2 indicates the
  76031. field's last character. If '.c' is omitted from pos1, it defaults to 1
  76032. (the beginning of the field); if omitted from pos2, it defaults to 0
  76033. (the end of the field).]]>
  76034. </doc>
  76035. </class>
  76036. <!-- end class org.apache.hadoop.mapreduce.lib.partition.KeyFieldBasedPartitioner -->
  76037. <!-- start class org.apache.hadoop.mapreduce.lib.partition.TotalOrderPartitioner -->
  76038. <class name="TotalOrderPartitioner" extends="org.apache.hadoop.mapreduce.Partitioner"
  76039. abstract="false"
  76040. static="false" final="false" visibility="public"
  76041. deprecated="not deprecated">
  76042. <implements name="org.apache.hadoop.conf.Configurable"/>
  76043. <constructor name="TotalOrderPartitioner"
  76044. static="false" final="false" visibility="public"
  76045. deprecated="not deprecated">
  76046. </constructor>
  76047. <method name="setConf"
  76048. abstract="false" native="false" synchronized="false"
  76049. static="false" final="false" visibility="public"
  76050. deprecated="not deprecated">
  76051. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  76052. <doc>
  76053. <![CDATA[Read in the partition file and build indexing data structures.
  76054. If the keytype is {@link org.apache.hadoop.io.BinaryComparable} and
  76055. <tt>total.order.partitioner.natural.order</tt> is not false, a trie
  76056. of the first <tt>total.order.partitioner.max.trie.depth</tt>(2) + 1 bytes
  76057. will be built. Otherwise, keys will be located using a binary search of
  76058. the partition keyset using the {@link org.apache.hadoop.io.RawComparator}
  76059. defined for this job. The input file must be sorted with the same
  76060. comparator and contain {@link Job#getNumReduceTasks()} - 1 keys.]]>
  76061. </doc>
  76062. </method>
  76063. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  76064. abstract="false" native="false" synchronized="false"
  76065. static="false" final="false" visibility="public"
  76066. deprecated="not deprecated">
  76067. </method>
  76068. <method name="getPartition" return="int"
  76069. abstract="false" native="false" synchronized="false"
  76070. static="false" final="false" visibility="public"
  76071. deprecated="not deprecated">
  76072. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  76073. <param name="value" type="java.lang.Object"/>
  76074. <param name="numPartitions" type="int"/>
  76075. </method>
  76076. <method name="setPartitionFile"
  76077. abstract="false" native="false" synchronized="false"
  76078. static="true" final="false" visibility="public"
  76079. deprecated="not deprecated">
  76080. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  76081. <param name="p" type="org.apache.hadoop.fs.Path"/>
  76082. <doc>
  76083. <![CDATA[Set the path to the SequenceFile storing the sorted partition keyset.
  76084. It must be the case that for <tt>R</tt> reduces, there are <tt>R-1</tt>
  76085. keys in the SequenceFile.]]>
  76086. </doc>
  76087. </method>
  76088. <method name="getPartitionFile" return="java.lang.String"
  76089. abstract="false" native="false" synchronized="false"
  76090. static="true" final="false" visibility="public"
  76091. deprecated="not deprecated">
  76092. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  76093. <doc>
  76094. <![CDATA[Get the path to the SequenceFile storing the sorted partition keyset.
  76095. @see #setPartitionFile(Configuration, Path)]]>
  76096. </doc>
  76097. </method>
  76098. <field name="DEFAULT_PATH" type="java.lang.String"
  76099. transient="false" volatile="false"
  76100. static="true" final="true" visibility="public"
  76101. deprecated="not deprecated">
  76102. </field>
  76103. <field name="PARTITIONER_PATH" type="java.lang.String"
  76104. transient="false" volatile="false"
  76105. static="true" final="true" visibility="public"
  76106. deprecated="not deprecated">
  76107. </field>
  76108. <field name="MAX_TRIE_DEPTH" type="java.lang.String"
  76109. transient="false" volatile="false"
  76110. static="true" final="true" visibility="public"
  76111. deprecated="not deprecated">
  76112. </field>
  76113. <field name="NATURAL_ORDER" type="java.lang.String"
  76114. transient="false" volatile="false"
  76115. static="true" final="true" visibility="public"
  76116. deprecated="not deprecated">
  76117. </field>
  76118. <doc>
  76119. <![CDATA[Partitioner effecting a total order by reading split points from
  76120. an externally generated source.]]>
  76121. </doc>
  76122. </class>
  76123. <!-- end class org.apache.hadoop.mapreduce.lib.partition.TotalOrderPartitioner -->
  76124. </package>
  76125. <package name="org.apache.hadoop.mapreduce.lib.reduce">
  76126. <!-- start class org.apache.hadoop.mapreduce.lib.reduce.IntSumReducer -->
  76127. <class name="IntSumReducer" extends="org.apache.hadoop.mapreduce.Reducer"
  76128. abstract="false"
  76129. static="false" final="false" visibility="public"
  76130. deprecated="not deprecated">
  76131. <constructor name="IntSumReducer"
  76132. static="false" final="false" visibility="public"
  76133. deprecated="not deprecated">
  76134. </constructor>
  76135. <method name="reduce"
  76136. abstract="false" native="false" synchronized="false"
  76137. static="false" final="false" visibility="public"
  76138. deprecated="not deprecated">
  76139. <param name="key" type="java.lang.Object"/>
  76140. <param name="values" type="java.lang.Iterable"/>
  76141. <param name="context" type="org.apache.hadoop.mapreduce.Reducer.Context"/>
  76142. <exception name="IOException" type="java.io.IOException"/>
  76143. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  76144. </method>
  76145. </class>
  76146. <!-- end class org.apache.hadoop.mapreduce.lib.reduce.IntSumReducer -->
  76147. <!-- start class org.apache.hadoop.mapreduce.lib.reduce.LongSumReducer -->
  76148. <class name="LongSumReducer" extends="org.apache.hadoop.mapreduce.Reducer"
  76149. abstract="false"
  76150. static="false" final="false" visibility="public"
  76151. deprecated="not deprecated">
  76152. <constructor name="LongSumReducer"
  76153. static="false" final="false" visibility="public"
  76154. deprecated="not deprecated">
  76155. </constructor>
  76156. <method name="reduce"
  76157. abstract="false" native="false" synchronized="false"
  76158. static="false" final="false" visibility="public"
  76159. deprecated="not deprecated">
  76160. <param name="key" type="java.lang.Object"/>
  76161. <param name="values" type="java.lang.Iterable"/>
  76162. <param name="context" type="org.apache.hadoop.mapreduce.Reducer.Context"/>
  76163. <exception name="IOException" type="java.io.IOException"/>
  76164. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  76165. </method>
  76166. </class>
  76167. <!-- end class org.apache.hadoop.mapreduce.lib.reduce.LongSumReducer -->
  76168. </package>
  76169. <package name="org.apache.hadoop.mapreduce.security">
  76170. <!-- start class org.apache.hadoop.mapreduce.security.SecureShuffleUtils -->
  76171. <class name="SecureShuffleUtils" extends="java.lang.Object"
  76172. abstract="false"
  76173. static="false" final="false" visibility="public"
  76174. deprecated="not deprecated">
  76175. <constructor name="SecureShuffleUtils"
  76176. static="false" final="false" visibility="public"
  76177. deprecated="not deprecated">
  76178. </constructor>
  76179. <method name="generateHash" return="java.lang.String"
  76180. abstract="false" native="false" synchronized="false"
  76181. static="true" final="false" visibility="public"
  76182. deprecated="not deprecated">
  76183. <param name="msg" type="byte[]"/>
  76184. <param name="key" type="javax.crypto.SecretKey"/>
  76185. <doc>
  76186. <![CDATA[Base64 encoded hash of msg
  76187. @param msg]]>
  76188. </doc>
  76189. </method>
  76190. <method name="hashFromString" return="java.lang.String"
  76191. abstract="false" native="false" synchronized="false"
  76192. static="true" final="false" visibility="public"
  76193. deprecated="not deprecated">
  76194. <param name="enc_str" type="java.lang.String"/>
  76195. <param name="key" type="javax.crypto.SecretKey"/>
  76196. <exception name="IOException" type="java.io.IOException"/>
  76197. <doc>
  76198. <![CDATA[Aux util to calculate hash of a String
  76199. @param enc_str
  76200. @param key
  76201. @return Base64 encodedHash
  76202. @throws IOException]]>
  76203. </doc>
  76204. </method>
  76205. <method name="verifyReply"
  76206. abstract="false" native="false" synchronized="false"
  76207. static="true" final="false" visibility="public"
  76208. deprecated="not deprecated">
  76209. <param name="base64Hash" type="java.lang.String"/>
  76210. <param name="msg" type="java.lang.String"/>
  76211. <param name="key" type="javax.crypto.SecretKey"/>
  76212. <exception name="IOException" type="java.io.IOException"/>
  76213. <doc>
  76214. <![CDATA[verify that base64Hash is same as HMacHash(msg)
  76215. @param base64Hash (Base64 encoded hash)
  76216. @param msg
  76217. @throws IOException if not the same]]>
  76218. </doc>
  76219. </method>
  76220. <method name="buildMsgFrom" return="java.lang.String"
  76221. abstract="false" native="false" synchronized="false"
  76222. static="true" final="false" visibility="public"
  76223. deprecated="not deprecated">
  76224. <param name="url" type="java.net.URL"/>
  76225. <doc>
  76226. <![CDATA[Shuffle specific utils - build string for encoding from URL
  76227. @param url
  76228. @return string for encoding]]>
  76229. </doc>
  76230. </method>
  76231. <method name="buildMsgFrom" return="java.lang.String"
  76232. abstract="false" native="false" synchronized="false"
  76233. static="true" final="false" visibility="public"
  76234. deprecated="not deprecated">
  76235. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  76236. <doc>
  76237. <![CDATA[Shuffle specific utils - build string for encoding from URL
  76238. @param request
  76239. @return string for encoding]]>
  76240. </doc>
  76241. </method>
  76242. <method name="toHex" return="java.lang.String"
  76243. abstract="false" native="false" synchronized="false"
  76244. static="true" final="false" visibility="public"
  76245. deprecated="not deprecated">
  76246. <param name="ba" type="byte[]"/>
  76247. <doc>
  76248. <![CDATA[byte array to Hex String
  76249. @param ba
  76250. @return string with HEX value of the key]]>
  76251. </doc>
  76252. </method>
  76253. <field name="HTTP_HEADER_URL_HASH" type="java.lang.String"
  76254. transient="false" volatile="false"
  76255. static="true" final="true" visibility="public"
  76256. deprecated="not deprecated">
  76257. </field>
  76258. <field name="HTTP_HEADER_REPLY_URL_HASH" type="java.lang.String"
  76259. transient="false" volatile="false"
  76260. static="true" final="true" visibility="public"
  76261. deprecated="not deprecated">
  76262. </field>
  76263. <doc>
  76264. <![CDATA[utilities for generating kyes, hashes and verifying them for shuffle]]>
  76265. </doc>
  76266. </class>
  76267. <!-- end class org.apache.hadoop.mapreduce.security.SecureShuffleUtils -->
  76268. <!-- start class org.apache.hadoop.mapreduce.security.TokenCache -->
  76269. <class name="TokenCache" extends="java.lang.Object"
  76270. abstract="false"
  76271. static="false" final="false" visibility="public"
  76272. deprecated="not deprecated">
  76273. <constructor name="TokenCache"
  76274. static="false" final="false" visibility="public"
  76275. deprecated="not deprecated">
  76276. </constructor>
  76277. <method name="getSecretKey" return="byte[]"
  76278. abstract="false" native="false" synchronized="false"
  76279. static="true" final="false" visibility="public"
  76280. deprecated="not deprecated">
  76281. <param name="credentials" type="org.apache.hadoop.security.Credentials"/>
  76282. <param name="alias" type="org.apache.hadoop.io.Text"/>
  76283. <doc>
  76284. <![CDATA[auxiliary method to get user's secret keys..
  76285. @param alias
  76286. @return secret key from the storage]]>
  76287. </doc>
  76288. </method>
  76289. <method name="obtainTokensForNamenodes"
  76290. abstract="false" native="false" synchronized="false"
  76291. static="true" final="false" visibility="public"
  76292. deprecated="not deprecated">
  76293. <param name="credentials" type="org.apache.hadoop.security.Credentials"/>
  76294. <param name="ps" type="org.apache.hadoop.fs.Path[]"/>
  76295. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  76296. <exception name="IOException" type="java.io.IOException"/>
  76297. <doc>
  76298. <![CDATA[Convenience method to obtain delegation tokens from namenodes
  76299. corresponding to the paths passed.
  76300. @param ps array of paths
  76301. @param conf configuration
  76302. @throws IOException]]>
  76303. </doc>
  76304. </method>
  76305. <method name="cleanUpTokenReferral"
  76306. abstract="false" native="false" synchronized="false"
  76307. static="true" final="false" visibility="public"
  76308. deprecated="not deprecated">
  76309. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  76310. <doc>
  76311. <![CDATA[Remove jobtoken referrals which don't make sense in the context
  76312. of the task execution.
  76313. @param conf configuration object.]]>
  76314. </doc>
  76315. </method>
  76316. <method name="getDelegationToken" return="org.apache.hadoop.security.token.Token"
  76317. abstract="false" native="false" synchronized="false"
  76318. static="true" final="false" visibility="public"
  76319. deprecated="not deprecated">
  76320. <param name="credentials" type="org.apache.hadoop.security.Credentials"/>
  76321. <param name="namenode" type="java.lang.String"/>
  76322. <doc>
  76323. <![CDATA[@param namenode
  76324. @return delegation token]]>
  76325. </doc>
  76326. </method>
  76327. <method name="loadTokens" return="org.apache.hadoop.security.Credentials"
  76328. abstract="false" native="false" synchronized="false"
  76329. static="true" final="false" visibility="public"
  76330. deprecated="not deprecated">
  76331. <param name="jobTokenFile" type="java.lang.String"/>
  76332. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  76333. <exception name="IOException" type="java.io.IOException"/>
  76334. <doc>
  76335. <![CDATA[load job token from a file
  76336. @param conf
  76337. @throws IOException]]>
  76338. </doc>
  76339. </method>
  76340. <method name="setJobToken"
  76341. abstract="false" native="false" synchronized="false"
  76342. static="true" final="false" visibility="public"
  76343. deprecated="not deprecated">
  76344. <param name="t" type="org.apache.hadoop.security.token.Token"/>
  76345. <param name="credentials" type="org.apache.hadoop.security.Credentials"/>
  76346. <doc>
  76347. <![CDATA[store job token
  76348. @param t]]>
  76349. </doc>
  76350. </method>
  76351. <method name="getJobToken" return="org.apache.hadoop.security.token.Token"
  76352. abstract="false" native="false" synchronized="false"
  76353. static="true" final="false" visibility="public"
  76354. deprecated="not deprecated">
  76355. <param name="credentials" type="org.apache.hadoop.security.Credentials"/>
  76356. <doc>
  76357. <![CDATA[@return job token]]>
  76358. </doc>
  76359. </method>
  76360. <field name="JOB_TOKEN_HDFS_FILE" type="java.lang.String"
  76361. transient="false" volatile="false"
  76362. static="true" final="true" visibility="public"
  76363. deprecated="not deprecated">
  76364. <doc>
  76365. <![CDATA[file name used on HDFS for generated job token]]>
  76366. </doc>
  76367. </field>
  76368. <field name="JOB_TOKENS_FILENAME" type="java.lang.String"
  76369. transient="false" volatile="false"
  76370. static="true" final="true" visibility="public"
  76371. deprecated="not deprecated">
  76372. <doc>
  76373. <![CDATA[conf setting for job tokens cache file name]]>
  76374. </doc>
  76375. </field>
  76376. <doc>
  76377. <![CDATA[This class provides user facing APIs for transferring secrets from
  76378. the job client to the tasks.
  76379. The secrets can be stored just before submission of jobs and read during
  76380. the task execution.]]>
  76381. </doc>
  76382. </class>
  76383. <!-- end class org.apache.hadoop.mapreduce.security.TokenCache -->
  76384. </package>
  76385. <package name="org.apache.hadoop.mapreduce.security.token">
  76386. <!-- start class org.apache.hadoop.mapreduce.security.token.DelegationTokenRenewal -->
  76387. <class name="DelegationTokenRenewal" extends="java.lang.Object"
  76388. abstract="false"
  76389. static="false" final="false" visibility="public"
  76390. deprecated="not deprecated">
  76391. <constructor name="DelegationTokenRenewal"
  76392. static="false" final="false" visibility="public"
  76393. deprecated="not deprecated">
  76394. </constructor>
  76395. <method name="registerDelegationTokensForRenewal"
  76396. abstract="false" native="false" synchronized="true"
  76397. static="true" final="false" visibility="public"
  76398. deprecated="not deprecated">
  76399. <param name="jobId" type="org.apache.hadoop.mapreduce.JobID"/>
  76400. <param name="ts" type="org.apache.hadoop.security.Credentials"/>
  76401. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  76402. <exception name="IOException" type="java.io.IOException"/>
  76403. </method>
  76404. <method name="close"
  76405. abstract="false" native="false" synchronized="true"
  76406. static="true" final="false" visibility="public"
  76407. deprecated="not deprecated">
  76408. <doc>
  76409. <![CDATA[removing all tokens renewals]]>
  76410. </doc>
  76411. </method>
  76412. <method name="removeDelegationTokenRenewalForJob"
  76413. abstract="false" native="false" synchronized="false"
  76414. static="true" final="false" visibility="public"
  76415. deprecated="not deprecated">
  76416. <param name="jobId" type="org.apache.hadoop.mapreduce.JobID"/>
  76417. <doc>
  76418. <![CDATA[removing DT for completed jobs
  76419. @param jobId]]>
  76420. </doc>
  76421. </method>
  76422. <field name="SCHEME" type="java.lang.String"
  76423. transient="false" volatile="false"
  76424. static="true" final="true" visibility="public"
  76425. deprecated="not deprecated">
  76426. </field>
  76427. </class>
  76428. <!-- end class org.apache.hadoop.mapreduce.security.token.DelegationTokenRenewal -->
  76429. <!-- start class org.apache.hadoop.mapreduce.security.token.JobTokenIdentifier -->
  76430. <class name="JobTokenIdentifier" extends="org.apache.hadoop.security.token.TokenIdentifier"
  76431. abstract="false"
  76432. static="false" final="false" visibility="public"
  76433. deprecated="not deprecated">
  76434. <constructor name="JobTokenIdentifier"
  76435. static="false" final="false" visibility="public"
  76436. deprecated="not deprecated">
  76437. <doc>
  76438. <![CDATA[Default constructor]]>
  76439. </doc>
  76440. </constructor>
  76441. <constructor name="JobTokenIdentifier" type="org.apache.hadoop.io.Text"
  76442. static="false" final="false" visibility="public"
  76443. deprecated="not deprecated">
  76444. <doc>
  76445. <![CDATA[Create a job token identifier from a jobid
  76446. @param jobid the jobid to use]]>
  76447. </doc>
  76448. </constructor>
  76449. <method name="getKind" return="org.apache.hadoop.io.Text"
  76450. abstract="false" native="false" synchronized="false"
  76451. static="false" final="false" visibility="public"
  76452. deprecated="not deprecated">
  76453. <doc>
  76454. <![CDATA[{@inheritDoc}]]>
  76455. </doc>
  76456. </method>
  76457. <method name="getUser" return="org.apache.hadoop.security.UserGroupInformation"
  76458. abstract="false" native="false" synchronized="false"
  76459. static="false" final="false" visibility="public"
  76460. deprecated="not deprecated">
  76461. <doc>
  76462. <![CDATA[{@inheritDoc}]]>
  76463. </doc>
  76464. </method>
  76465. <method name="getJobId" return="org.apache.hadoop.io.Text"
  76466. abstract="false" native="false" synchronized="false"
  76467. static="false" final="false" visibility="public"
  76468. deprecated="not deprecated">
  76469. <doc>
  76470. <![CDATA[Get the jobid
  76471. @return the jobid]]>
  76472. </doc>
  76473. </method>
  76474. <method name="readFields"
  76475. abstract="false" native="false" synchronized="false"
  76476. static="false" final="false" visibility="public"
  76477. deprecated="not deprecated">
  76478. <param name="in" type="java.io.DataInput"/>
  76479. <exception name="IOException" type="java.io.IOException"/>
  76480. <doc>
  76481. <![CDATA[{@inheritDoc}]]>
  76482. </doc>
  76483. </method>
  76484. <method name="write"
  76485. abstract="false" native="false" synchronized="false"
  76486. static="false" final="false" visibility="public"
  76487. deprecated="not deprecated">
  76488. <param name="out" type="java.io.DataOutput"/>
  76489. <exception name="IOException" type="java.io.IOException"/>
  76490. <doc>
  76491. <![CDATA[{@inheritDoc}]]>
  76492. </doc>
  76493. </method>
  76494. <field name="KIND_NAME" type="org.apache.hadoop.io.Text"
  76495. transient="false" volatile="false"
  76496. static="true" final="true" visibility="public"
  76497. deprecated="not deprecated">
  76498. </field>
  76499. <doc>
  76500. <![CDATA[The token identifier for job token]]>
  76501. </doc>
  76502. </class>
  76503. <!-- end class org.apache.hadoop.mapreduce.security.token.JobTokenIdentifier -->
  76504. <!-- start class org.apache.hadoop.mapreduce.security.token.JobTokenIdentifier.Renewer -->
  76505. <class name="JobTokenIdentifier.Renewer" extends="org.apache.hadoop.security.token.Token.TrivialRenewer"
  76506. abstract="false"
  76507. static="true" final="false" visibility="public"
  76508. deprecated="not deprecated">
  76509. <constructor name="JobTokenIdentifier.Renewer"
  76510. static="false" final="false" visibility="public"
  76511. deprecated="not deprecated">
  76512. </constructor>
  76513. <method name="getKind" return="org.apache.hadoop.io.Text"
  76514. abstract="false" native="false" synchronized="false"
  76515. static="false" final="false" visibility="protected"
  76516. deprecated="not deprecated">
  76517. </method>
  76518. </class>
  76519. <!-- end class org.apache.hadoop.mapreduce.security.token.JobTokenIdentifier.Renewer -->
  76520. <!-- start class org.apache.hadoop.mapreduce.security.token.JobTokenSecretManager -->
  76521. <class name="JobTokenSecretManager" extends="org.apache.hadoop.security.token.SecretManager"
  76522. abstract="false"
  76523. static="false" final="false" visibility="public"
  76524. deprecated="not deprecated">
  76525. <constructor name="JobTokenSecretManager"
  76526. static="false" final="false" visibility="public"
  76527. deprecated="not deprecated">
  76528. <doc>
  76529. <![CDATA[Default constructor]]>
  76530. </doc>
  76531. </constructor>
  76532. <method name="createSecretKey" return="javax.crypto.SecretKey"
  76533. abstract="false" native="false" synchronized="false"
  76534. static="true" final="false" visibility="public"
  76535. deprecated="not deprecated">
  76536. <param name="key" type="byte[]"/>
  76537. <doc>
  76538. <![CDATA[Convert the byte[] to a secret key
  76539. @param key the byte[] to create the secret key from
  76540. @return the secret key]]>
  76541. </doc>
  76542. </method>
  76543. <method name="computeHash" return="byte[]"
  76544. abstract="false" native="false" synchronized="false"
  76545. static="true" final="false" visibility="public"
  76546. deprecated="not deprecated">
  76547. <param name="msg" type="byte[]"/>
  76548. <param name="key" type="javax.crypto.SecretKey"/>
  76549. <doc>
  76550. <![CDATA[Compute the HMAC hash of the message using the key
  76551. @param msg the message to hash
  76552. @param key the key to use
  76553. @return the computed hash]]>
  76554. </doc>
  76555. </method>
  76556. <method name="createPassword" return="byte[]"
  76557. abstract="false" native="false" synchronized="false"
  76558. static="false" final="false" visibility="public"
  76559. deprecated="not deprecated">
  76560. <param name="identifier" type="org.apache.hadoop.mapreduce.security.token.JobTokenIdentifier"/>
  76561. <doc>
  76562. <![CDATA[Create a new password/secret for the given job token identifier.
  76563. @param identifier the job token identifier
  76564. @return token password/secret]]>
  76565. </doc>
  76566. </method>
  76567. <method name="addTokenForJob"
  76568. abstract="false" native="false" synchronized="false"
  76569. static="false" final="false" visibility="public"
  76570. deprecated="not deprecated">
  76571. <param name="jobId" type="java.lang.String"/>
  76572. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  76573. <doc>
  76574. <![CDATA[Add the job token of a job to cache
  76575. @param jobId the job that owns the token
  76576. @param token the job token]]>
  76577. </doc>
  76578. </method>
  76579. <method name="removeTokenForJob"
  76580. abstract="false" native="false" synchronized="false"
  76581. static="false" final="false" visibility="public"
  76582. deprecated="not deprecated">
  76583. <param name="jobId" type="java.lang.String"/>
  76584. <doc>
  76585. <![CDATA[Remove the cached job token of a job from cache
  76586. @param jobId the job whose token is to be removed]]>
  76587. </doc>
  76588. </method>
  76589. <method name="retrieveTokenSecret" return="javax.crypto.SecretKey"
  76590. abstract="false" native="false" synchronized="false"
  76591. static="false" final="false" visibility="public"
  76592. deprecated="not deprecated">
  76593. <param name="jobId" type="java.lang.String"/>
  76594. <exception name="SecretManager.InvalidToken" type="org.apache.hadoop.security.token.SecretManager.InvalidToken"/>
  76595. <doc>
  76596. <![CDATA[Look up the token password/secret for the given jobId.
  76597. @param jobId the jobId to look up
  76598. @return token password/secret as SecretKey
  76599. @throws InvalidToken]]>
  76600. </doc>
  76601. </method>
  76602. <method name="retrievePassword" return="byte[]"
  76603. abstract="false" native="false" synchronized="false"
  76604. static="false" final="false" visibility="public"
  76605. deprecated="not deprecated">
  76606. <param name="identifier" type="org.apache.hadoop.mapreduce.security.token.JobTokenIdentifier"/>
  76607. <exception name="SecretManager.InvalidToken" type="org.apache.hadoop.security.token.SecretManager.InvalidToken"/>
  76608. <doc>
  76609. <![CDATA[Look up the token password/secret for the given job token identifier.
  76610. @param identifier the job token identifier to look up
  76611. @return token password/secret as byte[]
  76612. @throws InvalidToken]]>
  76613. </doc>
  76614. </method>
  76615. <method name="createIdentifier" return="org.apache.hadoop.mapreduce.security.token.JobTokenIdentifier"
  76616. abstract="false" native="false" synchronized="false"
  76617. static="false" final="false" visibility="public"
  76618. deprecated="not deprecated">
  76619. <doc>
  76620. <![CDATA[Create an empty job token identifier
  76621. @return a newly created empty job token identifier]]>
  76622. </doc>
  76623. </method>
  76624. <doc>
  76625. <![CDATA[SecretManager for job token. It can be used to cache generated job tokens.]]>
  76626. </doc>
  76627. </class>
  76628. <!-- end class org.apache.hadoop.mapreduce.security.token.JobTokenSecretManager -->
  76629. <!-- start class org.apache.hadoop.mapreduce.security.token.JobTokenSelector -->
  76630. <class name="JobTokenSelector" extends="java.lang.Object"
  76631. abstract="false"
  76632. static="false" final="false" visibility="public"
  76633. deprecated="not deprecated">
  76634. <implements name="org.apache.hadoop.security.token.TokenSelector"/>
  76635. <constructor name="JobTokenSelector"
  76636. static="false" final="false" visibility="public"
  76637. deprecated="not deprecated">
  76638. </constructor>
  76639. <method name="selectToken" return="org.apache.hadoop.security.token.Token"
  76640. abstract="false" native="false" synchronized="false"
  76641. static="false" final="false" visibility="public"
  76642. deprecated="not deprecated">
  76643. <param name="service" type="org.apache.hadoop.io.Text"/>
  76644. <param name="tokens" type="java.util.Collection"/>
  76645. </method>
  76646. <doc>
  76647. <![CDATA[Look through tokens to find the first job token that matches the service
  76648. and return it.]]>
  76649. </doc>
  76650. </class>
  76651. <!-- end class org.apache.hadoop.mapreduce.security.token.JobTokenSelector -->
  76652. </package>
  76653. <package name="org.apache.hadoop.mapreduce.security.token.delegation">
  76654. <!-- start class org.apache.hadoop.mapreduce.security.token.delegation.DelegationTokenIdentifier -->
  76655. <class name="DelegationTokenIdentifier" extends="org.apache.hadoop.security.token.delegation.AbstractDelegationTokenIdentifier"
  76656. abstract="false"
  76657. static="false" final="false" visibility="public"
  76658. deprecated="not deprecated">
  76659. <constructor name="DelegationTokenIdentifier"
  76660. static="false" final="false" visibility="public"
  76661. deprecated="not deprecated">
  76662. <doc>
  76663. <![CDATA[Create an empty delegation token identifier for reading into.]]>
  76664. </doc>
  76665. </constructor>
  76666. <constructor name="DelegationTokenIdentifier" type="org.apache.hadoop.io.Text, org.apache.hadoop.io.Text, org.apache.hadoop.io.Text"
  76667. static="false" final="false" visibility="public"
  76668. deprecated="not deprecated">
  76669. <doc>
  76670. <![CDATA[Create a new delegation token identifier
  76671. @param owner the effective username of the token owner
  76672. @param renewer the username of the renewer
  76673. @param realUser the real username of the token owner]]>
  76674. </doc>
  76675. </constructor>
  76676. <method name="getKind" return="org.apache.hadoop.io.Text"
  76677. abstract="false" native="false" synchronized="false"
  76678. static="false" final="false" visibility="public"
  76679. deprecated="not deprecated">
  76680. </method>
  76681. <field name="MAPREDUCE_DELEGATION_KIND" type="org.apache.hadoop.io.Text"
  76682. transient="false" volatile="false"
  76683. static="true" final="true" visibility="public"
  76684. deprecated="not deprecated">
  76685. </field>
  76686. <doc>
  76687. <![CDATA[A delegation token identifier that is specific to MapReduce.]]>
  76688. </doc>
  76689. </class>
  76690. <!-- end class org.apache.hadoop.mapreduce.security.token.delegation.DelegationTokenIdentifier -->
  76691. <!-- start class org.apache.hadoop.mapreduce.security.token.delegation.DelegationTokenSecretManager -->
  76692. <class name="DelegationTokenSecretManager" extends="org.apache.hadoop.security.token.delegation.AbstractDelegationTokenSecretManager"
  76693. abstract="false"
  76694. static="false" final="false" visibility="public"
  76695. deprecated="not deprecated">
  76696. <constructor name="DelegationTokenSecretManager" type="long, long, long, long"
  76697. static="false" final="false" visibility="public"
  76698. deprecated="not deprecated">
  76699. <doc>
  76700. <![CDATA[Create a secret manager
  76701. @param delegationKeyUpdateInterval the number of seconds for rolling new
  76702. secret keys.
  76703. @param delegationTokenMaxLifetime the maximum lifetime of the delegation
  76704. tokens
  76705. @param delegationTokenRenewInterval how often the tokens must be renewed
  76706. @param delegationTokenRemoverScanInterval how often the tokens are scanned
  76707. for expired tokens]]>
  76708. </doc>
  76709. </constructor>
  76710. <method name="createIdentifier" return="org.apache.hadoop.mapreduce.security.token.delegation.DelegationTokenIdentifier"
  76711. abstract="false" native="false" synchronized="false"
  76712. static="false" final="false" visibility="public"
  76713. deprecated="not deprecated">
  76714. </method>
  76715. <doc>
  76716. <![CDATA[A MapReduce specific delegation token secret manager.
  76717. The secret manager is responsible for generating and accepting the password
  76718. for each token.]]>
  76719. </doc>
  76720. </class>
  76721. <!-- end class org.apache.hadoop.mapreduce.security.token.delegation.DelegationTokenSecretManager -->
  76722. <!-- start class org.apache.hadoop.mapreduce.security.token.delegation.DelegationTokenSelector -->
  76723. <class name="DelegationTokenSelector" extends="org.apache.hadoop.security.token.delegation.AbstractDelegationTokenSelector"
  76724. abstract="false"
  76725. static="false" final="false" visibility="public"
  76726. deprecated="not deprecated">
  76727. <constructor name="DelegationTokenSelector"
  76728. static="false" final="false" visibility="public"
  76729. deprecated="not deprecated">
  76730. </constructor>
  76731. <doc>
  76732. <![CDATA[A delegation token that is specialized for MapReduce]]>
  76733. </doc>
  76734. </class>
  76735. <!-- end class org.apache.hadoop.mapreduce.security.token.delegation.DelegationTokenSelector -->
  76736. </package>
  76737. <package name="org.apache.hadoop.mapreduce.server.jobtracker">
  76738. <!-- start class org.apache.hadoop.mapreduce.server.jobtracker.TaskTracker -->
  76739. <class name="TaskTracker" extends="java.lang.Object"
  76740. abstract="false"
  76741. static="false" final="false" visibility="public"
  76742. deprecated="not deprecated">
  76743. <constructor name="TaskTracker" type="java.lang.String"
  76744. static="false" final="false" visibility="public"
  76745. deprecated="not deprecated">
  76746. <doc>
  76747. <![CDATA[Create a new {@link TaskTracker}.
  76748. @param trackerName Unique identifier for the <code>TaskTracker</code>]]>
  76749. </doc>
  76750. </constructor>
  76751. <method name="getTrackerName" return="java.lang.String"
  76752. abstract="false" native="false" synchronized="false"
  76753. static="false" final="false" visibility="public"
  76754. deprecated="not deprecated">
  76755. <doc>
  76756. <![CDATA[Get the unique identifier for the {@link TaskTracker}
  76757. @return the unique identifier for the <code>TaskTracker</code>]]>
  76758. </doc>
  76759. </method>
  76760. <method name="getStatus" return="org.apache.hadoop.mapred.TaskTrackerStatus"
  76761. abstract="false" native="false" synchronized="false"
  76762. static="false" final="false" visibility="public"
  76763. deprecated="not deprecated">
  76764. <doc>
  76765. <![CDATA[Get the current {@link TaskTrackerStatus} of the <code>TaskTracker</code>.
  76766. @return the current <code>TaskTrackerStatus</code> of the
  76767. <code>TaskTracker</code>]]>
  76768. </doc>
  76769. </method>
  76770. <method name="setStatus"
  76771. abstract="false" native="false" synchronized="false"
  76772. static="false" final="false" visibility="public"
  76773. deprecated="not deprecated">
  76774. <param name="status" type="org.apache.hadoop.mapred.TaskTrackerStatus"/>
  76775. <doc>
  76776. <![CDATA[Set the current {@link TaskTrackerStatus} of the <code>TaskTracker</code>.
  76777. @param status the current <code>TaskTrackerStatus</code> of the
  76778. <code>TaskTracker</code>]]>
  76779. </doc>
  76780. </method>
  76781. <method name="getAvailableSlots" return="int"
  76782. abstract="false" native="false" synchronized="false"
  76783. static="false" final="false" visibility="public"
  76784. deprecated="not deprecated">
  76785. <param name="taskType" type="org.apache.hadoop.mapreduce.TaskType"/>
  76786. <doc>
  76787. <![CDATA[Get the number of currently available slots on this tasktracker for the
  76788. given type of the task.
  76789. @param taskType the {@link TaskType} to check for number of available slots
  76790. @return the number of currently available slots for the given
  76791. <code>taskType</code>]]>
  76792. </doc>
  76793. </method>
  76794. <method name="getJobForFallowSlot" return="org.apache.hadoop.mapred.JobInProgress"
  76795. abstract="false" native="false" synchronized="false"
  76796. static="false" final="false" visibility="public"
  76797. deprecated="not deprecated">
  76798. <param name="taskType" type="org.apache.hadoop.mapreduce.TaskType"/>
  76799. <doc>
  76800. <![CDATA[Get the {@link JobInProgress} for which the fallow slot(s) are held.
  76801. @param taskType {@link TaskType} of the task
  76802. @return the task for which the fallow slot(s) are held,
  76803. <code>null</code> if there are no fallow slots]]>
  76804. </doc>
  76805. </method>
  76806. <method name="reserveSlots"
  76807. abstract="false" native="false" synchronized="false"
  76808. static="false" final="false" visibility="public"
  76809. deprecated="not deprecated">
  76810. <param name="taskType" type="org.apache.hadoop.mapreduce.TaskType"/>
  76811. <param name="job" type="org.apache.hadoop.mapred.JobInProgress"/>
  76812. <param name="numSlots" type="int"/>
  76813. <doc>
  76814. <![CDATA[Reserve specified number of slots for a given <code>job</code>.
  76815. @param taskType {@link TaskType} of the task
  76816. @param job the job for which slots on this <code>TaskTracker</code>
  76817. are to be reserved
  76818. @param numSlots number of slots to be reserved]]>
  76819. </doc>
  76820. </method>
  76821. <method name="unreserveSlots"
  76822. abstract="false" native="false" synchronized="false"
  76823. static="false" final="false" visibility="public"
  76824. deprecated="not deprecated">
  76825. <param name="taskType" type="org.apache.hadoop.mapreduce.TaskType"/>
  76826. <param name="job" type="org.apache.hadoop.mapred.JobInProgress"/>
  76827. <doc>
  76828. <![CDATA[Free map slots on this <code>TaskTracker</code> which were reserved for
  76829. <code>taskType</code>.
  76830. @param taskType {@link TaskType} of the task
  76831. @param job job whose slots are being un-reserved]]>
  76832. </doc>
  76833. </method>
  76834. <method name="cancelAllReservations"
  76835. abstract="false" native="false" synchronized="false"
  76836. static="false" final="false" visibility="public"
  76837. deprecated="not deprecated">
  76838. <doc>
  76839. <![CDATA[Cleanup when the {@link TaskTracker} is declared as 'lost/blacklisted'
  76840. by the JobTracker.
  76841. The method assumes that the lock on the {@link JobTracker} is obtained
  76842. by the caller.]]>
  76843. </doc>
  76844. </method>
  76845. <doc>
  76846. <![CDATA[The representation of a single <code>TaskTracker</code> as seen by
  76847. the {@link JobTracker}.]]>
  76848. </doc>
  76849. </class>
  76850. <!-- end class org.apache.hadoop.mapreduce.server.jobtracker.TaskTracker -->
  76851. </package>
  76852. <package name="org.apache.hadoop.mapreduce.server.tasktracker">
  76853. <!-- start class org.apache.hadoop.mapreduce.server.tasktracker.JVMInfo -->
  76854. <class name="JVMInfo" extends="java.lang.Object"
  76855. abstract="false"
  76856. static="false" final="false" visibility="public"
  76857. deprecated="not deprecated">
  76858. <constructor name="JVMInfo" type="java.io.File, java.util.List"
  76859. static="false" final="false" visibility="public"
  76860. deprecated="not deprecated">
  76861. </constructor>
  76862. <method name="getLogLocation" return="java.io.File"
  76863. abstract="false" native="false" synchronized="false"
  76864. static="false" final="false" visibility="public"
  76865. deprecated="not deprecated">
  76866. </method>
  76867. <method name="getAllAttempts" return="java.util.List"
  76868. abstract="false" native="false" synchronized="false"
  76869. static="false" final="false" visibility="public"
  76870. deprecated="not deprecated">
  76871. </method>
  76872. </class>
  76873. <!-- end class org.apache.hadoop.mapreduce.server.tasktracker.JVMInfo -->
  76874. <!-- start class org.apache.hadoop.mapreduce.server.tasktracker.Localizer -->
  76875. <class name="Localizer" extends="java.lang.Object"
  76876. abstract="false"
  76877. static="false" final="false" visibility="public"
  76878. deprecated="not deprecated">
  76879. <constructor name="Localizer" type="org.apache.hadoop.fs.FileSystem, java.lang.String[]"
  76880. static="false" final="false" visibility="public"
  76881. deprecated="not deprecated">
  76882. <doc>
  76883. <![CDATA[Create a Localizer instance
  76884. @param fileSys
  76885. @param lDirs]]>
  76886. </doc>
  76887. </constructor>
  76888. <method name="initializeUserDirs"
  76889. abstract="false" native="false" synchronized="false"
  76890. static="false" final="false" visibility="public"
  76891. deprecated="not deprecated">
  76892. <param name="user" type="java.lang.String"/>
  76893. <exception name="IOException" type="java.io.IOException"/>
  76894. <doc>
  76895. <![CDATA[Initialize the local directories for a particular user on this TT. This
  76896. involves creation and setting permissions of the following directories
  76897. <ul>
  76898. <li>$mapred.local.dir/taskTracker/$user</li>
  76899. <li>$mapred.local.dir/taskTracker/$user/jobcache</li>
  76900. <li>$mapred.local.dir/taskTracker/$user/distcache</li>
  76901. </ul>
  76902. @param user
  76903. @throws IOException]]>
  76904. </doc>
  76905. </method>
  76906. <method name="initializeAttemptDirs"
  76907. abstract="false" native="false" synchronized="false"
  76908. static="false" final="false" visibility="public"
  76909. deprecated="not deprecated">
  76910. <param name="user" type="java.lang.String"/>
  76911. <param name="jobId" type="java.lang.String"/>
  76912. <param name="attemptId" type="java.lang.String"/>
  76913. <exception name="IOException" type="java.io.IOException"/>
  76914. <doc>
  76915. <![CDATA[Create taskDirs on all the disks. Otherwise, in some cases, like when
  76916. LinuxTaskController is in use, child might wish to balance load across
  76917. disks but cannot itself create attempt directory because of the fact that
  76918. job directory is writable only by the TT.
  76919. @param user
  76920. @param jobId
  76921. @param attemptId
  76922. @throws IOException]]>
  76923. </doc>
  76924. </method>
  76925. <doc>
  76926. <![CDATA[NOTE: This class is internal only and not intended for users!!]]>
  76927. </doc>
  76928. </class>
  76929. <!-- end class org.apache.hadoop.mapreduce.server.tasktracker.Localizer -->
  76930. </package>
  76931. <package name="org.apache.hadoop.mapreduce.server.tasktracker.userlogs">
  76932. <!-- start class org.apache.hadoop.mapreduce.server.tasktracker.userlogs.DeleteJobEvent -->
  76933. <class name="DeleteJobEvent" extends="org.apache.hadoop.mapreduce.server.tasktracker.userlogs.UserLogEvent"
  76934. abstract="false"
  76935. static="false" final="false" visibility="public"
  76936. deprecated="not deprecated">
  76937. <constructor name="DeleteJobEvent" type="org.apache.hadoop.mapreduce.JobID"
  76938. static="false" final="false" visibility="public"
  76939. deprecated="not deprecated">
  76940. <doc>
  76941. <![CDATA[Create the event to delete job log directory.
  76942. @param jobid
  76943. The {@link JobID} whose logs should be deleted.]]>
  76944. </doc>
  76945. </constructor>
  76946. <method name="getJobID" return="org.apache.hadoop.mapreduce.JobID"
  76947. abstract="false" native="false" synchronized="false"
  76948. static="false" final="false" visibility="public"
  76949. deprecated="not deprecated">
  76950. <doc>
  76951. <![CDATA[Get the jobid.
  76952. @return object of {@link JobID}]]>
  76953. </doc>
  76954. </method>
  76955. <doc>
  76956. <![CDATA[This is an {@link UserLogEvent} sent when job logs should be deleted.]]>
  76957. </doc>
  76958. </class>
  76959. <!-- end class org.apache.hadoop.mapreduce.server.tasktracker.userlogs.DeleteJobEvent -->
  76960. <!-- start class org.apache.hadoop.mapreduce.server.tasktracker.userlogs.JobCompletedEvent -->
  76961. <class name="JobCompletedEvent" extends="org.apache.hadoop.mapreduce.server.tasktracker.userlogs.UserLogEvent"
  76962. abstract="false"
  76963. static="false" final="false" visibility="public"
  76964. deprecated="not deprecated">
  76965. <constructor name="JobCompletedEvent" type="org.apache.hadoop.mapreduce.JobID, long, int"
  76966. static="false" final="false" visibility="public"
  76967. deprecated="not deprecated">
  76968. <doc>
  76969. <![CDATA[Create the event for job completion.
  76970. @param jobid
  76971. The completed {@link JobID} .
  76972. @param jobCompletionTime
  76973. The job completion time.
  76974. @param retainHours
  76975. The number of hours for which the job logs should be retained]]>
  76976. </doc>
  76977. </constructor>
  76978. <method name="getJobID" return="org.apache.hadoop.mapreduce.JobID"
  76979. abstract="false" native="false" synchronized="false"
  76980. static="false" final="false" visibility="public"
  76981. deprecated="not deprecated">
  76982. <doc>
  76983. <![CDATA[Get the job id.
  76984. @return object of {@link JobID}]]>
  76985. </doc>
  76986. </method>
  76987. <method name="getJobCompletionTime" return="long"
  76988. abstract="false" native="false" synchronized="false"
  76989. static="false" final="false" visibility="public"
  76990. deprecated="not deprecated">
  76991. <doc>
  76992. <![CDATA[Get the job completion time-stamp in milli-seconds.
  76993. @return job completion time.]]>
  76994. </doc>
  76995. </method>
  76996. <method name="getRetainHours" return="int"
  76997. abstract="false" native="false" synchronized="false"
  76998. static="false" final="false" visibility="public"
  76999. deprecated="not deprecated">
  77000. <doc>
  77001. <![CDATA[Get the number of hours for which job logs should be retained.
  77002. @return retainHours]]>
  77003. </doc>
  77004. </method>
  77005. <doc>
  77006. <![CDATA[This is an {@link UserLogEvent} sent when the job completes]]>
  77007. </doc>
  77008. </class>
  77009. <!-- end class org.apache.hadoop.mapreduce.server.tasktracker.userlogs.JobCompletedEvent -->
  77010. <!-- start class org.apache.hadoop.mapreduce.server.tasktracker.userlogs.JobStartedEvent -->
  77011. <class name="JobStartedEvent" extends="org.apache.hadoop.mapreduce.server.tasktracker.userlogs.UserLogEvent"
  77012. abstract="false"
  77013. static="false" final="false" visibility="public"
  77014. deprecated="not deprecated">
  77015. <constructor name="JobStartedEvent" type="org.apache.hadoop.mapreduce.JobID"
  77016. static="false" final="false" visibility="public"
  77017. deprecated="not deprecated">
  77018. <doc>
  77019. <![CDATA[Create the event to inform the job has started.
  77020. @param jobid
  77021. The {@link JobID} which started]]>
  77022. </doc>
  77023. </constructor>
  77024. <method name="getJobID" return="org.apache.hadoop.mapreduce.JobID"
  77025. abstract="false" native="false" synchronized="false"
  77026. static="false" final="false" visibility="public"
  77027. deprecated="not deprecated">
  77028. <doc>
  77029. <![CDATA[Get the job id.
  77030. @return object of {@link JobID}]]>
  77031. </doc>
  77032. </method>
  77033. <doc>
  77034. <![CDATA[This is an {@link UserLogEvent} sent when the job starts.]]>
  77035. </doc>
  77036. </class>
  77037. <!-- end class org.apache.hadoop.mapreduce.server.tasktracker.userlogs.JobStartedEvent -->
  77038. <!-- start class org.apache.hadoop.mapreduce.server.tasktracker.userlogs.JvmFinishedEvent -->
  77039. <class name="JvmFinishedEvent" extends="org.apache.hadoop.mapreduce.server.tasktracker.userlogs.UserLogEvent"
  77040. abstract="false"
  77041. static="false" final="false" visibility="public"
  77042. deprecated="not deprecated">
  77043. <constructor name="JvmFinishedEvent" type="org.apache.hadoop.mapreduce.server.tasktracker.JVMInfo"
  77044. static="false" final="false" visibility="public"
  77045. deprecated="not deprecated">
  77046. <doc>
  77047. <![CDATA[Create the event to inform that the jvm has finished.
  77048. @param jvmInfo
  77049. The finished {@link JVMInfo}]]>
  77050. </doc>
  77051. </constructor>
  77052. <method name="getJvmInfo" return="org.apache.hadoop.mapreduce.server.tasktracker.JVMInfo"
  77053. abstract="false" native="false" synchronized="false"
  77054. static="false" final="false" visibility="public"
  77055. deprecated="not deprecated">
  77056. <doc>
  77057. <![CDATA[Get the jvm info.
  77058. @return object of {@link JVMInfo}]]>
  77059. </doc>
  77060. </method>
  77061. <doc>
  77062. <![CDATA[This is an {@link UserLogEvent} sent when the jvm finishes.]]>
  77063. </doc>
  77064. </class>
  77065. <!-- end class org.apache.hadoop.mapreduce.server.tasktracker.userlogs.JvmFinishedEvent -->
  77066. <!-- start class org.apache.hadoop.mapreduce.server.tasktracker.userlogs.UserLogEvent -->
  77067. <class name="UserLogEvent" extends="java.lang.Object"
  77068. abstract="true"
  77069. static="false" final="false" visibility="public"
  77070. deprecated="not deprecated">
  77071. <constructor name="UserLogEvent" type="org.apache.hadoop.mapreduce.server.tasktracker.userlogs.UserLogEvent.EventType"
  77072. static="false" final="false" visibility="protected"
  77073. deprecated="not deprecated">
  77074. </constructor>
  77075. <method name="getEventType" return="org.apache.hadoop.mapreduce.server.tasktracker.userlogs.UserLogEvent.EventType"
  77076. abstract="false" native="false" synchronized="false"
  77077. static="false" final="false" visibility="public"
  77078. deprecated="not deprecated">
  77079. <doc>
  77080. <![CDATA[Return the {@link EventType}.
  77081. @return the {@link EventType}.]]>
  77082. </doc>
  77083. </method>
  77084. <doc>
  77085. <![CDATA[A directive from the various components of {@link TaskTracker} to the
  77086. {@link UserLogManager} to inform about an event.]]>
  77087. </doc>
  77088. </class>
  77089. <!-- end class org.apache.hadoop.mapreduce.server.tasktracker.userlogs.UserLogEvent -->
  77090. <!-- start class org.apache.hadoop.mapreduce.server.tasktracker.userlogs.UserLogEvent.EventType -->
  77091. <class name="UserLogEvent.EventType" extends="java.lang.Enum"
  77092. abstract="false"
  77093. static="true" final="true" visibility="public"
  77094. deprecated="not deprecated">
  77095. <method name="values" return="org.apache.hadoop.mapreduce.server.tasktracker.userlogs.UserLogEvent.EventType[]"
  77096. abstract="false" native="false" synchronized="false"
  77097. static="true" final="false" visibility="public"
  77098. deprecated="not deprecated">
  77099. </method>
  77100. <method name="valueOf" return="org.apache.hadoop.mapreduce.server.tasktracker.userlogs.UserLogEvent.EventType"
  77101. abstract="false" native="false" synchronized="false"
  77102. static="true" final="false" visibility="public"
  77103. deprecated="not deprecated">
  77104. <param name="name" type="java.lang.String"/>
  77105. </method>
  77106. <field name="JVM_FINISHED" type="org.apache.hadoop.mapreduce.server.tasktracker.userlogs.UserLogEvent.EventType"
  77107. transient="false" volatile="false"
  77108. static="true" final="true" visibility="public"
  77109. deprecated="not deprecated">
  77110. </field>
  77111. <field name="JOB_STARTED" type="org.apache.hadoop.mapreduce.server.tasktracker.userlogs.UserLogEvent.EventType"
  77112. transient="false" volatile="false"
  77113. static="true" final="true" visibility="public"
  77114. deprecated="not deprecated">
  77115. </field>
  77116. <field name="JOB_COMPLETED" type="org.apache.hadoop.mapreduce.server.tasktracker.userlogs.UserLogEvent.EventType"
  77117. transient="false" volatile="false"
  77118. static="true" final="true" visibility="public"
  77119. deprecated="not deprecated">
  77120. </field>
  77121. <field name="DELETE_JOB" type="org.apache.hadoop.mapreduce.server.tasktracker.userlogs.UserLogEvent.EventType"
  77122. transient="false" volatile="false"
  77123. static="true" final="true" visibility="public"
  77124. deprecated="not deprecated">
  77125. </field>
  77126. </class>
  77127. <!-- end class org.apache.hadoop.mapreduce.server.tasktracker.userlogs.UserLogEvent.EventType -->
  77128. <!-- start class org.apache.hadoop.mapreduce.server.tasktracker.userlogs.UserLogManager -->
  77129. <class name="UserLogManager" extends="java.lang.Object"
  77130. abstract="false"
  77131. static="false" final="false" visibility="public"
  77132. deprecated="not deprecated">
  77133. <constructor name="UserLogManager" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.mapred.TaskController"
  77134. static="false" final="false" visibility="public"
  77135. deprecated="not deprecated">
  77136. <exception name="IOException" type="java.io.IOException"/>
  77137. <doc>
  77138. <![CDATA[Create the user log manager to manage user logs on {@link TaskTracker}.
  77139. It should be explicitly started using {@link #start()} to start functioning
  77140. @param conf The {@link Configuration}
  77141. @param taskController The task controller to delete the log files
  77142. @throws IOException]]>
  77143. </doc>
  77144. </constructor>
  77145. <constructor name="UserLogManager" type="org.apache.hadoop.conf.Configuration"
  77146. static="false" final="false" visibility="public"
  77147. deprecated="not deprecated">
  77148. <exception name="IOException" type="java.io.IOException"/>
  77149. <doc>
  77150. <![CDATA[Create the user log manager to manage user logs on {@link TaskTracker}.
  77151. This constructor is there mainly for unit tests.
  77152. @param conf The {@link Configuration}
  77153. @throws IOException]]>
  77154. </doc>
  77155. </constructor>
  77156. <method name="getTaskController" return="org.apache.hadoop.mapred.TaskController"
  77157. abstract="false" native="false" synchronized="false"
  77158. static="false" final="false" visibility="public"
  77159. deprecated="not deprecated">
  77160. <doc>
  77161. <![CDATA[Get the taskController for deleting logs.
  77162. @return the TaskController]]>
  77163. </doc>
  77164. </method>
  77165. <method name="start"
  77166. abstract="false" native="false" synchronized="false"
  77167. static="false" final="false" visibility="public"
  77168. deprecated="not deprecated">
  77169. <doc>
  77170. <![CDATA[Starts managing the logs]]>
  77171. </doc>
  77172. </method>
  77173. <method name="monitor"
  77174. abstract="false" native="false" synchronized="false"
  77175. static="false" final="false" visibility="protected"
  77176. deprecated="not deprecated">
  77177. <exception name="Exception" type="java.lang.Exception"/>
  77178. </method>
  77179. <method name="processEvent"
  77180. abstract="false" native="false" synchronized="false"
  77181. static="false" final="false" visibility="protected"
  77182. deprecated="not deprecated">
  77183. <param name="event" type="org.apache.hadoop.mapreduce.server.tasktracker.userlogs.UserLogEvent"/>
  77184. <exception name="IOException" type="java.io.IOException"/>
  77185. </method>
  77186. <method name="clearOldUserLogs"
  77187. abstract="false" native="false" synchronized="false"
  77188. static="false" final="false" visibility="public"
  77189. deprecated="not deprecated">
  77190. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  77191. <exception name="IOException" type="java.io.IOException"/>
  77192. <doc>
  77193. <![CDATA[Called during TaskTracker restart/re-init.
  77194. @param conf
  77195. TT's conf
  77196. @throws IOException]]>
  77197. </doc>
  77198. </method>
  77199. <method name="addLogEvent"
  77200. abstract="false" native="false" synchronized="false"
  77201. static="false" final="false" visibility="public"
  77202. deprecated="not deprecated">
  77203. <param name="event" type="org.apache.hadoop.mapreduce.server.tasktracker.userlogs.UserLogEvent"/>
  77204. <doc>
  77205. <![CDATA[Add the {@link UserLogEvent} for processing.
  77206. @param event]]>
  77207. </doc>
  77208. </method>
  77209. <method name="getUserLogCleaner" return="org.apache.hadoop.mapred.UserLogCleaner"
  77210. abstract="false" native="false" synchronized="false"
  77211. static="false" final="false" visibility="public"
  77212. deprecated="not deprecated">
  77213. <doc>
  77214. <![CDATA[Get {@link UserLogCleaner}.
  77215. This method is called only from unit tests.
  77216. @return {@link UserLogCleaner}]]>
  77217. </doc>
  77218. </method>
  77219. <doc>
  77220. <![CDATA[This manages user logs on the {@link TaskTracker}.]]>
  77221. </doc>
  77222. </class>
  77223. <!-- end class org.apache.hadoop.mapreduce.server.tasktracker.userlogs.UserLogManager -->
  77224. </package>
  77225. <package name="org.apache.hadoop.mapreduce.split">
  77226. <!-- start class org.apache.hadoop.mapreduce.split.JobSplit -->
  77227. <class name="JobSplit" extends="java.lang.Object"
  77228. abstract="false"
  77229. static="false" final="false" visibility="public"
  77230. deprecated="not deprecated">
  77231. <constructor name="JobSplit"
  77232. static="false" final="false" visibility="public"
  77233. deprecated="not deprecated">
  77234. </constructor>
  77235. <field name="EMPTY_TASK_SPLIT" type="org.apache.hadoop.mapreduce.split.JobSplit.TaskSplitMetaInfo"
  77236. transient="false" volatile="false"
  77237. static="true" final="true" visibility="public"
  77238. deprecated="not deprecated">
  77239. </field>
  77240. <doc>
  77241. <![CDATA[This class groups the fundamental classes associated with
  77242. reading/writing splits. The split information is divided into
  77243. two parts based on the consumer of the information. The two
  77244. parts are the split meta information, and the raw split
  77245. information. The first part is consumed by the JobTracker to
  77246. create the tasks' locality data structures. The second part is
  77247. used by the maps at runtime to know what to do!
  77248. These pieces of information are written to two separate files.
  77249. The metainformation file is slurped by the JobTracker during
  77250. job initialization. A map task gets the meta information during
  77251. the launch and it reads the raw split bytes directly from the
  77252. file.]]>
  77253. </doc>
  77254. </class>
  77255. <!-- end class org.apache.hadoop.mapreduce.split.JobSplit -->
  77256. <!-- start class org.apache.hadoop.mapreduce.split.JobSplit.SplitMetaInfo -->
  77257. <class name="JobSplit.SplitMetaInfo" extends="java.lang.Object"
  77258. abstract="false"
  77259. static="true" final="false" visibility="public"
  77260. deprecated="not deprecated">
  77261. <implements name="org.apache.hadoop.io.Writable"/>
  77262. <constructor name="JobSplit.SplitMetaInfo"
  77263. static="false" final="false" visibility="public"
  77264. deprecated="not deprecated">
  77265. </constructor>
  77266. <constructor name="JobSplit.SplitMetaInfo" type="java.lang.String[], long, long"
  77267. static="false" final="false" visibility="public"
  77268. deprecated="not deprecated">
  77269. </constructor>
  77270. <constructor name="JobSplit.SplitMetaInfo" type="org.apache.hadoop.mapreduce.InputSplit, long"
  77271. static="false" final="false" visibility="public"
  77272. deprecated="not deprecated">
  77273. <exception name="IOException" type="java.io.IOException"/>
  77274. </constructor>
  77275. <method name="getLocations" return="java.lang.String[]"
  77276. abstract="false" native="false" synchronized="false"
  77277. static="false" final="false" visibility="public"
  77278. deprecated="not deprecated">
  77279. </method>
  77280. <method name="getStartOffset" return="long"
  77281. abstract="false" native="false" synchronized="false"
  77282. static="false" final="false" visibility="public"
  77283. deprecated="not deprecated">
  77284. </method>
  77285. <method name="getInputDataLength" return="long"
  77286. abstract="false" native="false" synchronized="false"
  77287. static="false" final="false" visibility="public"
  77288. deprecated="not deprecated">
  77289. </method>
  77290. <method name="setInputDataLocations"
  77291. abstract="false" native="false" synchronized="false"
  77292. static="false" final="false" visibility="public"
  77293. deprecated="not deprecated">
  77294. <param name="locations" type="java.lang.String[]"/>
  77295. </method>
  77296. <method name="setInputDataLength"
  77297. abstract="false" native="false" synchronized="false"
  77298. static="false" final="false" visibility="public"
  77299. deprecated="not deprecated">
  77300. <param name="length" type="long"/>
  77301. </method>
  77302. <method name="readFields"
  77303. abstract="false" native="false" synchronized="false"
  77304. static="false" final="false" visibility="public"
  77305. deprecated="not deprecated">
  77306. <param name="in" type="java.io.DataInput"/>
  77307. <exception name="IOException" type="java.io.IOException"/>
  77308. </method>
  77309. <method name="write"
  77310. abstract="false" native="false" synchronized="false"
  77311. static="false" final="false" visibility="public"
  77312. deprecated="not deprecated">
  77313. <param name="out" type="java.io.DataOutput"/>
  77314. <exception name="IOException" type="java.io.IOException"/>
  77315. </method>
  77316. <method name="toString" return="java.lang.String"
  77317. abstract="false" native="false" synchronized="false"
  77318. static="false" final="false" visibility="public"
  77319. deprecated="not deprecated">
  77320. </method>
  77321. <doc>
  77322. <![CDATA[This represents the meta information about the task split.
  77323. The main fields are
  77324. - start offset in actual split
  77325. - data length that will be processed in this split
  77326. - hosts on which this split is local]]>
  77327. </doc>
  77328. </class>
  77329. <!-- end class org.apache.hadoop.mapreduce.split.JobSplit.SplitMetaInfo -->
  77330. <!-- start class org.apache.hadoop.mapreduce.split.JobSplit.TaskSplitIndex -->
  77331. <class name="JobSplit.TaskSplitIndex" extends="java.lang.Object"
  77332. abstract="false"
  77333. static="true" final="false" visibility="public"
  77334. deprecated="not deprecated">
  77335. <constructor name="JobSplit.TaskSplitIndex"
  77336. static="false" final="false" visibility="public"
  77337. deprecated="not deprecated">
  77338. </constructor>
  77339. <constructor name="JobSplit.TaskSplitIndex" type="java.lang.String, long"
  77340. static="false" final="false" visibility="public"
  77341. deprecated="not deprecated">
  77342. </constructor>
  77343. <method name="getStartOffset" return="long"
  77344. abstract="false" native="false" synchronized="false"
  77345. static="false" final="false" visibility="public"
  77346. deprecated="not deprecated">
  77347. </method>
  77348. <method name="getSplitLocation" return="java.lang.String"
  77349. abstract="false" native="false" synchronized="false"
  77350. static="false" final="false" visibility="public"
  77351. deprecated="not deprecated">
  77352. </method>
  77353. <method name="readFields"
  77354. abstract="false" native="false" synchronized="false"
  77355. static="false" final="false" visibility="public"
  77356. deprecated="not deprecated">
  77357. <param name="in" type="java.io.DataInput"/>
  77358. <exception name="IOException" type="java.io.IOException"/>
  77359. </method>
  77360. <method name="write"
  77361. abstract="false" native="false" synchronized="false"
  77362. static="false" final="false" visibility="public"
  77363. deprecated="not deprecated">
  77364. <param name="out" type="java.io.DataOutput"/>
  77365. <exception name="IOException" type="java.io.IOException"/>
  77366. </method>
  77367. <doc>
  77368. <![CDATA[This represents the meta information about the task split that the
  77369. task gets]]>
  77370. </doc>
  77371. </class>
  77372. <!-- end class org.apache.hadoop.mapreduce.split.JobSplit.TaskSplitIndex -->
  77373. <!-- start class org.apache.hadoop.mapreduce.split.JobSplit.TaskSplitMetaInfo -->
  77374. <class name="JobSplit.TaskSplitMetaInfo" extends="java.lang.Object"
  77375. abstract="false"
  77376. static="true" final="false" visibility="public"
  77377. deprecated="not deprecated">
  77378. <constructor name="JobSplit.TaskSplitMetaInfo"
  77379. static="false" final="false" visibility="public"
  77380. deprecated="not deprecated">
  77381. </constructor>
  77382. <constructor name="JobSplit.TaskSplitMetaInfo" type="org.apache.hadoop.mapreduce.split.JobSplit.TaskSplitIndex, java.lang.String[], long"
  77383. static="false" final="false" visibility="public"
  77384. deprecated="not deprecated">
  77385. </constructor>
  77386. <constructor name="JobSplit.TaskSplitMetaInfo" type="org.apache.hadoop.mapreduce.InputSplit, long"
  77387. static="false" final="false" visibility="public"
  77388. deprecated="not deprecated">
  77389. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  77390. <exception name="IOException" type="java.io.IOException"/>
  77391. </constructor>
  77392. <constructor name="JobSplit.TaskSplitMetaInfo" type="java.lang.String[], long, long"
  77393. static="false" final="false" visibility="public"
  77394. deprecated="not deprecated">
  77395. </constructor>
  77396. <method name="getSplitIndex" return="org.apache.hadoop.mapreduce.split.JobSplit.TaskSplitIndex"
  77397. abstract="false" native="false" synchronized="false"
  77398. static="false" final="false" visibility="public"
  77399. deprecated="not deprecated">
  77400. </method>
  77401. <method name="getSplitLocation" return="java.lang.String"
  77402. abstract="false" native="false" synchronized="false"
  77403. static="false" final="false" visibility="public"
  77404. deprecated="not deprecated">
  77405. </method>
  77406. <method name="getInputDataLength" return="long"
  77407. abstract="false" native="false" synchronized="false"
  77408. static="false" final="false" visibility="public"
  77409. deprecated="not deprecated">
  77410. </method>
  77411. <method name="getLocations" return="java.lang.String[]"
  77412. abstract="false" native="false" synchronized="false"
  77413. static="false" final="false" visibility="public"
  77414. deprecated="not deprecated">
  77415. </method>
  77416. <method name="getStartOffset" return="long"
  77417. abstract="false" native="false" synchronized="false"
  77418. static="false" final="false" visibility="public"
  77419. deprecated="not deprecated">
  77420. </method>
  77421. <doc>
  77422. <![CDATA[This represents the meta information about the task split that the
  77423. JobTracker creates]]>
  77424. </doc>
  77425. </class>
  77426. <!-- end class org.apache.hadoop.mapreduce.split.JobSplit.TaskSplitMetaInfo -->
  77427. <!-- start class org.apache.hadoop.mapreduce.split.JobSplitWriter -->
  77428. <class name="JobSplitWriter" extends="java.lang.Object"
  77429. abstract="false"
  77430. static="false" final="false" visibility="public"
  77431. deprecated="not deprecated">
  77432. <constructor name="JobSplitWriter"
  77433. static="false" final="false" visibility="public"
  77434. deprecated="not deprecated">
  77435. </constructor>
  77436. <method name="createSplitFiles"
  77437. abstract="false" native="false" synchronized="false"
  77438. static="true" final="false" visibility="public"
  77439. deprecated="not deprecated">
  77440. <param name="jobSubmitDir" type="org.apache.hadoop.fs.Path"/>
  77441. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  77442. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  77443. <param name="splits" type="java.util.List"/>
  77444. <exception name="IOException" type="java.io.IOException"/>
  77445. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  77446. </method>
  77447. <method name="createSplitFiles"
  77448. abstract="false" native="false" synchronized="false"
  77449. static="true" final="false" visibility="public"
  77450. deprecated="not deprecated">
  77451. <param name="jobSubmitDir" type="org.apache.hadoop.fs.Path"/>
  77452. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  77453. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  77454. <param name="splits" type="org.apache.hadoop.mapreduce.InputSplit[]"/>
  77455. <exception name="IOException" type="java.io.IOException"/>
  77456. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  77457. </method>
  77458. <method name="createSplitFiles"
  77459. abstract="false" native="false" synchronized="false"
  77460. static="true" final="false" visibility="public"
  77461. deprecated="not deprecated">
  77462. <param name="jobSubmitDir" type="org.apache.hadoop.fs.Path"/>
  77463. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  77464. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  77465. <param name="splits" type="org.apache.hadoop.mapred.InputSplit[]"/>
  77466. <exception name="IOException" type="java.io.IOException"/>
  77467. </method>
  77468. <doc>
  77469. <![CDATA[The class that is used by the Job clients to write splits (both the meta
  77470. and the raw bytes parts)]]>
  77471. </doc>
  77472. </class>
  77473. <!-- end class org.apache.hadoop.mapreduce.split.JobSplitWriter -->
  77474. <!-- start class org.apache.hadoop.mapreduce.split.SplitMetaInfoReader -->
  77475. <class name="SplitMetaInfoReader" extends="java.lang.Object"
  77476. abstract="false"
  77477. static="false" final="false" visibility="public"
  77478. deprecated="not deprecated">
  77479. <constructor name="SplitMetaInfoReader"
  77480. static="false" final="false" visibility="public"
  77481. deprecated="not deprecated">
  77482. </constructor>
  77483. <method name="readSplitMetaInfo" return="org.apache.hadoop.mapreduce.split.JobSplit.TaskSplitMetaInfo[]"
  77484. abstract="false" native="false" synchronized="false"
  77485. static="true" final="false" visibility="public"
  77486. deprecated="not deprecated">
  77487. <param name="jobId" type="org.apache.hadoop.mapreduce.JobID"/>
  77488. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  77489. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  77490. <param name="jobSubmitDir" type="org.apache.hadoop.fs.Path"/>
  77491. <exception name="IOException" type="java.io.IOException"/>
  77492. </method>
  77493. <doc>
  77494. <![CDATA[A (internal) utility that reads the split meta info and creates
  77495. split meta info objects]]>
  77496. </doc>
  77497. </class>
  77498. <!-- end class org.apache.hadoop.mapreduce.split.SplitMetaInfoReader -->
  77499. </package>
  77500. <package name="org.apache.hadoop.tools">
  77501. <!-- start class org.apache.hadoop.tools.DistCh -->
  77502. <class name="DistCh" extends="org.apache.hadoop.tools.DistTool"
  77503. abstract="false"
  77504. static="false" final="false" visibility="public"
  77505. deprecated="not deprecated">
  77506. <method name="run" return="int"
  77507. abstract="false" native="false" synchronized="false"
  77508. static="false" final="false" visibility="public"
  77509. deprecated="not deprecated">
  77510. <param name="args" type="java.lang.String[]"/>
  77511. <exception name="Exception" type="java.lang.Exception"/>
  77512. <doc>
  77513. <![CDATA[This is the main driver for recursively changing files properties.]]>
  77514. </doc>
  77515. </method>
  77516. <method name="main"
  77517. abstract="false" native="false" synchronized="false"
  77518. static="true" final="false" visibility="public"
  77519. deprecated="not deprecated">
  77520. <param name="args" type="java.lang.String[]"/>
  77521. <exception name="Exception" type="java.lang.Exception"/>
  77522. </method>
  77523. <doc>
  77524. <![CDATA[A Map-reduce program to recursively change files properties
  77525. such as owner, group and permission.]]>
  77526. </doc>
  77527. </class>
  77528. <!-- end class org.apache.hadoop.tools.DistCh -->
  77529. <!-- start class org.apache.hadoop.tools.DistCp -->
  77530. <class name="DistCp" extends="java.lang.Object"
  77531. abstract="false"
  77532. static="false" final="false" visibility="public"
  77533. deprecated="not deprecated">
  77534. <implements name="org.apache.hadoop.util.Tool"/>
  77535. <constructor name="DistCp" type="org.apache.hadoop.conf.Configuration"
  77536. static="false" final="false" visibility="public"
  77537. deprecated="not deprecated">
  77538. </constructor>
  77539. <method name="setConf"
  77540. abstract="false" native="false" synchronized="false"
  77541. static="false" final="false" visibility="public"
  77542. deprecated="not deprecated">
  77543. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  77544. </method>
  77545. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  77546. abstract="false" native="false" synchronized="false"
  77547. static="false" final="false" visibility="public"
  77548. deprecated="not deprecated">
  77549. </method>
  77550. <method name="copy"
  77551. abstract="false" native="false" synchronized="false"
  77552. static="true" final="false" visibility="public"
  77553. deprecated="not deprecated">
  77554. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  77555. <param name="srcPath" type="java.lang.String"/>
  77556. <param name="destPath" type="java.lang.String"/>
  77557. <param name="logPath" type="org.apache.hadoop.fs.Path"/>
  77558. <param name="srcAsList" type="boolean"/>
  77559. <param name="ignoreReadFailures" type="boolean"/>
  77560. <exception name="IOException" type="java.io.IOException"/>
  77561. </method>
  77562. <method name="run" return="int"
  77563. abstract="false" native="false" synchronized="false"
  77564. static="false" final="false" visibility="public"
  77565. deprecated="not deprecated">
  77566. <param name="args" type="java.lang.String[]"/>
  77567. <doc>
  77568. <![CDATA[This is the main driver for recursively copying directories
  77569. across file systems. It takes at least two cmdline parameters. A source
  77570. URL and a destination URL. It then essentially does an "ls -lR" on the
  77571. source URL, and writes the output in a round-robin manner to all the map
  77572. input files. The mapper actually copies the files allotted to it. The
  77573. reduce is empty.]]>
  77574. </doc>
  77575. </method>
  77576. <method name="main"
  77577. abstract="false" native="false" synchronized="false"
  77578. static="true" final="false" visibility="public"
  77579. deprecated="not deprecated">
  77580. <param name="args" type="java.lang.String[]"/>
  77581. <exception name="Exception" type="java.lang.Exception"/>
  77582. </method>
  77583. <method name="getRandomId" return="java.lang.String"
  77584. abstract="false" native="false" synchronized="false"
  77585. static="true" final="false" visibility="public"
  77586. deprecated="not deprecated">
  77587. </method>
  77588. <field name="LOG" type="org.apache.commons.logging.Log"
  77589. transient="false" volatile="false"
  77590. static="true" final="true" visibility="public"
  77591. deprecated="not deprecated">
  77592. </field>
  77593. <doc>
  77594. <![CDATA[A Map-reduce program to recursively copy directories between
  77595. different file-systems.]]>
  77596. </doc>
  77597. </class>
  77598. <!-- end class org.apache.hadoop.tools.DistCp -->
  77599. <!-- start class org.apache.hadoop.tools.DistCp.DuplicationException -->
  77600. <class name="DistCp.DuplicationException" extends="java.io.IOException"
  77601. abstract="false"
  77602. static="true" final="false" visibility="public"
  77603. deprecated="not deprecated">
  77604. <field name="ERROR_CODE" type="int"
  77605. transient="false" volatile="false"
  77606. static="true" final="true" visibility="public"
  77607. deprecated="not deprecated">
  77608. <doc>
  77609. <![CDATA[Error code for this exception]]>
  77610. </doc>
  77611. </field>
  77612. <doc>
  77613. <![CDATA[An exception class for duplicated source files.]]>
  77614. </doc>
  77615. </class>
  77616. <!-- end class org.apache.hadoop.tools.DistCp.DuplicationException -->
  77617. <!-- start class org.apache.hadoop.tools.HadoopArchives -->
  77618. <class name="HadoopArchives" extends="java.lang.Object"
  77619. abstract="false"
  77620. static="false" final="false" visibility="public"
  77621. deprecated="not deprecated">
  77622. <implements name="org.apache.hadoop.util.Tool"/>
  77623. <constructor name="HadoopArchives" type="org.apache.hadoop.conf.Configuration"
  77624. static="false" final="false" visibility="public"
  77625. deprecated="not deprecated">
  77626. </constructor>
  77627. <method name="setConf"
  77628. abstract="false" native="false" synchronized="false"
  77629. static="false" final="false" visibility="public"
  77630. deprecated="not deprecated">
  77631. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  77632. </method>
  77633. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  77634. abstract="false" native="false" synchronized="false"
  77635. static="false" final="false" visibility="public"
  77636. deprecated="not deprecated">
  77637. </method>
  77638. <method name="run" return="int"
  77639. abstract="false" native="false" synchronized="false"
  77640. static="false" final="false" visibility="public"
  77641. deprecated="not deprecated">
  77642. <param name="args" type="java.lang.String[]"/>
  77643. <exception name="Exception" type="java.lang.Exception"/>
  77644. <doc>
  77645. <![CDATA[the main driver for creating the archives
  77646. it takes at least three command line parameters. The parent path,
  77647. The src and the dest. It does an lsr on the source paths.
  77648. The mapper created archuves and the reducer creates
  77649. the archive index.]]>
  77650. </doc>
  77651. </method>
  77652. <method name="main"
  77653. abstract="false" native="false" synchronized="false"
  77654. static="true" final="false" visibility="public"
  77655. deprecated="not deprecated">
  77656. <param name="args" type="java.lang.String[]"/>
  77657. <doc>
  77658. <![CDATA[the main functions]]>
  77659. </doc>
  77660. </method>
  77661. <field name="VERSION" type="int"
  77662. transient="false" volatile="false"
  77663. static="true" final="true" visibility="public"
  77664. deprecated="not deprecated">
  77665. </field>
  77666. <doc>
  77667. <![CDATA[a archive creation utility.
  77668. This class provides methods that can be used
  77669. to create hadoop archives. For understanding of
  77670. Hadoop archives look at {@link HarFileSystem}.]]>
  77671. </doc>
  77672. </class>
  77673. <!-- end class org.apache.hadoop.tools.HadoopArchives -->
  77674. <!-- start class org.apache.hadoop.tools.Logalyzer -->
  77675. <class name="Logalyzer" extends="java.lang.Object"
  77676. abstract="false"
  77677. static="false" final="false" visibility="public"
  77678. deprecated="not deprecated">
  77679. <constructor name="Logalyzer"
  77680. static="false" final="false" visibility="public"
  77681. deprecated="not deprecated">
  77682. </constructor>
  77683. <method name="doArchive"
  77684. abstract="false" native="false" synchronized="false"
  77685. static="false" final="false" visibility="public"
  77686. deprecated="not deprecated">
  77687. <param name="logListURI" type="java.lang.String"/>
  77688. <param name="archiveDirectory" type="java.lang.String"/>
  77689. <exception name="IOException" type="java.io.IOException"/>
  77690. <doc>
  77691. <![CDATA[doArchive: Workhorse function to archive log-files.
  77692. @param logListURI : The uri which will serve list of log-files to archive.
  77693. @param archiveDirectory : The directory to store archived logfiles.
  77694. @throws IOException]]>
  77695. </doc>
  77696. </method>
  77697. <method name="doAnalyze"
  77698. abstract="false" native="false" synchronized="false"
  77699. static="false" final="false" visibility="public"
  77700. deprecated="not deprecated">
  77701. <param name="inputFilesDirectory" type="java.lang.String"/>
  77702. <param name="outputDirectory" type="java.lang.String"/>
  77703. <param name="grepPattern" type="java.lang.String"/>
  77704. <param name="sortColumns" type="java.lang.String"/>
  77705. <param name="columnSeparator" type="java.lang.String"/>
  77706. <exception name="IOException" type="java.io.IOException"/>
  77707. <doc>
  77708. <![CDATA[doAnalyze:
  77709. @param inputFilesDirectory : Directory containing the files to be analyzed.
  77710. @param outputDirectory : Directory to store analysis (output).
  77711. @param grepPattern : Pattern to *grep* for.
  77712. @param sortColumns : Sort specification for output.
  77713. @param columnSeparator : Column separator.
  77714. @throws IOException]]>
  77715. </doc>
  77716. </method>
  77717. <method name="main"
  77718. abstract="false" native="false" synchronized="false"
  77719. static="true" final="false" visibility="public"
  77720. deprecated="not deprecated">
  77721. <param name="args" type="java.lang.String[]"/>
  77722. </method>
  77723. <doc>
  77724. <![CDATA[Logalyzer: A utility tool for archiving and analyzing hadoop logs.
  77725. <p>
  77726. This tool supports archiving and anaylzing (sort/grep) of log-files.
  77727. It takes as input
  77728. a) Input uri which will serve uris of the logs to be archived.
  77729. b) Output directory (not mandatory).
  77730. b) Directory on dfs to archive the logs.
  77731. c) The sort/grep patterns for analyzing the files and separator for boundaries.
  77732. Usage:
  77733. Logalyzer -archive -archiveDir <directory to archive logs> -analysis <directory> -logs <log-list uri> -grep <pattern> -sort <col1, col2> -separator <separator>
  77734. <p>]]>
  77735. </doc>
  77736. </class>
  77737. <!-- end class org.apache.hadoop.tools.Logalyzer -->
  77738. <!-- start class org.apache.hadoop.tools.Logalyzer.LogComparator -->
  77739. <class name="Logalyzer.LogComparator" extends="org.apache.hadoop.io.Text.Comparator"
  77740. abstract="false"
  77741. static="true" final="false" visibility="public"
  77742. deprecated="not deprecated">
  77743. <implements name="org.apache.hadoop.conf.Configurable"/>
  77744. <constructor name="Logalyzer.LogComparator"
  77745. static="false" final="false" visibility="public"
  77746. deprecated="not deprecated">
  77747. </constructor>
  77748. <method name="setConf"
  77749. abstract="false" native="false" synchronized="false"
  77750. static="false" final="false" visibility="public"
  77751. deprecated="not deprecated">
  77752. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  77753. </method>
  77754. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  77755. abstract="false" native="false" synchronized="false"
  77756. static="false" final="false" visibility="public"
  77757. deprecated="not deprecated">
  77758. </method>
  77759. <method name="compare" return="int"
  77760. abstract="false" native="false" synchronized="false"
  77761. static="false" final="false" visibility="public"
  77762. deprecated="not deprecated">
  77763. <param name="b1" type="byte[]"/>
  77764. <param name="s1" type="int"/>
  77765. <param name="l1" type="int"/>
  77766. <param name="b2" type="byte[]"/>
  77767. <param name="s2" type="int"/>
  77768. <param name="l2" type="int"/>
  77769. </method>
  77770. <doc>
  77771. <![CDATA[A WritableComparator optimized for UTF8 keys of the logs.]]>
  77772. </doc>
  77773. </class>
  77774. <!-- end class org.apache.hadoop.tools.Logalyzer.LogComparator -->
  77775. <!-- start class org.apache.hadoop.tools.Logalyzer.LogRegexMapper -->
  77776. <class name="Logalyzer.LogRegexMapper" extends="org.apache.hadoop.mapred.MapReduceBase"
  77777. abstract="false"
  77778. static="true" final="false" visibility="public"
  77779. deprecated="not deprecated">
  77780. <implements name="org.apache.hadoop.mapred.Mapper"/>
  77781. <constructor name="Logalyzer.LogRegexMapper"
  77782. static="false" final="false" visibility="public"
  77783. deprecated="not deprecated">
  77784. </constructor>
  77785. <method name="configure"
  77786. abstract="false" native="false" synchronized="false"
  77787. static="false" final="false" visibility="public"
  77788. deprecated="not deprecated">
  77789. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  77790. </method>
  77791. <method name="map"
  77792. abstract="false" native="false" synchronized="false"
  77793. static="false" final="false" visibility="public"
  77794. deprecated="not deprecated">
  77795. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  77796. <param name="value" type="org.apache.hadoop.io.Text"/>
  77797. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  77798. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  77799. <exception name="IOException" type="java.io.IOException"/>
  77800. </method>
  77801. <doc>
  77802. <![CDATA[A {@link Mapper} that extracts text matching a regular expression.]]>
  77803. </doc>
  77804. </class>
  77805. <!-- end class org.apache.hadoop.tools.Logalyzer.LogRegexMapper -->
  77806. </package>
  77807. <package name="org.apache.hadoop.tools.distcp2">
  77808. <!-- start class org.apache.hadoop.tools.distcp2.CopyListing -->
  77809. <class name="CopyListing" extends="org.apache.hadoop.conf.Configured"
  77810. abstract="true"
  77811. static="false" final="false" visibility="public"
  77812. deprecated="not deprecated">
  77813. <constructor name="CopyListing" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.security.Credentials"
  77814. static="false" final="false" visibility="protected"
  77815. deprecated="not deprecated">
  77816. <doc>
  77817. <![CDATA[Protected constructor, to initialize configuration.
  77818. @param configuration The input configuration,
  77819. with which the source/target FileSystems may be accessed.
  77820. @param credentials - Credentials object on which the FS delegation tokens are cached.If null
  77821. delegation token caching is skipped]]>
  77822. </doc>
  77823. </constructor>
  77824. <method name="buildListing"
  77825. abstract="false" native="false" synchronized="false"
  77826. static="false" final="true" visibility="public"
  77827. deprecated="not deprecated">
  77828. <param name="pathToListFile" type="org.apache.hadoop.fs.Path"/>
  77829. <param name="options" type="org.apache.hadoop.tools.distcp2.DistCpOptions"/>
  77830. <exception name="IOException" type="java.io.IOException"/>
  77831. <doc>
  77832. <![CDATA[Build listing function creates the input listing that distcp uses to
  77833. perform the copy.
  77834. The build listing is a sequence file that has relative path of a file in the key
  77835. and the file status information of the source file in the value
  77836. For instance if the source path is /tmp/data and the traversed path is
  77837. /tmp/data/dir1/dir2/file1, then the sequence file would contain
  77838. key: /dir1/dir2/file1 and value: FileStatus(/tmp/data/dir1/dir2/file1)
  77839. File would also contain directory entries. Meaning, if /tmp/data/dir1/dir2/file1
  77840. is the only file under /tmp/data, the resulting sequence file would contain the
  77841. following entries
  77842. key: /dir1 and value: FileStatus(/tmp/data/dir1)
  77843. key: /dir1/dir2 and value: FileStatus(/tmp/data/dir1/dir2)
  77844. key: /dir1/dir2/file1 and value: FileStatus(/tmp/data/dir1/dir2/file1)
  77845. Cases requiring special handling:
  77846. If source path is a file (/tmp/file1), contents of the file will be as follows
  77847. TARGET DOES NOT EXIST: Key-"", Value-FileStatus(/tmp/file1)
  77848. TARGET IS FILE : Key-"", Value-FileStatus(/tmp/file1)
  77849. TARGET IS DIR : Key-"/file1", Value-FileStatus(/tmp/file1)
  77850. @param pathToListFile - Output file where the listing would be stored
  77851. @param options - Input options to distcp
  77852. @throws IOException - Exception if any]]>
  77853. </doc>
  77854. </method>
  77855. <method name="validatePaths"
  77856. abstract="true" native="false" synchronized="false"
  77857. static="false" final="false" visibility="protected"
  77858. deprecated="not deprecated">
  77859. <param name="options" type="org.apache.hadoop.tools.distcp2.DistCpOptions"/>
  77860. <exception name="IOException" type="java.io.IOException"/>
  77861. <exception name="CopyListing.InvalidInputException" type="org.apache.hadoop.tools.distcp2.CopyListing.InvalidInputException"/>
  77862. <doc>
  77863. <![CDATA[Validate input and output paths
  77864. @param options - Input options
  77865. @throws InvalidInputException: If inputs are invalid
  77866. @throws IOException: any Exception with FS]]>
  77867. </doc>
  77868. </method>
  77869. <method name="doBuildListing"
  77870. abstract="true" native="false" synchronized="false"
  77871. static="false" final="false" visibility="protected"
  77872. deprecated="not deprecated">
  77873. <param name="pathToListFile" type="org.apache.hadoop.fs.Path"/>
  77874. <param name="options" type="org.apache.hadoop.tools.distcp2.DistCpOptions"/>
  77875. <exception name="IOException" type="java.io.IOException"/>
  77876. <doc>
  77877. <![CDATA[The interface to be implemented by sub-classes, to create the source/target file listing.
  77878. @param pathToListFile Path on HDFS where the listing file is written.
  77879. @param options Input Options for DistCp (indicating source/target paths.)
  77880. @throws IOException: Thrown on failure to create the listing file.]]>
  77881. </doc>
  77882. </method>
  77883. <method name="getBytesToCopy" return="long"
  77884. abstract="true" native="false" synchronized="false"
  77885. static="false" final="false" visibility="protected"
  77886. deprecated="not deprecated">
  77887. <doc>
  77888. <![CDATA[Return the total bytes that distCp should copy for the source paths
  77889. This doesn't consider whether file is same should be skipped during copy
  77890. @return total bytes to copy]]>
  77891. </doc>
  77892. </method>
  77893. <method name="getNumberOfPaths" return="long"
  77894. abstract="true" native="false" synchronized="false"
  77895. static="false" final="false" visibility="protected"
  77896. deprecated="not deprecated">
  77897. <doc>
  77898. <![CDATA[Return the total number of paths to distcp, includes directories as well
  77899. This doesn't consider whether file/dir is already present and should be skipped during copy
  77900. @return Total number of paths to distcp]]>
  77901. </doc>
  77902. </method>
  77903. <method name="setCredentials"
  77904. abstract="false" native="false" synchronized="false"
  77905. static="false" final="false" visibility="protected"
  77906. deprecated="not deprecated">
  77907. <param name="credentials" type="org.apache.hadoop.security.Credentials"/>
  77908. <doc>
  77909. <![CDATA[set Credentials store, on which FS delegatin token will be cached
  77910. @param credentials - Credentials object]]>
  77911. </doc>
  77912. </method>
  77913. <method name="getCredentials" return="org.apache.hadoop.security.Credentials"
  77914. abstract="false" native="false" synchronized="false"
  77915. static="false" final="false" visibility="protected"
  77916. deprecated="not deprecated">
  77917. <doc>
  77918. <![CDATA[get credentials to update the delegation tokens for accessed FS objects
  77919. @return Credentials object]]>
  77920. </doc>
  77921. </method>
  77922. <method name="getCopyListing" return="org.apache.hadoop.tools.distcp2.CopyListing"
  77923. abstract="false" native="false" synchronized="false"
  77924. static="true" final="false" visibility="public"
  77925. deprecated="not deprecated">
  77926. <param name="configuration" type="org.apache.hadoop.conf.Configuration"/>
  77927. <param name="credentials" type="org.apache.hadoop.security.Credentials"/>
  77928. <param name="options" type="org.apache.hadoop.tools.distcp2.DistCpOptions"/>
  77929. <exception name="IOException" type="java.io.IOException"/>
  77930. <doc>
  77931. <![CDATA[Public Factory method with which the appropriate CopyListing implementation may be retrieved.
  77932. @param configuration The input configuration.
  77933. @param credentials Credentials object on which the FS delegation tokens are cached
  77934. @param options The input Options, to help choose the appropriate CopyListing Implementation.
  77935. @return An instance of the appropriate CopyListing implementation.
  77936. @throws java.io.IOException - Exception if any]]>
  77937. </doc>
  77938. </method>
  77939. <doc>
  77940. <![CDATA[The CopyListing abstraction is responsible for how the list of
  77941. sources and targets is constructed, for DistCp's copy function.
  77942. The copy-listing should be a SequenceFile<Text, FileStatus>,
  77943. located at the path specified to buildListing(),
  77944. each entry being a pair of (Source relative path, source file status),
  77945. all the paths being fully qualified.]]>
  77946. </doc>
  77947. </class>
  77948. <!-- end class org.apache.hadoop.tools.distcp2.CopyListing -->
  77949. <!-- start class org.apache.hadoop.tools.distcp2.DistCp -->
  77950. <class name="DistCp" extends="org.apache.hadoop.conf.Configured"
  77951. abstract="false"
  77952. static="false" final="false" visibility="public"
  77953. deprecated="not deprecated">
  77954. <implements name="org.apache.hadoop.util.Tool"/>
  77955. <constructor name="DistCp" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.tools.distcp2.DistCpOptions"
  77956. static="false" final="false" visibility="public"
  77957. deprecated="not deprecated">
  77958. <exception name="Exception" type="java.lang.Exception"/>
  77959. <doc>
  77960. <![CDATA[Public Constructor. Creates DistCp object with specified input-parameters.
  77961. (E.g. source-paths, target-location, etc.)
  77962. @param inputOptions Options (indicating source-paths, target-location.)
  77963. @param configuration The Hadoop configuration against which the Copy-mapper must run.
  77964. @throws Exception, on failure.]]>
  77965. </doc>
  77966. </constructor>
  77967. <method name="run" return="int"
  77968. abstract="false" native="false" synchronized="false"
  77969. static="false" final="false" visibility="public"
  77970. deprecated="not deprecated">
  77971. <param name="argv" type="java.lang.String[]"/>
  77972. <doc>
  77973. <![CDATA[Implementation of Tool::run(). Orchestrates the copy of source file(s)
  77974. to target location, by:
  77975. 1. Creating a list of files to be copied to target.
  77976. 2. Launching a Map-only job to copy the files. (Delegates to execute().)
  77977. @param argv List of arguments passed to DistCp, from the ToolRunner.
  77978. @return On success, it returns 0. Else, -1.]]>
  77979. </doc>
  77980. </method>
  77981. <method name="execute" return="org.apache.hadoop.mapreduce.Job"
  77982. abstract="false" native="false" synchronized="false"
  77983. static="false" final="false" visibility="public"
  77984. deprecated="not deprecated">
  77985. <exception name="Exception" type="java.lang.Exception"/>
  77986. <doc>
  77987. <![CDATA[Implements the core-execution. Creates the file-list for copy,
  77988. and launches the Hadoop-job, to do the copy.
  77989. @return Job handle
  77990. @throws Exception, on failure.]]>
  77991. </doc>
  77992. </method>
  77993. <method name="createInputFileListing" return="org.apache.hadoop.fs.Path"
  77994. abstract="false" native="false" synchronized="false"
  77995. static="false" final="false" visibility="protected"
  77996. deprecated="not deprecated">
  77997. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  77998. <exception name="IOException" type="java.io.IOException"/>
  77999. <doc>
  78000. <![CDATA[Create input listing by invoking an appropriate copy listing
  78001. implementation. Also add delegation tokens for each path
  78002. to job's credential store
  78003. @param job - Handle to job
  78004. @return Returns the path where the copy listing is created
  78005. @throws IOException - If any]]>
  78006. </doc>
  78007. </method>
  78008. <method name="getFileListingPath" return="org.apache.hadoop.fs.Path"
  78009. abstract="false" native="false" synchronized="false"
  78010. static="false" final="false" visibility="protected"
  78011. deprecated="not deprecated">
  78012. <exception name="IOException" type="java.io.IOException"/>
  78013. <doc>
  78014. <![CDATA[Get default name of the copy listing file. Use the meta folder
  78015. to create the copy listing file
  78016. @return - Path where the copy listing file has to be saved
  78017. @throws IOException - Exception if any]]>
  78018. </doc>
  78019. </method>
  78020. <method name="main"
  78021. abstract="false" native="false" synchronized="false"
  78022. static="true" final="false" visibility="public"
  78023. deprecated="not deprecated">
  78024. <param name="argv" type="java.lang.String[]"/>
  78025. <doc>
  78026. <![CDATA[Main function of the DistCp program. Parses the input arguments (via OptionsParser),
  78027. and invokes the DistCp::run() method, via the ToolRunner.
  78028. @param argv Command-line arguments sent to DistCp.]]>
  78029. </doc>
  78030. </method>
  78031. <field name="rand" type="java.util.Random"
  78032. transient="false" volatile="false"
  78033. static="true" final="true" visibility="public"
  78034. deprecated="not deprecated">
  78035. </field>
  78036. <doc>
  78037. <![CDATA[DistCp is the main driver-class for DistCpV2.
  78038. For command-line use, DistCp::main() orchestrates the parsing of command-line
  78039. parameters and the launch of the DistCp job.
  78040. For programmatic use, a DistCp object can be constructed by specifying
  78041. options (in a DistCpOptions object), and DistCp::execute() may be used to
  78042. launch the copy-job. DistCp may alternatively be sub-classed to fine-tune
  78043. behaviour.]]>
  78044. </doc>
  78045. </class>
  78046. <!-- end class org.apache.hadoop.tools.distcp2.DistCp -->
  78047. <!-- start class org.apache.hadoop.tools.distcp2.DistCpConstants -->
  78048. <class name="DistCpConstants" extends="java.lang.Object"
  78049. abstract="false"
  78050. static="false" final="false" visibility="public"
  78051. deprecated="not deprecated">
  78052. <constructor name="DistCpConstants"
  78053. static="false" final="false" visibility="public"
  78054. deprecated="not deprecated">
  78055. </constructor>
  78056. <field name="DEFAULT_MAPS" type="int"
  78057. transient="false" volatile="false"
  78058. static="true" final="true" visibility="public"
  78059. deprecated="not deprecated">
  78060. </field>
  78061. <field name="DEFAULT_BANDWIDTH_MB" type="int"
  78062. transient="false" volatile="false"
  78063. static="true" final="true" visibility="public"
  78064. deprecated="not deprecated">
  78065. </field>
  78066. <field name="UNIFORMSIZE" type="java.lang.String"
  78067. transient="false" volatile="false"
  78068. static="true" final="true" visibility="public"
  78069. deprecated="not deprecated">
  78070. </field>
  78071. <field name="CONF_LABEL_ATOMIC_COPY" type="java.lang.String"
  78072. transient="false" volatile="false"
  78073. static="true" final="true" visibility="public"
  78074. deprecated="not deprecated">
  78075. <doc>
  78076. <![CDATA[Constants mapping to command line switches/input options]]>
  78077. </doc>
  78078. </field>
  78079. <field name="CONF_LABEL_WORK_PATH" type="java.lang.String"
  78080. transient="false" volatile="false"
  78081. static="true" final="true" visibility="public"
  78082. deprecated="not deprecated">
  78083. </field>
  78084. <field name="CONF_LABEL_LOG_PATH" type="java.lang.String"
  78085. transient="false" volatile="false"
  78086. static="true" final="true" visibility="public"
  78087. deprecated="not deprecated">
  78088. </field>
  78089. <field name="CONF_LABEL_IGNORE_FAILURES" type="java.lang.String"
  78090. transient="false" volatile="false"
  78091. static="true" final="true" visibility="public"
  78092. deprecated="not deprecated">
  78093. </field>
  78094. <field name="CONF_LABEL_PRESERVE_STATUS" type="java.lang.String"
  78095. transient="false" volatile="false"
  78096. static="true" final="true" visibility="public"
  78097. deprecated="not deprecated">
  78098. </field>
  78099. <field name="CONF_LABEL_SYNC_FOLDERS" type="java.lang.String"
  78100. transient="false" volatile="false"
  78101. static="true" final="true" visibility="public"
  78102. deprecated="not deprecated">
  78103. </field>
  78104. <field name="CONF_LABEL_DELETE_MISSING" type="java.lang.String"
  78105. transient="false" volatile="false"
  78106. static="true" final="true" visibility="public"
  78107. deprecated="not deprecated">
  78108. </field>
  78109. <field name="CONF_LABEL_SSL_CONF" type="java.lang.String"
  78110. transient="false" volatile="false"
  78111. static="true" final="true" visibility="public"
  78112. deprecated="not deprecated">
  78113. </field>
  78114. <field name="CONF_LABEL_MAX_MAPS" type="java.lang.String"
  78115. transient="false" volatile="false"
  78116. static="true" final="true" visibility="public"
  78117. deprecated="not deprecated">
  78118. </field>
  78119. <field name="CONF_LABEL_SOURCE_LISTING" type="java.lang.String"
  78120. transient="false" volatile="false"
  78121. static="true" final="true" visibility="public"
  78122. deprecated="not deprecated">
  78123. </field>
  78124. <field name="CONF_LABEL_COPY_STRATEGY" type="java.lang.String"
  78125. transient="false" volatile="false"
  78126. static="true" final="true" visibility="public"
  78127. deprecated="not deprecated">
  78128. </field>
  78129. <field name="CONF_LABEL_SKIP_CRC" type="java.lang.String"
  78130. transient="false" volatile="false"
  78131. static="true" final="true" visibility="public"
  78132. deprecated="not deprecated">
  78133. </field>
  78134. <field name="CONF_LABEL_OVERWRITE" type="java.lang.String"
  78135. transient="false" volatile="false"
  78136. static="true" final="true" visibility="public"
  78137. deprecated="not deprecated">
  78138. </field>
  78139. <field name="CONF_LABEL_BANDWIDTH_MB" type="java.lang.String"
  78140. transient="false" volatile="false"
  78141. static="true" final="true" visibility="public"
  78142. deprecated="not deprecated">
  78143. </field>
  78144. <field name="CONF_LABEL_TOTAL_BYTES_TO_BE_COPIED" type="java.lang.String"
  78145. transient="false" volatile="false"
  78146. static="true" final="true" visibility="public"
  78147. deprecated="not deprecated">
  78148. </field>
  78149. <field name="CONF_LABEL_TOTAL_NUMBER_OF_RECORDS" type="java.lang.String"
  78150. transient="false" volatile="false"
  78151. static="true" final="true" visibility="public"
  78152. deprecated="not deprecated">
  78153. </field>
  78154. <field name="CONF_LABEL_SSL_KEYSTORE" type="java.lang.String"
  78155. transient="false" volatile="false"
  78156. static="true" final="true" visibility="public"
  78157. deprecated="not deprecated">
  78158. </field>
  78159. <field name="CONF_LABEL_LISTING_FILE_PATH" type="java.lang.String"
  78160. transient="false" volatile="false"
  78161. static="true" final="true" visibility="public"
  78162. deprecated="not deprecated">
  78163. </field>
  78164. <field name="CONF_LABEL_TARGET_WORK_PATH" type="java.lang.String"
  78165. transient="false" volatile="false"
  78166. static="true" final="true" visibility="public"
  78167. deprecated="not deprecated">
  78168. </field>
  78169. <field name="CONF_LABEL_TARGET_FINAL_PATH" type="java.lang.String"
  78170. transient="false" volatile="false"
  78171. static="true" final="true" visibility="public"
  78172. deprecated="not deprecated">
  78173. </field>
  78174. <field name="CONF_LABEL_DISTCP_JOB_ID" type="java.lang.String"
  78175. transient="false" volatile="false"
  78176. static="true" final="true" visibility="public"
  78177. deprecated="not deprecated">
  78178. <doc>
  78179. <![CDATA[DistCp job id for consumers of the Disctp]]>
  78180. </doc>
  78181. </field>
  78182. <field name="CONF_LABEL_META_FOLDER" type="java.lang.String"
  78183. transient="false" volatile="false"
  78184. static="true" final="true" visibility="public"
  78185. deprecated="not deprecated">
  78186. </field>
  78187. <field name="CONF_LABEL_COPY_LISTING_CLASS" type="java.lang.String"
  78188. transient="false" volatile="false"
  78189. static="true" final="true" visibility="public"
  78190. deprecated="not deprecated">
  78191. </field>
  78192. <field name="CONF_LABEL_SSL_TRUST_STORE_LOCATION" type="java.lang.String"
  78193. transient="false" volatile="false"
  78194. static="true" final="true" visibility="public"
  78195. deprecated="not deprecated">
  78196. <doc>
  78197. <![CDATA[Conf label for SSL Trust-store location.]]>
  78198. </doc>
  78199. </field>
  78200. <field name="CONF_LABEL_SSL_KEY_STORE_LOCATION" type="java.lang.String"
  78201. transient="false" volatile="false"
  78202. static="true" final="true" visibility="public"
  78203. deprecated="not deprecated">
  78204. <doc>
  78205. <![CDATA[Conf label for SSL Key-store location.]]>
  78206. </doc>
  78207. </field>
  78208. <field name="SUCCESS" type="int"
  78209. transient="false" volatile="false"
  78210. static="true" final="true" visibility="public"
  78211. deprecated="not deprecated">
  78212. <doc>
  78213. <![CDATA[Constants for DistCp return code to shell / consumer of ToolRunner's run]]>
  78214. </doc>
  78215. </field>
  78216. <field name="INVALID_ARGUMENT" type="int"
  78217. transient="false" volatile="false"
  78218. static="true" final="true" visibility="public"
  78219. deprecated="not deprecated">
  78220. </field>
  78221. <field name="DUPLICATE_INPUT" type="int"
  78222. transient="false" volatile="false"
  78223. static="true" final="true" visibility="public"
  78224. deprecated="not deprecated">
  78225. </field>
  78226. <field name="UNKNOWN_ERROR" type="int"
  78227. transient="false" volatile="false"
  78228. static="true" final="true" visibility="public"
  78229. deprecated="not deprecated">
  78230. </field>
  78231. <doc>
  78232. <![CDATA[Utility class to hold commonly used constants.]]>
  78233. </doc>
  78234. </class>
  78235. <!-- end class org.apache.hadoop.tools.distcp2.DistCpConstants -->
  78236. <!-- start class org.apache.hadoop.tools.distcp2.DistCpOptions -->
  78237. <class name="DistCpOptions" extends="java.lang.Object"
  78238. abstract="false"
  78239. static="false" final="false" visibility="public"
  78240. deprecated="not deprecated">
  78241. <constructor name="DistCpOptions" type="java.util.List, org.apache.hadoop.fs.Path"
  78242. static="false" final="false" visibility="public"
  78243. deprecated="not deprecated">
  78244. <doc>
  78245. <![CDATA[Constructor, to initialize source/target paths.
  78246. @param sourcePaths List of source-paths (including wildcards)
  78247. to be copied to target.
  78248. @param targetPath Destination path for the dist-copy.]]>
  78249. </doc>
  78250. </constructor>
  78251. <constructor name="DistCpOptions" type="org.apache.hadoop.fs.Path, org.apache.hadoop.fs.Path"
  78252. static="false" final="false" visibility="public"
  78253. deprecated="not deprecated">
  78254. <doc>
  78255. <![CDATA[Constructor, to initialize source/target paths.
  78256. @param sourceFileListing File containing list of source paths
  78257. @param targetPath Destination path for the dist-copy.]]>
  78258. </doc>
  78259. </constructor>
  78260. <constructor name="DistCpOptions" type="org.apache.hadoop.tools.distcp2.DistCpOptions"
  78261. static="false" final="false" visibility="public"
  78262. deprecated="not deprecated">
  78263. <doc>
  78264. <![CDATA[Copy constructor.
  78265. @param that DistCpOptions being copied from.]]>
  78266. </doc>
  78267. </constructor>
  78268. <method name="shouldAtomicCommit" return="boolean"
  78269. abstract="false" native="false" synchronized="false"
  78270. static="false" final="false" visibility="public"
  78271. deprecated="not deprecated">
  78272. <doc>
  78273. <![CDATA[Should the data be committed atomically?
  78274. @return true if data should be committed automically. false otherwise]]>
  78275. </doc>
  78276. </method>
  78277. <method name="setAtomicCommit"
  78278. abstract="false" native="false" synchronized="false"
  78279. static="false" final="false" visibility="public"
  78280. deprecated="not deprecated">
  78281. <param name="atomicCommit" type="boolean"/>
  78282. <doc>
  78283. <![CDATA[Set if data need to be committed automatically
  78284. @param atomicCommit - boolean switch]]>
  78285. </doc>
  78286. </method>
  78287. <method name="shouldSyncFolder" 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 sync'ed between source and target paths?
  78293. @return true if data should be sync'ed up. false otherwise]]>
  78294. </doc>
  78295. </method>
  78296. <method name="setSyncFolder"
  78297. abstract="false" native="false" synchronized="false"
  78298. static="false" final="false" visibility="public"
  78299. deprecated="not deprecated">
  78300. <param name="syncFolder" type="boolean"/>
  78301. <doc>
  78302. <![CDATA[Set if source and target folder contents be sync'ed up
  78303. @param syncFolder - boolean switch]]>
  78304. </doc>
  78305. </method>
  78306. <method name="shouldDeleteMissing" 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 target files missing in source should be deleted?
  78312. @return true if zoombie target files to be removed. false otherwise]]>
  78313. </doc>
  78314. </method>
  78315. <method name="setDeleteMissing"
  78316. abstract="false" native="false" synchronized="false"
  78317. static="false" final="false" visibility="public"
  78318. deprecated="not deprecated">
  78319. <param name="deleteMissing" type="boolean"/>
  78320. <doc>
  78321. <![CDATA[Set if files only present in target should be deleted
  78322. @param deleteMissing - boolean switch]]>
  78323. </doc>
  78324. </method>
  78325. <method name="shouldIgnoreFailures" 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 failures be logged and ignored during copy?
  78331. @return true if failures are to be logged and ignored. false otherwise]]>
  78332. </doc>
  78333. </method>
  78334. <method name="setIgnoreFailures"
  78335. abstract="false" native="false" synchronized="false"
  78336. static="false" final="false" visibility="public"
  78337. deprecated="not deprecated">
  78338. <param name="ignoreFailures" type="boolean"/>
  78339. <doc>
  78340. <![CDATA[Set if failures during copy be ignored
  78341. @param ignoreFailures - boolean switch]]>
  78342. </doc>
  78343. </method>
  78344. <method name="shouldBlock" 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 DistCp be running in blocking mode
  78350. @return true if should run in blocking, false otherwise]]>
  78351. </doc>
  78352. </method>
  78353. <method name="setBlocking"
  78354. abstract="false" native="false" synchronized="false"
  78355. static="false" final="false" visibility="public"
  78356. deprecated="not deprecated">
  78357. <param name="blocking" type="boolean"/>
  78358. <doc>
  78359. <![CDATA[Set if Disctp should run blocking or non-blocking
  78360. @param blocking - boolean switch]]>
  78361. </doc>
  78362. </method>
  78363. <method name="shouldOverwrite" 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 files be overwritten always?
  78369. @return true if files in target that may exist before distcp, should always
  78370. be overwritten. false otherwise]]>
  78371. </doc>
  78372. </method>
  78373. <method name="setOverwrite"
  78374. abstract="false" native="false" synchronized="false"
  78375. static="false" final="false" visibility="public"
  78376. deprecated="not deprecated">
  78377. <param name="overwrite" type="boolean"/>
  78378. <doc>
  78379. <![CDATA[Set if files should always be overwritten on target
  78380. @param overwrite - boolean switch]]>
  78381. </doc>
  78382. </method>
  78383. <method name="shouldSkipCRC" return="boolean"
  78384. abstract="false" native="false" synchronized="false"
  78385. static="false" final="false" visibility="public"
  78386. deprecated="not deprecated">
  78387. <doc>
  78388. <![CDATA[Should CRC/checksum check be skipped while checking files are identical
  78389. @return true if checksum check should be skipped while checking files are
  78390. identical. false otherwise]]>
  78391. </doc>
  78392. </method>
  78393. <method name="setSkipCRC"
  78394. abstract="false" native="false" synchronized="false"
  78395. static="false" final="false" visibility="public"
  78396. deprecated="not deprecated">
  78397. <param name="skipCRC" type="boolean"/>
  78398. <doc>
  78399. <![CDATA[Set if checksum comparison should be skipped while determining if
  78400. source and destination files are identical
  78401. @param skipCRC - boolean switch]]>
  78402. </doc>
  78403. </method>
  78404. <method name="getMaxMaps" return="int"
  78405. abstract="false" native="false" synchronized="false"
  78406. static="false" final="false" visibility="public"
  78407. deprecated="not deprecated">
  78408. <doc>
  78409. <![CDATA[Get the max number of maps to use for this copy
  78410. @return Max number of maps]]>
  78411. </doc>
  78412. </method>
  78413. <method name="setMaxMaps"
  78414. abstract="false" native="false" synchronized="false"
  78415. static="false" final="false" visibility="public"
  78416. deprecated="not deprecated">
  78417. <param name="maxMaps" type="int"/>
  78418. <doc>
  78419. <![CDATA[Set the max number of maps to use for copy
  78420. @param maxMaps - Number of maps]]>
  78421. </doc>
  78422. </method>
  78423. <method name="getMapBandwidth" 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 map bandwidth in MB
  78429. @return Bandwidth in MB]]>
  78430. </doc>
  78431. </method>
  78432. <method name="setMapBandwidth"
  78433. abstract="false" native="false" synchronized="false"
  78434. static="false" final="false" visibility="public"
  78435. deprecated="not deprecated">
  78436. <param name="mapBandwidth" type="int"/>
  78437. <doc>
  78438. <![CDATA[Set per map bandwidth
  78439. @param mapBandwidth - per map bandwidth]]>
  78440. </doc>
  78441. </method>
  78442. <method name="getSslConfigurationFile" return="java.lang.String"
  78443. abstract="false" native="false" synchronized="false"
  78444. static="false" final="false" visibility="public"
  78445. deprecated="not deprecated">
  78446. <doc>
  78447. <![CDATA[Get path where the ssl configuration file is present to use for hftps://
  78448. @return Path on local file system]]>
  78449. </doc>
  78450. </method>
  78451. <method name="setSslConfigurationFile"
  78452. abstract="false" native="false" synchronized="false"
  78453. static="false" final="false" visibility="public"
  78454. deprecated="not deprecated">
  78455. <param name="sslConfigurationFile" type="java.lang.String"/>
  78456. <doc>
  78457. <![CDATA[Set the SSL configuration file path to use with hftps:// (local path)
  78458. @param sslConfigurationFile - Local ssl config file path]]>
  78459. </doc>
  78460. </method>
  78461. <method name="preserveAttributes" return="java.util.Iterator"
  78462. abstract="false" native="false" synchronized="false"
  78463. static="false" final="false" visibility="public"
  78464. deprecated="not deprecated">
  78465. <doc>
  78466. <![CDATA[Returns an iterator with the list of file attributes to preserve
  78467. @return iterator of file attributes to preserve]]>
  78468. </doc>
  78469. </method>
  78470. <method name="shouldPreserve" return="boolean"
  78471. abstract="false" native="false" synchronized="false"
  78472. static="false" final="false" visibility="public"
  78473. deprecated="not deprecated">
  78474. <param name="attribute" type="org.apache.hadoop.tools.distcp2.DistCpOptions.FileAttribute"/>
  78475. <doc>
  78476. <![CDATA[Checks if the input attibute should be preserved or not
  78477. @param attribute - Attribute to check
  78478. @return True if attribute should be preserved, false otherwise]]>
  78479. </doc>
  78480. </method>
  78481. <method name="preserve"
  78482. abstract="false" native="false" synchronized="false"
  78483. static="false" final="false" visibility="public"
  78484. deprecated="not deprecated">
  78485. <param name="fileAttribute" type="org.apache.hadoop.tools.distcp2.DistCpOptions.FileAttribute"/>
  78486. <doc>
  78487. <![CDATA[Add file attributes that need to be preserved. This method may be
  78488. called multiple times to add attributes.
  78489. @param fileAttribute - Attribute to add, one at a time]]>
  78490. </doc>
  78491. </method>
  78492. <method name="getAtomicWorkPath" return="org.apache.hadoop.fs.Path"
  78493. abstract="false" native="false" synchronized="false"
  78494. static="false" final="false" visibility="public"
  78495. deprecated="not deprecated">
  78496. <doc>
  78497. <![CDATA[Get work path for atomic commit. If null, the work
  78498. path would be parentOf(targetPath) + "/._WIP_" + nameOf(targetPath)
  78499. @return Atomic work path on the target cluster. Null if not set]]>
  78500. </doc>
  78501. </method>
  78502. <method name="setAtomicWorkPath"
  78503. abstract="false" native="false" synchronized="false"
  78504. static="false" final="false" visibility="public"
  78505. deprecated="not deprecated">
  78506. <param name="atomicWorkPath" type="org.apache.hadoop.fs.Path"/>
  78507. <doc>
  78508. <![CDATA[Set the work path for atomic commit
  78509. @param atomicWorkPath - Path on the target cluster]]>
  78510. </doc>
  78511. </method>
  78512. <method name="getLogPath" return="org.apache.hadoop.fs.Path"
  78513. abstract="false" native="false" synchronized="false"
  78514. static="false" final="false" visibility="public"
  78515. deprecated="not deprecated">
  78516. <doc>
  78517. <![CDATA[Get output directory for writing distcp logs. Otherwise logs
  78518. are temporarily written to JobStagingDir/_logs and deleted
  78519. upon job completion
  78520. @return Log output path on the cluster where distcp job is run]]>
  78521. </doc>
  78522. </method>
  78523. <method name="setLogPath"
  78524. abstract="false" native="false" synchronized="false"
  78525. static="false" final="false" visibility="public"
  78526. deprecated="not deprecated">
  78527. <param name="logPath" type="org.apache.hadoop.fs.Path"/>
  78528. <doc>
  78529. <![CDATA[Set the log path where distcp output logs are stored
  78530. Uses JobStagingDir/_logs by default
  78531. @param logPath - Path where logs will be saved]]>
  78532. </doc>
  78533. </method>
  78534. <method name="getCopyStrategy" return="java.lang.String"
  78535. abstract="false" native="false" synchronized="false"
  78536. static="false" final="false" visibility="public"
  78537. deprecated="not deprecated">
  78538. <doc>
  78539. <![CDATA[Get the copy strategy to use. Uses appropriate input format
  78540. @return copy strategy to use]]>
  78541. </doc>
  78542. </method>
  78543. <method name="setCopyStrategy"
  78544. abstract="false" native="false" synchronized="false"
  78545. static="false" final="false" visibility="public"
  78546. deprecated="not deprecated">
  78547. <param name="copyStrategy" type="java.lang.String"/>
  78548. <doc>
  78549. <![CDATA[Set the copy strategy to use. Should map to a strategy implementation
  78550. in distp-default.xml
  78551. @param copyStrategy - copy Strategy to use]]>
  78552. </doc>
  78553. </method>
  78554. <method name="getSourceFileListing" return="org.apache.hadoop.fs.Path"
  78555. abstract="false" native="false" synchronized="false"
  78556. static="false" final="false" visibility="public"
  78557. deprecated="not deprecated">
  78558. <doc>
  78559. <![CDATA[File path (hdfs:// or file://) that contains the list of actual
  78560. files to copy
  78561. @return - Source listing file path]]>
  78562. </doc>
  78563. </method>
  78564. <method name="getSourcePaths" return="java.util.List"
  78565. abstract="false" native="false" synchronized="false"
  78566. static="false" final="false" visibility="public"
  78567. deprecated="not deprecated">
  78568. <doc>
  78569. <![CDATA[Getter for sourcePaths.
  78570. @return List of source-paths.]]>
  78571. </doc>
  78572. </method>
  78573. <method name="setSourcePaths"
  78574. abstract="false" native="false" synchronized="false"
  78575. static="false" final="false" visibility="public"
  78576. deprecated="not deprecated">
  78577. <param name="sourcePaths" type="java.util.List"/>
  78578. <doc>
  78579. <![CDATA[Setter for sourcePaths.
  78580. @param sourcePaths The new list of source-paths.]]>
  78581. </doc>
  78582. </method>
  78583. <method name="getTargetPath" return="org.apache.hadoop.fs.Path"
  78584. abstract="false" native="false" synchronized="false"
  78585. static="false" final="false" visibility="public"
  78586. deprecated="not deprecated">
  78587. <doc>
  78588. <![CDATA[Getter for the targetPath.
  78589. @return The target-path.]]>
  78590. </doc>
  78591. </method>
  78592. <method name="validate"
  78593. abstract="false" native="false" synchronized="false"
  78594. static="false" final="false" visibility="public"
  78595. deprecated="not deprecated">
  78596. <param name="option" type="org.apache.hadoop.tools.distcp2.DistCpOptionSwitch"/>
  78597. <param name="value" type="boolean"/>
  78598. </method>
  78599. <method name="appendToConf"
  78600. abstract="false" native="false" synchronized="false"
  78601. static="false" final="false" visibility="public"
  78602. deprecated="not deprecated">
  78603. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  78604. <doc>
  78605. <![CDATA[Add options to configuration. These will be used in the Mapper/committer
  78606. @param conf - Configruation object to which the options need to be added]]>
  78607. </doc>
  78608. </method>
  78609. <method name="toString" return="java.lang.String"
  78610. abstract="false" native="false" synchronized="false"
  78611. static="false" final="false" visibility="public"
  78612. deprecated="not deprecated">
  78613. <doc>
  78614. <![CDATA[Utility to easily string-ify Options, for logging.
  78615. @return String representation of the Options.]]>
  78616. </doc>
  78617. </method>
  78618. <method name="clone" return="org.apache.hadoop.tools.distcp2.DistCpOptions"
  78619. abstract="false" native="false" synchronized="false"
  78620. static="false" final="false" visibility="protected"
  78621. deprecated="not deprecated">
  78622. <exception name="CloneNotSupportedException" type="java.lang.CloneNotSupportedException"/>
  78623. </method>
  78624. <doc>
  78625. <![CDATA[The Options class encapsulates all DistCp options.
  78626. These may be set from command-line (via the OptionsParser)
  78627. or may be set manually.]]>
  78628. </doc>
  78629. </class>
  78630. <!-- end class org.apache.hadoop.tools.distcp2.DistCpOptions -->
  78631. <!-- start class org.apache.hadoop.tools.distcp2.DistCpOptions.FileAttribute -->
  78632. <class name="DistCpOptions.FileAttribute" extends="java.lang.Enum"
  78633. abstract="false"
  78634. static="true" final="true" visibility="public"
  78635. deprecated="not deprecated">
  78636. <method name="values" return="org.apache.hadoop.tools.distcp2.DistCpOptions.FileAttribute[]"
  78637. abstract="false" native="false" synchronized="false"
  78638. static="true" final="false" visibility="public"
  78639. deprecated="not deprecated">
  78640. </method>
  78641. <method name="valueOf" return="org.apache.hadoop.tools.distcp2.DistCpOptions.FileAttribute"
  78642. abstract="false" native="false" synchronized="false"
  78643. static="true" final="false" visibility="public"
  78644. deprecated="not deprecated">
  78645. <param name="name" type="java.lang.String"/>
  78646. </method>
  78647. <method name="getAttribute" return="org.apache.hadoop.tools.distcp2.DistCpOptions.FileAttribute"
  78648. abstract="false" native="false" synchronized="false"
  78649. static="true" final="false" visibility="public"
  78650. deprecated="not deprecated">
  78651. <param name="symbol" type="char"/>
  78652. </method>
  78653. <field name="REPLICATION" type="org.apache.hadoop.tools.distcp2.DistCpOptions.FileAttribute"
  78654. transient="false" volatile="false"
  78655. static="true" final="true" visibility="public"
  78656. deprecated="not deprecated">
  78657. </field>
  78658. <field name="BLOCKSIZE" type="org.apache.hadoop.tools.distcp2.DistCpOptions.FileAttribute"
  78659. transient="false" volatile="false"
  78660. static="true" final="true" visibility="public"
  78661. deprecated="not deprecated">
  78662. </field>
  78663. <field name="USER" type="org.apache.hadoop.tools.distcp2.DistCpOptions.FileAttribute"
  78664. transient="false" volatile="false"
  78665. static="true" final="true" visibility="public"
  78666. deprecated="not deprecated">
  78667. </field>
  78668. <field name="GROUP" type="org.apache.hadoop.tools.distcp2.DistCpOptions.FileAttribute"
  78669. transient="false" volatile="false"
  78670. static="true" final="true" visibility="public"
  78671. deprecated="not deprecated">
  78672. </field>
  78673. <field name="PERMISSION" type="org.apache.hadoop.tools.distcp2.DistCpOptions.FileAttribute"
  78674. transient="false" volatile="false"
  78675. static="true" final="true" visibility="public"
  78676. deprecated="not deprecated">
  78677. </field>
  78678. </class>
  78679. <!-- end class org.apache.hadoop.tools.distcp2.DistCpOptions.FileAttribute -->
  78680. <!-- start class org.apache.hadoop.tools.distcp2.DistCpOptionSwitch -->
  78681. <class name="DistCpOptionSwitch" extends="java.lang.Enum"
  78682. abstract="false"
  78683. static="false" final="true" visibility="public"
  78684. deprecated="not deprecated">
  78685. <method name="values" return="org.apache.hadoop.tools.distcp2.DistCpOptionSwitch[]"
  78686. abstract="false" native="false" synchronized="false"
  78687. static="true" final="false" visibility="public"
  78688. deprecated="not deprecated">
  78689. </method>
  78690. <method name="valueOf" return="org.apache.hadoop.tools.distcp2.DistCpOptionSwitch"
  78691. abstract="false" native="false" synchronized="false"
  78692. static="true" final="false" visibility="public"
  78693. deprecated="not deprecated">
  78694. <param name="name" type="java.lang.String"/>
  78695. </method>
  78696. <method name="getConfigLabel" return="java.lang.String"
  78697. abstract="false" native="false" synchronized="false"
  78698. static="false" final="false" visibility="public"
  78699. deprecated="not deprecated">
  78700. <doc>
  78701. <![CDATA[Get Configuration label for the option
  78702. @return configuration label name]]>
  78703. </doc>
  78704. </method>
  78705. <method name="getOption" return="org.apache.commons.cli.Option"
  78706. abstract="false" native="false" synchronized="false"
  78707. static="false" final="false" visibility="public"
  78708. deprecated="not deprecated">
  78709. <doc>
  78710. <![CDATA[Get CLI Option corresponding to the distcp option
  78711. @return option]]>
  78712. </doc>
  78713. </method>
  78714. <method name="getSwitch" return="java.lang.String"
  78715. abstract="false" native="false" synchronized="false"
  78716. static="false" final="false" visibility="public"
  78717. deprecated="not deprecated">
  78718. <doc>
  78719. <![CDATA[Get Switch symbol
  78720. @return switch symbol char]]>
  78721. </doc>
  78722. </method>
  78723. <method name="toString" return="java.lang.String"
  78724. abstract="false" native="false" synchronized="false"
  78725. static="false" final="false" visibility="public"
  78726. deprecated="not deprecated">
  78727. </method>
  78728. <method name="addToConf"
  78729. abstract="false" native="false" synchronized="false"
  78730. static="true" final="false" visibility="public"
  78731. deprecated="not deprecated">
  78732. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  78733. <param name="option" type="org.apache.hadoop.tools.distcp2.DistCpOptionSwitch"/>
  78734. <param name="value" type="java.lang.String"/>
  78735. <doc>
  78736. <![CDATA[Helper function to add an option to hadoop configuration object
  78737. @param conf - Configuration object to include the option
  78738. @param option - Option to add
  78739. @param value - Value]]>
  78740. </doc>
  78741. </method>
  78742. <method name="addToConf"
  78743. abstract="false" native="false" synchronized="false"
  78744. static="true" final="false" visibility="public"
  78745. deprecated="not deprecated">
  78746. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  78747. <param name="option" type="org.apache.hadoop.tools.distcp2.DistCpOptionSwitch"/>
  78748. <doc>
  78749. <![CDATA[Helper function to set an option to hadoop configuration object
  78750. @param conf - Configuration object to include the option
  78751. @param option - Option to add]]>
  78752. </doc>
  78753. </method>
  78754. <field name="IGNORE_FAILURES" type="org.apache.hadoop.tools.distcp2.DistCpOptionSwitch"
  78755. transient="false" volatile="false"
  78756. static="true" final="true" visibility="public"
  78757. deprecated="not deprecated">
  78758. <doc>
  78759. <![CDATA[Ignores any failures during copy, and continues with rest.
  78760. Logs failures in a file]]>
  78761. </doc>
  78762. </field>
  78763. <field name="PRESERVE_STATUS" type="org.apache.hadoop.tools.distcp2.DistCpOptionSwitch"
  78764. transient="false" volatile="false"
  78765. static="true" final="true" visibility="public"
  78766. deprecated="not deprecated">
  78767. <doc>
  78768. <![CDATA[Preserves status of file/path in the target.
  78769. Default behavior with -p, is to preserve replication,
  78770. block size, user, group and permission on the target file
  78771. If any of the optional switches are present among rbugp, then
  78772. only the corresponding file attribute is preserved]]>
  78773. </doc>
  78774. </field>
  78775. <field name="SYNC_FOLDERS" type="org.apache.hadoop.tools.distcp2.DistCpOptionSwitch"
  78776. transient="false" volatile="false"
  78777. static="true" final="true" visibility="public"
  78778. deprecated="not deprecated">
  78779. <doc>
  78780. <![CDATA[Update target location by copying only files that are missing
  78781. in the target. This can be used to periodically sync two folders
  78782. across source and target. Typically used with DELETE_MISSING
  78783. Incompatible with ATOMIC_COMMIT]]>
  78784. </doc>
  78785. </field>
  78786. <field name="DELETE_MISSING" type="org.apache.hadoop.tools.distcp2.DistCpOptionSwitch"
  78787. transient="false" volatile="false"
  78788. static="true" final="true" visibility="public"
  78789. deprecated="not deprecated">
  78790. <doc>
  78791. <![CDATA[Deletes missing files in target that are missing from source
  78792. This allows the target to be in sync with the source contents
  78793. Typically used in conjunction with SYNC_FOLDERS
  78794. Incompatible with ATOMIC_COMMIT]]>
  78795. </doc>
  78796. </field>
  78797. <field name="SSL_CONF" type="org.apache.hadoop.tools.distcp2.DistCpOptionSwitch"
  78798. transient="false" volatile="false"
  78799. static="true" final="true" visibility="public"
  78800. deprecated="not deprecated">
  78801. <doc>
  78802. <![CDATA[Configuration file to use with hftps:// for securely copying
  78803. files across clusters. Typically the configuration file contains
  78804. truststore/keystore information such as location, password and type]]>
  78805. </doc>
  78806. </field>
  78807. <field name="MAX_MAPS" type="org.apache.hadoop.tools.distcp2.DistCpOptionSwitch"
  78808. transient="false" volatile="false"
  78809. static="true" final="true" visibility="public"
  78810. deprecated="not deprecated">
  78811. <doc>
  78812. <![CDATA[Max number of maps to use during copy. DistCp will split work
  78813. as equally as possible among these maps]]>
  78814. </doc>
  78815. </field>
  78816. <field name="SOURCE_FILE_LISTING" 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[Source file listing can be provided to DistCp in a file.
  78822. This allows DistCp to copy random list of files from source
  78823. and copy them to target]]>
  78824. </doc>
  78825. </field>
  78826. <field name="ATOMIC_COMMIT" 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[Copy all the source files and commit them atomically to the target
  78832. This is typically useful in cases where there is a process
  78833. polling for availability of a file/dir. This option is incompatible
  78834. with SYNC_FOLDERS & DELETE_MISSING]]>
  78835. </doc>
  78836. </field>
  78837. <field name="WORK_PATH" type="org.apache.hadoop.tools.distcp2.DistCpOptionSwitch"
  78838. transient="false" volatile="false"
  78839. static="true" final="true" visibility="public"
  78840. deprecated="not deprecated">
  78841. <doc>
  78842. <![CDATA[Work path to be used only in conjunction in Atomic commit]]>
  78843. </doc>
  78844. </field>
  78845. <field name="LOG_PATH" 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[Log path where distcp output logs are written to]]>
  78851. </doc>
  78852. </field>
  78853. <field name="COPY_STRATEGY" type="org.apache.hadoop.tools.distcp2.DistCpOptionSwitch"
  78854. transient="false" volatile="false"
  78855. static="true" final="true" visibility="public"
  78856. deprecated="not deprecated">
  78857. <doc>
  78858. <![CDATA[Copy strategy is use. This could be dynamic or uniform size etc.
  78859. DistCp would use an appropriate input format based on this.]]>
  78860. </doc>
  78861. </field>
  78862. <field name="SKIP_CRC" type="org.apache.hadoop.tools.distcp2.DistCpOptionSwitch"
  78863. transient="false" volatile="false"
  78864. static="true" final="true" visibility="public"
  78865. deprecated="not deprecated">
  78866. <doc>
  78867. <![CDATA[Skip CRC checks between source and target, when determining what
  78868. files need to be copied.]]>
  78869. </doc>
  78870. </field>
  78871. <field name="OVERWRITE" type="org.apache.hadoop.tools.distcp2.DistCpOptionSwitch"
  78872. transient="false" volatile="false"
  78873. static="true" final="true" visibility="public"
  78874. deprecated="not deprecated">
  78875. <doc>
  78876. <![CDATA[Overwrite target-files unconditionally.]]>
  78877. </doc>
  78878. </field>
  78879. <field name="BLOCKING" type="org.apache.hadoop.tools.distcp2.DistCpOptionSwitch"
  78880. transient="false" volatile="false"
  78881. static="true" final="true" visibility="public"
  78882. deprecated="not deprecated">
  78883. <doc>
  78884. <![CDATA[Should DisctpExecution be blocking]]>
  78885. </doc>
  78886. </field>
  78887. <field name="FILE_LIMIT" type="org.apache.hadoop.tools.distcp2.DistCpOptionSwitch"
  78888. transient="false" volatile="false"
  78889. static="true" final="true" visibility="public"
  78890. deprecated="not deprecated">
  78891. </field>
  78892. <field name="SIZE_LIMIT" type="org.apache.hadoop.tools.distcp2.DistCpOptionSwitch"
  78893. transient="false" volatile="false"
  78894. static="true" final="true" visibility="public"
  78895. deprecated="not deprecated">
  78896. </field>
  78897. <field name="BANDWIDTH" type="org.apache.hadoop.tools.distcp2.DistCpOptionSwitch"
  78898. transient="false" volatile="false"
  78899. static="true" final="true" visibility="public"
  78900. deprecated="not deprecated">
  78901. <doc>
  78902. <![CDATA[Specify bandwidth per map in MB]]>
  78903. </doc>
  78904. </field>
  78905. <doc>
  78906. <![CDATA[Enumeration mapping configuration keys to distcp command line
  78907. options.]]>
  78908. </doc>
  78909. </class>
  78910. <!-- end class org.apache.hadoop.tools.distcp2.DistCpOptionSwitch -->
  78911. <!-- start class org.apache.hadoop.tools.distcp2.FileBasedCopyListing -->
  78912. <class name="FileBasedCopyListing" extends="org.apache.hadoop.tools.distcp2.CopyListing"
  78913. abstract="false"
  78914. static="false" final="false" visibility="public"
  78915. deprecated="not deprecated">
  78916. <constructor name="FileBasedCopyListing" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.security.Credentials"
  78917. static="false" final="false" visibility="public"
  78918. deprecated="not deprecated">
  78919. <doc>
  78920. <![CDATA[Constructor, to initialize base-class.
  78921. @param configuration The input Configuration object.
  78922. @param credentials - Credentials object on which the FS delegation tokens are cached. If null
  78923. delegation token caching is skipped]]>
  78924. </doc>
  78925. </constructor>
  78926. <method name="validatePaths"
  78927. abstract="false" native="false" synchronized="false"
  78928. static="false" final="false" visibility="protected"
  78929. deprecated="not deprecated">
  78930. <param name="options" type="org.apache.hadoop.tools.distcp2.DistCpOptions"/>
  78931. <exception name="IOException" type="java.io.IOException"/>
  78932. <exception name="CopyListing.InvalidInputException" type="org.apache.hadoop.tools.distcp2.CopyListing.InvalidInputException"/>
  78933. <doc>
  78934. <![CDATA[{@inheritDoc}]]>
  78935. </doc>
  78936. </method>
  78937. <method name="doBuildListing"
  78938. abstract="false" native="false" synchronized="false"
  78939. static="false" final="false" visibility="public"
  78940. deprecated="not deprecated">
  78941. <param name="pathToListFile" type="org.apache.hadoop.fs.Path"/>
  78942. <param name="options" type="org.apache.hadoop.tools.distcp2.DistCpOptions"/>
  78943. <exception name="IOException" type="java.io.IOException"/>
  78944. <doc>
  78945. <![CDATA[Implementation of CopyListing::buildListing().
  78946. Iterates over all source paths mentioned in the input-file.
  78947. @param pathToListFile Path on HDFS where the listing file is written.
  78948. @param options Input Options for DistCp (indicating source/target paths.)
  78949. @throws IOException]]>
  78950. </doc>
  78951. </method>
  78952. <method name="getBytesToCopy" return="long"
  78953. abstract="false" native="false" synchronized="false"
  78954. static="false" final="false" visibility="protected"
  78955. deprecated="not deprecated">
  78956. <doc>
  78957. <![CDATA[{@inheritDoc}]]>
  78958. </doc>
  78959. </method>
  78960. <method name="getNumberOfPaths" return="long"
  78961. abstract="false" native="false" synchronized="false"
  78962. static="false" final="false" visibility="protected"
  78963. deprecated="not deprecated">
  78964. <doc>
  78965. <![CDATA[{@inheritDoc}]]>
  78966. </doc>
  78967. </method>
  78968. <doc>
  78969. <![CDATA[FileBasedCopyListing implements the CopyListing interface,
  78970. to create the copy-listing for DistCp,
  78971. by iterating over all source paths mentioned in a specified input-file.]]>
  78972. </doc>
  78973. </class>
  78974. <!-- end class org.apache.hadoop.tools.distcp2.FileBasedCopyListing -->
  78975. <!-- start class org.apache.hadoop.tools.distcp2.GlobbedCopyListing -->
  78976. <class name="GlobbedCopyListing" extends="org.apache.hadoop.tools.distcp2.CopyListing"
  78977. abstract="false"
  78978. static="false" final="false" visibility="public"
  78979. deprecated="not deprecated">
  78980. <constructor name="GlobbedCopyListing" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.security.Credentials"
  78981. static="false" final="false" visibility="public"
  78982. deprecated="not deprecated">
  78983. <doc>
  78984. <![CDATA[Constructor, to initialize the configuration.
  78985. @param configuration The input Configuration object.
  78986. @param credentials Credentials object on which the FS delegation tokens are cached. If null
  78987. delegation token caching is skipped]]>
  78988. </doc>
  78989. </constructor>
  78990. <method name="validatePaths"
  78991. abstract="false" native="false" synchronized="false"
  78992. static="false" final="false" visibility="protected"
  78993. deprecated="not deprecated">
  78994. <param name="options" type="org.apache.hadoop.tools.distcp2.DistCpOptions"/>
  78995. <exception name="IOException" type="java.io.IOException"/>
  78996. <exception name="CopyListing.InvalidInputException" type="org.apache.hadoop.tools.distcp2.CopyListing.InvalidInputException"/>
  78997. <doc>
  78998. <![CDATA[{@inheritDoc}]]>
  78999. </doc>
  79000. </method>
  79001. <method name="doBuildListing"
  79002. abstract="false" native="false" synchronized="false"
  79003. static="false" final="false" visibility="public"
  79004. deprecated="not deprecated">
  79005. <param name="pathToListingFile" type="org.apache.hadoop.fs.Path"/>
  79006. <param name="options" type="org.apache.hadoop.tools.distcp2.DistCpOptions"/>
  79007. <exception name="IOException" type="java.io.IOException"/>
  79008. <doc>
  79009. <![CDATA[Implementation of CopyListing::buildListing().
  79010. Creates the copy listing by "globbing" all source-paths.
  79011. @param pathToListingFile The location at which the copy-listing file
  79012. is to be created.
  79013. @param options Input Options for DistCp (indicating source/target paths.)
  79014. @throws IOException]]>
  79015. </doc>
  79016. </method>
  79017. <method name="getBytesToCopy" return="long"
  79018. abstract="false" native="false" synchronized="false"
  79019. static="false" final="false" visibility="protected"
  79020. deprecated="not deprecated">
  79021. <doc>
  79022. <![CDATA[{@inheritDoc}]]>
  79023. </doc>
  79024. </method>
  79025. <method name="getNumberOfPaths" return="long"
  79026. abstract="false" native="false" synchronized="false"
  79027. static="false" final="false" visibility="protected"
  79028. deprecated="not deprecated">
  79029. <doc>
  79030. <![CDATA[{@inheritDoc}]]>
  79031. </doc>
  79032. </method>
  79033. <doc>
  79034. <![CDATA[GlobbedCopyListing implements the CopyListing interface, to create the copy
  79035. listing-file by "globbing" all specified source paths (wild-cards and all.)]]>
  79036. </doc>
  79037. </class>
  79038. <!-- end class org.apache.hadoop.tools.distcp2.GlobbedCopyListing -->
  79039. <!-- start class org.apache.hadoop.tools.distcp2.OptionsParser -->
  79040. <class name="OptionsParser" extends="java.lang.Object"
  79041. abstract="false"
  79042. static="false" final="false" visibility="public"
  79043. deprecated="not deprecated">
  79044. <constructor name="OptionsParser"
  79045. static="false" final="false" visibility="public"
  79046. deprecated="not deprecated">
  79047. </constructor>
  79048. <method name="parse" return="org.apache.hadoop.tools.distcp2.DistCpOptions"
  79049. abstract="false" native="false" synchronized="false"
  79050. static="true" final="false" visibility="public"
  79051. deprecated="not deprecated">
  79052. <param name="args" type="java.lang.String[]"/>
  79053. <exception name="IllegalArgumentException" type="java.lang.IllegalArgumentException"/>
  79054. <doc>
  79055. <![CDATA[The parse method parses the command-line options, and creates
  79056. a corresponding Options object.
  79057. @param args Command-line arguments (excluding the options consumed
  79058. by the GenericOptionsParser).
  79059. @return The Options object, corresponding to the specified command-line.
  79060. @throws IllegalArgumentException: Thrown if the parse fails.]]>
  79061. </doc>
  79062. </method>
  79063. <method name="usage"
  79064. abstract="false" native="false" synchronized="false"
  79065. static="true" final="false" visibility="public"
  79066. deprecated="not deprecated">
  79067. </method>
  79068. <doc>
  79069. <![CDATA[The OptionsParser parses out the command-line options passed to DistCp,
  79070. and interprets those specific to DistCp, to create an Options object.]]>
  79071. </doc>
  79072. </class>
  79073. <!-- end class org.apache.hadoop.tools.distcp2.OptionsParser -->
  79074. <!-- start class org.apache.hadoop.tools.distcp2.SimpleCopyListing -->
  79075. <class name="SimpleCopyListing" extends="org.apache.hadoop.tools.distcp2.CopyListing"
  79076. abstract="false"
  79077. static="false" final="false" visibility="public"
  79078. deprecated="not deprecated">
  79079. <constructor name="SimpleCopyListing" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.security.Credentials"
  79080. static="false" final="false" visibility="protected"
  79081. deprecated="not deprecated">
  79082. <doc>
  79083. <![CDATA[Protected constructor, to initialize configuration.
  79084. @param configuration The input configuration, with which the source/target FileSystems may be accessed.
  79085. @param credentials - Credentials object on which the FS delegation tokens are cached. If null
  79086. delegation token caching is skipped]]>
  79087. </doc>
  79088. </constructor>
  79089. <method name="validatePaths"
  79090. abstract="false" native="false" synchronized="false"
  79091. static="false" final="false" visibility="protected"
  79092. deprecated="not deprecated">
  79093. <param name="options" type="org.apache.hadoop.tools.distcp2.DistCpOptions"/>
  79094. <exception name="IOException" type="java.io.IOException"/>
  79095. <exception name="CopyListing.InvalidInputException" type="org.apache.hadoop.tools.distcp2.CopyListing.InvalidInputException"/>
  79096. </method>
  79097. <method name="doBuildListing"
  79098. abstract="false" native="false" synchronized="false"
  79099. static="false" final="false" visibility="public"
  79100. deprecated="not deprecated">
  79101. <param name="pathToListingFile" type="org.apache.hadoop.fs.Path"/>
  79102. <param name="options" type="org.apache.hadoop.tools.distcp2.DistCpOptions"/>
  79103. <exception name="IOException" type="java.io.IOException"/>
  79104. <doc>
  79105. <![CDATA[{@inheritDoc}]]>
  79106. </doc>
  79107. </method>
  79108. <method name="shouldCopy" return="boolean"
  79109. abstract="false" native="false" synchronized="false"
  79110. static="false" final="false" visibility="protected"
  79111. deprecated="not deprecated">
  79112. <param name="path" type="org.apache.hadoop.fs.Path"/>
  79113. <param name="options" type="org.apache.hadoop.tools.distcp2.DistCpOptions"/>
  79114. <doc>
  79115. <![CDATA[Provide an option to skip copy of a path, Allows for exclusion
  79116. of files such as {@link org.apache.hadoop.mapreduce.lib.output.FileOutputCommitter#SUCCEEDED_FILE_NAME}
  79117. @param path - Path being considered for copy while building the file listing
  79118. @param options - Input options passed during DistCp invocation
  79119. @return - True if the path should be considered for copy, false otherwise]]>
  79120. </doc>
  79121. </method>
  79122. <method name="getBytesToCopy" return="long"
  79123. abstract="false" native="false" synchronized="false"
  79124. static="false" final="false" visibility="protected"
  79125. deprecated="not deprecated">
  79126. <doc>
  79127. <![CDATA[{@inheritDoc}]]>
  79128. </doc>
  79129. </method>
  79130. <method name="getNumberOfPaths" return="long"
  79131. abstract="false" native="false" synchronized="false"
  79132. static="false" final="false" visibility="protected"
  79133. deprecated="not deprecated">
  79134. <doc>
  79135. <![CDATA[{@inheritDoc}]]>
  79136. </doc>
  79137. </method>
  79138. <doc>
  79139. <![CDATA[The SimpleCopyListing is responsible for making the exhaustive list of
  79140. all files/directories under its specified list of input-paths.
  79141. These are written into the specified copy-listing file.
  79142. Note: The SimpleCopyListing doesn't handle wild-cards in the input-paths.]]>
  79143. </doc>
  79144. </class>
  79145. <!-- end class org.apache.hadoop.tools.distcp2.SimpleCopyListing -->
  79146. </package>
  79147. <package name="org.apache.hadoop.tools.distcp2.mapred">
  79148. <!-- start class org.apache.hadoop.tools.distcp2.mapred.CopyCommitter -->
  79149. <class name="CopyCommitter" extends="org.apache.hadoop.mapreduce.lib.output.FileOutputCommitter"
  79150. abstract="false"
  79151. static="false" final="false" visibility="public"
  79152. deprecated="not deprecated">
  79153. <constructor name="CopyCommitter" type="org.apache.hadoop.fs.Path, org.apache.hadoop.mapreduce.TaskAttemptContext"
  79154. static="false" final="false" visibility="public"
  79155. deprecated="not deprecated">
  79156. <exception name="IOException" type="java.io.IOException"/>
  79157. <doc>
  79158. <![CDATA[Create a output committer
  79159. @param outputPath the job's output path
  79160. @param context the task's context
  79161. @throws IOException - Exception if any]]>
  79162. </doc>
  79163. </constructor>
  79164. <method name="commitJob"
  79165. abstract="false" native="false" synchronized="false"
  79166. static="false" final="false" visibility="public"
  79167. deprecated="not deprecated">
  79168. <param name="jobContext" type="org.apache.hadoop.mapreduce.JobContext"/>
  79169. <exception name="IOException" type="java.io.IOException"/>
  79170. <doc>
  79171. <![CDATA[@inheritDoc]]>
  79172. </doc>
  79173. </method>
  79174. <method name="abortJob"
  79175. abstract="false" native="false" synchronized="false"
  79176. static="false" final="false" visibility="public"
  79177. deprecated="not deprecated">
  79178. <param name="jobContext" type="org.apache.hadoop.mapreduce.JobContext"/>
  79179. <param name="state" type="org.apache.hadoop.mapreduce.JobStatus.State"/>
  79180. <exception name="IOException" type="java.io.IOException"/>
  79181. <doc>
  79182. <![CDATA[@inheritDoc]]>
  79183. </doc>
  79184. </method>
  79185. <doc>
  79186. <![CDATA[The CopyCommitter class is DistCp's OutputCommitter implementation. It is
  79187. responsible for handling the completion/cleanup of the DistCp run.
  79188. Specifically, it does the following:
  79189. 1. Cleanup of the meta-folder (where DistCp maintains its file-list, etc.)
  79190. 2. Preservation of user/group/replication-factor on any directories that
  79191. have been copied. (Files are taken care of in their map-tasks.)
  79192. 3. Atomic-move of data from the temporary work-folder to the final path
  79193. (if atomic-commit was opted for).
  79194. 4. Deletion of files from the target that are missing at source (if opted for).
  79195. 5. Cleanup of any partially copied files, from previous, failed attempts.]]>
  79196. </doc>
  79197. </class>
  79198. <!-- end class org.apache.hadoop.tools.distcp2.mapred.CopyCommitter -->
  79199. <!-- start class org.apache.hadoop.tools.distcp2.mapred.CopyMapper -->
  79200. <class name="CopyMapper" extends="org.apache.hadoop.mapreduce.Mapper"
  79201. abstract="false"
  79202. static="false" final="false" visibility="public"
  79203. deprecated="not deprecated">
  79204. <constructor name="CopyMapper"
  79205. static="false" final="false" visibility="public"
  79206. deprecated="not deprecated">
  79207. </constructor>
  79208. <method name="setup"
  79209. abstract="false" native="false" synchronized="false"
  79210. static="false" final="false" visibility="public"
  79211. deprecated="not deprecated">
  79212. <param name="context" type="org.apache.hadoop.mapreduce.Mapper.Context"/>
  79213. <exception name="IOException" type="java.io.IOException"/>
  79214. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  79215. <doc>
  79216. <![CDATA[Implementation of the Mapper::setup() method. This extracts the DistCp-
  79217. options specified in the Job's configuration, to set up the Job.
  79218. @param context Mapper's context.
  79219. @throws IOException On IO failure.
  79220. @throws InterruptedException If the job is interrupted.]]>
  79221. </doc>
  79222. </method>
  79223. <method name="map"
  79224. abstract="false" native="false" synchronized="false"
  79225. static="false" final="false" visibility="public"
  79226. deprecated="not deprecated">
  79227. <param name="relPath" type="org.apache.hadoop.io.Text"/>
  79228. <param name="sourceFileStatus" type="org.apache.hadoop.fs.FileStatus"/>
  79229. <param name="context" type="org.apache.hadoop.mapreduce.Mapper.Context"/>
  79230. <exception name="IOException" type="java.io.IOException"/>
  79231. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  79232. <doc>
  79233. <![CDATA[Implementation of the Mapper<>::map(). Does the copy.
  79234. @param relPath The target path.
  79235. @param sourceFileStatus The source path.
  79236. @throws IOException]]>
  79237. </doc>
  79238. </method>
  79239. <doc>
  79240. <![CDATA[Mapper class that executes the DistCp copy operation.
  79241. Implements the o.a.h.mapreduce.Mapper<> interface.]]>
  79242. </doc>
  79243. </class>
  79244. <!-- end class org.apache.hadoop.tools.distcp2.mapred.CopyMapper -->
  79245. <!-- start class org.apache.hadoop.tools.distcp2.mapred.CopyMapper.Counter -->
  79246. <class name="CopyMapper.Counter" extends="java.lang.Enum"
  79247. abstract="false"
  79248. static="true" final="true" visibility="public"
  79249. deprecated="not deprecated">
  79250. <method name="values" return="org.apache.hadoop.tools.distcp2.mapred.CopyMapper.Counter[]"
  79251. abstract="false" native="false" synchronized="false"
  79252. static="true" final="false" visibility="public"
  79253. deprecated="not deprecated">
  79254. </method>
  79255. <method name="valueOf" return="org.apache.hadoop.tools.distcp2.mapred.CopyMapper.Counter"
  79256. abstract="false" native="false" synchronized="false"
  79257. static="true" final="false" visibility="public"
  79258. deprecated="not deprecated">
  79259. <param name="name" type="java.lang.String"/>
  79260. </method>
  79261. <field name="COPY" type="org.apache.hadoop.tools.distcp2.mapred.CopyMapper.Counter"
  79262. transient="false" volatile="false"
  79263. static="true" final="true" visibility="public"
  79264. deprecated="not deprecated">
  79265. </field>
  79266. <field name="SKIP" type="org.apache.hadoop.tools.distcp2.mapred.CopyMapper.Counter"
  79267. transient="false" volatile="false"
  79268. static="true" final="true" visibility="public"
  79269. deprecated="not deprecated">
  79270. </field>
  79271. <field name="FAIL" type="org.apache.hadoop.tools.distcp2.mapred.CopyMapper.Counter"
  79272. transient="false" volatile="false"
  79273. static="true" final="true" visibility="public"
  79274. deprecated="not deprecated">
  79275. </field>
  79276. <field name="BYTESCOPIED" type="org.apache.hadoop.tools.distcp2.mapred.CopyMapper.Counter"
  79277. transient="false" volatile="false"
  79278. static="true" final="true" visibility="public"
  79279. deprecated="not deprecated">
  79280. </field>
  79281. <field name="BYTESEXPECTED" type="org.apache.hadoop.tools.distcp2.mapred.CopyMapper.Counter"
  79282. transient="false" volatile="false"
  79283. static="true" final="true" visibility="public"
  79284. deprecated="not deprecated">
  79285. </field>
  79286. <field name="BYTESFAILED" type="org.apache.hadoop.tools.distcp2.mapred.CopyMapper.Counter"
  79287. transient="false" volatile="false"
  79288. static="true" final="true" visibility="public"
  79289. deprecated="not deprecated">
  79290. </field>
  79291. <field name="BYTESSKIPPED" type="org.apache.hadoop.tools.distcp2.mapred.CopyMapper.Counter"
  79292. transient="false" volatile="false"
  79293. static="true" final="true" visibility="public"
  79294. deprecated="not deprecated">
  79295. </field>
  79296. <doc>
  79297. <![CDATA[Hadoop counters for the DistCp CopyMapper.
  79298. (These have been kept identical to the old DistCp,
  79299. for backward compatibility.)]]>
  79300. </doc>
  79301. </class>
  79302. <!-- end class org.apache.hadoop.tools.distcp2.mapred.CopyMapper.Counter -->
  79303. <!-- start class org.apache.hadoop.tools.distcp2.mapred.CopyOutputFormat -->
  79304. <class name="CopyOutputFormat" extends="org.apache.hadoop.mapreduce.lib.output.TextOutputFormat"
  79305. abstract="false"
  79306. static="false" final="false" visibility="public"
  79307. deprecated="not deprecated">
  79308. <constructor name="CopyOutputFormat"
  79309. static="false" final="false" visibility="public"
  79310. deprecated="not deprecated">
  79311. </constructor>
  79312. <method name="setWorkingDirectory"
  79313. abstract="false" native="false" synchronized="false"
  79314. static="true" final="false" visibility="public"
  79315. deprecated="not deprecated">
  79316. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  79317. <param name="workingDirectory" type="org.apache.hadoop.fs.Path"/>
  79318. <doc>
  79319. <![CDATA[Setter for the working directory for DistCp (where files will be copied
  79320. before they are moved to the final commit-directory.)
  79321. @param job The Job on whose configuration the working-directory is to be set.
  79322. @param workingDirectory The path to use as the working directory.]]>
  79323. </doc>
  79324. </method>
  79325. <method name="setCommitDirectory"
  79326. abstract="false" native="false" synchronized="false"
  79327. static="true" final="false" visibility="public"
  79328. deprecated="not deprecated">
  79329. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  79330. <param name="commitDirectory" type="org.apache.hadoop.fs.Path"/>
  79331. <doc>
  79332. <![CDATA[Setter for the final directory for DistCp (where files copied will be
  79333. moved, atomically.)
  79334. @param job The Job on whose configuration the working-directory is to be set.
  79335. @param commitDirectory The path to use for final commit.]]>
  79336. </doc>
  79337. </method>
  79338. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  79339. abstract="false" native="false" synchronized="false"
  79340. static="true" final="false" visibility="public"
  79341. deprecated="not deprecated">
  79342. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  79343. <doc>
  79344. <![CDATA[Getter for the working directory.
  79345. @param job The Job from whose configuration the working-directory is to
  79346. be retrieved.
  79347. @return The working-directory Path.]]>
  79348. </doc>
  79349. </method>
  79350. <method name="getCommitDirectory" return="org.apache.hadoop.fs.Path"
  79351. abstract="false" native="false" synchronized="false"
  79352. static="true" final="false" visibility="public"
  79353. deprecated="not deprecated">
  79354. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  79355. <doc>
  79356. <![CDATA[Getter for the final commit-directory.
  79357. @param job The Job from whose configuration the commit-directory is to be
  79358. retrieved.
  79359. @return The commit-directory Path.]]>
  79360. </doc>
  79361. </method>
  79362. <method name="getOutputCommitter" return="org.apache.hadoop.mapreduce.OutputCommitter"
  79363. abstract="false" native="false" synchronized="false"
  79364. static="false" final="false" visibility="public"
  79365. deprecated="not deprecated">
  79366. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  79367. <exception name="IOException" type="java.io.IOException"/>
  79368. <doc>
  79369. <![CDATA[@inheritDoc]]>
  79370. </doc>
  79371. </method>
  79372. <method name="checkOutputSpecs"
  79373. abstract="false" native="false" synchronized="false"
  79374. static="false" final="false" visibility="public"
  79375. deprecated="not deprecated">
  79376. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  79377. <exception name="IOException" type="java.io.IOException"/>
  79378. <doc>
  79379. <![CDATA[@inheritDoc]]>
  79380. </doc>
  79381. </method>
  79382. <doc>
  79383. <![CDATA[The CopyOutputFormat is the Hadoop OutputFormat used in DistCp.
  79384. It sets up the Job's Configuration (in the Job-Context) with the settings
  79385. for the work-directory, final commit-directory, etc. It also sets the right
  79386. output-committer.
  79387. @param <K>
  79388. @param <V>]]>
  79389. </doc>
  79390. </class>
  79391. <!-- end class org.apache.hadoop.tools.distcp2.mapred.CopyOutputFormat -->
  79392. <!-- start class org.apache.hadoop.tools.distcp2.mapred.RetriableDirectoryCreateCommand -->
  79393. <class name="RetriableDirectoryCreateCommand" extends="org.apache.hadoop.tools.distcp2.util.RetriableCommand"
  79394. abstract="false"
  79395. static="false" final="false" visibility="public"
  79396. deprecated="not deprecated">
  79397. <constructor name="RetriableDirectoryCreateCommand" type="java.lang.String"
  79398. static="false" final="false" visibility="public"
  79399. deprecated="not deprecated">
  79400. <doc>
  79401. <![CDATA[Constructor, taking a description of the action.
  79402. @param description Verbose description of the copy operation.]]>
  79403. </doc>
  79404. </constructor>
  79405. <method name="doExecute" return="java.lang.Object"
  79406. abstract="false" native="false" synchronized="false"
  79407. static="false" final="false" visibility="protected"
  79408. deprecated="not deprecated">
  79409. <param name="arguments" type="java.lang.Object[]"/>
  79410. <exception name="Exception" type="java.lang.Exception"/>
  79411. <doc>
  79412. <![CDATA[Implementation of RetriableCommand::doExecute().
  79413. This implements the actual mkdirs() functionality.
  79414. @param arguments Argument-list to the command.
  79415. @return Boolean. True, if the directory could be created successfully.
  79416. @throws Exception IOException, on failure to create the directory.]]>
  79417. </doc>
  79418. </method>
  79419. <doc>
  79420. <![CDATA[This class extends Retriable command to implement the creation of directories
  79421. with retries on failure.]]>
  79422. </doc>
  79423. </class>
  79424. <!-- end class org.apache.hadoop.tools.distcp2.mapred.RetriableDirectoryCreateCommand -->
  79425. <!-- start class org.apache.hadoop.tools.distcp2.mapred.RetriableFileCopyCommand -->
  79426. <class name="RetriableFileCopyCommand" extends="org.apache.hadoop.tools.distcp2.util.RetriableCommand"
  79427. abstract="false"
  79428. static="false" final="false" visibility="public"
  79429. deprecated="not deprecated">
  79430. <constructor name="RetriableFileCopyCommand" type="java.lang.String"
  79431. static="false" final="false" visibility="public"
  79432. deprecated="not deprecated">
  79433. <doc>
  79434. <![CDATA[Constructor, taking a description of the action.
  79435. @param description Verbose description of the copy operation.]]>
  79436. </doc>
  79437. </constructor>
  79438. <constructor name="RetriableFileCopyCommand" type="boolean, java.lang.String"
  79439. static="false" final="false" visibility="public"
  79440. deprecated="not deprecated">
  79441. <doc>
  79442. <![CDATA[Create a RetriableFileCopyCommand.
  79443. @param skipCrc Whether to skip the crc check.
  79444. @param description A verbose description of the copy operation.]]>
  79445. </doc>
  79446. </constructor>
  79447. <method name="doExecute" return="java.lang.Object"
  79448. abstract="false" native="false" synchronized="false"
  79449. static="false" final="false" visibility="protected"
  79450. deprecated="not deprecated">
  79451. <param name="arguments" type="java.lang.Object[]"/>
  79452. <exception name="Exception" type="java.lang.Exception"/>
  79453. <doc>
  79454. <![CDATA[Implementation of RetriableCommand::doExecute().
  79455. This is the actual copy-implementation.
  79456. @param arguments Argument-list to the command.
  79457. @return Number of bytes copied.
  79458. @throws Exception: CopyReadException, if there are read-failures. All other
  79459. failures are IOExceptions.]]>
  79460. </doc>
  79461. </method>
  79462. <doc>
  79463. <![CDATA[This class extends RetriableCommand to implement the copy of files,
  79464. with retries on failure.]]>
  79465. </doc>
  79466. </class>
  79467. <!-- end class org.apache.hadoop.tools.distcp2.mapred.RetriableFileCopyCommand -->
  79468. <!-- start class org.apache.hadoop.tools.distcp2.mapred.RetriableFileCopyCommand.CopyReadException -->
  79469. <class name="RetriableFileCopyCommand.CopyReadException" extends="java.io.IOException"
  79470. abstract="false"
  79471. static="true" final="false" visibility="public"
  79472. deprecated="not deprecated">
  79473. <constructor name="RetriableFileCopyCommand.CopyReadException" type="java.lang.Throwable"
  79474. static="false" final="false" visibility="public"
  79475. deprecated="not deprecated">
  79476. </constructor>
  79477. <doc>
  79478. <![CDATA[Special subclass of IOException. This is used to distinguish read-operation
  79479. failures from other kinds of IOExceptions.
  79480. The failure to read from source is dealt with specially, in the CopyMapper.
  79481. Such failures may be skipped if the DistCpOptions indicate so.
  79482. Write failures are intolerable, and amount to CopyMapper failure.]]>
  79483. </doc>
  79484. </class>
  79485. <!-- end class org.apache.hadoop.tools.distcp2.mapred.RetriableFileCopyCommand.CopyReadException -->
  79486. <!-- start class org.apache.hadoop.tools.distcp2.mapred.UniformSizeInputFormat -->
  79487. <class name="UniformSizeInputFormat" extends="org.apache.hadoop.mapreduce.InputFormat"
  79488. abstract="false"
  79489. static="false" final="false" visibility="public"
  79490. deprecated="not deprecated">
  79491. <constructor name="UniformSizeInputFormat"
  79492. static="false" final="false" visibility="public"
  79493. deprecated="not deprecated">
  79494. </constructor>
  79495. <method name="getSplits" return="java.util.List"
  79496. abstract="false" native="false" synchronized="false"
  79497. static="false" final="false" visibility="public"
  79498. deprecated="not deprecated">
  79499. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  79500. <exception name="IOException" type="java.io.IOException"/>
  79501. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  79502. <doc>
  79503. <![CDATA[Implementation of InputFormat::getSplits(). Returns a list of InputSplits,
  79504. such that the number of bytes to be copied for all the splits are
  79505. approximately equal.
  79506. @param context JobContext for the job.
  79507. @return The list of uniformly-distributed input-splits.
  79508. @throws IOException: On failure.
  79509. @throws InterruptedException]]>
  79510. </doc>
  79511. </method>
  79512. <method name="createRecordReader" return="org.apache.hadoop.mapreduce.RecordReader"
  79513. abstract="false" native="false" synchronized="false"
  79514. static="false" final="false" visibility="public"
  79515. deprecated="not deprecated">
  79516. <param name="split" type="org.apache.hadoop.mapreduce.InputSplit"/>
  79517. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  79518. <exception name="IOException" type="java.io.IOException"/>
  79519. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  79520. <doc>
  79521. <![CDATA[Implementation of InputFormat::createRecordReader().
  79522. @param split The split for which the RecordReader is sought.
  79523. @param context The context of the current task-attempt.
  79524. @return A SequenceFileRecordReader instance, (since the copy-listing is a
  79525. simple sequence-file.)
  79526. @throws IOException
  79527. @throws InterruptedException]]>
  79528. </doc>
  79529. </method>
  79530. <doc>
  79531. <![CDATA[UniformSizeInputFormat extends the InputFormat<> class, to produce
  79532. input-splits for DistCp.
  79533. It looks at the copy-listing and groups the contents into input-splits such
  79534. that the total-number of bytes to be copied for each input split is
  79535. uniform.]]>
  79536. </doc>
  79537. </class>
  79538. <!-- end class org.apache.hadoop.tools.distcp2.mapred.UniformSizeInputFormat -->
  79539. </package>
  79540. <package name="org.apache.hadoop.tools.distcp2.mapred.lib">
  79541. <!-- start class org.apache.hadoop.tools.distcp2.mapred.lib.DynamicInputFormat -->
  79542. <class name="DynamicInputFormat" extends="org.apache.hadoop.mapreduce.InputFormat"
  79543. abstract="false"
  79544. static="false" final="false" visibility="public"
  79545. deprecated="not deprecated">
  79546. <constructor name="DynamicInputFormat"
  79547. static="false" final="false" visibility="public"
  79548. deprecated="not deprecated">
  79549. </constructor>
  79550. <method name="getSplits" return="java.util.List"
  79551. abstract="false" native="false" synchronized="false"
  79552. static="false" final="false" visibility="public"
  79553. deprecated="not deprecated">
  79554. <param name="jobContext" type="org.apache.hadoop.mapreduce.JobContext"/>
  79555. <exception name="IOException" type="java.io.IOException"/>
  79556. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  79557. <doc>
  79558. <![CDATA[Implementation of InputFormat::getSplits(). This method splits up the
  79559. copy-listing file into chunks, and assigns the first batch to different
  79560. tasks.
  79561. @param jobContext JobContext for the map job.
  79562. @return The list of (empty) dynamic input-splits.
  79563. @throws IOException, on failure.
  79564. @throws InterruptedException]]>
  79565. </doc>
  79566. </method>
  79567. <method name="createRecordReader" return="org.apache.hadoop.mapreduce.RecordReader"
  79568. abstract="false" native="false" synchronized="false"
  79569. static="false" final="false" visibility="public"
  79570. deprecated="not deprecated">
  79571. <param name="inputSplit" type="org.apache.hadoop.mapreduce.InputSplit"/>
  79572. <param name="taskAttemptContext" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  79573. <exception name="IOException" type="java.io.IOException"/>
  79574. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  79575. <doc>
  79576. <![CDATA[Implementation of Inputformat::createRecordReader().
  79577. @param inputSplit The split for which the RecordReader is required.
  79578. @param taskAttemptContext TaskAttemptContext for the current attempt.
  79579. @return DynamicRecordReader instance.
  79580. @throws IOException, on failure.
  79581. @throws InterruptedException]]>
  79582. </doc>
  79583. </method>
  79584. <doc>
  79585. <![CDATA[DynamicInputFormat implements the "Worker pattern" for DistCp.
  79586. Rather than to split up the copy-list into a set of static splits,
  79587. the DynamicInputFormat does the following:
  79588. 1. Splits the copy-list into small chunks on the DFS.
  79589. 2. Creates a set of empty "dynamic" splits, that each consume as many chunks
  79590. as it can.
  79591. This arrangement ensures that a single slow mapper won't slow down the entire
  79592. job (since the slack will be picked up by other mappers, who consume more
  79593. chunks.)
  79594. By varying the split-ratio, one can vary chunk sizes to achieve different
  79595. performance characteristics.]]>
  79596. </doc>
  79597. </class>
  79598. <!-- end class org.apache.hadoop.tools.distcp2.mapred.lib.DynamicInputFormat -->
  79599. <!-- start class org.apache.hadoop.tools.distcp2.mapred.lib.DynamicRecordReader -->
  79600. <class name="DynamicRecordReader" extends="org.apache.hadoop.mapreduce.RecordReader"
  79601. abstract="false"
  79602. static="false" final="false" visibility="public"
  79603. deprecated="not deprecated">
  79604. <constructor name="DynamicRecordReader"
  79605. static="false" final="false" visibility="public"
  79606. deprecated="not deprecated">
  79607. </constructor>
  79608. <method name="initialize"
  79609. abstract="false" native="false" synchronized="false"
  79610. static="false" final="false" visibility="public"
  79611. deprecated="not deprecated">
  79612. <param name="inputSplit" type="org.apache.hadoop.mapreduce.InputSplit"/>
  79613. <param name="taskAttemptContext" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  79614. <exception name="IOException" type="java.io.IOException"/>
  79615. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  79616. <doc>
  79617. <![CDATA[Implementation for RecordReader::initialize(). Initializes the internal
  79618. RecordReader to read from chunks.
  79619. @param inputSplit The InputSplit for the map. Ignored entirely.
  79620. @param taskAttemptContext The AttemptContext.
  79621. @throws IOException, on failure.
  79622. @throws InterruptedException]]>
  79623. </doc>
  79624. </method>
  79625. <method name="nextKeyValue" return="boolean"
  79626. abstract="false" native="false" synchronized="false"
  79627. static="false" final="false" visibility="public"
  79628. deprecated="not deprecated">
  79629. <exception name="IOException" type="java.io.IOException"/>
  79630. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  79631. <doc>
  79632. <![CDATA[Implementation of RecordReader::nextValue().
  79633. Reads the contents of the current chunk and returns them. When a chunk has
  79634. been completely exhausted, an new chunk is acquired and read,
  79635. transparently.
  79636. @return True, if the nextValue() could be traversed to. False, otherwise.
  79637. @throws IOException, on failure.
  79638. @throws InterruptedException]]>
  79639. </doc>
  79640. </method>
  79641. <method name="getCurrentKey" return="java.lang.Object"
  79642. abstract="false" native="false" synchronized="false"
  79643. static="false" final="false" visibility="public"
  79644. deprecated="not deprecated">
  79645. <exception name="IOException" type="java.io.IOException"/>
  79646. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  79647. <doc>
  79648. <![CDATA[Implementation of RecordReader::getCurrentKey().
  79649. @return The key of the current record. (i.e. the source-path.)
  79650. @throws IOException, on failure.
  79651. @throws InterruptedException]]>
  79652. </doc>
  79653. </method>
  79654. <method name="getCurrentValue" return="java.lang.Object"
  79655. abstract="false" native="false" synchronized="false"
  79656. static="false" final="false" visibility="public"
  79657. deprecated="not deprecated">
  79658. <exception name="IOException" type="java.io.IOException"/>
  79659. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  79660. <doc>
  79661. <![CDATA[Implementation of RecordReader::getCurrentValue().
  79662. @return The value of the current record. (i.e. the target-path.)
  79663. @throws IOException, on failure.
  79664. @throws InterruptedException]]>
  79665. </doc>
  79666. </method>
  79667. <method name="getProgress" return="float"
  79668. abstract="false" native="false" synchronized="false"
  79669. static="false" final="false" visibility="public"
  79670. deprecated="not deprecated">
  79671. <exception name="IOException" type="java.io.IOException"/>
  79672. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  79673. <doc>
  79674. <![CDATA[Implementation of RecordReader::getProgress().
  79675. @return A fraction [0.0,1.0] indicating the progress of a DistCp mapper.
  79676. @throws IOException, on failure.
  79677. @throws InterruptedException]]>
  79678. </doc>
  79679. </method>
  79680. <method name="close"
  79681. abstract="false" native="false" synchronized="false"
  79682. static="false" final="false" visibility="public"
  79683. deprecated="not deprecated">
  79684. <exception name="IOException" type="java.io.IOException"/>
  79685. <doc>
  79686. <![CDATA[Implementation of RecordReader::close().
  79687. Closes the RecordReader.
  79688. @throws IOException, on failure.]]>
  79689. </doc>
  79690. </method>
  79691. <doc>
  79692. <![CDATA[The DynamicRecordReader is used in conjunction with the DynamicInputFormat
  79693. to implement the "Worker pattern" for DistCp.
  79694. The DynamicRecordReader is responsible for:
  79695. 1. Presenting the contents of each chunk to DistCp's mapper.
  79696. 2. Acquiring a new chunk when the current chunk has been completely consumed,
  79697. transparently.]]>
  79698. </doc>
  79699. </class>
  79700. <!-- end class org.apache.hadoop.tools.distcp2.mapred.lib.DynamicRecordReader -->
  79701. </package>
  79702. <package name="org.apache.hadoop.tools.distcp2.util">
  79703. <!-- start class org.apache.hadoop.tools.distcp2.util.DistCpUtils -->
  79704. <class name="DistCpUtils" extends="java.lang.Object"
  79705. abstract="false"
  79706. static="false" final="false" visibility="public"
  79707. deprecated="not deprecated">
  79708. <constructor name="DistCpUtils"
  79709. static="false" final="false" visibility="public"
  79710. deprecated="not deprecated">
  79711. </constructor>
  79712. <method name="getFileSize" return="long"
  79713. abstract="false" native="false" synchronized="false"
  79714. static="true" final="false" visibility="public"
  79715. deprecated="not deprecated">
  79716. <param name="path" type="org.apache.hadoop.fs.Path"/>
  79717. <param name="configuration" type="org.apache.hadoop.conf.Configuration"/>
  79718. <exception name="IOException" type="java.io.IOException"/>
  79719. <doc>
  79720. <![CDATA[Retrieves size of the file at the specified path.
  79721. @param path The path of the file whose size is sought.
  79722. @param configuration Configuration, to retrieve the appropriate FileSystem.
  79723. @return The file-size, in number of bytes.
  79724. @throws IOException, on failure.]]>
  79725. </doc>
  79726. </method>
  79727. <method name="publish"
  79728. abstract="false" native="false" synchronized="false"
  79729. static="true" final="false" visibility="public"
  79730. deprecated="not deprecated">
  79731. <param name="configuration" type="org.apache.hadoop.conf.Configuration"/>
  79732. <param name="label" type="java.lang.String"/>
  79733. <param name="value" type="java.lang.Object"/>
  79734. <doc>
  79735. <![CDATA[Utility to publish a value to a configuration.
  79736. @param configuration The Configuration to which the value must be written.
  79737. @param label The label for the value being published.
  79738. @param value The value being published.
  79739. @param <T> The type of the value.]]>
  79740. </doc>
  79741. </method>
  79742. <method name="getInt" return="int"
  79743. abstract="false" native="false" synchronized="false"
  79744. static="true" final="false" visibility="public"
  79745. deprecated="not deprecated">
  79746. <param name="configuration" type="org.apache.hadoop.conf.Configuration"/>
  79747. <param name="label" type="java.lang.String"/>
  79748. <doc>
  79749. <![CDATA[Utility to retrieve a specified key from a Configuration. Throw exception
  79750. if not found.
  79751. @param configuration The Configuration in which the key is sought.
  79752. @param label The key being sought.
  79753. @return Integer value of the key.]]>
  79754. </doc>
  79755. </method>
  79756. <method name="getNumMapTasks" return="int"
  79757. abstract="false" native="false" synchronized="false"
  79758. static="true" final="false" visibility="public"
  79759. deprecated="not deprecated">
  79760. <param name="configuration" type="org.apache.hadoop.conf.Configuration"/>
  79761. </method>
  79762. <method name="getLong" return="long"
  79763. abstract="false" native="false" synchronized="false"
  79764. static="true" final="false" visibility="public"
  79765. deprecated="not deprecated">
  79766. <param name="configuration" type="org.apache.hadoop.conf.Configuration"/>
  79767. <param name="label" type="java.lang.String"/>
  79768. <doc>
  79769. <![CDATA[Utility to retrieve a specified key from a Configuration. Throw exception
  79770. if not found.
  79771. @param configuration The Configuration in which the key is sought.
  79772. @param label The key being sought.
  79773. @return Long value of the key.]]>
  79774. </doc>
  79775. </method>
  79776. <method name="getStrategy" return="java.lang.Class"
  79777. abstract="false" native="false" synchronized="false"
  79778. static="true" final="false" visibility="public"
  79779. deprecated="not deprecated">
  79780. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  79781. <param name="options" type="org.apache.hadoop.tools.distcp2.DistCpOptions"/>
  79782. <doc>
  79783. <![CDATA[Returns the class that implements a copy strategy. Looks up the implementation for
  79784. a particular strategy from distcp-default.xml
  79785. @param conf - Configuration object
  79786. @param options - Handle to input options
  79787. @return Class implementing the strategy specified in options.]]>
  79788. </doc>
  79789. </method>
  79790. <method name="getRelativePath" return="java.lang.String"
  79791. abstract="false" native="false" synchronized="false"
  79792. static="true" final="false" visibility="public"
  79793. deprecated="not deprecated">
  79794. <param name="sourceRootPath" type="org.apache.hadoop.fs.Path"/>
  79795. <param name="childPath" type="org.apache.hadoop.fs.Path"/>
  79796. <doc>
  79797. <![CDATA[Gets relative path of child path with respect to a root path
  79798. For ex. If childPath = /tmp/abc/xyz/file and
  79799. sourceRootPath = /tmp/abc
  79800. Relative path would be /xyz/file
  79801. If childPath = /file and
  79802. sourceRootPath = /
  79803. Relative path would be /file
  79804. @param sourceRootPath - Source root path
  79805. @param childPath - Path for which relative path is required
  79806. @return - Relative portion of the child path (always prefixed with /
  79807. unless it is empty]]>
  79808. </doc>
  79809. </method>
  79810. <method name="packAttributes" return="java.lang.String"
  79811. abstract="false" native="false" synchronized="false"
  79812. static="true" final="false" visibility="public"
  79813. deprecated="not deprecated">
  79814. <param name="attributes" type="java.util.EnumSet"/>
  79815. <doc>
  79816. <![CDATA[Pack file preservation attributes into a string, containing
  79817. just the first character of each preservation attribute
  79818. @param attributes - Attribute set to preserve
  79819. @return - String containing first letters of each attribute to preserve]]>
  79820. </doc>
  79821. </method>
  79822. <method name="unpackAttributes" return="java.util.EnumSet"
  79823. abstract="false" native="false" synchronized="false"
  79824. static="true" final="false" visibility="public"
  79825. deprecated="not deprecated">
  79826. <param name="attributes" type="java.lang.String"/>
  79827. <doc>
  79828. <![CDATA[Un packs preservation attribute string containing the first character of
  79829. each preservation attribute back to a set of attributes to preserve
  79830. @param attributes - Attribute string
  79831. @return - Attribute set]]>
  79832. </doc>
  79833. </method>
  79834. <method name="preserve"
  79835. abstract="false" native="false" synchronized="false"
  79836. static="true" final="false" visibility="public"
  79837. deprecated="not deprecated">
  79838. <param name="targetFS" type="org.apache.hadoop.fs.FileSystem"/>
  79839. <param name="path" type="org.apache.hadoop.fs.Path"/>
  79840. <param name="srcFileStatus" type="org.apache.hadoop.fs.FileStatus"/>
  79841. <param name="attributes" type="java.util.EnumSet"/>
  79842. <exception name="IOException" type="java.io.IOException"/>
  79843. <doc>
  79844. <![CDATA[Preserve attribute on file matching that of the file status being sent
  79845. as argument. Barring the block size, all the other attributes are preserved
  79846. by this function
  79847. @param targetFS - File system
  79848. @param path - Path that needs to preserve original file status
  79849. @param srcFileStatus - Original file status
  79850. @param attributes - Attribute set that need to be preserved
  79851. @throws IOException - Exception if any (particularly relating to group/owner
  79852. change or any transient error)]]>
  79853. </doc>
  79854. </method>
  79855. <method name="sortListing" return="org.apache.hadoop.fs.Path"
  79856. abstract="false" native="false" synchronized="false"
  79857. static="true" final="false" visibility="public"
  79858. deprecated="not deprecated">
  79859. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  79860. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  79861. <param name="sourceListing" type="org.apache.hadoop.fs.Path"/>
  79862. <exception name="IOException" type="java.io.IOException"/>
  79863. <doc>
  79864. <![CDATA[Sort sequence file containing FileStatus and Text as key and value respecitvely
  79865. @param fs - File System
  79866. @param conf - Configuration
  79867. @param sourceListing - Source listing file
  79868. @return Path of the sorted file. Is source file with _sorted appended to the name
  79869. @throws IOException - Any exception during sort.]]>
  79870. </doc>
  79871. </method>
  79872. <method name="getFormatter" return="java.text.DecimalFormat"
  79873. abstract="false" native="false" synchronized="false"
  79874. static="true" final="false" visibility="public"
  79875. deprecated="not deprecated">
  79876. </method>
  79877. <method name="getStringDescriptionFor" return="java.lang.String"
  79878. abstract="false" native="false" synchronized="false"
  79879. static="true" final="false" visibility="public"
  79880. deprecated="not deprecated">
  79881. <param name="nBytes" type="long"/>
  79882. </method>
  79883. <method name="checksumsAreEqual" return="boolean"
  79884. abstract="false" native="false" synchronized="false"
  79885. static="true" final="false" visibility="public"
  79886. deprecated="not deprecated">
  79887. <param name="sourceFS" type="org.apache.hadoop.fs.FileSystem"/>
  79888. <param name="source" type="org.apache.hadoop.fs.Path"/>
  79889. <param name="targetFS" type="org.apache.hadoop.fs.FileSystem"/>
  79890. <param name="target" type="org.apache.hadoop.fs.Path"/>
  79891. <exception name="IOException" type="java.io.IOException"/>
  79892. <doc>
  79893. <![CDATA[Utility to compare checksums for the paths specified.
  79894. If checksums's can't be retrieved, it doesn't fail the test
  79895. Only time the comparison would fail is when checksums are
  79896. available and they don't match
  79897. @param sourceFS FileSystem for the source path.
  79898. @param source The source path.
  79899. @param targetFS FileSystem for the target path.
  79900. @param target The target path.
  79901. @return If either checksum couldn't be retrieved, the function returns
  79902. false. If checksums are retrieved, the function returns true if they match,
  79903. and false otherwise.
  79904. @throws IOException if there's an exception while retrieving checksums.]]>
  79905. </doc>
  79906. </method>
  79907. <method name="compareFs" return="boolean"
  79908. abstract="false" native="false" synchronized="false"
  79909. static="true" final="false" visibility="public"
  79910. deprecated="not deprecated">
  79911. <param name="srcFs" type="org.apache.hadoop.fs.FileSystem"/>
  79912. <param name="destFs" type="org.apache.hadoop.fs.FileSystem"/>
  79913. </method>
  79914. <doc>
  79915. <![CDATA[Utility functions used in DistCp.]]>
  79916. </doc>
  79917. </class>
  79918. <!-- end class org.apache.hadoop.tools.distcp2.util.DistCpUtils -->
  79919. <!-- start class org.apache.hadoop.tools.distcp2.util.RetriableCommand -->
  79920. <class name="RetriableCommand" extends="java.lang.Object"
  79921. abstract="true"
  79922. static="false" final="false" visibility="public"
  79923. deprecated="not deprecated">
  79924. <constructor name="RetriableCommand" type="java.lang.String"
  79925. static="false" final="false" visibility="public"
  79926. deprecated="not deprecated">
  79927. <doc>
  79928. <![CDATA[Constructor.
  79929. @param description The human-readable description of the command.]]>
  79930. </doc>
  79931. </constructor>
  79932. <constructor name="RetriableCommand" type="java.lang.String, org.apache.hadoop.io.retry.RetryPolicy"
  79933. static="false" final="false" visibility="public"
  79934. deprecated="not deprecated">
  79935. <doc>
  79936. <![CDATA[Constructor.
  79937. @param description The human-readable description of the command.
  79938. @param retryPolicy The RetryHandler to be used to compute retries.]]>
  79939. </doc>
  79940. </constructor>
  79941. <method name="doExecute" return="java.lang.Object"
  79942. abstract="true" native="false" synchronized="false"
  79943. static="false" final="false" visibility="protected"
  79944. deprecated="not deprecated">
  79945. <param name="arguments" type="java.lang.Object[]"/>
  79946. <exception name="Exception" type="java.lang.Exception"/>
  79947. <doc>
  79948. <![CDATA[Implement this interface-method define the command-logic that will be
  79949. retried on failure (i.e. with Exception).
  79950. @param arguments Argument-list to the command.
  79951. @return Generic "Object".
  79952. @throws Exception Throws Exception on complete failure.]]>
  79953. </doc>
  79954. </method>
  79955. <method name="execute" return="java.lang.Object"
  79956. abstract="false" native="false" synchronized="false"
  79957. static="false" final="false" visibility="public"
  79958. deprecated="not deprecated">
  79959. <param name="arguments" type="java.lang.Object[]"/>
  79960. <exception name="Exception" type="java.lang.Exception"/>
  79961. <doc>
  79962. <![CDATA[The execute() method invokes doExecute() until either:
  79963. 1. doExecute() succeeds, or
  79964. 2. the command may no longer be retried (e.g. runs out of retry-attempts).
  79965. @param arguments The list of arguments for the command.
  79966. @return Generic "Object" from doExecute(), on success.
  79967. @throws IOException, IOException, on complete failure.]]>
  79968. </doc>
  79969. </method>
  79970. <method name="setRetryPolicy" return="org.apache.hadoop.tools.distcp2.util.RetriableCommand"
  79971. abstract="false" native="false" synchronized="false"
  79972. static="false" final="false" visibility="public"
  79973. deprecated="not deprecated">
  79974. <param name="retryHandler" type="org.apache.hadoop.io.retry.RetryPolicy"/>
  79975. <doc>
  79976. <![CDATA[Fluent-interface to change the RetryHandler.
  79977. @param retryHandler The new RetryHandler instance to be used.
  79978. @return Self.]]>
  79979. </doc>
  79980. </method>
  79981. <field name="description" type="java.lang.String"
  79982. transient="false" volatile="false"
  79983. static="false" final="false" visibility="protected"
  79984. deprecated="not deprecated">
  79985. </field>
  79986. <doc>
  79987. <![CDATA[This class represents commands that be retried on failure, in a configurable
  79988. manner.]]>
  79989. </doc>
  79990. </class>
  79991. <!-- end class org.apache.hadoop.tools.distcp2.util.RetriableCommand -->
  79992. <!-- start class org.apache.hadoop.tools.distcp2.util.ThrottledInputStream -->
  79993. <class name="ThrottledInputStream" extends="java.io.InputStream"
  79994. abstract="false"
  79995. static="false" final="false" visibility="public"
  79996. deprecated="not deprecated">
  79997. <constructor name="ThrottledInputStream" type="java.io.InputStream"
  79998. static="false" final="false" visibility="public"
  79999. deprecated="not deprecated">
  80000. </constructor>
  80001. <constructor name="ThrottledInputStream" type="java.io.InputStream, long"
  80002. static="false" final="false" visibility="public"
  80003. deprecated="not deprecated">
  80004. </constructor>
  80005. <method name="close"
  80006. abstract="false" native="false" synchronized="false"
  80007. static="false" final="false" visibility="public"
  80008. deprecated="not deprecated">
  80009. <exception name="IOException" type="java.io.IOException"/>
  80010. </method>
  80011. <method name="read" return="int"
  80012. abstract="false" native="false" synchronized="false"
  80013. static="false" final="false" visibility="public"
  80014. deprecated="not deprecated">
  80015. <exception name="IOException" type="java.io.IOException"/>
  80016. <doc>
  80017. <![CDATA[@inheritDoc]]>
  80018. </doc>
  80019. </method>
  80020. <method name="read" return="int"
  80021. abstract="false" native="false" synchronized="false"
  80022. static="false" final="false" visibility="public"
  80023. deprecated="not deprecated">
  80024. <param name="b" type="byte[]"/>
  80025. <exception name="IOException" type="java.io.IOException"/>
  80026. <doc>
  80027. <![CDATA[@inheritDoc]]>
  80028. </doc>
  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. <param name="b" type="byte[]"/>
  80035. <param name="off" type="int"/>
  80036. <param name="len" type="int"/>
  80037. <exception name="IOException" type="java.io.IOException"/>
  80038. <doc>
  80039. <![CDATA[@inheritDoc]]>
  80040. </doc>
  80041. </method>
  80042. <method name="getTotalBytesRead" return="long"
  80043. abstract="false" native="false" synchronized="false"
  80044. static="false" final="false" visibility="public"
  80045. deprecated="not deprecated">
  80046. <doc>
  80047. <![CDATA[Getter for the number of bytes read from this stream, since creation.
  80048. @return The number of bytes.]]>
  80049. </doc>
  80050. </method>
  80051. <method name="getBytesPerSec" return="long"
  80052. abstract="false" native="false" synchronized="false"
  80053. static="false" final="false" visibility="public"
  80054. deprecated="not deprecated">
  80055. <doc>
  80056. <![CDATA[Getter for the read-rate from this stream, since creation.
  80057. Calculated as bytesRead/elapsedTimeSinceStart.
  80058. @return Read rate, in bytes/sec.]]>
  80059. </doc>
  80060. </method>
  80061. <method name="getTotalSleepTime" 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 the total time spent in sleep.
  80067. @return Number of milliseconds spent in sleep.]]>
  80068. </doc>
  80069. </method>
  80070. <method name="toString" return="java.lang.String"
  80071. abstract="false" native="false" synchronized="false"
  80072. static="false" final="false" visibility="public"
  80073. deprecated="not deprecated">
  80074. <doc>
  80075. <![CDATA[@inheritDoc]]>
  80076. </doc>
  80077. </method>
  80078. <doc>
  80079. <![CDATA[The ThrottleInputStream provides bandwidth throttling on a specified
  80080. InputStream. It is implemented as a wrapper on top of another InputStream
  80081. instance.
  80082. The throttling works by examining the number of bytes read from the underlying
  80083. InputStream from the beginning, and sleep()ing for a time interval if
  80084. the byte-transfer is found exceed the specified tolerable maximum.
  80085. (Thus, while the read-rate might exceed the maximum for a given short interval,
  80086. the average tends towards the specified maximum, overall.)]]>
  80087. </doc>
  80088. </class>
  80089. <!-- end class org.apache.hadoop.tools.distcp2.util.ThrottledInputStream -->
  80090. </package>
  80091. <package name="org.apache.hadoop.tools.rumen">
  80092. <!-- start class org.apache.hadoop.tools.rumen.AbstractClusterStory -->
  80093. <class name="AbstractClusterStory" extends="java.lang.Object"
  80094. abstract="true"
  80095. static="false" final="false" visibility="public"
  80096. deprecated="not deprecated">
  80097. <implements name="org.apache.hadoop.tools.rumen.ClusterStory"/>
  80098. <constructor name="AbstractClusterStory"
  80099. static="false" final="false" visibility="public"
  80100. deprecated="not deprecated">
  80101. </constructor>
  80102. <method name="getMachines" return="java.util.Set"
  80103. abstract="false" native="false" synchronized="false"
  80104. static="false" final="false" visibility="public"
  80105. deprecated="not deprecated">
  80106. </method>
  80107. <method name="getRacks" return="java.util.Set"
  80108. abstract="false" native="false" synchronized="true"
  80109. static="false" final="false" visibility="public"
  80110. deprecated="not deprecated">
  80111. </method>
  80112. <method name="getRandomMachines" return="org.apache.hadoop.tools.rumen.MachineNode[]"
  80113. abstract="false" native="false" synchronized="true"
  80114. static="false" final="false" visibility="public"
  80115. deprecated="not deprecated">
  80116. <param name="expected" type="int"/>
  80117. <param name="random" type="java.util.Random"/>
  80118. </method>
  80119. <method name="buildMachineNodeMap"
  80120. abstract="false" native="false" synchronized="true"
  80121. static="false" final="false" visibility="protected"
  80122. deprecated="not deprecated">
  80123. </method>
  80124. <method name="getMachineByName" return="org.apache.hadoop.tools.rumen.MachineNode"
  80125. abstract="false" native="false" synchronized="false"
  80126. static="false" final="false" visibility="public"
  80127. deprecated="not deprecated">
  80128. <param name="name" type="java.lang.String"/>
  80129. </method>
  80130. <method name="distance" return="int"
  80131. abstract="false" native="false" synchronized="false"
  80132. static="false" final="false" visibility="public"
  80133. deprecated="not deprecated">
  80134. <param name="a" type="org.apache.hadoop.tools.rumen.Node"/>
  80135. <param name="b" type="org.apache.hadoop.tools.rumen.Node"/>
  80136. </method>
  80137. <method name="buildRackNodeMap"
  80138. abstract="false" native="false" synchronized="true"
  80139. static="false" final="false" visibility="protected"
  80140. deprecated="not deprecated">
  80141. </method>
  80142. <method name="getRackByName" return="org.apache.hadoop.tools.rumen.RackNode"
  80143. abstract="false" native="false" synchronized="false"
  80144. static="false" final="false" visibility="public"
  80145. deprecated="not deprecated">
  80146. <param name="name" type="java.lang.String"/>
  80147. </method>
  80148. <method name="getMaximumDistance" return="int"
  80149. abstract="false" native="false" synchronized="false"
  80150. static="false" final="false" visibility="public"
  80151. deprecated="not deprecated">
  80152. </method>
  80153. <method name="parseTopologyTree"
  80154. abstract="false" native="false" synchronized="true"
  80155. static="false" final="false" visibility="protected"
  80156. deprecated="not deprecated">
  80157. </method>
  80158. <field name="machineNodes" type="java.util.Set"
  80159. transient="false" volatile="false"
  80160. static="false" final="false" visibility="protected"
  80161. deprecated="not deprecated">
  80162. </field>
  80163. <field name="rackNodes" type="java.util.Set"
  80164. transient="false" volatile="false"
  80165. static="false" final="false" visibility="protected"
  80166. deprecated="not deprecated">
  80167. </field>
  80168. <field name="mNodesFlattened" type="org.apache.hadoop.tools.rumen.MachineNode[]"
  80169. transient="false" volatile="false"
  80170. static="false" final="false" visibility="protected"
  80171. deprecated="not deprecated">
  80172. </field>
  80173. <field name="mNodeMap" type="java.util.Map"
  80174. transient="false" volatile="false"
  80175. static="false" final="false" visibility="protected"
  80176. deprecated="not deprecated">
  80177. </field>
  80178. <field name="rNodeMap" type="java.util.Map"
  80179. transient="false" volatile="false"
  80180. static="false" final="false" visibility="protected"
  80181. deprecated="not deprecated">
  80182. </field>
  80183. <field name="maximumDistance" type="int"
  80184. transient="false" volatile="false"
  80185. static="false" final="false" visibility="protected"
  80186. deprecated="not deprecated">
  80187. </field>
  80188. <doc>
  80189. <![CDATA[{@link AbstractClusterStory} provides a partial implementation of
  80190. {@link ClusterStory} by parsing the topology tree.]]>
  80191. </doc>
  80192. </class>
  80193. <!-- end class org.apache.hadoop.tools.rumen.AbstractClusterStory -->
  80194. <!-- start class org.apache.hadoop.tools.rumen.CDFPiecewiseLinearRandomGenerator -->
  80195. <class name="CDFPiecewiseLinearRandomGenerator" extends="org.apache.hadoop.tools.rumen.CDFRandomGenerator"
  80196. abstract="false"
  80197. static="false" final="false" visibility="public"
  80198. deprecated="not deprecated">
  80199. <constructor name="CDFPiecewiseLinearRandomGenerator" type="org.apache.hadoop.tools.rumen.LoggedDiscreteCDF"
  80200. static="false" final="false" visibility="public"
  80201. deprecated="not deprecated">
  80202. <doc>
  80203. <![CDATA[@param cdf
  80204. builds a CDFRandomValue engine around this
  80205. {@link LoggedDiscreteCDF}, with a defaultly seeded RNG]]>
  80206. </doc>
  80207. </constructor>
  80208. <constructor name="CDFPiecewiseLinearRandomGenerator" type="org.apache.hadoop.tools.rumen.LoggedDiscreteCDF, long"
  80209. static="false" final="false" visibility="public"
  80210. deprecated="not deprecated">
  80211. <doc>
  80212. <![CDATA[@param cdf
  80213. builds a CDFRandomValue engine around this
  80214. {@link LoggedDiscreteCDF}, with an explicitly seeded RNG
  80215. @param seed
  80216. the random number generator seed]]>
  80217. </doc>
  80218. </constructor>
  80219. <method name="valueAt" return="long"
  80220. abstract="false" native="false" synchronized="false"
  80221. static="false" final="false" visibility="public"
  80222. deprecated="not deprecated">
  80223. <param name="probability" type="double"/>
  80224. <doc>
  80225. <![CDATA[TODO This code assumes that the empirical minimum resp. maximum is the
  80226. epistomological minimum resp. maximum. This is probably okay for the
  80227. minimum, because that likely represents a task where everything went well,
  80228. but for the maximum we may want to develop a way of extrapolating past the
  80229. maximum.]]>
  80230. </doc>
  80231. </method>
  80232. </class>
  80233. <!-- end class org.apache.hadoop.tools.rumen.CDFPiecewiseLinearRandomGenerator -->
  80234. <!-- start class org.apache.hadoop.tools.rumen.CDFRandomGenerator -->
  80235. <class name="CDFRandomGenerator" extends="java.lang.Object"
  80236. abstract="true"
  80237. static="false" final="false" visibility="public"
  80238. deprecated="not deprecated">
  80239. <method name="initializeTables"
  80240. abstract="false" native="false" synchronized="false"
  80241. static="false" final="true" visibility="protected"
  80242. deprecated="not deprecated">
  80243. <param name="cdf" type="org.apache.hadoop.tools.rumen.LoggedDiscreteCDF"/>
  80244. </method>
  80245. <method name="floorIndex" return="int"
  80246. abstract="false" native="false" synchronized="false"
  80247. static="false" final="false" visibility="protected"
  80248. deprecated="not deprecated">
  80249. <param name="probe" type="double"/>
  80250. </method>
  80251. <method name="getRankingAt" return="double"
  80252. abstract="false" native="false" synchronized="false"
  80253. static="false" final="false" visibility="protected"
  80254. deprecated="not deprecated">
  80255. <param name="index" type="int"/>
  80256. </method>
  80257. <method name="getDatumAt" return="long"
  80258. abstract="false" native="false" synchronized="false"
  80259. static="false" final="false" visibility="protected"
  80260. deprecated="not deprecated">
  80261. <param name="index" type="int"/>
  80262. </method>
  80263. <method name="randomValue" return="long"
  80264. abstract="false" native="false" synchronized="false"
  80265. static="false" final="false" visibility="public"
  80266. deprecated="not deprecated">
  80267. </method>
  80268. <method name="valueAt" return="long"
  80269. abstract="true" native="false" synchronized="false"
  80270. static="false" final="false" visibility="public"
  80271. deprecated="not deprecated">
  80272. <param name="probability" type="double"/>
  80273. </method>
  80274. <doc>
  80275. <![CDATA[An instance of this class generates random values that confirm to the
  80276. embedded {@link LoggedDiscreteCDF} . The discrete CDF is a pointwise
  80277. approximation of the "real" CDF. We therefore have a choice of interpolation
  80278. rules.
  80279. A concrete subclass of this abstract class will implement valueAt(double)
  80280. using a class-dependent interpolation rule.]]>
  80281. </doc>
  80282. </class>
  80283. <!-- end class org.apache.hadoop.tools.rumen.CDFRandomGenerator -->
  80284. <!-- start interface org.apache.hadoop.tools.rumen.ClusterStory -->
  80285. <interface name="ClusterStory" abstract="true"
  80286. static="false" final="false" visibility="public"
  80287. deprecated="not deprecated">
  80288. <method name="getMachines" return="java.util.Set"
  80289. abstract="false" native="false" synchronized="false"
  80290. static="false" final="false" visibility="public"
  80291. deprecated="not deprecated">
  80292. <doc>
  80293. <![CDATA[Get all machines of the cluster.
  80294. @return A read-only set that contains all machines of the cluster.]]>
  80295. </doc>
  80296. </method>
  80297. <method name="getRacks" return="java.util.Set"
  80298. abstract="false" native="false" synchronized="false"
  80299. static="false" final="false" visibility="public"
  80300. deprecated="not deprecated">
  80301. <doc>
  80302. <![CDATA[Get all racks of the cluster.
  80303. @return A read-only set that contains all racks of the cluster.]]>
  80304. </doc>
  80305. </method>
  80306. <method name="getClusterTopology" return="org.apache.hadoop.tools.rumen.Node"
  80307. abstract="false" native="false" synchronized="false"
  80308. static="false" final="false" visibility="public"
  80309. deprecated="not deprecated">
  80310. <doc>
  80311. <![CDATA[Get the cluster topology tree.
  80312. @return The root node of the cluster topology tree.]]>
  80313. </doc>
  80314. </method>
  80315. <method name="getRandomMachines" return="org.apache.hadoop.tools.rumen.MachineNode[]"
  80316. abstract="false" native="false" synchronized="false"
  80317. static="false" final="false" visibility="public"
  80318. deprecated="not deprecated">
  80319. <param name="expected" type="int"/>
  80320. <param name="random" type="java.util.Random"/>
  80321. <doc>
  80322. <![CDATA[Select a random set of machines.
  80323. @param expected The expected sample size.
  80324. @param random Random number generator to use.
  80325. @return An array of up to expected number of {@link MachineNode}s.]]>
  80326. </doc>
  80327. </method>
  80328. <method name="getMachineByName" return="org.apache.hadoop.tools.rumen.MachineNode"
  80329. abstract="false" native="false" synchronized="false"
  80330. static="false" final="false" visibility="public"
  80331. deprecated="not deprecated">
  80332. <param name="name" type="java.lang.String"/>
  80333. <doc>
  80334. <![CDATA[Get {@link MachineNode} by its host name.
  80335. @return The {@link MachineNode} with the same name. Or null if not found.]]>
  80336. </doc>
  80337. </method>
  80338. <method name="getRackByName" return="org.apache.hadoop.tools.rumen.RackNode"
  80339. abstract="false" native="false" synchronized="false"
  80340. static="false" final="false" visibility="public"
  80341. deprecated="not deprecated">
  80342. <param name="name" type="java.lang.String"/>
  80343. <doc>
  80344. <![CDATA[Get {@link RackNode} by its name.
  80345. @return The {@link RackNode} with the same name. Or null if not found.]]>
  80346. </doc>
  80347. </method>
  80348. <method name="distance" return="int"
  80349. abstract="false" native="false" synchronized="false"
  80350. static="false" final="false" visibility="public"
  80351. deprecated="not deprecated">
  80352. <param name="a" type="org.apache.hadoop.tools.rumen.Node"/>
  80353. <param name="b" type="org.apache.hadoop.tools.rumen.Node"/>
  80354. <doc>
  80355. <![CDATA[Determine the distance between two {@link Node}s. Currently, the distance
  80356. is loosely defined as the length of the longer path for either a or b to
  80357. reach their common ancestor.
  80358. @param a
  80359. @param b
  80360. @return The distance between {@link Node} a and {@link Node} b.]]>
  80361. </doc>
  80362. </method>
  80363. <method name="getMaximumDistance" return="int"
  80364. abstract="false" native="false" synchronized="false"
  80365. static="false" final="false" visibility="public"
  80366. deprecated="not deprecated">
  80367. <doc>
  80368. <![CDATA[Get the maximum distance possible between any two nodes.
  80369. @return the maximum distance possible between any two nodes.]]>
  80370. </doc>
  80371. </method>
  80372. <doc>
  80373. <![CDATA[{@link ClusterStory} represents all configurations of a MapReduce cluster,
  80374. including nodes, network topology, and slot configurations.]]>
  80375. </doc>
  80376. </interface>
  80377. <!-- end interface org.apache.hadoop.tools.rumen.ClusterStory -->
  80378. <!-- start class org.apache.hadoop.tools.rumen.ClusterTopologyReader -->
  80379. <class name="ClusterTopologyReader" extends="java.lang.Object"
  80380. abstract="false"
  80381. static="false" final="false" visibility="public"
  80382. deprecated="not deprecated">
  80383. <constructor name="ClusterTopologyReader" type="org.apache.hadoop.fs.Path, org.apache.hadoop.conf.Configuration"
  80384. static="false" final="false" visibility="public"
  80385. deprecated="not deprecated">
  80386. <exception name="IOException" type="java.io.IOException"/>
  80387. <doc>
  80388. <![CDATA[Constructor.
  80389. @param path
  80390. Path to the JSON-encoded topology file, possibly compressed.
  80391. @param conf
  80392. @throws IOException]]>
  80393. </doc>
  80394. </constructor>
  80395. <constructor name="ClusterTopologyReader" type="java.io.InputStream"
  80396. static="false" final="false" visibility="public"
  80397. deprecated="not deprecated">
  80398. <exception name="IOException" type="java.io.IOException"/>
  80399. <doc>
  80400. <![CDATA[Constructor.
  80401. @param input
  80402. The input stream for the JSON-encoded topology data.]]>
  80403. </doc>
  80404. </constructor>
  80405. <method name="get" return="org.apache.hadoop.tools.rumen.LoggedNetworkTopology"
  80406. abstract="false" native="false" synchronized="false"
  80407. static="false" final="false" visibility="public"
  80408. deprecated="not deprecated">
  80409. <doc>
  80410. <![CDATA[Get the {@link LoggedNetworkTopology} object.
  80411. @return The {@link LoggedNetworkTopology} object parsed from the input.]]>
  80412. </doc>
  80413. </method>
  80414. <doc>
  80415. <![CDATA[Reading JSON-encoded cluster topology and produce the parsed
  80416. {@link LoggedNetworkTopology} object.]]>
  80417. </doc>
  80418. </class>
  80419. <!-- end class org.apache.hadoop.tools.rumen.ClusterTopologyReader -->
  80420. <!-- start interface org.apache.hadoop.tools.rumen.DeepCompare -->
  80421. <interface name="DeepCompare" abstract="true"
  80422. static="false" final="false" visibility="public"
  80423. deprecated="not deprecated">
  80424. <method name="deepCompare"
  80425. abstract="false" native="false" synchronized="false"
  80426. static="false" final="false" visibility="public"
  80427. deprecated="not deprecated">
  80428. <param name="other" type="org.apache.hadoop.tools.rumen.DeepCompare"/>
  80429. <param name="myLocation" type="org.apache.hadoop.tools.rumen.TreePath"/>
  80430. <exception name="DeepInequalityException" type="org.apache.hadoop.tools.rumen.DeepInequalityException"/>
  80431. <doc>
  80432. <![CDATA[@param other
  80433. the other comparand that's being compared to me
  80434. @param myLocation
  80435. the path that got to me. In the root, myLocation is null. To
  80436. process the scalar {@code foo} field of the root we will make a
  80437. recursive call with a {@link TreePath} whose {@code fieldName} is
  80438. {@code "bar"} and whose {@code index} is -1 and whose {@code
  80439. parent} is {@code null}. To process the plural {@code bar} field
  80440. of the root we will make a recursive call with a {@link TreePath}
  80441. whose fieldName is {@code "foo"} and whose {@code index} is -1 and
  80442. whose {@code parent} is also {@code null}.
  80443. @throws DeepInequalityException]]>
  80444. </doc>
  80445. </method>
  80446. <doc>
  80447. <![CDATA[Classes that implement this interface can deep-compare [for equality only,
  80448. not order] with another instance. They do a deep compare. If there is any
  80449. semantically significant difference, an implementer throws an Exception to be
  80450. thrown with a chain of causes describing the chain of field references and
  80451. indices that get you to the miscompared point.]]>
  80452. </doc>
  80453. </interface>
  80454. <!-- end interface org.apache.hadoop.tools.rumen.DeepCompare -->
  80455. <!-- start class org.apache.hadoop.tools.rumen.DeepInequalityException -->
  80456. <class name="DeepInequalityException" extends="java.lang.Exception"
  80457. abstract="false"
  80458. static="false" final="false" visibility="public"
  80459. deprecated="not deprecated">
  80460. <constructor name="DeepInequalityException" type="java.lang.String, org.apache.hadoop.tools.rumen.TreePath, java.lang.Throwable"
  80461. static="false" final="false" visibility="public"
  80462. deprecated="not deprecated">
  80463. <doc>
  80464. <![CDATA[@param message
  80465. an exception message
  80466. @param path
  80467. the path that gets from the root to the inequality
  80468. This is the constructor that I intend to have used for this
  80469. exception.]]>
  80470. </doc>
  80471. </constructor>
  80472. <constructor name="DeepInequalityException" type="java.lang.String, org.apache.hadoop.tools.rumen.TreePath"
  80473. static="false" final="false" visibility="public"
  80474. deprecated="not deprecated">
  80475. <doc>
  80476. <![CDATA[@param message
  80477. an exception message
  80478. @param path
  80479. the path that gets from the root to the inequality
  80480. This is the constructor that I intend to have used for this
  80481. exception.]]>
  80482. </doc>
  80483. </constructor>
  80484. <doc>
  80485. <![CDATA[We use this exception class in the unit test, and we do a deep comparison
  80486. when we run the]]>
  80487. </doc>
  80488. </class>
  80489. <!-- end class org.apache.hadoop.tools.rumen.DeepInequalityException -->
  80490. <!-- start class org.apache.hadoop.tools.rumen.DefaultInputDemuxer -->
  80491. <class name="DefaultInputDemuxer" extends="java.lang.Object"
  80492. abstract="false"
  80493. static="false" final="false" visibility="public"
  80494. deprecated="not deprecated">
  80495. <implements name="org.apache.hadoop.tools.rumen.InputDemuxer"/>
  80496. <constructor name="DefaultInputDemuxer"
  80497. static="false" final="false" visibility="public"
  80498. deprecated="not deprecated">
  80499. </constructor>
  80500. <method name="bindTo"
  80501. abstract="false" native="false" synchronized="false"
  80502. static="false" final="false" visibility="public"
  80503. deprecated="not deprecated">
  80504. <param name="path" type="org.apache.hadoop.fs.Path"/>
  80505. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  80506. <exception name="IOException" type="java.io.IOException"/>
  80507. </method>
  80508. <method name="getNext" return="org.apache.hadoop.tools.rumen.Pair"
  80509. abstract="false" native="false" synchronized="false"
  80510. static="false" final="false" visibility="public"
  80511. deprecated="not deprecated">
  80512. <exception name="IOException" type="java.io.IOException"/>
  80513. </method>
  80514. <method name="close"
  80515. abstract="false" native="false" synchronized="false"
  80516. static="false" final="false" visibility="public"
  80517. deprecated="not deprecated">
  80518. <exception name="IOException" type="java.io.IOException"/>
  80519. </method>
  80520. <doc>
  80521. <![CDATA[{@link DefaultInputDemuxer} acts as a pass-through demuxer. It just opens
  80522. each file and returns back the input stream. If the input is compressed, it
  80523. would return a decompression stream.]]>
  80524. </doc>
  80525. </class>
  80526. <!-- end class org.apache.hadoop.tools.rumen.DefaultInputDemuxer -->
  80527. <!-- start class org.apache.hadoop.tools.rumen.DefaultOutputter -->
  80528. <class name="DefaultOutputter" extends="java.lang.Object"
  80529. abstract="false"
  80530. static="false" final="false" visibility="public"
  80531. deprecated="not deprecated">
  80532. <implements name="org.apache.hadoop.tools.rumen.Outputter"/>
  80533. <constructor name="DefaultOutputter"
  80534. static="false" final="false" visibility="public"
  80535. deprecated="not deprecated">
  80536. </constructor>
  80537. <method name="init"
  80538. abstract="false" native="false" synchronized="false"
  80539. static="false" final="false" visibility="public"
  80540. deprecated="not deprecated">
  80541. <param name="path" type="org.apache.hadoop.fs.Path"/>
  80542. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  80543. <exception name="IOException" type="java.io.IOException"/>
  80544. </method>
  80545. <method name="output"
  80546. abstract="false" native="false" synchronized="false"
  80547. static="false" final="false" visibility="public"
  80548. deprecated="not deprecated">
  80549. <param name="object" type="java.lang.Object"/>
  80550. <exception name="IOException" type="java.io.IOException"/>
  80551. </method>
  80552. <method name="close"
  80553. abstract="false" native="false" synchronized="false"
  80554. static="false" final="false" visibility="public"
  80555. deprecated="not deprecated">
  80556. <exception name="IOException" type="java.io.IOException"/>
  80557. </method>
  80558. <doc>
  80559. <![CDATA[The default {@link Outputter} that outputs to a plain file. Compression
  80560. will be applied if the path has the right suffix.]]>
  80561. </doc>
  80562. </class>
  80563. <!-- end class org.apache.hadoop.tools.rumen.DefaultOutputter -->
  80564. <!-- start class org.apache.hadoop.tools.rumen.DeskewedJobTraceReader -->
  80565. <class name="DeskewedJobTraceReader" extends="java.lang.Object"
  80566. abstract="false"
  80567. static="false" final="false" visibility="public"
  80568. deprecated="not deprecated">
  80569. <implements name="java.io.Closeable"/>
  80570. <constructor name="DeskewedJobTraceReader" type="org.apache.hadoop.tools.rumen.JobTraceReader, int, boolean"
  80571. static="false" final="false" visibility="public"
  80572. deprecated="not deprecated">
  80573. <exception name="IOException" type="java.io.IOException"/>
  80574. <doc>
  80575. <![CDATA[Constructor.
  80576. @param reader
  80577. the {@link JobTraceReader} that's being protected
  80578. @param skewBufferLength
  80579. [the number of late jobs that can preced a later out-of-order
  80580. earlier job
  80581. @throws IOException]]>
  80582. </doc>
  80583. </constructor>
  80584. <constructor name="DeskewedJobTraceReader" type="org.apache.hadoop.tools.rumen.JobTraceReader"
  80585. static="false" final="false" visibility="public"
  80586. deprecated="not deprecated">
  80587. <exception name="IOException" type="java.io.IOException"/>
  80588. </constructor>
  80589. <method name="close"
  80590. abstract="false" native="false" synchronized="false"
  80591. static="false" final="false" visibility="public"
  80592. deprecated="not deprecated">
  80593. <exception name="IOException" type="java.io.IOException"/>
  80594. </method>
  80595. </class>
  80596. <!-- end class org.apache.hadoop.tools.rumen.DeskewedJobTraceReader -->
  80597. <!-- start class org.apache.hadoop.tools.rumen.EventType -->
  80598. <class name="EventType" extends="java.lang.Enum"
  80599. abstract="false"
  80600. static="false" final="true" visibility="public"
  80601. deprecated="not deprecated">
  80602. <method name="values" return="org.apache.hadoop.tools.rumen.EventType[]"
  80603. abstract="false" native="false" synchronized="false"
  80604. static="true" final="false" visibility="public"
  80605. deprecated="not deprecated">
  80606. </method>
  80607. <method name="valueOf" return="org.apache.hadoop.tools.rumen.EventType"
  80608. abstract="false" native="false" synchronized="false"
  80609. static="true" final="false" visibility="public"
  80610. deprecated="not deprecated">
  80611. <param name="name" type="java.lang.String"/>
  80612. </method>
  80613. <field name="JOB_SUBMITTED" type="org.apache.hadoop.tools.rumen.EventType"
  80614. transient="false" volatile="false"
  80615. static="true" final="true" visibility="public"
  80616. deprecated="not deprecated">
  80617. </field>
  80618. <field name="JOB_INITED" type="org.apache.hadoop.tools.rumen.EventType"
  80619. transient="false" volatile="false"
  80620. static="true" final="true" visibility="public"
  80621. deprecated="not deprecated">
  80622. </field>
  80623. <field name="JOB_FINISHED" type="org.apache.hadoop.tools.rumen.EventType"
  80624. transient="false" volatile="false"
  80625. static="true" final="true" visibility="public"
  80626. deprecated="not deprecated">
  80627. </field>
  80628. <field name="JOB_PRIORITY_CHANGED" type="org.apache.hadoop.tools.rumen.EventType"
  80629. transient="false" volatile="false"
  80630. static="true" final="true" visibility="public"
  80631. deprecated="not deprecated">
  80632. </field>
  80633. <field name="JOB_STATUS_CHANGED" type="org.apache.hadoop.tools.rumen.EventType"
  80634. transient="false" volatile="false"
  80635. static="true" final="true" visibility="public"
  80636. deprecated="not deprecated">
  80637. </field>
  80638. <field name="JOB_FAILED" type="org.apache.hadoop.tools.rumen.EventType"
  80639. transient="false" volatile="false"
  80640. static="true" final="true" visibility="public"
  80641. deprecated="not deprecated">
  80642. </field>
  80643. <field name="JOB_KILLED" type="org.apache.hadoop.tools.rumen.EventType"
  80644. transient="false" volatile="false"
  80645. static="true" final="true" visibility="public"
  80646. deprecated="not deprecated">
  80647. </field>
  80648. <field name="JOB_INFO_CHANGED" type="org.apache.hadoop.tools.rumen.EventType"
  80649. transient="false" volatile="false"
  80650. static="true" final="true" visibility="public"
  80651. deprecated="not deprecated">
  80652. </field>
  80653. <field name="TASK_STARTED" type="org.apache.hadoop.tools.rumen.EventType"
  80654. transient="false" volatile="false"
  80655. static="true" final="true" visibility="public"
  80656. deprecated="not deprecated">
  80657. </field>
  80658. <field name="TASK_FINISHED" type="org.apache.hadoop.tools.rumen.EventType"
  80659. transient="false" volatile="false"
  80660. static="true" final="true" visibility="public"
  80661. deprecated="not deprecated">
  80662. </field>
  80663. <field name="TASK_FAILED" type="org.apache.hadoop.tools.rumen.EventType"
  80664. transient="false" volatile="false"
  80665. static="true" final="true" visibility="public"
  80666. deprecated="not deprecated">
  80667. </field>
  80668. <field name="TASK_UPDATED" type="org.apache.hadoop.tools.rumen.EventType"
  80669. transient="false" volatile="false"
  80670. static="true" final="true" visibility="public"
  80671. deprecated="not deprecated">
  80672. </field>
  80673. <field name="MAP_ATTEMPT_STARTED" type="org.apache.hadoop.tools.rumen.EventType"
  80674. transient="false" volatile="false"
  80675. static="true" final="true" visibility="public"
  80676. deprecated="not deprecated">
  80677. </field>
  80678. <field name="MAP_ATTEMPT_FINISHED" type="org.apache.hadoop.tools.rumen.EventType"
  80679. transient="false" volatile="false"
  80680. static="true" final="true" visibility="public"
  80681. deprecated="not deprecated">
  80682. </field>
  80683. <field name="MAP_ATTEMPT_FAILED" type="org.apache.hadoop.tools.rumen.EventType"
  80684. transient="false" volatile="false"
  80685. static="true" final="true" visibility="public"
  80686. deprecated="not deprecated">
  80687. </field>
  80688. <field name="MAP_ATTEMPT_KILLED" type="org.apache.hadoop.tools.rumen.EventType"
  80689. transient="false" volatile="false"
  80690. static="true" final="true" visibility="public"
  80691. deprecated="not deprecated">
  80692. </field>
  80693. <field name="REDUCE_ATTEMPT_STARTED" type="org.apache.hadoop.tools.rumen.EventType"
  80694. transient="false" volatile="false"
  80695. static="true" final="true" visibility="public"
  80696. deprecated="not deprecated">
  80697. </field>
  80698. <field name="REDUCE_ATTEMPT_FINISHED" type="org.apache.hadoop.tools.rumen.EventType"
  80699. transient="false" volatile="false"
  80700. static="true" final="true" visibility="public"
  80701. deprecated="not deprecated">
  80702. </field>
  80703. <field name="REDUCE_ATTEMPT_FAILED" type="org.apache.hadoop.tools.rumen.EventType"
  80704. transient="false" volatile="false"
  80705. static="true" final="true" visibility="public"
  80706. deprecated="not deprecated">
  80707. </field>
  80708. <field name="REDUCE_ATTEMPT_KILLED" type="org.apache.hadoop.tools.rumen.EventType"
  80709. transient="false" volatile="false"
  80710. static="true" final="true" visibility="public"
  80711. deprecated="not deprecated">
  80712. </field>
  80713. <field name="SETUP_ATTEMPT_STARTED" type="org.apache.hadoop.tools.rumen.EventType"
  80714. transient="false" volatile="false"
  80715. static="true" final="true" visibility="public"
  80716. deprecated="not deprecated">
  80717. </field>
  80718. <field name="SETUP_ATTEMPT_FINISHED" type="org.apache.hadoop.tools.rumen.EventType"
  80719. transient="false" volatile="false"
  80720. static="true" final="true" visibility="public"
  80721. deprecated="not deprecated">
  80722. </field>
  80723. <field name="SETUP_ATTEMPT_FAILED" type="org.apache.hadoop.tools.rumen.EventType"
  80724. transient="false" volatile="false"
  80725. static="true" final="true" visibility="public"
  80726. deprecated="not deprecated">
  80727. </field>
  80728. <field name="SETUP_ATTEMPT_KILLED" type="org.apache.hadoop.tools.rumen.EventType"
  80729. transient="false" volatile="false"
  80730. static="true" final="true" visibility="public"
  80731. deprecated="not deprecated">
  80732. </field>
  80733. <field name="CLEANUP_ATTEMPT_STARTED" type="org.apache.hadoop.tools.rumen.EventType"
  80734. transient="false" volatile="false"
  80735. static="true" final="true" visibility="public"
  80736. deprecated="not deprecated">
  80737. </field>
  80738. <field name="CLEANUP_ATTEMPT_FINISHED" type="org.apache.hadoop.tools.rumen.EventType"
  80739. transient="false" volatile="false"
  80740. static="true" final="true" visibility="public"
  80741. deprecated="not deprecated">
  80742. </field>
  80743. <field name="CLEANUP_ATTEMPT_FAILED" type="org.apache.hadoop.tools.rumen.EventType"
  80744. transient="false" volatile="false"
  80745. static="true" final="true" visibility="public"
  80746. deprecated="not deprecated">
  80747. </field>
  80748. <field name="CLEANUP_ATTEMPT_KILLED" type="org.apache.hadoop.tools.rumen.EventType"
  80749. transient="false" volatile="false"
  80750. static="true" final="true" visibility="public"
  80751. deprecated="not deprecated">
  80752. </field>
  80753. </class>
  80754. <!-- end class org.apache.hadoop.tools.rumen.EventType -->
  80755. <!-- start class org.apache.hadoop.tools.rumen.Hadoop20JHParser -->
  80756. <class name="Hadoop20JHParser" extends="java.lang.Object"
  80757. abstract="false"
  80758. static="false" final="false" visibility="public"
  80759. deprecated="not deprecated">
  80760. <implements name="org.apache.hadoop.tools.rumen.JobHistoryParser"/>
  80761. <constructor name="Hadoop20JHParser" type="java.io.InputStream"
  80762. static="false" final="false" visibility="public"
  80763. deprecated="not deprecated">
  80764. <exception name="IOException" type="java.io.IOException"/>
  80765. </constructor>
  80766. <constructor name="Hadoop20JHParser" type="org.apache.hadoop.util.LineReader"
  80767. static="false" final="false" visibility="public"
  80768. deprecated="not deprecated">
  80769. <exception name="IOException" type="java.io.IOException"/>
  80770. </constructor>
  80771. <method name="canParse" return="boolean"
  80772. abstract="false" native="false" synchronized="false"
  80773. static="true" final="false" visibility="public"
  80774. deprecated="not deprecated">
  80775. <param name="input" type="java.io.InputStream"/>
  80776. <exception name="IOException" type="java.io.IOException"/>
  80777. <doc>
  80778. <![CDATA[Can this parser parse the input?
  80779. @param input
  80780. @return Whether this parser can parse the input.
  80781. @throws IOException
  80782. We will deem a stream to be a good 0.20 job history stream if the
  80783. first line is exactly "Meta VERSION=\"1\" ."]]>
  80784. </doc>
  80785. </method>
  80786. <method name="nextEvent" return="org.apache.hadoop.tools.rumen.HistoryEvent"
  80787. abstract="false" native="false" synchronized="false"
  80788. static="false" final="false" visibility="public"
  80789. deprecated="not deprecated">
  80790. </method>
  80791. <method name="close"
  80792. abstract="false" native="false" synchronized="false"
  80793. static="false" final="false" visibility="public"
  80794. deprecated="not deprecated">
  80795. <exception name="IOException" type="java.io.IOException"/>
  80796. </method>
  80797. <doc>
  80798. <![CDATA[{@link JobHistoryParser} to parse job histories for hadoop 0.20 (META=1).]]>
  80799. </doc>
  80800. </class>
  80801. <!-- end class org.apache.hadoop.tools.rumen.Hadoop20JHParser -->
  80802. <!-- start class org.apache.hadoop.tools.rumen.HadoopLogsAnalyzer -->
  80803. <class name="HadoopLogsAnalyzer" extends="org.apache.hadoop.conf.Configured"
  80804. abstract="false"
  80805. static="false" final="false" visibility="public"
  80806. deprecated="not deprecated">
  80807. <implements name="org.apache.hadoop.util.Tool"/>
  80808. <constructor name="HadoopLogsAnalyzer"
  80809. static="false" final="false" visibility="public"
  80810. deprecated="not deprecated">
  80811. </constructor>
  80812. <method name="run" return="int"
  80813. abstract="false" native="false" synchronized="false"
  80814. static="false" final="false" visibility="public"
  80815. deprecated="not deprecated">
  80816. <param name="args" type="java.lang.String[]"/>
  80817. <exception name="IOException" type="java.io.IOException"/>
  80818. </method>
  80819. <method name="main"
  80820. abstract="false" native="false" synchronized="false"
  80821. static="true" final="false" visibility="public"
  80822. deprecated="not deprecated">
  80823. <param name="args" type="java.lang.String[]"/>
  80824. <doc>
  80825. <![CDATA[@param args
  80826. Last arg is the input file. That file can be a directory, in which
  80827. case you get all the files in sorted order. We will decompress
  80828. files whose nmes end in .gz .
  80829. switches: -c collect line types.
  80830. -d debug mode
  80831. -delays print out the delays [interval between job submit time and
  80832. launch time]
  80833. -runtimes print out the job runtimes
  80834. -spreads print out the ratio of 10%ile and 90%ile, of both the
  80835. successful map task attempt run times and the the successful
  80836. reduce task attempt run times
  80837. -tasktimes prints out individual task time distributions
  80838. collects all the line types and prints the first example of each
  80839. one]]>
  80840. </doc>
  80841. </method>
  80842. <doc>
  80843. <![CDATA[This is the main class for rumen log mining functionality.
  80844. It reads a directory of job tracker logs, and computes various information
  80845. about it. See {@code usage()}, below.]]>
  80846. </doc>
  80847. </class>
  80848. <!-- end class org.apache.hadoop.tools.rumen.HadoopLogsAnalyzer -->
  80849. <!-- start interface org.apache.hadoop.tools.rumen.HistoryEvent -->
  80850. <interface name="HistoryEvent" abstract="true"
  80851. static="false" final="false" visibility="public"
  80852. deprecated="not deprecated">
  80853. <method name="getEventType" return="org.apache.hadoop.tools.rumen.EventType"
  80854. abstract="false" native="false" synchronized="false"
  80855. static="false" final="false" visibility="public"
  80856. deprecated="not deprecated">
  80857. <doc>
  80858. <![CDATA[Return this event's type.]]>
  80859. </doc>
  80860. </method>
  80861. </interface>
  80862. <!-- end interface org.apache.hadoop.tools.rumen.HistoryEvent -->
  80863. <!-- start interface org.apache.hadoop.tools.rumen.InputDemuxer -->
  80864. <interface name="InputDemuxer" abstract="true"
  80865. static="false" final="false" visibility="public"
  80866. deprecated="not deprecated">
  80867. <implements name="java.io.Closeable"/>
  80868. <method name="bindTo"
  80869. abstract="false" native="false" synchronized="false"
  80870. static="false" final="false" visibility="public"
  80871. deprecated="not deprecated">
  80872. <param name="path" type="org.apache.hadoop.fs.Path"/>
  80873. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  80874. <exception name="IOException" type="java.io.IOException"/>
  80875. <doc>
  80876. <![CDATA[Bind the {@link InputDemuxer} to a particular file.
  80877. @param path
  80878. The path to the find it should bind to.
  80879. @param conf
  80880. Configuration
  80881. @throws IOException
  80882. Returns true when the binding succeeds. If the file can be read
  80883. but is in the wrong format, returns false. IOException is
  80884. reserved for read errors.]]>
  80885. </doc>
  80886. </method>
  80887. <method name="getNext" return="org.apache.hadoop.tools.rumen.Pair"
  80888. abstract="false" native="false" synchronized="false"
  80889. static="false" final="false" visibility="public"
  80890. deprecated="not deprecated">
  80891. <exception name="IOException" type="java.io.IOException"/>
  80892. <doc>
  80893. <![CDATA[Get the next <name, input> pair. The name should preserve the original job
  80894. history file or job conf file name. The input object should be closed
  80895. before calling getNext() again. The old input object would be invalid after
  80896. calling getNext() again.
  80897. @return the next <name, input> pair.]]>
  80898. </doc>
  80899. </method>
  80900. <doc>
  80901. <![CDATA[{@link InputDemuxer} dem-ultiplexes the input files into individual input
  80902. streams.]]>
  80903. </doc>
  80904. </interface>
  80905. <!-- end interface org.apache.hadoop.tools.rumen.InputDemuxer -->
  80906. <!-- start class org.apache.hadoop.tools.rumen.JhCounter -->
  80907. <class name="JhCounter" extends="java.lang.Object"
  80908. abstract="false"
  80909. static="false" final="false" visibility="public"
  80910. deprecated="not deprecated">
  80911. <constructor name="JhCounter"
  80912. static="false" final="false" visibility="public"
  80913. deprecated="not deprecated">
  80914. </constructor>
  80915. <field name="name" type="java.lang.String"
  80916. transient="false" volatile="false"
  80917. static="false" final="false" visibility="public"
  80918. deprecated="not deprecated">
  80919. </field>
  80920. <field name="displayName" type="java.lang.String"
  80921. transient="false" volatile="false"
  80922. static="false" final="false" visibility="public"
  80923. deprecated="not deprecated">
  80924. </field>
  80925. <field name="value" type="long"
  80926. transient="false" volatile="false"
  80927. static="false" final="false" visibility="public"
  80928. deprecated="not deprecated">
  80929. </field>
  80930. </class>
  80931. <!-- end class org.apache.hadoop.tools.rumen.JhCounter -->
  80932. <!-- start class org.apache.hadoop.tools.rumen.JhCounterGroup -->
  80933. <class name="JhCounterGroup" extends="java.lang.Object"
  80934. abstract="false"
  80935. static="false" final="false" visibility="public"
  80936. deprecated="not deprecated">
  80937. <constructor name="JhCounterGroup"
  80938. static="false" final="false" visibility="public"
  80939. deprecated="not deprecated">
  80940. </constructor>
  80941. <field name="name" type="java.lang.String"
  80942. transient="false" volatile="false"
  80943. static="false" final="false" visibility="public"
  80944. deprecated="not deprecated">
  80945. </field>
  80946. <field name="displayName" type="java.lang.String"
  80947. transient="false" volatile="false"
  80948. static="false" final="false" visibility="public"
  80949. deprecated="not deprecated">
  80950. </field>
  80951. <field name="counts" type="java.util.List"
  80952. transient="false" volatile="false"
  80953. static="false" final="false" visibility="public"
  80954. deprecated="not deprecated">
  80955. </field>
  80956. </class>
  80957. <!-- end class org.apache.hadoop.tools.rumen.JhCounterGroup -->
  80958. <!-- start class org.apache.hadoop.tools.rumen.JhCounters -->
  80959. <class name="JhCounters" extends="java.lang.Object"
  80960. abstract="false"
  80961. static="false" final="false" visibility="public"
  80962. deprecated="not deprecated">
  80963. <field name="name" type="java.lang.String"
  80964. transient="false" volatile="false"
  80965. static="false" final="false" visibility="public"
  80966. deprecated="not deprecated">
  80967. </field>
  80968. <field name="groups" type="java.util.List"
  80969. transient="false" volatile="false"
  80970. static="false" final="false" visibility="public"
  80971. deprecated="not deprecated">
  80972. </field>
  80973. </class>
  80974. <!-- end class org.apache.hadoop.tools.rumen.JhCounters -->
  80975. <!-- start class org.apache.hadoop.tools.rumen.Job20LineHistoryEventEmitter -->
  80976. <class name="Job20LineHistoryEventEmitter" extends="org.apache.hadoop.tools.rumen.HistoryEventEmitter"
  80977. abstract="false"
  80978. static="false" final="false" visibility="public"
  80979. deprecated="not deprecated">
  80980. </class>
  80981. <!-- end class org.apache.hadoop.tools.rumen.Job20LineHistoryEventEmitter -->
  80982. <!-- start class org.apache.hadoop.tools.rumen.JobBuilder -->
  80983. <class name="JobBuilder" extends="java.lang.Object"
  80984. abstract="false"
  80985. static="false" final="false" visibility="public"
  80986. deprecated="not deprecated">
  80987. <constructor name="JobBuilder" type="java.lang.String"
  80988. static="false" final="false" visibility="public"
  80989. deprecated="not deprecated">
  80990. </constructor>
  80991. <method name="getJobID" return="java.lang.String"
  80992. abstract="false" native="false" synchronized="false"
  80993. static="false" final="false" visibility="public"
  80994. deprecated="not deprecated">
  80995. </method>
  80996. <method name="process"
  80997. abstract="false" native="false" synchronized="false"
  80998. static="false" final="false" visibility="public"
  80999. deprecated="not deprecated">
  81000. <param name="event" type="org.apache.hadoop.tools.rumen.HistoryEvent"/>
  81001. <doc>
  81002. <![CDATA[Process one {@link HistoryEvent}
  81003. @param event
  81004. The {@link HistoryEvent} to be processed.]]>
  81005. </doc>
  81006. </method>
  81007. <method name="process"
  81008. abstract="false" native="false" synchronized="false"
  81009. static="false" final="false" visibility="public"
  81010. deprecated="not deprecated">
  81011. <param name="conf" type="java.util.Properties"/>
  81012. <doc>
  81013. <![CDATA[Process a collection of JobConf {@link Properties}. We do not restrict it
  81014. to be called once. It is okay to process a conf before, during or after the
  81015. events.
  81016. @param conf
  81017. The job conf properties to be added.]]>
  81018. </doc>
  81019. </method>
  81020. <method name="build" return="org.apache.hadoop.tools.rumen.ParsedJob"
  81021. abstract="false" native="false" synchronized="false"
  81022. static="false" final="false" visibility="public"
  81023. deprecated="not deprecated">
  81024. <doc>
  81025. <![CDATA[Request the builder to build the final object. Once called, the
  81026. {@link JobBuilder} would accept no more events or job-conf properties.
  81027. @return Parsed {@link ParsedJob} object.]]>
  81028. </doc>
  81029. </method>
  81030. <doc>
  81031. <![CDATA[{@link JobBuilder} builds one job. It processes a sequence of
  81032. {@link HistoryEvent}s.]]>
  81033. </doc>
  81034. </class>
  81035. <!-- end class org.apache.hadoop.tools.rumen.JobBuilder -->
  81036. <!-- start class org.apache.hadoop.tools.rumen.JobConfigurationParser -->
  81037. <class name="JobConfigurationParser" extends="java.lang.Object"
  81038. abstract="false"
  81039. static="false" final="false" visibility="public"
  81040. deprecated="not deprecated">
  81041. <constructor name="JobConfigurationParser"
  81042. static="false" final="false" visibility="public"
  81043. deprecated="not deprecated">
  81044. </constructor>
  81045. <doc>
  81046. <![CDATA[{@link JobConfigurationParser} parses the job configuration xml file, and
  81047. extracts configuration properties. It parses the file using a
  81048. stream-parser and thus is more memory efficient. [This optimization may be
  81049. postponed for a future release]]]>
  81050. </doc>
  81051. </class>
  81052. <!-- end class org.apache.hadoop.tools.rumen.JobConfigurationParser -->
  81053. <!-- start class org.apache.hadoop.tools.rumen.JobConfPropertyNames -->
  81054. <class name="JobConfPropertyNames" extends="java.lang.Enum"
  81055. abstract="false"
  81056. static="false" final="true" visibility="public"
  81057. deprecated="not deprecated">
  81058. <method name="values" return="org.apache.hadoop.tools.rumen.JobConfPropertyNames[]"
  81059. abstract="false" native="false" synchronized="false"
  81060. static="true" final="false" visibility="public"
  81061. deprecated="not deprecated">
  81062. </method>
  81063. <method name="valueOf" return="org.apache.hadoop.tools.rumen.JobConfPropertyNames"
  81064. abstract="false" native="false" synchronized="false"
  81065. static="true" final="false" visibility="public"
  81066. deprecated="not deprecated">
  81067. <param name="name" type="java.lang.String"/>
  81068. </method>
  81069. <method name="getCandidates" return="java.lang.String[]"
  81070. abstract="false" native="false" synchronized="false"
  81071. static="false" final="false" visibility="public"
  81072. deprecated="not deprecated">
  81073. </method>
  81074. <field name="QUEUE_NAMES" type="org.apache.hadoop.tools.rumen.JobConfPropertyNames"
  81075. transient="false" volatile="false"
  81076. static="true" final="true" visibility="public"
  81077. deprecated="not deprecated">
  81078. </field>
  81079. <field name="JOB_NAMES" type="org.apache.hadoop.tools.rumen.JobConfPropertyNames"
  81080. transient="false" volatile="false"
  81081. static="true" final="true" visibility="public"
  81082. deprecated="not deprecated">
  81083. </field>
  81084. <field name="TASK_JAVA_OPTS_S" type="org.apache.hadoop.tools.rumen.JobConfPropertyNames"
  81085. transient="false" volatile="false"
  81086. static="true" final="true" visibility="public"
  81087. deprecated="not deprecated">
  81088. </field>
  81089. <field name="MAP_JAVA_OPTS_S" type="org.apache.hadoop.tools.rumen.JobConfPropertyNames"
  81090. transient="false" volatile="false"
  81091. static="true" final="true" visibility="public"
  81092. deprecated="not deprecated">
  81093. </field>
  81094. <field name="REDUCE_JAVA_OPTS_S" type="org.apache.hadoop.tools.rumen.JobConfPropertyNames"
  81095. transient="false" volatile="false"
  81096. static="true" final="true" visibility="public"
  81097. deprecated="not deprecated">
  81098. </field>
  81099. </class>
  81100. <!-- end class org.apache.hadoop.tools.rumen.JobConfPropertyNames -->
  81101. <!-- start class org.apache.hadoop.tools.rumen.JobFinishedEvent -->
  81102. <class name="JobFinishedEvent" extends="java.lang.Object"
  81103. abstract="false"
  81104. static="false" final="false" visibility="public"
  81105. deprecated="not deprecated">
  81106. <implements name="org.apache.hadoop.tools.rumen.HistoryEvent"/>
  81107. <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"
  81108. static="false" final="false" visibility="public"
  81109. deprecated="not deprecated">
  81110. <doc>
  81111. <![CDATA[Create an event to record successful job completion
  81112. @param id Job ID
  81113. @param finishTime Finish time of the job
  81114. @param finishedMaps The number of finished maps
  81115. @param finishedReduces The number of finished reduces
  81116. @param failedMaps The number of failed maps
  81117. @param failedReduces The number of failed reduces
  81118. @param mapCounters Map Counters for the job
  81119. @param reduceCounters Reduce Counters for the job
  81120. @param totalCounters Total Counters for the job]]>
  81121. </doc>
  81122. </constructor>
  81123. <method name="getEventType" return="org.apache.hadoop.tools.rumen.EventType"
  81124. abstract="false" native="false" synchronized="false"
  81125. static="false" final="false" visibility="public"
  81126. deprecated="not deprecated">
  81127. </method>
  81128. <method name="getJobid" return="org.apache.hadoop.mapreduce.JobID"
  81129. abstract="false" native="false" synchronized="false"
  81130. static="false" final="false" visibility="public"
  81131. deprecated="not deprecated">
  81132. <doc>
  81133. <![CDATA[Get the Job ID]]>
  81134. </doc>
  81135. </method>
  81136. <method name="getFinishTime" return="long"
  81137. abstract="false" native="false" synchronized="false"
  81138. static="false" final="false" visibility="public"
  81139. deprecated="not deprecated">
  81140. <doc>
  81141. <![CDATA[Get the job finish time]]>
  81142. </doc>
  81143. </method>
  81144. <method name="getFinishedMaps" return="int"
  81145. abstract="false" native="false" synchronized="false"
  81146. static="false" final="false" visibility="public"
  81147. deprecated="not deprecated">
  81148. <doc>
  81149. <![CDATA[Get the number of finished maps for the job]]>
  81150. </doc>
  81151. </method>
  81152. <method name="getFinishedReduces" return="int"
  81153. abstract="false" native="false" synchronized="false"
  81154. static="false" final="false" visibility="public"
  81155. deprecated="not deprecated">
  81156. <doc>
  81157. <![CDATA[Get the number of finished reducers for the job]]>
  81158. </doc>
  81159. </method>
  81160. <method name="getFailedMaps" return="int"
  81161. abstract="false" native="false" synchronized="false"
  81162. static="false" final="false" visibility="public"
  81163. deprecated="not deprecated">
  81164. <doc>
  81165. <![CDATA[Get the number of failed maps for the job]]>
  81166. </doc>
  81167. </method>
  81168. <method name="getFailedReduces" return="int"
  81169. abstract="false" native="false" synchronized="false"
  81170. static="false" final="false" visibility="public"
  81171. deprecated="not deprecated">
  81172. <doc>
  81173. <![CDATA[Get the number of failed reducers for the job]]>
  81174. </doc>
  81175. </method>
  81176. <method name="getTotalCounters" return="org.apache.hadoop.mapreduce.Counters"
  81177. abstract="false" native="false" synchronized="false"
  81178. static="false" final="false" visibility="public"
  81179. deprecated="not deprecated">
  81180. <doc>
  81181. <![CDATA[Get the counters for the job]]>
  81182. </doc>
  81183. </method>
  81184. <method name="getMapCounters" return="org.apache.hadoop.mapreduce.Counters"
  81185. abstract="false" native="false" synchronized="false"
  81186. static="false" final="false" visibility="public"
  81187. deprecated="not deprecated">
  81188. <doc>
  81189. <![CDATA[Get the Map counters for the job]]>
  81190. </doc>
  81191. </method>
  81192. <method name="getReduceCounters" return="org.apache.hadoop.mapreduce.Counters"
  81193. abstract="false" native="false" synchronized="false"
  81194. static="false" final="false" visibility="public"
  81195. deprecated="not deprecated">
  81196. <doc>
  81197. <![CDATA[Get the reduce counters for the job]]>
  81198. </doc>
  81199. </method>
  81200. <doc>
  81201. <![CDATA[Event to record successful completion of job]]>
  81202. </doc>
  81203. </class>
  81204. <!-- end class org.apache.hadoop.tools.rumen.JobFinishedEvent -->
  81205. <!-- start interface org.apache.hadoop.tools.rumen.JobHistoryParser -->
  81206. <interface name="JobHistoryParser" abstract="true"
  81207. static="false" final="false" visibility="public"
  81208. deprecated="not deprecated">
  81209. <implements name="java.io.Closeable"/>
  81210. <method name="nextEvent" return="org.apache.hadoop.tools.rumen.HistoryEvent"
  81211. abstract="false" native="false" synchronized="false"
  81212. static="false" final="false" visibility="public"
  81213. deprecated="not deprecated">
  81214. <exception name="IOException" type="java.io.IOException"/>
  81215. <doc>
  81216. <![CDATA[Get the next {@link HistoryEvent}
  81217. @return the next {@link HistoryEvent}. If no more events left, return null.
  81218. @throws IOException]]>
  81219. </doc>
  81220. </method>
  81221. <doc>
  81222. <![CDATA[{@link JobHistoryParser} defines the interface of a Job History file parser.]]>
  81223. </doc>
  81224. </interface>
  81225. <!-- end interface org.apache.hadoop.tools.rumen.JobHistoryParser -->
  81226. <!-- start class org.apache.hadoop.tools.rumen.JobHistoryParserFactory -->
  81227. <class name="JobHistoryParserFactory" extends="java.lang.Object"
  81228. abstract="false"
  81229. static="false" final="false" visibility="public"
  81230. deprecated="not deprecated">
  81231. <constructor name="JobHistoryParserFactory"
  81232. static="false" final="false" visibility="public"
  81233. deprecated="not deprecated">
  81234. </constructor>
  81235. <method name="getParser" return="org.apache.hadoop.tools.rumen.JobHistoryParser"
  81236. abstract="false" native="false" synchronized="false"
  81237. static="true" final="false" visibility="public"
  81238. deprecated="not deprecated">
  81239. <param name="ris" type="org.apache.hadoop.tools.rumen.RewindableInputStream"/>
  81240. <exception name="IOException" type="java.io.IOException"/>
  81241. </method>
  81242. <doc>
  81243. <![CDATA[{@link JobHistoryParserFactory} is a singleton class that attempts to
  81244. determine the version of job history and return a proper parser.]]>
  81245. </doc>
  81246. </class>
  81247. <!-- end class org.apache.hadoop.tools.rumen.JobHistoryParserFactory -->
  81248. <!-- start class org.apache.hadoop.tools.rumen.JobHistoryParserFactory.VersionDetector -->
  81249. <class name="JobHistoryParserFactory.VersionDetector" extends="java.lang.Enum"
  81250. abstract="false"
  81251. static="true" final="false" visibility="public"
  81252. deprecated="not deprecated">
  81253. <method name="values" return="org.apache.hadoop.tools.rumen.JobHistoryParserFactory.VersionDetector[]"
  81254. abstract="false" native="false" synchronized="false"
  81255. static="true" final="false" visibility="public"
  81256. deprecated="not deprecated">
  81257. </method>
  81258. <method name="valueOf" return="org.apache.hadoop.tools.rumen.JobHistoryParserFactory.VersionDetector"
  81259. abstract="false" native="false" synchronized="false"
  81260. static="true" final="false" visibility="public"
  81261. deprecated="not deprecated">
  81262. <param name="name" type="java.lang.String"/>
  81263. </method>
  81264. <field name="Hadoop20" type="org.apache.hadoop.tools.rumen.JobHistoryParserFactory.VersionDetector"
  81265. transient="false" volatile="false"
  81266. static="true" final="true" visibility="public"
  81267. deprecated="not deprecated">
  81268. </field>
  81269. </class>
  81270. <!-- end class org.apache.hadoop.tools.rumen.JobHistoryParserFactory.VersionDetector -->
  81271. <!-- start class org.apache.hadoop.tools.rumen.JobHistoryUtils -->
  81272. <class name="JobHistoryUtils" extends="java.lang.Object"
  81273. abstract="false"
  81274. static="false" final="false" visibility="public"
  81275. deprecated="not deprecated">
  81276. <constructor name="JobHistoryUtils"
  81277. static="false" final="false" visibility="public"
  81278. deprecated="not deprecated">
  81279. </constructor>
  81280. </class>
  81281. <!-- end class org.apache.hadoop.tools.rumen.JobHistoryUtils -->
  81282. <!-- start class org.apache.hadoop.tools.rumen.JobInfoChangeEvent -->
  81283. <class name="JobInfoChangeEvent" extends="java.lang.Object"
  81284. abstract="false"
  81285. static="false" final="false" visibility="public"
  81286. deprecated="not deprecated">
  81287. <implements name="org.apache.hadoop.tools.rumen.HistoryEvent"/>
  81288. <constructor name="JobInfoChangeEvent" type="org.apache.hadoop.mapreduce.JobID, long, long"
  81289. static="false" final="false" visibility="public"
  81290. deprecated="not deprecated">
  81291. <doc>
  81292. <![CDATA[Create a event to record the submit and launch time of a job
  81293. @param id Job Id
  81294. @param submitTime Submit time of the job
  81295. @param launchTime Launch time of the job]]>
  81296. </doc>
  81297. </constructor>
  81298. <method name="getJobId" return="org.apache.hadoop.mapreduce.JobID"
  81299. abstract="false" native="false" synchronized="false"
  81300. static="false" final="false" visibility="public"
  81301. deprecated="not deprecated">
  81302. <doc>
  81303. <![CDATA[Get the Job ID]]>
  81304. </doc>
  81305. </method>
  81306. <method name="getSubmitTime" return="long"
  81307. abstract="false" native="false" synchronized="false"
  81308. static="false" final="false" visibility="public"
  81309. deprecated="not deprecated">
  81310. <doc>
  81311. <![CDATA[Get the Job submit time]]>
  81312. </doc>
  81313. </method>
  81314. <method name="getLaunchTime" return="long"
  81315. abstract="false" native="false" synchronized="false"
  81316. static="false" final="false" visibility="public"
  81317. deprecated="not deprecated">
  81318. <doc>
  81319. <![CDATA[Get the Job launch time]]>
  81320. </doc>
  81321. </method>
  81322. <method name="getEventType" return="org.apache.hadoop.tools.rumen.EventType"
  81323. abstract="false" native="false" synchronized="false"
  81324. static="false" final="false" visibility="public"
  81325. deprecated="not deprecated">
  81326. </method>
  81327. <doc>
  81328. <![CDATA[Event to record changes in the submit and launch time of
  81329. a job]]>
  81330. </doc>
  81331. </class>
  81332. <!-- end class org.apache.hadoop.tools.rumen.JobInfoChangeEvent -->
  81333. <!-- start class org.apache.hadoop.tools.rumen.JobInitedEvent -->
  81334. <class name="JobInitedEvent" extends="java.lang.Object"
  81335. abstract="false"
  81336. static="false" final="false" visibility="public"
  81337. deprecated="not deprecated">
  81338. <implements name="org.apache.hadoop.tools.rumen.HistoryEvent"/>
  81339. <constructor name="JobInitedEvent" type="org.apache.hadoop.mapreduce.JobID, long, int, int, java.lang.String"
  81340. static="false" final="false" visibility="public"
  81341. deprecated="not deprecated">
  81342. <doc>
  81343. <![CDATA[Create an event to record job initialization
  81344. @param id
  81345. @param launchTime
  81346. @param totalMaps
  81347. @param totalReduces
  81348. @param jobStatus]]>
  81349. </doc>
  81350. </constructor>
  81351. <method name="getJobId" return="org.apache.hadoop.mapreduce.JobID"
  81352. abstract="false" native="false" synchronized="false"
  81353. static="false" final="false" visibility="public"
  81354. deprecated="not deprecated">
  81355. <doc>
  81356. <![CDATA[Get the job ID]]>
  81357. </doc>
  81358. </method>
  81359. <method name="getLaunchTime" return="long"
  81360. abstract="false" native="false" synchronized="false"
  81361. static="false" final="false" visibility="public"
  81362. deprecated="not deprecated">
  81363. <doc>
  81364. <![CDATA[Get the launch time]]>
  81365. </doc>
  81366. </method>
  81367. <method name="getTotalMaps" return="int"
  81368. abstract="false" native="false" synchronized="false"
  81369. static="false" final="false" visibility="public"
  81370. deprecated="not deprecated">
  81371. <doc>
  81372. <![CDATA[Get the total number of maps]]>
  81373. </doc>
  81374. </method>
  81375. <method name="getTotalReduces" return="int"
  81376. abstract="false" native="false" synchronized="false"
  81377. static="false" final="false" visibility="public"
  81378. deprecated="not deprecated">
  81379. <doc>
  81380. <![CDATA[Get the total number of reduces]]>
  81381. </doc>
  81382. </method>
  81383. <method name="getStatus" return="java.lang.String"
  81384. abstract="false" native="false" synchronized="false"
  81385. static="false" final="false" visibility="public"
  81386. deprecated="not deprecated">
  81387. <doc>
  81388. <![CDATA[Get the status]]>
  81389. </doc>
  81390. </method>
  81391. <method name="getEventType" return="org.apache.hadoop.tools.rumen.EventType"
  81392. abstract="false" native="false" synchronized="false"
  81393. static="false" final="false" visibility="public"
  81394. deprecated="not deprecated">
  81395. <doc>
  81396. <![CDATA[Get the event type]]>
  81397. </doc>
  81398. </method>
  81399. <doc>
  81400. <![CDATA[Event to record the initialization of a job]]>
  81401. </doc>
  81402. </class>
  81403. <!-- end class org.apache.hadoop.tools.rumen.JobInitedEvent -->
  81404. <!-- start class org.apache.hadoop.tools.rumen.JobPriorityChangeEvent -->
  81405. <class name="JobPriorityChangeEvent" extends="java.lang.Object"
  81406. abstract="false"
  81407. static="false" final="false" visibility="public"
  81408. deprecated="not deprecated">
  81409. <implements name="org.apache.hadoop.tools.rumen.HistoryEvent"/>
  81410. <constructor name="JobPriorityChangeEvent" type="org.apache.hadoop.mapreduce.JobID, org.apache.hadoop.mapred.JobPriority"
  81411. static="false" final="false" visibility="public"
  81412. deprecated="not deprecated">
  81413. <doc>
  81414. <![CDATA[Generate an event to record changes in Job priority
  81415. @param id Job Id
  81416. @param priority The new priority of the job]]>
  81417. </doc>
  81418. </constructor>
  81419. <method name="getJobId" return="org.apache.hadoop.mapreduce.JobID"
  81420. abstract="false" native="false" synchronized="false"
  81421. static="false" final="false" visibility="public"
  81422. deprecated="not deprecated">
  81423. <doc>
  81424. <![CDATA[Get the Job ID]]>
  81425. </doc>
  81426. </method>
  81427. <method name="getPriority" return="org.apache.hadoop.mapred.JobPriority"
  81428. abstract="false" native="false" synchronized="false"
  81429. static="false" final="false" visibility="public"
  81430. deprecated="not deprecated">
  81431. <doc>
  81432. <![CDATA[Get the job priority]]>
  81433. </doc>
  81434. </method>
  81435. <method name="getEventType" return="org.apache.hadoop.tools.rumen.EventType"
  81436. abstract="false" native="false" synchronized="false"
  81437. static="false" final="false" visibility="public"
  81438. deprecated="not deprecated">
  81439. <doc>
  81440. <![CDATA[Get the event type]]>
  81441. </doc>
  81442. </method>
  81443. <doc>
  81444. <![CDATA[Event to record the change of priority of a job]]>
  81445. </doc>
  81446. </class>
  81447. <!-- end class org.apache.hadoop.tools.rumen.JobPriorityChangeEvent -->
  81448. <!-- start class org.apache.hadoop.tools.rumen.JobStatusChangedEvent -->
  81449. <class name="JobStatusChangedEvent" extends="java.lang.Object"
  81450. abstract="false"
  81451. static="false" final="false" visibility="public"
  81452. deprecated="not deprecated">
  81453. <implements name="org.apache.hadoop.tools.rumen.HistoryEvent"/>
  81454. <constructor name="JobStatusChangedEvent" type="org.apache.hadoop.mapreduce.JobID, java.lang.String"
  81455. static="false" final="false" visibility="public"
  81456. deprecated="not deprecated">
  81457. <doc>
  81458. <![CDATA[Create an event to record the change in the Job Status
  81459. @param id Job ID
  81460. @param jobStatus The new job status]]>
  81461. </doc>
  81462. </constructor>
  81463. <method name="getJobId" return="org.apache.hadoop.mapreduce.JobID"
  81464. abstract="false" native="false" synchronized="false"
  81465. static="false" final="false" visibility="public"
  81466. deprecated="not deprecated">
  81467. <doc>
  81468. <![CDATA[Get the Job Id]]>
  81469. </doc>
  81470. </method>
  81471. <method name="getStatus" return="java.lang.String"
  81472. abstract="false" native="false" synchronized="false"
  81473. static="false" final="false" visibility="public"
  81474. deprecated="not deprecated">
  81475. <doc>
  81476. <![CDATA[Get the event status]]>
  81477. </doc>
  81478. </method>
  81479. <method name="getEventType" return="org.apache.hadoop.tools.rumen.EventType"
  81480. abstract="false" native="false" synchronized="false"
  81481. static="false" final="false" visibility="public"
  81482. deprecated="not deprecated">
  81483. <doc>
  81484. <![CDATA[Get the event type]]>
  81485. </doc>
  81486. </method>
  81487. <doc>
  81488. <![CDATA[Event to record the change of status for a job]]>
  81489. </doc>
  81490. </class>
  81491. <!-- end class org.apache.hadoop.tools.rumen.JobStatusChangedEvent -->
  81492. <!-- start interface org.apache.hadoop.tools.rumen.JobStory -->
  81493. <interface name="JobStory" abstract="true"
  81494. static="false" final="false" visibility="public"
  81495. deprecated="not deprecated">
  81496. <method name="getJobConf" return="org.apache.hadoop.mapred.JobConf"
  81497. abstract="false" native="false" synchronized="false"
  81498. static="false" final="false" visibility="public"
  81499. deprecated="not deprecated">
  81500. <doc>
  81501. <![CDATA[Get the {@link JobConf} for the job.
  81502. @return the <code>JobConf</code> for the job]]>
  81503. </doc>
  81504. </method>
  81505. <method name="getName" return="java.lang.String"
  81506. abstract="false" native="false" synchronized="false"
  81507. static="false" final="false" visibility="public"
  81508. deprecated="not deprecated">
  81509. <doc>
  81510. <![CDATA[Get the job name.
  81511. @return the job name]]>
  81512. </doc>
  81513. </method>
  81514. <method name="getJobID" return="org.apache.hadoop.mapreduce.JobID"
  81515. abstract="false" native="false" synchronized="false"
  81516. static="false" final="false" visibility="public"
  81517. deprecated="not deprecated">
  81518. <doc>
  81519. <![CDATA[Get the job ID
  81520. @return the job ID]]>
  81521. </doc>
  81522. </method>
  81523. <method name="getUser" return="java.lang.String"
  81524. abstract="false" native="false" synchronized="false"
  81525. static="false" final="false" visibility="public"
  81526. deprecated="not deprecated">
  81527. <doc>
  81528. <![CDATA[Get the user who ran the job.
  81529. @return the user who ran the job]]>
  81530. </doc>
  81531. </method>
  81532. <method name="getSubmissionTime" return="long"
  81533. abstract="false" native="false" synchronized="false"
  81534. static="false" final="false" visibility="public"
  81535. deprecated="not deprecated">
  81536. <doc>
  81537. <![CDATA[Get the job submission time.
  81538. @return the job submission time]]>
  81539. </doc>
  81540. </method>
  81541. <method name="getNumberMaps" return="int"
  81542. abstract="false" native="false" synchronized="false"
  81543. static="false" final="false" visibility="public"
  81544. deprecated="not deprecated">
  81545. <doc>
  81546. <![CDATA[Get the number of maps in the {@link JobStory}.
  81547. @return the number of maps in the <code>Job</code>]]>
  81548. </doc>
  81549. </method>
  81550. <method name="getNumberReduces" return="int"
  81551. abstract="false" native="false" synchronized="false"
  81552. static="false" final="false" visibility="public"
  81553. deprecated="not deprecated">
  81554. <doc>
  81555. <![CDATA[Get the number of reduce in the {@link JobStory}.
  81556. @return the number of reduces in the <code>Job</code>]]>
  81557. </doc>
  81558. </method>
  81559. <method name="getInputSplits" return="org.apache.hadoop.mapreduce.InputSplit[]"
  81560. abstract="false" native="false" synchronized="false"
  81561. static="false" final="false" visibility="public"
  81562. deprecated="not deprecated">
  81563. <doc>
  81564. <![CDATA[Get the input splits for the job.
  81565. @return the input splits for the job]]>
  81566. </doc>
  81567. </method>
  81568. <method name="getTaskInfo" return="org.apache.hadoop.tools.rumen.TaskInfo"
  81569. abstract="false" native="false" synchronized="false"
  81570. static="false" final="false" visibility="public"
  81571. deprecated="not deprecated">
  81572. <param name="taskType" type="org.apache.hadoop.mapreduce.TaskType"/>
  81573. <param name="taskNumber" type="int"/>
  81574. <doc>
  81575. <![CDATA[Get {@link TaskInfo} for a given task.
  81576. @param taskType {@link TaskType} of the task
  81577. @param taskNumber Partition number of the task
  81578. @return the <code>TaskInfo</code> for the given task]]>
  81579. </doc>
  81580. </method>
  81581. <method name="getTaskAttemptInfo" return="org.apache.hadoop.tools.rumen.TaskAttemptInfo"
  81582. abstract="false" native="false" synchronized="false"
  81583. static="false" final="false" visibility="public"
  81584. deprecated="not deprecated">
  81585. <param name="taskType" type="org.apache.hadoop.mapreduce.TaskType"/>
  81586. <param name="taskNumber" type="int"/>
  81587. <param name="taskAttemptNumber" type="int"/>
  81588. <doc>
  81589. <![CDATA[Get {@link TaskAttemptInfo} for a given task-attempt, without regard to
  81590. impact of locality (e.g. not needed to make scheduling decisions).
  81591. @param taskType {@link TaskType} of the task-attempt
  81592. @param taskNumber Partition number of the task-attempt
  81593. @param taskAttemptNumber Attempt number of the task
  81594. @return the <code>TaskAttemptInfo</code> for the given task-attempt]]>
  81595. </doc>
  81596. </method>
  81597. <method name="getMapTaskAttemptInfoAdjusted" return="org.apache.hadoop.tools.rumen.TaskAttemptInfo"
  81598. abstract="false" native="false" synchronized="false"
  81599. static="false" final="false" visibility="public"
  81600. deprecated="not deprecated">
  81601. <param name="taskNumber" type="int"/>
  81602. <param name="taskAttemptNumber" type="int"/>
  81603. <param name="locality" type="int"/>
  81604. <doc>
  81605. <![CDATA[Get {@link TaskAttemptInfo} for a given task-attempt, considering impact
  81606. of locality.
  81607. @param taskNumber Partition number of the task-attempt
  81608. @param taskAttemptNumber Attempt number of the task
  81609. @param locality Data locality of the task as scheduled in simulation
  81610. @return the <code>TaskAttemptInfo</code> for the given task-attempt]]>
  81611. </doc>
  81612. </method>
  81613. <method name="getOutcome" return="org.apache.hadoop.tools.rumen.Pre21JobHistoryConstants.Values"
  81614. abstract="false" native="false" synchronized="false"
  81615. static="false" final="false" visibility="public"
  81616. deprecated="not deprecated">
  81617. <doc>
  81618. <![CDATA[Get the outcome of the job execution.
  81619. @return The outcome of the job execution.]]>
  81620. </doc>
  81621. </method>
  81622. <method name="getQueueName" return="java.lang.String"
  81623. abstract="false" native="false" synchronized="false"
  81624. static="false" final="false" visibility="public"
  81625. deprecated="not deprecated">
  81626. <doc>
  81627. <![CDATA[Get the queue where the job is submitted.
  81628. @return the queue where the job is submitted.]]>
  81629. </doc>
  81630. </method>
  81631. <doc>
  81632. <![CDATA[{@link JobStory} represents the runtime information available for a
  81633. completed Map-Reduce job.]]>
  81634. </doc>
  81635. </interface>
  81636. <!-- end interface org.apache.hadoop.tools.rumen.JobStory -->
  81637. <!-- start interface org.apache.hadoop.tools.rumen.JobStoryProducer -->
  81638. <interface name="JobStoryProducer" abstract="true"
  81639. static="false" final="false" visibility="public"
  81640. deprecated="not deprecated">
  81641. <implements name="java.io.Closeable"/>
  81642. <method name="getNextJob" return="org.apache.hadoop.tools.rumen.JobStory"
  81643. abstract="false" native="false" synchronized="false"
  81644. static="false" final="false" visibility="public"
  81645. deprecated="not deprecated">
  81646. <exception name="IOException" type="java.io.IOException"/>
  81647. <doc>
  81648. <![CDATA[Get the next job.
  81649. @return The next job. Or null if no more job is available.
  81650. @throws IOException]]>
  81651. </doc>
  81652. </method>
  81653. <doc>
  81654. <![CDATA[{@link JobStoryProducer} produces the sequence of {@link JobStory}'s.]]>
  81655. </doc>
  81656. </interface>
  81657. <!-- end interface org.apache.hadoop.tools.rumen.JobStoryProducer -->
  81658. <!-- start class org.apache.hadoop.tools.rumen.JobSubmittedEvent -->
  81659. <class name="JobSubmittedEvent" extends="java.lang.Object"
  81660. abstract="false"
  81661. static="false" final="false" visibility="public"
  81662. deprecated="not deprecated">
  81663. <implements name="org.apache.hadoop.tools.rumen.HistoryEvent"/>
  81664. <constructor name="JobSubmittedEvent" type="org.apache.hadoop.mapreduce.JobID, java.lang.String, java.lang.String, long, java.lang.String"
  81665. static="false" final="false" visibility="public"
  81666. deprecated="Use
  81667. {@link #JobSubmittedEvent(JobID, String, String, long, String,
  81668. Map, String, String, String, String, String, String)}
  81669. instead.">
  81670. <doc>
  81671. <![CDATA[@deprecated Use
  81672. {@link #JobSubmittedEvent(JobID, String, String, long, String,
  81673. Map, String, String, String, String, String, String)}
  81674. instead.]]>
  81675. </doc>
  81676. </constructor>
  81677. <constructor name="JobSubmittedEvent" type="org.apache.hadoop.mapreduce.JobID, java.lang.String, java.lang.String, long, java.lang.String, java.util.Map"
  81678. static="false" final="false" visibility="public"
  81679. deprecated="Use
  81680. {@link #JobSubmittedEvent(JobID, String, String, long, String,
  81681. Map, String, String, String, String, String, String)}
  81682. instead.">
  81683. <doc>
  81684. <![CDATA[@deprecated Use
  81685. {@link #JobSubmittedEvent(JobID, String, String, long, String,
  81686. Map, String, String, String, String, String, String)}
  81687. instead.]]>
  81688. </doc>
  81689. </constructor>
  81690. <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"
  81691. static="false" final="false" visibility="public"
  81692. deprecated="Use
  81693. {@link #JobSubmittedEvent(JobID, String, String, long, String,
  81694. Map, String, String, String, String, String, String)}
  81695. instead.">
  81696. <doc>
  81697. <![CDATA[@deprecated Use
  81698. {@link #JobSubmittedEvent(JobID, String, String, long, String,
  81699. Map, String, String, String, String, String, String)}
  81700. instead.]]>
  81701. </doc>
  81702. </constructor>
  81703. <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"
  81704. static="false" final="false" visibility="public"
  81705. deprecated="not deprecated">
  81706. <doc>
  81707. <![CDATA[Create an event to record job submission
  81708. @param id The job Id of the job
  81709. @param jobName Name of the job
  81710. @param userName Name of the user who submitted the job
  81711. @param submitTime Time of submission
  81712. @param jobConfPath Path of the Job Configuration file
  81713. @param jobACLs The configured acls for the job.
  81714. @param queue job queue name
  81715. @param workflowId the workflow Id
  81716. @param workflowName the workflow name
  81717. @param workflowNodeName the workflow node name
  81718. @param workflowAdjacencies the workflow adjacencies
  81719. @param workflowTags Comma-separated workflow tags]]>
  81720. </doc>
  81721. </constructor>
  81722. <method name="getJobId" return="org.apache.hadoop.mapreduce.JobID"
  81723. abstract="false" native="false" synchronized="false"
  81724. static="false" final="false" visibility="public"
  81725. deprecated="not deprecated">
  81726. <doc>
  81727. <![CDATA[Get the Job Id]]>
  81728. </doc>
  81729. </method>
  81730. <method name="getJobName" return="java.lang.String"
  81731. abstract="false" native="false" synchronized="false"
  81732. static="false" final="false" visibility="public"
  81733. deprecated="not deprecated">
  81734. <doc>
  81735. <![CDATA[Get the Job name]]>
  81736. </doc>
  81737. </method>
  81738. <method name="getUserName" return="java.lang.String"
  81739. abstract="false" native="false" synchronized="false"
  81740. static="false" final="false" visibility="public"
  81741. deprecated="not deprecated">
  81742. <doc>
  81743. <![CDATA[Get the user name]]>
  81744. </doc>
  81745. </method>
  81746. <method name="getSubmitTime" return="long"
  81747. abstract="false" native="false" synchronized="false"
  81748. static="false" final="false" visibility="public"
  81749. deprecated="not deprecated">
  81750. <doc>
  81751. <![CDATA[Get the submit time]]>
  81752. </doc>
  81753. </method>
  81754. <method name="getJobConfPath" return="java.lang.String"
  81755. abstract="false" native="false" synchronized="false"
  81756. static="false" final="false" visibility="public"
  81757. deprecated="not deprecated">
  81758. <doc>
  81759. <![CDATA[Get the Path for the Job Configuration file]]>
  81760. </doc>
  81761. </method>
  81762. <method name="getJobAcls" return="java.util.Map"
  81763. abstract="false" native="false" synchronized="false"
  81764. static="false" final="false" visibility="public"
  81765. deprecated="not deprecated">
  81766. <doc>
  81767. <![CDATA[Get the acls configured for the job]]>
  81768. </doc>
  81769. </method>
  81770. <method name="getJobQueueName" return="java.lang.String"
  81771. abstract="false" native="false" synchronized="false"
  81772. static="false" final="false" visibility="public"
  81773. deprecated="not deprecated">
  81774. <doc>
  81775. <![CDATA[Get the acls configured for the job]]>
  81776. </doc>
  81777. </method>
  81778. <method name="getWorkflowId" return="java.lang.String"
  81779. abstract="false" native="false" synchronized="false"
  81780. static="false" final="false" visibility="public"
  81781. deprecated="not deprecated">
  81782. <doc>
  81783. <![CDATA[Get the workflow Id]]>
  81784. </doc>
  81785. </method>
  81786. <method name="getWorkflowName" return="java.lang.String"
  81787. abstract="false" native="false" synchronized="false"
  81788. static="false" final="false" visibility="public"
  81789. deprecated="not deprecated">
  81790. <doc>
  81791. <![CDATA[Get the workflow name]]>
  81792. </doc>
  81793. </method>
  81794. <method name="getWorkflowNodeName" return="java.lang.String"
  81795. abstract="false" native="false" synchronized="false"
  81796. static="false" final="false" visibility="public"
  81797. deprecated="not deprecated">
  81798. <doc>
  81799. <![CDATA[Get the workflow node name]]>
  81800. </doc>
  81801. </method>
  81802. <method name="getWorkflowAdjacencies" return="java.lang.String"
  81803. abstract="false" native="false" synchronized="false"
  81804. static="false" final="false" visibility="public"
  81805. deprecated="not deprecated">
  81806. <doc>
  81807. <![CDATA[Get the workflow adjacencies]]>
  81808. </doc>
  81809. </method>
  81810. <method name="getWorkflowTags" return="java.lang.String"
  81811. abstract="false" native="false" synchronized="false"
  81812. static="false" final="false" visibility="public"
  81813. deprecated="not deprecated">
  81814. <doc>
  81815. <![CDATA[Get the workflow tags]]>
  81816. </doc>
  81817. </method>
  81818. <method name="getEventType" return="org.apache.hadoop.tools.rumen.EventType"
  81819. abstract="false" native="false" synchronized="false"
  81820. static="false" final="false" visibility="public"
  81821. deprecated="not deprecated">
  81822. <doc>
  81823. <![CDATA[Get the event type]]>
  81824. </doc>
  81825. </method>
  81826. <doc>
  81827. <![CDATA[Event to record the submission of a job]]>
  81828. </doc>
  81829. </class>
  81830. <!-- end class org.apache.hadoop.tools.rumen.JobSubmittedEvent -->
  81831. <!-- start class org.apache.hadoop.tools.rumen.JobTraceReader -->
  81832. <class name="JobTraceReader" extends="org.apache.hadoop.tools.rumen.JsonObjectMapperParser"
  81833. abstract="false"
  81834. static="false" final="false" visibility="public"
  81835. deprecated="not deprecated">
  81836. <constructor name="JobTraceReader" type="org.apache.hadoop.fs.Path, org.apache.hadoop.conf.Configuration"
  81837. static="false" final="false" visibility="public"
  81838. deprecated="not deprecated">
  81839. <exception name="IOException" type="java.io.IOException"/>
  81840. <doc>
  81841. <![CDATA[Constructor.
  81842. @param path
  81843. Path to the JSON trace file, possibly compressed.
  81844. @param conf
  81845. @throws IOException]]>
  81846. </doc>
  81847. </constructor>
  81848. <constructor name="JobTraceReader" type="java.io.InputStream"
  81849. static="false" final="false" visibility="public"
  81850. deprecated="not deprecated">
  81851. <exception name="IOException" type="java.io.IOException"/>
  81852. <doc>
  81853. <![CDATA[Constructor.
  81854. @param input
  81855. The input stream for the JSON trace.]]>
  81856. </doc>
  81857. </constructor>
  81858. <doc>
  81859. <![CDATA[Reading JSON-encoded job traces and produce {@link LoggedJob} instances.]]>
  81860. </doc>
  81861. </class>
  81862. <!-- end class org.apache.hadoop.tools.rumen.JobTraceReader -->
  81863. <!-- start class org.apache.hadoop.tools.rumen.JobUnsuccessfulCompletionEvent -->
  81864. <class name="JobUnsuccessfulCompletionEvent" extends="java.lang.Object"
  81865. abstract="false"
  81866. static="false" final="false" visibility="public"
  81867. deprecated="not deprecated">
  81868. <implements name="org.apache.hadoop.tools.rumen.HistoryEvent"/>
  81869. <constructor name="JobUnsuccessfulCompletionEvent" type="org.apache.hadoop.mapreduce.JobID, long, int, int, java.lang.String"
  81870. static="false" final="false" visibility="public"
  81871. deprecated="not deprecated">
  81872. <doc>
  81873. <![CDATA[Create an event to record unsuccessful completion (killed/failed) of jobs
  81874. @param id Job ID
  81875. @param finishTime Finish time of the job
  81876. @param finishedMaps Number of finished maps
  81877. @param finishedReduces Number of finished reduces
  81878. @param status Status of the job]]>
  81879. </doc>
  81880. </constructor>
  81881. <method name="getJobId" return="org.apache.hadoop.mapreduce.JobID"
  81882. abstract="false" native="false" synchronized="false"
  81883. static="false" final="false" visibility="public"
  81884. deprecated="not deprecated">
  81885. <doc>
  81886. <![CDATA[Get the Job ID]]>
  81887. </doc>
  81888. </method>
  81889. <method name="getFinishTime" return="long"
  81890. abstract="false" native="false" synchronized="false"
  81891. static="false" final="false" visibility="public"
  81892. deprecated="not deprecated">
  81893. <doc>
  81894. <![CDATA[Get the job finish time]]>
  81895. </doc>
  81896. </method>
  81897. <method name="getFinishedMaps" return="int"
  81898. abstract="false" native="false" synchronized="false"
  81899. static="false" final="false" visibility="public"
  81900. deprecated="not deprecated">
  81901. <doc>
  81902. <![CDATA[Get the number of finished maps]]>
  81903. </doc>
  81904. </method>
  81905. <method name="getFinishedReduces" return="int"
  81906. abstract="false" native="false" synchronized="false"
  81907. static="false" final="false" visibility="public"
  81908. deprecated="not deprecated">
  81909. <doc>
  81910. <![CDATA[Get the number of finished reduces]]>
  81911. </doc>
  81912. </method>
  81913. <method name="getStatus" return="java.lang.String"
  81914. abstract="false" native="false" synchronized="false"
  81915. static="false" final="false" visibility="public"
  81916. deprecated="not deprecated">
  81917. <doc>
  81918. <![CDATA[Get the status]]>
  81919. </doc>
  81920. </method>
  81921. <method name="getEventType" return="org.apache.hadoop.tools.rumen.EventType"
  81922. abstract="false" native="false" synchronized="false"
  81923. static="false" final="false" visibility="public"
  81924. deprecated="not deprecated">
  81925. <doc>
  81926. <![CDATA[Get the event type]]>
  81927. </doc>
  81928. </method>
  81929. <doc>
  81930. <![CDATA[Event to record Failed and Killed completion of jobs]]>
  81931. </doc>
  81932. </class>
  81933. <!-- end class org.apache.hadoop.tools.rumen.JobUnsuccessfulCompletionEvent -->
  81934. <!-- start class org.apache.hadoop.tools.rumen.JsonObjectMapperWriter -->
  81935. <class name="JsonObjectMapperWriter" extends="java.lang.Object"
  81936. abstract="false"
  81937. static="false" final="false" visibility="public"
  81938. deprecated="not deprecated">
  81939. <implements name="java.io.Closeable"/>
  81940. <constructor name="JsonObjectMapperWriter" type="java.io.OutputStream, boolean"
  81941. static="false" final="false" visibility="public"
  81942. deprecated="not deprecated">
  81943. <exception name="IOException" type="java.io.IOException"/>
  81944. </constructor>
  81945. <method name="write"
  81946. abstract="false" native="false" synchronized="false"
  81947. static="false" final="false" visibility="public"
  81948. deprecated="not deprecated">
  81949. <param name="object" type="java.lang.Object"/>
  81950. <exception name="IOException" type="java.io.IOException"/>
  81951. </method>
  81952. <method name="close"
  81953. abstract="false" native="false" synchronized="false"
  81954. static="false" final="false" visibility="public"
  81955. deprecated="not deprecated">
  81956. <exception name="IOException" type="java.io.IOException"/>
  81957. </method>
  81958. <doc>
  81959. <![CDATA[Simple wrapper around {@link JsonGenerator} to write objects in JSON format.
  81960. @param <T> The type of the objects to be written.]]>
  81961. </doc>
  81962. </class>
  81963. <!-- end class org.apache.hadoop.tools.rumen.JsonObjectMapperWriter -->
  81964. <!-- start class org.apache.hadoop.tools.rumen.LoggedDiscreteCDF -->
  81965. <class name="LoggedDiscreteCDF" extends="java.lang.Object"
  81966. abstract="false"
  81967. static="false" final="false" visibility="public"
  81968. deprecated="not deprecated">
  81969. <implements name="org.apache.hadoop.tools.rumen.DeepCompare"/>
  81970. <constructor name="LoggedDiscreteCDF"
  81971. static="false" final="false" visibility="public"
  81972. deprecated="not deprecated">
  81973. </constructor>
  81974. <method name="getMinimum" return="long"
  81975. abstract="false" native="false" synchronized="false"
  81976. static="false" final="false" visibility="public"
  81977. deprecated="not deprecated">
  81978. </method>
  81979. <method name="getRankings" return="java.util.List"
  81980. abstract="false" native="false" synchronized="false"
  81981. static="false" final="false" visibility="public"
  81982. deprecated="not deprecated">
  81983. </method>
  81984. <method name="getMaximum" return="long"
  81985. abstract="false" native="false" synchronized="false"
  81986. static="false" final="false" visibility="public"
  81987. deprecated="not deprecated">
  81988. </method>
  81989. <method name="getNumberValues" return="long"
  81990. abstract="false" native="false" synchronized="false"
  81991. static="false" final="false" visibility="public"
  81992. deprecated="not deprecated">
  81993. </method>
  81994. <method name="deepCompare"
  81995. abstract="false" native="false" synchronized="false"
  81996. static="false" final="false" visibility="public"
  81997. deprecated="not deprecated">
  81998. <param name="comparand" type="org.apache.hadoop.tools.rumen.DeepCompare"/>
  81999. <param name="loc" type="org.apache.hadoop.tools.rumen.TreePath"/>
  82000. <exception name="DeepInequalityException" type="org.apache.hadoop.tools.rumen.DeepInequalityException"/>
  82001. </method>
  82002. <doc>
  82003. <![CDATA[A {@link LoggedDiscreteCDF} is a discrete approximation of a cumulative
  82004. distribution function, with this class set up to meet the requirements of the
  82005. Jackson JSON parser/generator.
  82006. All of the public methods are simply accessors for the instance variables we
  82007. want to write out in the JSON files.]]>
  82008. </doc>
  82009. </class>
  82010. <!-- end class org.apache.hadoop.tools.rumen.LoggedDiscreteCDF -->
  82011. <!-- start class org.apache.hadoop.tools.rumen.LoggedJob -->
  82012. <class name="LoggedJob" extends="java.lang.Object"
  82013. abstract="false"
  82014. static="false" final="false" visibility="public"
  82015. deprecated="not deprecated">
  82016. <implements name="org.apache.hadoop.tools.rumen.DeepCompare"/>
  82017. <method name="getJobProperties" return="java.util.Properties"
  82018. abstract="false" native="false" synchronized="false"
  82019. static="false" final="false" visibility="public"
  82020. deprecated="not deprecated">
  82021. <doc>
  82022. <![CDATA[Get the configuration properties of the job.]]>
  82023. </doc>
  82024. </method>
  82025. <method name="setUnknownAttribute"
  82026. abstract="false" native="false" synchronized="false"
  82027. static="false" final="false" visibility="public"
  82028. deprecated="not deprecated">
  82029. <param name="attributeName" type="java.lang.String"/>
  82030. <param name="ignored" type="java.lang.Object"/>
  82031. </method>
  82032. <method name="getUser" return="java.lang.String"
  82033. abstract="false" native="false" synchronized="false"
  82034. static="false" final="false" visibility="public"
  82035. deprecated="not deprecated">
  82036. </method>
  82037. <method name="getJobID" return="java.lang.String"
  82038. abstract="false" native="false" synchronized="false"
  82039. static="false" final="false" visibility="public"
  82040. deprecated="not deprecated">
  82041. </method>
  82042. <method name="getPriority" return="org.apache.hadoop.tools.rumen.LoggedJob.JobPriority"
  82043. abstract="false" native="false" synchronized="false"
  82044. static="false" final="false" visibility="public"
  82045. deprecated="not deprecated">
  82046. </method>
  82047. <method name="getComputonsPerMapInputByte" return="long"
  82048. abstract="false" native="false" synchronized="false"
  82049. static="false" final="false" visibility="public"
  82050. deprecated="not deprecated">
  82051. </method>
  82052. <method name="getComputonsPerMapOutputByte" return="long"
  82053. abstract="false" native="false" synchronized="false"
  82054. static="false" final="false" visibility="public"
  82055. deprecated="not deprecated">
  82056. </method>
  82057. <method name="getComputonsPerReduceInputByte" return="long"
  82058. abstract="false" native="false" synchronized="false"
  82059. static="false" final="false" visibility="public"
  82060. deprecated="not deprecated">
  82061. </method>
  82062. <method name="getComputonsPerReduceOutputByte" return="long"
  82063. abstract="false" native="false" synchronized="false"
  82064. static="false" final="false" visibility="public"
  82065. deprecated="not deprecated">
  82066. </method>
  82067. <method name="getSubmitTime" return="long"
  82068. abstract="false" native="false" synchronized="false"
  82069. static="false" final="false" visibility="public"
  82070. deprecated="not deprecated">
  82071. </method>
  82072. <method name="getLaunchTime" return="long"
  82073. abstract="false" native="false" synchronized="false"
  82074. static="false" final="false" visibility="public"
  82075. deprecated="not deprecated">
  82076. </method>
  82077. <method name="getFinishTime" return="long"
  82078. abstract="false" native="false" synchronized="false"
  82079. static="false" final="false" visibility="public"
  82080. deprecated="not deprecated">
  82081. </method>
  82082. <method name="getHeapMegabytes" return="int"
  82083. abstract="false" native="false" synchronized="false"
  82084. static="false" final="false" visibility="public"
  82085. deprecated="not deprecated">
  82086. </method>
  82087. <method name="getTotalMaps" return="int"
  82088. abstract="false" native="false" synchronized="false"
  82089. static="false" final="false" visibility="public"
  82090. deprecated="not deprecated">
  82091. </method>
  82092. <method name="getTotalReduces" return="int"
  82093. abstract="false" native="false" synchronized="false"
  82094. static="false" final="false" visibility="public"
  82095. deprecated="not deprecated">
  82096. </method>
  82097. <method name="getOutcome" return="org.apache.hadoop.tools.rumen.Pre21JobHistoryConstants.Values"
  82098. abstract="false" native="false" synchronized="false"
  82099. static="false" final="false" visibility="public"
  82100. deprecated="not deprecated">
  82101. </method>
  82102. <method name="getJobtype" return="org.apache.hadoop.tools.rumen.LoggedJob.JobType"
  82103. abstract="false" native="false" synchronized="false"
  82104. static="false" final="false" visibility="public"
  82105. deprecated="not deprecated">
  82106. </method>
  82107. <method name="getDirectDependantJobs" return="java.util.List"
  82108. abstract="false" native="false" synchronized="false"
  82109. static="false" final="false" visibility="public"
  82110. deprecated="not deprecated">
  82111. </method>
  82112. <method name="getMapTasks" return="java.util.List"
  82113. abstract="false" native="false" synchronized="false"
  82114. static="false" final="false" visibility="public"
  82115. deprecated="not deprecated">
  82116. </method>
  82117. <method name="getReduceTasks" return="java.util.List"
  82118. abstract="false" native="false" synchronized="false"
  82119. static="false" final="false" visibility="public"
  82120. deprecated="not deprecated">
  82121. </method>
  82122. <method name="getOtherTasks" return="java.util.List"
  82123. abstract="false" native="false" synchronized="false"
  82124. static="false" final="false" visibility="public"
  82125. deprecated="not deprecated">
  82126. </method>
  82127. <method name="getSuccessfulMapAttemptCDFs" return="java.util.ArrayList"
  82128. abstract="false" native="false" synchronized="false"
  82129. static="false" final="false" visibility="public"
  82130. deprecated="not deprecated">
  82131. </method>
  82132. <method name="getFailedMapAttemptCDFs" return="java.util.ArrayList"
  82133. abstract="false" native="false" synchronized="false"
  82134. static="false" final="false" visibility="public"
  82135. deprecated="not deprecated">
  82136. </method>
  82137. <method name="getSuccessfulReduceAttemptCDF" return="org.apache.hadoop.tools.rumen.LoggedDiscreteCDF"
  82138. abstract="false" native="false" synchronized="false"
  82139. static="false" final="false" visibility="public"
  82140. deprecated="not deprecated">
  82141. </method>
  82142. <method name="getFailedReduceAttemptCDF" return="org.apache.hadoop.tools.rumen.LoggedDiscreteCDF"
  82143. abstract="false" native="false" synchronized="false"
  82144. static="false" final="false" visibility="public"
  82145. deprecated="not deprecated">
  82146. </method>
  82147. <method name="getMapperTriesToSucceed" return="double[]"
  82148. abstract="false" native="false" synchronized="false"
  82149. static="false" final="false" visibility="public"
  82150. deprecated="not deprecated">
  82151. </method>
  82152. <method name="getFailedMapperFraction" return="double"
  82153. abstract="false" native="false" synchronized="false"
  82154. static="false" final="false" visibility="public"
  82155. deprecated="not deprecated">
  82156. </method>
  82157. <method name="getRelativeTime" return="long"
  82158. abstract="false" native="false" synchronized="false"
  82159. static="false" final="false" visibility="public"
  82160. deprecated="not deprecated">
  82161. </method>
  82162. <method name="getQueue" return="java.lang.String"
  82163. abstract="false" native="false" synchronized="false"
  82164. static="false" final="false" visibility="public"
  82165. deprecated="not deprecated">
  82166. <doc>
  82167. <![CDATA[@return job queue name if it is available in job history file or
  82168. job history conf file. Returns null otherwise.]]>
  82169. </doc>
  82170. </method>
  82171. <method name="getJobName" return="java.lang.String"
  82172. abstract="false" native="false" synchronized="false"
  82173. static="false" final="false" visibility="public"
  82174. deprecated="not deprecated">
  82175. </method>
  82176. <method name="getClusterMapMB" return="int"
  82177. abstract="false" native="false" synchronized="false"
  82178. static="false" final="false" visibility="public"
  82179. deprecated="not deprecated">
  82180. </method>
  82181. <method name="getClusterReduceMB" return="int"
  82182. abstract="false" native="false" synchronized="false"
  82183. static="false" final="false" visibility="public"
  82184. deprecated="not deprecated">
  82185. </method>
  82186. <method name="getJobMapMB" return="int"
  82187. abstract="false" native="false" synchronized="false"
  82188. static="false" final="false" visibility="public"
  82189. deprecated="not deprecated">
  82190. </method>
  82191. <method name="getJobReduceMB" return="int"
  82192. abstract="false" native="false" synchronized="false"
  82193. static="false" final="false" visibility="public"
  82194. deprecated="not deprecated">
  82195. </method>
  82196. <method name="deepCompare"
  82197. abstract="false" native="false" synchronized="false"
  82198. static="false" final="false" visibility="public"
  82199. deprecated="not deprecated">
  82200. <param name="comparand" type="org.apache.hadoop.tools.rumen.DeepCompare"/>
  82201. <param name="loc" type="org.apache.hadoop.tools.rumen.TreePath"/>
  82202. <exception name="DeepInequalityException" type="org.apache.hadoop.tools.rumen.DeepInequalityException"/>
  82203. </method>
  82204. <doc>
  82205. <![CDATA[A {@link LoggedDiscreteCDF} is a representation of an hadoop job, with the
  82206. details of this class set up to meet the requirements of the Jackson JSON
  82207. parser/generator.
  82208. All of the public methods are simply accessors for the instance variables we
  82209. want to write out in the JSON files.]]>
  82210. </doc>
  82211. </class>
  82212. <!-- end class org.apache.hadoop.tools.rumen.LoggedJob -->
  82213. <!-- start class org.apache.hadoop.tools.rumen.LoggedJob.JobPriority -->
  82214. <class name="LoggedJob.JobPriority" extends="java.lang.Enum"
  82215. abstract="false"
  82216. static="true" final="true" visibility="public"
  82217. deprecated="not deprecated">
  82218. <method name="values" return="org.apache.hadoop.tools.rumen.LoggedJob.JobPriority[]"
  82219. abstract="false" native="false" synchronized="false"
  82220. static="true" final="false" visibility="public"
  82221. deprecated="not deprecated">
  82222. </method>
  82223. <method name="valueOf" return="org.apache.hadoop.tools.rumen.LoggedJob.JobPriority"
  82224. abstract="false" native="false" synchronized="false"
  82225. static="true" final="false" visibility="public"
  82226. deprecated="not deprecated">
  82227. <param name="name" type="java.lang.String"/>
  82228. </method>
  82229. <field name="VERY_LOW" type="org.apache.hadoop.tools.rumen.LoggedJob.JobPriority"
  82230. transient="false" volatile="false"
  82231. static="true" final="true" visibility="public"
  82232. deprecated="not deprecated">
  82233. </field>
  82234. <field name="LOW" type="org.apache.hadoop.tools.rumen.LoggedJob.JobPriority"
  82235. transient="false" volatile="false"
  82236. static="true" final="true" visibility="public"
  82237. deprecated="not deprecated">
  82238. </field>
  82239. <field name="NORMAL" type="org.apache.hadoop.tools.rumen.LoggedJob.JobPriority"
  82240. transient="false" volatile="false"
  82241. static="true" final="true" visibility="public"
  82242. deprecated="not deprecated">
  82243. </field>
  82244. <field name="HIGH" type="org.apache.hadoop.tools.rumen.LoggedJob.JobPriority"
  82245. transient="false" volatile="false"
  82246. static="true" final="true" visibility="public"
  82247. deprecated="not deprecated">
  82248. </field>
  82249. <field name="VERY_HIGH" type="org.apache.hadoop.tools.rumen.LoggedJob.JobPriority"
  82250. transient="false" volatile="false"
  82251. static="true" final="true" visibility="public"
  82252. deprecated="not deprecated">
  82253. </field>
  82254. </class>
  82255. <!-- end class org.apache.hadoop.tools.rumen.LoggedJob.JobPriority -->
  82256. <!-- start class org.apache.hadoop.tools.rumen.LoggedJob.JobType -->
  82257. <class name="LoggedJob.JobType" extends="java.lang.Enum"
  82258. abstract="false"
  82259. static="true" final="true" visibility="public"
  82260. deprecated="not deprecated">
  82261. <method name="values" return="org.apache.hadoop.tools.rumen.LoggedJob.JobType[]"
  82262. abstract="false" native="false" synchronized="false"
  82263. static="true" final="false" visibility="public"
  82264. deprecated="not deprecated">
  82265. </method>
  82266. <method name="valueOf" return="org.apache.hadoop.tools.rumen.LoggedJob.JobType"
  82267. abstract="false" native="false" synchronized="false"
  82268. static="true" final="false" visibility="public"
  82269. deprecated="not deprecated">
  82270. <param name="name" type="java.lang.String"/>
  82271. </method>
  82272. <field name="JAVA" type="org.apache.hadoop.tools.rumen.LoggedJob.JobType"
  82273. transient="false" volatile="false"
  82274. static="true" final="true" visibility="public"
  82275. deprecated="not deprecated">
  82276. </field>
  82277. <field name="PIG" type="org.apache.hadoop.tools.rumen.LoggedJob.JobType"
  82278. transient="false" volatile="false"
  82279. static="true" final="true" visibility="public"
  82280. deprecated="not deprecated">
  82281. </field>
  82282. <field name="STREAMING" type="org.apache.hadoop.tools.rumen.LoggedJob.JobType"
  82283. transient="false" volatile="false"
  82284. static="true" final="true" visibility="public"
  82285. deprecated="not deprecated">
  82286. </field>
  82287. <field name="PIPES" type="org.apache.hadoop.tools.rumen.LoggedJob.JobType"
  82288. transient="false" volatile="false"
  82289. static="true" final="true" visibility="public"
  82290. deprecated="not deprecated">
  82291. </field>
  82292. <field name="OVERALL" type="org.apache.hadoop.tools.rumen.LoggedJob.JobType"
  82293. transient="false" volatile="false"
  82294. static="true" final="true" visibility="public"
  82295. deprecated="not deprecated">
  82296. </field>
  82297. </class>
  82298. <!-- end class org.apache.hadoop.tools.rumen.LoggedJob.JobType -->
  82299. <!-- start class org.apache.hadoop.tools.rumen.LoggedLocation -->
  82300. <class name="LoggedLocation" extends="java.lang.Object"
  82301. abstract="false"
  82302. static="false" final="false" visibility="public"
  82303. deprecated="not deprecated">
  82304. <implements name="org.apache.hadoop.tools.rumen.DeepCompare"/>
  82305. <constructor name="LoggedLocation"
  82306. static="false" final="false" visibility="public"
  82307. deprecated="not deprecated">
  82308. </constructor>
  82309. <method name="getLayers" return="java.util.List"
  82310. abstract="false" native="false" synchronized="false"
  82311. static="false" final="false" visibility="public"
  82312. deprecated="not deprecated">
  82313. </method>
  82314. <method name="setUnknownAttribute"
  82315. abstract="false" native="false" synchronized="false"
  82316. static="false" final="false" visibility="public"
  82317. deprecated="not deprecated">
  82318. <param name="attributeName" type="java.lang.String"/>
  82319. <param name="ignored" type="java.lang.Object"/>
  82320. </method>
  82321. <method name="deepCompare"
  82322. abstract="false" native="false" synchronized="false"
  82323. static="false" final="false" visibility="public"
  82324. deprecated="not deprecated">
  82325. <param name="comparand" type="org.apache.hadoop.tools.rumen.DeepCompare"/>
  82326. <param name="loc" type="org.apache.hadoop.tools.rumen.TreePath"/>
  82327. <exception name="DeepInequalityException" type="org.apache.hadoop.tools.rumen.DeepInequalityException"/>
  82328. </method>
  82329. <doc>
  82330. <![CDATA[A {@link LoggedLocation} is a representation of a point in an hierarchical
  82331. network, represented as a series of membership names, broadest first.
  82332. For example, if your network has <i>hosts</i> grouped into <i>racks</i>, then
  82333. in onecluster you might have a node {@code node1} on rack {@code rack1}. This
  82334. would be represented with a ArrayList of two layers, with two {@link String}
  82335. s being {@code "rack1"} and {@code "node1"}.
  82336. The details of this class are set up to meet the requirements of the Jackson
  82337. JSON parser/generator.
  82338. All of the public methods are simply accessors for the instance variables we
  82339. want to write out in the JSON files.]]>
  82340. </doc>
  82341. </class>
  82342. <!-- end class org.apache.hadoop.tools.rumen.LoggedLocation -->
  82343. <!-- start class org.apache.hadoop.tools.rumen.LoggedNetworkTopology -->
  82344. <class name="LoggedNetworkTopology" extends="java.lang.Object"
  82345. abstract="false"
  82346. static="false" final="false" visibility="public"
  82347. deprecated="not deprecated">
  82348. <implements name="org.apache.hadoop.tools.rumen.DeepCompare"/>
  82349. <constructor name="LoggedNetworkTopology"
  82350. static="false" final="false" visibility="public"
  82351. deprecated="not deprecated">
  82352. </constructor>
  82353. <method name="setUnknownAttribute"
  82354. abstract="false" native="false" synchronized="false"
  82355. static="false" final="false" visibility="public"
  82356. deprecated="not deprecated">
  82357. <param name="attributeName" type="java.lang.String"/>
  82358. <param name="ignored" type="java.lang.Object"/>
  82359. </method>
  82360. <method name="getName" return="java.lang.String"
  82361. abstract="false" native="false" synchronized="false"
  82362. static="false" final="false" visibility="public"
  82363. deprecated="not deprecated">
  82364. </method>
  82365. <method name="getChildren" return="java.util.List"
  82366. abstract="false" native="false" synchronized="false"
  82367. static="false" final="false" visibility="public"
  82368. deprecated="not deprecated">
  82369. </method>
  82370. <method name="deepCompare"
  82371. abstract="false" native="false" synchronized="false"
  82372. static="false" final="false" visibility="public"
  82373. deprecated="not deprecated">
  82374. <param name="comparand" type="org.apache.hadoop.tools.rumen.DeepCompare"/>
  82375. <param name="loc" type="org.apache.hadoop.tools.rumen.TreePath"/>
  82376. <exception name="DeepInequalityException" type="org.apache.hadoop.tools.rumen.DeepInequalityException"/>
  82377. </method>
  82378. <doc>
  82379. <![CDATA[A {@link LoggedNetworkTopology} represents a tree that in turn represents a
  82380. hierarchy of hosts. The current version requires the tree to have all leaves
  82381. at the same level.
  82382. All of the public methods are simply accessors for the instance variables we
  82383. want to write out in the JSON files.]]>
  82384. </doc>
  82385. </class>
  82386. <!-- end class org.apache.hadoop.tools.rumen.LoggedNetworkTopology -->
  82387. <!-- start class org.apache.hadoop.tools.rumen.LoggedSingleRelativeRanking -->
  82388. <class name="LoggedSingleRelativeRanking" extends="java.lang.Object"
  82389. abstract="false"
  82390. static="false" final="false" visibility="public"
  82391. deprecated="not deprecated">
  82392. <implements name="org.apache.hadoop.tools.rumen.DeepCompare"/>
  82393. <constructor name="LoggedSingleRelativeRanking"
  82394. static="false" final="false" visibility="public"
  82395. deprecated="not deprecated">
  82396. </constructor>
  82397. <method name="setUnknownAttribute"
  82398. abstract="false" native="false" synchronized="false"
  82399. static="false" final="false" visibility="public"
  82400. deprecated="not deprecated">
  82401. <param name="attributeName" type="java.lang.String"/>
  82402. <param name="ignored" type="java.lang.Object"/>
  82403. </method>
  82404. <method name="getRelativeRanking" return="double"
  82405. abstract="false" native="false" synchronized="false"
  82406. static="false" final="false" visibility="public"
  82407. deprecated="not deprecated">
  82408. </method>
  82409. <method name="getDatum" return="long"
  82410. abstract="false" native="false" synchronized="false"
  82411. static="false" final="false" visibility="public"
  82412. deprecated="not deprecated">
  82413. </method>
  82414. <method name="deepCompare"
  82415. abstract="false" native="false" synchronized="false"
  82416. static="false" final="false" visibility="public"
  82417. deprecated="not deprecated">
  82418. <param name="comparand" type="org.apache.hadoop.tools.rumen.DeepCompare"/>
  82419. <param name="loc" type="org.apache.hadoop.tools.rumen.TreePath"/>
  82420. <exception name="DeepInequalityException" type="org.apache.hadoop.tools.rumen.DeepInequalityException"/>
  82421. </method>
  82422. <doc>
  82423. <![CDATA[A {@link LoggedSingleRelativeRanking} represents an X-Y coordinate of a
  82424. single point in a discrete CDF.
  82425. All of the public methods are simply accessors for the instance variables we
  82426. want to write out in the JSON files.]]>
  82427. </doc>
  82428. </class>
  82429. <!-- end class org.apache.hadoop.tools.rumen.LoggedSingleRelativeRanking -->
  82430. <!-- start class org.apache.hadoop.tools.rumen.LoggedTask -->
  82431. <class name="LoggedTask" extends="java.lang.Object"
  82432. abstract="false"
  82433. static="false" final="false" visibility="public"
  82434. deprecated="not deprecated">
  82435. <implements name="org.apache.hadoop.tools.rumen.DeepCompare"/>
  82436. <method name="setUnknownAttribute"
  82437. abstract="false" native="false" synchronized="false"
  82438. static="false" final="false" visibility="public"
  82439. deprecated="not deprecated">
  82440. <param name="attributeName" type="java.lang.String"/>
  82441. <param name="ignored" type="java.lang.Object"/>
  82442. </method>
  82443. <method name="getInputBytes" return="long"
  82444. abstract="false" native="false" synchronized="false"
  82445. static="false" final="false" visibility="public"
  82446. deprecated="not deprecated">
  82447. </method>
  82448. <method name="getInputRecords" return="long"
  82449. abstract="false" native="false" synchronized="false"
  82450. static="false" final="false" visibility="public"
  82451. deprecated="not deprecated">
  82452. </method>
  82453. <method name="getOutputBytes" return="long"
  82454. abstract="false" native="false" synchronized="false"
  82455. static="false" final="false" visibility="public"
  82456. deprecated="not deprecated">
  82457. </method>
  82458. <method name="getOutputRecords" return="long"
  82459. abstract="false" native="false" synchronized="false"
  82460. static="false" final="false" visibility="public"
  82461. deprecated="not deprecated">
  82462. </method>
  82463. <method name="getTaskID" return="java.lang.String"
  82464. abstract="false" native="false" synchronized="false"
  82465. static="false" final="false" visibility="public"
  82466. deprecated="not deprecated">
  82467. </method>
  82468. <method name="getStartTime" return="long"
  82469. abstract="false" native="false" synchronized="false"
  82470. static="false" final="false" visibility="public"
  82471. deprecated="not deprecated">
  82472. </method>
  82473. <method name="getFinishTime" return="long"
  82474. abstract="false" native="false" synchronized="false"
  82475. static="false" final="false" visibility="public"
  82476. deprecated="not deprecated">
  82477. </method>
  82478. <method name="getAttempts" return="java.util.List"
  82479. abstract="false" native="false" synchronized="false"
  82480. static="false" final="false" visibility="public"
  82481. deprecated="not deprecated">
  82482. </method>
  82483. <method name="getPreferredLocations" return="java.util.List"
  82484. abstract="false" native="false" synchronized="false"
  82485. static="false" final="false" visibility="public"
  82486. deprecated="not deprecated">
  82487. </method>
  82488. <method name="getTaskStatus" return="org.apache.hadoop.tools.rumen.Pre21JobHistoryConstants.Values"
  82489. abstract="false" native="false" synchronized="false"
  82490. static="false" final="false" visibility="public"
  82491. deprecated="not deprecated">
  82492. </method>
  82493. <method name="getTaskType" return="org.apache.hadoop.tools.rumen.Pre21JobHistoryConstants.Values"
  82494. abstract="false" native="false" synchronized="false"
  82495. static="false" final="false" visibility="public"
  82496. deprecated="not deprecated">
  82497. </method>
  82498. <method name="incorporateCounters"
  82499. abstract="false" native="false" synchronized="false"
  82500. static="false" final="false" visibility="public"
  82501. deprecated="not deprecated">
  82502. <param name="counters" type="org.apache.hadoop.tools.rumen.JhCounters"/>
  82503. </method>
  82504. <method name="deepCompare"
  82505. abstract="false" native="false" synchronized="false"
  82506. static="false" final="false" visibility="public"
  82507. deprecated="not deprecated">
  82508. <param name="comparand" type="org.apache.hadoop.tools.rumen.DeepCompare"/>
  82509. <param name="loc" type="org.apache.hadoop.tools.rumen.TreePath"/>
  82510. <exception name="DeepInequalityException" type="org.apache.hadoop.tools.rumen.DeepInequalityException"/>
  82511. </method>
  82512. <doc>
  82513. <![CDATA[A {@link LoggedTask} represents a [hadoop] task that is part of a hadoop job.
  82514. It knows about the [pssibly empty] sequence of attempts, its I/O footprint,
  82515. and its runtime.
  82516. All of the public methods are simply accessors for the instance variables we
  82517. want to write out in the JSON files.]]>
  82518. </doc>
  82519. </class>
  82520. <!-- end class org.apache.hadoop.tools.rumen.LoggedTask -->
  82521. <!-- start class org.apache.hadoop.tools.rumen.LoggedTaskAttempt -->
  82522. <class name="LoggedTaskAttempt" extends="java.lang.Object"
  82523. abstract="false"
  82524. static="false" final="false" visibility="public"
  82525. deprecated="not deprecated">
  82526. <implements name="org.apache.hadoop.tools.rumen.DeepCompare"/>
  82527. <method name="setUnknownAttribute"
  82528. abstract="false" native="false" synchronized="false"
  82529. static="false" final="false" visibility="public"
  82530. deprecated="not deprecated">
  82531. <param name="attributeName" type="java.lang.String"/>
  82532. <param name="ignored" type="java.lang.Object"/>
  82533. </method>
  82534. <method name="getShuffleFinished" return="long"
  82535. abstract="false" native="false" synchronized="false"
  82536. static="false" final="false" visibility="public"
  82537. deprecated="not deprecated">
  82538. </method>
  82539. <method name="getSortFinished" return="long"
  82540. abstract="false" native="false" synchronized="false"
  82541. static="false" final="false" visibility="public"
  82542. deprecated="not deprecated">
  82543. </method>
  82544. <method name="getAttemptID" return="java.lang.String"
  82545. abstract="false" native="false" synchronized="false"
  82546. static="false" final="false" visibility="public"
  82547. deprecated="not deprecated">
  82548. </method>
  82549. <method name="getResult" return="org.apache.hadoop.tools.rumen.Pre21JobHistoryConstants.Values"
  82550. abstract="false" native="false" synchronized="false"
  82551. static="false" final="false" visibility="public"
  82552. deprecated="not deprecated">
  82553. </method>
  82554. <method name="getStartTime" return="long"
  82555. abstract="false" native="false" synchronized="false"
  82556. static="false" final="false" visibility="public"
  82557. deprecated="not deprecated">
  82558. </method>
  82559. <method name="getFinishTime" return="long"
  82560. abstract="false" native="false" synchronized="false"
  82561. static="false" final="false" visibility="public"
  82562. deprecated="not deprecated">
  82563. </method>
  82564. <method name="getHostName" return="java.lang.String"
  82565. abstract="false" native="false" synchronized="false"
  82566. static="false" final="false" visibility="public"
  82567. deprecated="not deprecated">
  82568. </method>
  82569. <method name="getHdfsBytesRead" return="long"
  82570. abstract="false" native="false" synchronized="false"
  82571. static="false" final="false" visibility="public"
  82572. deprecated="not deprecated">
  82573. </method>
  82574. <method name="getHdfsBytesWritten" return="long"
  82575. abstract="false" native="false" synchronized="false"
  82576. static="false" final="false" visibility="public"
  82577. deprecated="not deprecated">
  82578. </method>
  82579. <method name="getFileBytesRead" return="long"
  82580. abstract="false" native="false" synchronized="false"
  82581. static="false" final="false" visibility="public"
  82582. deprecated="not deprecated">
  82583. </method>
  82584. <method name="getFileBytesWritten" return="long"
  82585. abstract="false" native="false" synchronized="false"
  82586. static="false" final="false" visibility="public"
  82587. deprecated="not deprecated">
  82588. </method>
  82589. <method name="getMapInputRecords" return="long"
  82590. abstract="false" native="false" synchronized="false"
  82591. static="false" final="false" visibility="public"
  82592. deprecated="not deprecated">
  82593. </method>
  82594. <method name="getMapOutputBytes" return="long"
  82595. abstract="false" native="false" synchronized="false"
  82596. static="false" final="false" visibility="public"
  82597. deprecated="not deprecated">
  82598. </method>
  82599. <method name="getMapOutputRecords" return="long"
  82600. abstract="false" native="false" synchronized="false"
  82601. static="false" final="false" visibility="public"
  82602. deprecated="not deprecated">
  82603. </method>
  82604. <method name="getCombineInputRecords" return="long"
  82605. abstract="false" native="false" synchronized="false"
  82606. static="false" final="false" visibility="public"
  82607. deprecated="not deprecated">
  82608. </method>
  82609. <method name="getReduceInputGroups" return="long"
  82610. abstract="false" native="false" synchronized="false"
  82611. static="false" final="false" visibility="public"
  82612. deprecated="not deprecated">
  82613. </method>
  82614. <method name="getReduceInputRecords" return="long"
  82615. abstract="false" native="false" synchronized="false"
  82616. static="false" final="false" visibility="public"
  82617. deprecated="not deprecated">
  82618. </method>
  82619. <method name="getReduceShuffleBytes" return="long"
  82620. abstract="false" native="false" synchronized="false"
  82621. static="false" final="false" visibility="public"
  82622. deprecated="not deprecated">
  82623. </method>
  82624. <method name="getReduceOutputRecords" return="long"
  82625. abstract="false" native="false" synchronized="false"
  82626. static="false" final="false" visibility="public"
  82627. deprecated="not deprecated">
  82628. </method>
  82629. <method name="getSpilledRecords" return="long"
  82630. abstract="false" native="false" synchronized="false"
  82631. static="false" final="false" visibility="public"
  82632. deprecated="not deprecated">
  82633. </method>
  82634. <method name="getLocation" return="org.apache.hadoop.tools.rumen.LoggedLocation"
  82635. abstract="false" native="false" synchronized="false"
  82636. static="false" final="false" visibility="public"
  82637. deprecated="not deprecated">
  82638. </method>
  82639. <method name="getMapInputBytes" return="long"
  82640. abstract="false" native="false" synchronized="false"
  82641. static="false" final="false" visibility="public"
  82642. deprecated="not deprecated">
  82643. </method>
  82644. <method name="incorporateCounters"
  82645. abstract="false" native="false" synchronized="false"
  82646. static="false" final="false" visibility="public"
  82647. deprecated="not deprecated">
  82648. <param name="counters" type="org.apache.hadoop.tools.rumen.JhCounters"/>
  82649. </method>
  82650. <method name="getResourceUsageMetrics" return="org.apache.hadoop.tools.rumen.ResourceUsageMetrics"
  82651. abstract="false" native="false" synchronized="false"
  82652. static="false" final="false" visibility="public"
  82653. deprecated="not deprecated">
  82654. </method>
  82655. <method name="deepCompare"
  82656. abstract="false" native="false" synchronized="false"
  82657. static="false" final="false" visibility="public"
  82658. deprecated="not deprecated">
  82659. <param name="comparand" type="org.apache.hadoop.tools.rumen.DeepCompare"/>
  82660. <param name="loc" type="org.apache.hadoop.tools.rumen.TreePath"/>
  82661. <exception name="DeepInequalityException" type="org.apache.hadoop.tools.rumen.DeepInequalityException"/>
  82662. </method>
  82663. <doc>
  82664. <![CDATA[A {@link LoggedTaskAttempt} represents an attempt to run an hadoop task in a
  82665. hadoop job. Note that a task can have several attempts.
  82666. All of the public methods are simply accessors for the instance variables we
  82667. want to write out in the JSON files.]]>
  82668. </doc>
  82669. </class>
  82670. <!-- end class org.apache.hadoop.tools.rumen.LoggedTaskAttempt -->
  82671. <!-- start class org.apache.hadoop.tools.rumen.MachineNode -->
  82672. <class name="MachineNode" extends="org.apache.hadoop.tools.rumen.Node"
  82673. abstract="false"
  82674. static="false" final="true" visibility="public"
  82675. deprecated="not deprecated">
  82676. <method name="equals" return="boolean"
  82677. abstract="false" native="false" synchronized="false"
  82678. static="false" final="false" visibility="public"
  82679. deprecated="not deprecated">
  82680. <param name="obj" type="java.lang.Object"/>
  82681. </method>
  82682. <method name="hashCode" return="int"
  82683. abstract="false" native="false" synchronized="false"
  82684. static="false" final="false" visibility="public"
  82685. deprecated="not deprecated">
  82686. </method>
  82687. <method name="getMemory" return="long"
  82688. abstract="false" native="false" synchronized="false"
  82689. static="false" final="false" visibility="public"
  82690. deprecated="not deprecated">
  82691. <doc>
  82692. <![CDATA[Get the available physical RAM of the node.
  82693. @return The available physical RAM of the node, in KB.]]>
  82694. </doc>
  82695. </method>
  82696. <method name="getMapSlots" return="int"
  82697. abstract="false" native="false" synchronized="false"
  82698. static="false" final="false" visibility="public"
  82699. deprecated="not deprecated">
  82700. <doc>
  82701. <![CDATA[Get the number of map slots of the node.
  82702. @return The number of map slots of the node.]]>
  82703. </doc>
  82704. </method>
  82705. <method name="getReduceSlots" return="int"
  82706. abstract="false" native="false" synchronized="false"
  82707. static="false" final="false" visibility="public"
  82708. deprecated="not deprecated">
  82709. <doc>
  82710. <![CDATA[Get the number of reduce slots of the node.
  82711. @return The number of reduce slots fo the node.]]>
  82712. </doc>
  82713. </method>
  82714. <method name="getMemoryPerMapSlot" return="long"
  82715. abstract="false" native="false" synchronized="false"
  82716. static="false" final="false" visibility="public"
  82717. deprecated="not deprecated">
  82718. <doc>
  82719. <![CDATA[Get the amount of RAM reserved for each map slot.
  82720. @return the amount of RAM reserved for each map slot, in KB.]]>
  82721. </doc>
  82722. </method>
  82723. <method name="getMemoryPerReduceSlot" return="long"
  82724. abstract="false" native="false" synchronized="false"
  82725. static="false" final="false" visibility="public"
  82726. deprecated="not deprecated">
  82727. <doc>
  82728. <![CDATA[Get the amount of RAM reserved for each reduce slot.
  82729. @return the amount of RAM reserved for each reduce slot, in KB.]]>
  82730. </doc>
  82731. </method>
  82732. <method name="getNumCores" return="int"
  82733. abstract="false" native="false" synchronized="false"
  82734. static="false" final="false" visibility="public"
  82735. deprecated="not deprecated">
  82736. <doc>
  82737. <![CDATA[Get the number of cores of the node.
  82738. @return the number of cores of the node.]]>
  82739. </doc>
  82740. </method>
  82741. <method name="getRackNode" return="org.apache.hadoop.tools.rumen.RackNode"
  82742. abstract="false" native="false" synchronized="false"
  82743. static="false" final="false" visibility="public"
  82744. deprecated="not deprecated">
  82745. <doc>
  82746. <![CDATA[Get the rack node that the machine belongs to.
  82747. @return The rack node that the machine belongs to. Returns null if the
  82748. machine does not belong to any rack.]]>
  82749. </doc>
  82750. </method>
  82751. <method name="addChild" return="boolean"
  82752. abstract="false" native="false" synchronized="true"
  82753. static="false" final="false" visibility="public"
  82754. deprecated="not deprecated">
  82755. <param name="child" type="org.apache.hadoop.tools.rumen.Node"/>
  82756. </method>
  82757. <doc>
  82758. <![CDATA[{@link MachineNode} represents the configuration of a cluster node.
  82759. {@link MachineNode} should be constructed by {@link MachineNode.Builder}.]]>
  82760. </doc>
  82761. </class>
  82762. <!-- end class org.apache.hadoop.tools.rumen.MachineNode -->
  82763. <!-- start class org.apache.hadoop.tools.rumen.MachineNode.Builder -->
  82764. <class name="MachineNode.Builder" extends="java.lang.Object"
  82765. abstract="false"
  82766. static="true" final="true" visibility="public"
  82767. deprecated="not deprecated">
  82768. <constructor name="MachineNode.Builder" type="java.lang.String, int"
  82769. static="false" final="false" visibility="public"
  82770. deprecated="not deprecated">
  82771. <doc>
  82772. <![CDATA[Start building a new NodeInfo object.
  82773. @param name
  82774. Unique name of the node. Typically the fully qualified domain
  82775. name.]]>
  82776. </doc>
  82777. </constructor>
  82778. <method name="setMemory" return="org.apache.hadoop.tools.rumen.MachineNode.Builder"
  82779. abstract="false" native="false" synchronized="false"
  82780. static="false" final="false" visibility="public"
  82781. deprecated="not deprecated">
  82782. <param name="memory" type="long"/>
  82783. <doc>
  82784. <![CDATA[Set the physical memory of the node.
  82785. @param memory Available RAM in KB.]]>
  82786. </doc>
  82787. </method>
  82788. <method name="setMapSlots" return="org.apache.hadoop.tools.rumen.MachineNode.Builder"
  82789. abstract="false" native="false" synchronized="false"
  82790. static="false" final="false" visibility="public"
  82791. deprecated="not deprecated">
  82792. <param name="mapSlots" type="int"/>
  82793. <doc>
  82794. <![CDATA[Set the number of map slot for the node.
  82795. @param mapSlots The number of map slots for the node.]]>
  82796. </doc>
  82797. </method>
  82798. <method name="setReduceSlots" return="org.apache.hadoop.tools.rumen.MachineNode.Builder"
  82799. abstract="false" native="false" synchronized="false"
  82800. static="false" final="false" visibility="public"
  82801. deprecated="not deprecated">
  82802. <param name="reduceSlots" type="int"/>
  82803. <doc>
  82804. <![CDATA[Set the number of reduce slot for the node.
  82805. @param reduceSlots The number of reduce slots for the node.]]>
  82806. </doc>
  82807. </method>
  82808. <method name="setMemoryPerMapSlot" return="org.apache.hadoop.tools.rumen.MachineNode.Builder"
  82809. abstract="false" native="false" synchronized="false"
  82810. static="false" final="false" visibility="public"
  82811. deprecated="not deprecated">
  82812. <param name="memoryPerMapSlot" type="long"/>
  82813. <doc>
  82814. <![CDATA[Set the amount of RAM reserved for each map slot.
  82815. @param memoryPerMapSlot The amount of RAM reserved for each map slot, in KB.]]>
  82816. </doc>
  82817. </method>
  82818. <method name="setMemoryPerReduceSlot" return="org.apache.hadoop.tools.rumen.MachineNode.Builder"
  82819. abstract="false" native="false" synchronized="false"
  82820. static="false" final="false" visibility="public"
  82821. deprecated="not deprecated">
  82822. <param name="memoryPerReduceSlot" type="long"/>
  82823. <doc>
  82824. <![CDATA[Set the amount of RAM reserved for each reduce slot.
  82825. @param memoryPerReduceSlot The amount of RAM reserved for each reduce slot, in KB.]]>
  82826. </doc>
  82827. </method>
  82828. <method name="setNumCores" return="org.apache.hadoop.tools.rumen.MachineNode.Builder"
  82829. abstract="false" native="false" synchronized="false"
  82830. static="false" final="false" visibility="public"
  82831. deprecated="not deprecated">
  82832. <param name="numCores" type="int"/>
  82833. <doc>
  82834. <![CDATA[Set the number of cores for the node.
  82835. @param numCores Number of cores for the node.]]>
  82836. </doc>
  82837. </method>
  82838. <method name="cloneFrom" return="org.apache.hadoop.tools.rumen.MachineNode.Builder"
  82839. abstract="false" native="false" synchronized="false"
  82840. static="false" final="false" visibility="public"
  82841. deprecated="not deprecated">
  82842. <param name="ref" type="org.apache.hadoop.tools.rumen.MachineNode"/>
  82843. <doc>
  82844. <![CDATA[Clone the settings from a reference {@link MachineNode} object.
  82845. @param ref The reference {@link MachineNode} object.]]>
  82846. </doc>
  82847. </method>
  82848. <method name="build" return="org.apache.hadoop.tools.rumen.MachineNode"
  82849. abstract="false" native="false" synchronized="false"
  82850. static="false" final="false" visibility="public"
  82851. deprecated="not deprecated">
  82852. <doc>
  82853. <![CDATA[Build the {@link MachineNode} object.
  82854. @return The {@link MachineNode} object being built.]]>
  82855. </doc>
  82856. </method>
  82857. <doc>
  82858. <![CDATA[Builder for a NodeInfo object]]>
  82859. </doc>
  82860. </class>
  82861. <!-- end class org.apache.hadoop.tools.rumen.MachineNode.Builder -->
  82862. <!-- start class org.apache.hadoop.tools.rumen.MapAttempt20LineHistoryEventEmitter -->
  82863. <class name="MapAttempt20LineHistoryEventEmitter" extends="org.apache.hadoop.tools.rumen.TaskAttempt20LineEventEmitter"
  82864. abstract="false"
  82865. static="false" final="false" visibility="public"
  82866. deprecated="not deprecated">
  82867. <constructor name="MapAttempt20LineHistoryEventEmitter"
  82868. static="false" final="false" visibility="protected"
  82869. deprecated="not deprecated">
  82870. </constructor>
  82871. </class>
  82872. <!-- end class org.apache.hadoop.tools.rumen.MapAttempt20LineHistoryEventEmitter -->
  82873. <!-- start class org.apache.hadoop.tools.rumen.MapAttemptFinishedEvent -->
  82874. <class name="MapAttemptFinishedEvent" extends="java.lang.Object"
  82875. abstract="false"
  82876. static="false" final="false" visibility="public"
  82877. deprecated="not deprecated">
  82878. <implements name="org.apache.hadoop.tools.rumen.HistoryEvent"/>
  82879. <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"
  82880. static="false" final="false" visibility="public"
  82881. deprecated="not deprecated">
  82882. <doc>
  82883. <![CDATA[Create an event for successful completion of map attempts
  82884. @param id Task Attempt ID
  82885. @param taskType Type of the task
  82886. @param taskStatus Status of the task
  82887. @param mapFinishTime Finish time of the map phase
  82888. @param finishTime Finish time of the attempt
  82889. @param hostname Name of the host where the map executed
  82890. @param state State string for the attempt
  82891. @param counters Counters for the attempt]]>
  82892. </doc>
  82893. </constructor>
  82894. <method name="getTaskId" return="org.apache.hadoop.mapreduce.TaskID"
  82895. abstract="false" native="false" synchronized="false"
  82896. static="false" final="false" visibility="public"
  82897. deprecated="not deprecated">
  82898. <doc>
  82899. <![CDATA[Get the task ID]]>
  82900. </doc>
  82901. </method>
  82902. <method name="getAttemptId" return="org.apache.hadoop.mapreduce.TaskAttemptID"
  82903. abstract="false" native="false" synchronized="false"
  82904. static="false" final="false" visibility="public"
  82905. deprecated="not deprecated">
  82906. <doc>
  82907. <![CDATA[Get the attempt id]]>
  82908. </doc>
  82909. </method>
  82910. <method name="getTaskType" return="org.apache.hadoop.mapreduce.TaskType"
  82911. abstract="false" native="false" synchronized="false"
  82912. static="false" final="false" visibility="public"
  82913. deprecated="not deprecated">
  82914. <doc>
  82915. <![CDATA[Get the task type]]>
  82916. </doc>
  82917. </method>
  82918. <method name="getTaskStatus" return="java.lang.String"
  82919. abstract="false" native="false" synchronized="false"
  82920. static="false" final="false" visibility="public"
  82921. deprecated="not deprecated">
  82922. <doc>
  82923. <![CDATA[Get the task status]]>
  82924. </doc>
  82925. </method>
  82926. <method name="getMapFinishTime" return="long"
  82927. abstract="false" native="false" synchronized="false"
  82928. static="false" final="false" visibility="public"
  82929. deprecated="not deprecated">
  82930. <doc>
  82931. <![CDATA[Get the map phase finish time]]>
  82932. </doc>
  82933. </method>
  82934. <method name="getFinishTime" return="long"
  82935. abstract="false" native="false" synchronized="false"
  82936. static="false" final="false" visibility="public"
  82937. deprecated="not deprecated">
  82938. <doc>
  82939. <![CDATA[Get the attempt finish time]]>
  82940. </doc>
  82941. </method>
  82942. <method name="getHostname" return="java.lang.String"
  82943. abstract="false" native="false" synchronized="false"
  82944. static="false" final="false" visibility="public"
  82945. deprecated="not deprecated">
  82946. <doc>
  82947. <![CDATA[Get the host name]]>
  82948. </doc>
  82949. </method>
  82950. <method name="getState" return="java.lang.String"
  82951. abstract="false" native="false" synchronized="false"
  82952. static="false" final="false" visibility="public"
  82953. deprecated="not deprecated">
  82954. <doc>
  82955. <![CDATA[Get the state string]]>
  82956. </doc>
  82957. </method>
  82958. <method name="getCounters" return="org.apache.hadoop.tools.rumen.JhCounters"
  82959. abstract="false" native="false" synchronized="false"
  82960. static="false" final="false" visibility="public"
  82961. deprecated="not deprecated">
  82962. <doc>
  82963. <![CDATA[Get the counters]]>
  82964. </doc>
  82965. </method>
  82966. <method name="getEventType" return="org.apache.hadoop.tools.rumen.EventType"
  82967. abstract="false" native="false" synchronized="false"
  82968. static="false" final="false" visibility="public"
  82969. deprecated="not deprecated">
  82970. <doc>
  82971. <![CDATA[Get the event type]]>
  82972. </doc>
  82973. </method>
  82974. <doc>
  82975. <![CDATA[Event to record successful completion of a map attempt]]>
  82976. </doc>
  82977. </class>
  82978. <!-- end class org.apache.hadoop.tools.rumen.MapAttemptFinishedEvent -->
  82979. <!-- start class org.apache.hadoop.tools.rumen.MapTaskAttemptInfo -->
  82980. <class name="MapTaskAttemptInfo" extends="org.apache.hadoop.tools.rumen.TaskAttemptInfo"
  82981. abstract="false"
  82982. static="false" final="false" visibility="public"
  82983. deprecated="not deprecated">
  82984. <constructor name="MapTaskAttemptInfo" type="org.apache.hadoop.mapred.TaskStatus.State, org.apache.hadoop.tools.rumen.TaskInfo, long"
  82985. static="false" final="false" visibility="public"
  82986. deprecated="not deprecated">
  82987. </constructor>
  82988. <method name="getRuntime" return="long"
  82989. abstract="false" native="false" synchronized="false"
  82990. static="false" final="false" visibility="public"
  82991. deprecated="not deprecated">
  82992. </method>
  82993. <method name="getMapRuntime" return="long"
  82994. abstract="false" native="false" synchronized="false"
  82995. static="false" final="false" visibility="public"
  82996. deprecated="not deprecated">
  82997. <doc>
  82998. <![CDATA[Get the runtime for the <b>map</b> phase of the map-task attempt.
  82999. @return the runtime for the <b>map</b> phase of the map-task attempt]]>
  83000. </doc>
  83001. </method>
  83002. <doc>
  83003. <![CDATA[{@link MapTaskAttemptInfo} represents the information with regard to a
  83004. map task attempt.]]>
  83005. </doc>
  83006. </class>
  83007. <!-- end class org.apache.hadoop.tools.rumen.MapTaskAttemptInfo -->
  83008. <!-- start class org.apache.hadoop.tools.rumen.Node -->
  83009. <class name="Node" extends="java.lang.Object"
  83010. abstract="false"
  83011. static="false" final="false" visibility="public"
  83012. deprecated="not deprecated">
  83013. <implements name="java.lang.Comparable"/>
  83014. <constructor name="Node" type="java.lang.String, int"
  83015. static="false" final="false" visibility="public"
  83016. deprecated="not deprecated">
  83017. <doc>
  83018. <![CDATA[@param name
  83019. A unique name to identify a node in the cluster.
  83020. @param level
  83021. The level of the node in the cluster]]>
  83022. </doc>
  83023. </constructor>
  83024. <method name="getName" return="java.lang.String"
  83025. abstract="false" native="false" synchronized="false"
  83026. static="false" final="false" visibility="public"
  83027. deprecated="not deprecated">
  83028. <doc>
  83029. <![CDATA[Get the name of the node.
  83030. @return The name of the node.]]>
  83031. </doc>
  83032. </method>
  83033. <method name="getLevel" return="int"
  83034. abstract="false" native="false" synchronized="false"
  83035. static="false" final="false" visibility="public"
  83036. deprecated="not deprecated">
  83037. <doc>
  83038. <![CDATA[Get the level of the node.
  83039. @return The level of the node.]]>
  83040. </doc>
  83041. </method>
  83042. <method name="addChild" return="boolean"
  83043. abstract="false" native="false" synchronized="true"
  83044. static="false" final="false" visibility="public"
  83045. deprecated="not deprecated">
  83046. <param name="child" type="org.apache.hadoop.tools.rumen.Node"/>
  83047. <doc>
  83048. <![CDATA[Add a child node to this node.
  83049. @param child The child node to be added. The child node should currently not be belong to another cluster topology.
  83050. @return Boolean indicating whether the node is successfully added.]]>
  83051. </doc>
  83052. </method>
  83053. <method name="hasChildren" return="boolean"
  83054. abstract="false" native="false" synchronized="true"
  83055. static="false" final="false" visibility="public"
  83056. deprecated="not deprecated">
  83057. <doc>
  83058. <![CDATA[Does this node have any children?
  83059. @return Boolean indicate whether this node has any children.]]>
  83060. </doc>
  83061. </method>
  83062. <method name="getChildren" return="java.util.Set"
  83063. abstract="false" native="false" synchronized="true"
  83064. static="false" final="false" visibility="public"
  83065. deprecated="not deprecated">
  83066. <doc>
  83067. <![CDATA[Get the children of this node.
  83068. @return The children of this node. If no child, an empty set will be
  83069. returned. The returned set is read-only.]]>
  83070. </doc>
  83071. </method>
  83072. <method name="getParent" return="org.apache.hadoop.tools.rumen.Node"
  83073. abstract="false" native="false" synchronized="false"
  83074. static="false" final="false" visibility="public"
  83075. deprecated="not deprecated">
  83076. <doc>
  83077. <![CDATA[Get the parent node.
  83078. @return the parent node. If root node, return null.]]>
  83079. </doc>
  83080. </method>
  83081. <method name="hashCode" return="int"
  83082. abstract="false" native="false" synchronized="false"
  83083. static="false" final="false" visibility="public"
  83084. deprecated="not deprecated">
  83085. </method>
  83086. <method name="equals" return="boolean"
  83087. abstract="false" native="false" synchronized="false"
  83088. static="false" final="false" visibility="public"
  83089. deprecated="not deprecated">
  83090. <param name="obj" type="java.lang.Object"/>
  83091. </method>
  83092. <method name="toString" return="java.lang.String"
  83093. abstract="false" native="false" synchronized="false"
  83094. static="false" final="false" visibility="public"
  83095. deprecated="not deprecated">
  83096. </method>
  83097. <method name="compareTo" return="int"
  83098. abstract="false" native="false" synchronized="false"
  83099. static="false" final="false" visibility="public"
  83100. deprecated="not deprecated">
  83101. <param name="o" type="org.apache.hadoop.tools.rumen.Node"/>
  83102. </method>
  83103. <doc>
  83104. <![CDATA[{@link Node} represents a node in the cluster topology. A node can be a
  83105. {@link MachineNode}, or a {@link RackNode}, etc.]]>
  83106. </doc>
  83107. </class>
  83108. <!-- end class org.apache.hadoop.tools.rumen.Node -->
  83109. <!-- start interface org.apache.hadoop.tools.rumen.Outputter -->
  83110. <interface name="Outputter" abstract="true"
  83111. static="false" final="false" visibility="public"
  83112. deprecated="not deprecated">
  83113. <implements name="java.io.Closeable"/>
  83114. <method name="init"
  83115. abstract="false" native="false" synchronized="false"
  83116. static="false" final="false" visibility="public"
  83117. deprecated="not deprecated">
  83118. <param name="path" type="org.apache.hadoop.fs.Path"/>
  83119. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  83120. <exception name="IOException" type="java.io.IOException"/>
  83121. <doc>
  83122. <![CDATA[Initialize the {@link Outputter} to a specific path.
  83123. @param path The {@link Path} to the output file.
  83124. @param conf Configuration
  83125. @throws IOException]]>
  83126. </doc>
  83127. </method>
  83128. <method name="output"
  83129. abstract="false" native="false" synchronized="false"
  83130. static="false" final="false" visibility="public"
  83131. deprecated="not deprecated">
  83132. <param name="object" type="java.lang.Object"/>
  83133. <exception name="IOException" type="java.io.IOException"/>
  83134. <doc>
  83135. <![CDATA[Output an object.
  83136. @param object The objecte.
  83137. @throws IOException]]>
  83138. </doc>
  83139. </method>
  83140. <doc>
  83141. <![CDATA[Interface to output a sequence of objects of type T.]]>
  83142. </doc>
  83143. </interface>
  83144. <!-- end interface org.apache.hadoop.tools.rumen.Outputter -->
  83145. <!-- start class org.apache.hadoop.tools.rumen.ParsedJob -->
  83146. <class name="ParsedJob" extends="org.apache.hadoop.tools.rumen.LoggedJob"
  83147. abstract="false"
  83148. static="false" final="false" visibility="public"
  83149. deprecated="not deprecated">
  83150. <method name="obtainTotalCounters" return="java.util.Map"
  83151. abstract="false" native="false" synchronized="false"
  83152. static="false" final="false" visibility="public"
  83153. deprecated="not deprecated">
  83154. <doc>
  83155. <![CDATA[@return the job total counters]]>
  83156. </doc>
  83157. </method>
  83158. <method name="obtainMapCounters" return="java.util.Map"
  83159. abstract="false" native="false" synchronized="false"
  83160. static="false" final="false" visibility="public"
  83161. deprecated="not deprecated">
  83162. <doc>
  83163. <![CDATA[@return the job level map tasks' counters]]>
  83164. </doc>
  83165. </method>
  83166. <method name="obtainReduceCounters" return="java.util.Map"
  83167. abstract="false" native="false" synchronized="false"
  83168. static="false" final="false" visibility="public"
  83169. deprecated="not deprecated">
  83170. <doc>
  83171. <![CDATA[@return the job level reduce tasks' counters]]>
  83172. </doc>
  83173. </method>
  83174. <method name="obtainJobConfpath" return="java.lang.String"
  83175. abstract="false" native="false" synchronized="false"
  83176. static="false" final="false" visibility="public"
  83177. deprecated="not deprecated">
  83178. <doc>
  83179. <![CDATA[@return the job conf path in staging dir on hdfs]]>
  83180. </doc>
  83181. </method>
  83182. <method name="obtainJobAcls" return="java.util.Map"
  83183. abstract="false" native="false" synchronized="false"
  83184. static="false" final="false" visibility="public"
  83185. deprecated="not deprecated">
  83186. <doc>
  83187. <![CDATA[@return the job acls]]>
  83188. </doc>
  83189. </method>
  83190. <method name="obtainMapTasks" return="java.util.List"
  83191. abstract="false" native="false" synchronized="false"
  83192. static="false" final="false" visibility="public"
  83193. deprecated="not deprecated">
  83194. <doc>
  83195. <![CDATA[@return the list of map tasks of this job]]>
  83196. </doc>
  83197. </method>
  83198. <method name="obtainReduceTasks" return="java.util.List"
  83199. abstract="false" native="false" synchronized="false"
  83200. static="false" final="false" visibility="public"
  83201. deprecated="not deprecated">
  83202. <doc>
  83203. <![CDATA[@return the list of reduce tasks of this job]]>
  83204. </doc>
  83205. </method>
  83206. <method name="obtainOtherTasks" return="java.util.List"
  83207. abstract="false" native="false" synchronized="false"
  83208. static="false" final="false" visibility="public"
  83209. deprecated="not deprecated">
  83210. <doc>
  83211. <![CDATA[@return the list of other tasks of this job]]>
  83212. </doc>
  83213. </method>
  83214. <doc>
  83215. <![CDATA[This is a wrapper class around {@link LoggedJob}. This provides also the
  83216. extra information about the job obtained from job history which is not
  83217. written to the JSON trace file.]]>
  83218. </doc>
  83219. </class>
  83220. <!-- end class org.apache.hadoop.tools.rumen.ParsedJob -->
  83221. <!-- start class org.apache.hadoop.tools.rumen.ParsedTask -->
  83222. <class name="ParsedTask" extends="org.apache.hadoop.tools.rumen.LoggedTask"
  83223. abstract="false"
  83224. static="false" final="false" visibility="public"
  83225. deprecated="not deprecated">
  83226. <method name="incorporateCounters"
  83227. abstract="false" native="false" synchronized="false"
  83228. static="false" final="false" visibility="public"
  83229. deprecated="not deprecated">
  83230. <param name="counters" type="org.apache.hadoop.tools.rumen.JhCounters"/>
  83231. </method>
  83232. <method name="putCounters"
  83233. abstract="false" native="false" synchronized="false"
  83234. static="false" final="false" visibility="public"
  83235. deprecated="not deprecated">
  83236. <param name="counters" type="java.util.Map"/>
  83237. <doc>
  83238. <![CDATA[Set the task counters]]>
  83239. </doc>
  83240. </method>
  83241. <method name="obtainCounters" return="java.util.Map"
  83242. abstract="false" native="false" synchronized="false"
  83243. static="false" final="false" visibility="public"
  83244. deprecated="not deprecated">
  83245. <doc>
  83246. <![CDATA[@return the task counters]]>
  83247. </doc>
  83248. </method>
  83249. <method name="putDiagnosticInfo"
  83250. abstract="false" native="false" synchronized="false"
  83251. static="false" final="false" visibility="public"
  83252. deprecated="not deprecated">
  83253. <param name="msg" type="java.lang.String"/>
  83254. <doc>
  83255. <![CDATA[Set the task diagnostic-info]]>
  83256. </doc>
  83257. </method>
  83258. <method name="obtainDiagnosticInfo" return="java.lang.String"
  83259. abstract="false" native="false" synchronized="false"
  83260. static="false" final="false" visibility="public"
  83261. deprecated="not deprecated">
  83262. <doc>
  83263. <![CDATA[@return the diagnostic-info of this task.
  83264. If the task is successful, returns null.]]>
  83265. </doc>
  83266. </method>
  83267. <method name="putFailedDueToAttemptId"
  83268. abstract="false" native="false" synchronized="false"
  83269. static="false" final="false" visibility="public"
  83270. deprecated="not deprecated">
  83271. <param name="attempt" type="java.lang.String"/>
  83272. <doc>
  83273. <![CDATA[Set the failed-due-to-attemptId info of this task.]]>
  83274. </doc>
  83275. </method>
  83276. <method name="obtainFailedDueToAttemptId" return="java.lang.String"
  83277. abstract="false" native="false" synchronized="false"
  83278. static="false" final="false" visibility="public"
  83279. deprecated="not deprecated">
  83280. <doc>
  83281. <![CDATA[@return the failed-due-to-attemptId info of this task.
  83282. If the task is successful, returns null.]]>
  83283. </doc>
  83284. </method>
  83285. <method name="obtainTaskAttempts" return="java.util.List"
  83286. abstract="false" native="false" synchronized="false"
  83287. static="false" final="false" visibility="public"
  83288. deprecated="not deprecated">
  83289. </method>
  83290. <doc>
  83291. <![CDATA[This is a wrapper class around {@link LoggedTask}. This provides also the
  83292. extra information about the task obtained from job history which is not
  83293. written to the JSON trace file.]]>
  83294. </doc>
  83295. </class>
  83296. <!-- end class org.apache.hadoop.tools.rumen.ParsedTask -->
  83297. <!-- start class org.apache.hadoop.tools.rumen.ParsedTaskAttempt -->
  83298. <class name="ParsedTaskAttempt" extends="org.apache.hadoop.tools.rumen.LoggedTaskAttempt"
  83299. abstract="false"
  83300. static="false" final="false" visibility="public"
  83301. deprecated="not deprecated">
  83302. <method name="incorporateCounters"
  83303. abstract="false" native="false" synchronized="false"
  83304. static="false" final="false" visibility="public"
  83305. deprecated="not deprecated">
  83306. <param name="counters" type="org.apache.hadoop.tools.rumen.JhCounters"/>
  83307. <doc>
  83308. <![CDATA[incorporate event counters]]>
  83309. </doc>
  83310. </method>
  83311. <method name="putCounters"
  83312. abstract="false" native="false" synchronized="false"
  83313. static="false" final="false" visibility="public"
  83314. deprecated="not deprecated">
  83315. <param name="counters" type="java.util.Map"/>
  83316. <doc>
  83317. <![CDATA[Set the task attempt counters]]>
  83318. </doc>
  83319. </method>
  83320. <method name="obtainCounters" return="java.util.Map"
  83321. abstract="false" native="false" synchronized="false"
  83322. static="false" final="false" visibility="public"
  83323. deprecated="not deprecated">
  83324. <doc>
  83325. <![CDATA[@return the task attempt counters]]>
  83326. </doc>
  83327. </method>
  83328. <method name="putDiagnosticInfo"
  83329. abstract="false" native="false" synchronized="false"
  83330. static="false" final="false" visibility="public"
  83331. deprecated="not deprecated">
  83332. <param name="msg" type="java.lang.String"/>
  83333. <doc>
  83334. <![CDATA[Set the task attempt diagnostic-info]]>
  83335. </doc>
  83336. </method>
  83337. <method name="obtainDiagnosticInfo" return="java.lang.String"
  83338. abstract="false" native="false" synchronized="false"
  83339. static="false" final="false" visibility="public"
  83340. deprecated="not deprecated">
  83341. <doc>
  83342. <![CDATA[@return the diagnostic-info of this task attempt.
  83343. If the attempt is successful, returns null.]]>
  83344. </doc>
  83345. </method>
  83346. <method name="obtainTrackerName" return="java.lang.String"
  83347. abstract="false" native="false" synchronized="false"
  83348. static="false" final="false" visibility="public"
  83349. deprecated="not deprecated">
  83350. <doc>
  83351. <![CDATA[@return the tracker name where the attempt was run.]]>
  83352. </doc>
  83353. </method>
  83354. <method name="obtainHttpPort" return="java.lang.Integer"
  83355. abstract="false" native="false" synchronized="false"
  83356. static="false" final="false" visibility="public"
  83357. deprecated="not deprecated">
  83358. <doc>
  83359. <![CDATA[@return http port if set. Returns null otherwise.]]>
  83360. </doc>
  83361. </method>
  83362. <method name="obtainStateString" return="java.lang.String"
  83363. abstract="false" native="false" synchronized="false"
  83364. static="false" final="false" visibility="public"
  83365. deprecated="not deprecated">
  83366. <doc>
  83367. <![CDATA[@return state string of the task attempt.]]>
  83368. </doc>
  83369. </method>
  83370. <doc>
  83371. <![CDATA[This is a wrapper class around {@link LoggedTaskAttempt}. This provides
  83372. also the extra information about the task attempt obtained from
  83373. job history which is not written to the JSON trace file.]]>
  83374. </doc>
  83375. </class>
  83376. <!-- end class org.apache.hadoop.tools.rumen.ParsedTaskAttempt -->
  83377. <!-- start class org.apache.hadoop.tools.rumen.Pre21JobHistoryConstants -->
  83378. <class name="Pre21JobHistoryConstants" extends="java.lang.Object"
  83379. abstract="false"
  83380. static="false" final="false" visibility="public"
  83381. deprecated="not deprecated">
  83382. <constructor name="Pre21JobHistoryConstants"
  83383. static="false" final="false" visibility="public"
  83384. deprecated="not deprecated">
  83385. </constructor>
  83386. </class>
  83387. <!-- end class org.apache.hadoop.tools.rumen.Pre21JobHistoryConstants -->
  83388. <!-- start class org.apache.hadoop.tools.rumen.Pre21JobHistoryConstants.Values -->
  83389. <class name="Pre21JobHistoryConstants.Values" extends="java.lang.Enum"
  83390. abstract="false"
  83391. static="true" final="true" visibility="public"
  83392. deprecated="not deprecated">
  83393. <method name="values" return="org.apache.hadoop.tools.rumen.Pre21JobHistoryConstants.Values[]"
  83394. abstract="false" native="false" synchronized="false"
  83395. static="true" final="false" visibility="public"
  83396. deprecated="not deprecated">
  83397. </method>
  83398. <method name="valueOf" return="org.apache.hadoop.tools.rumen.Pre21JobHistoryConstants.Values"
  83399. abstract="false" native="false" synchronized="false"
  83400. static="true" final="false" visibility="public"
  83401. deprecated="not deprecated">
  83402. <param name="name" type="java.lang.String"/>
  83403. </method>
  83404. <field name="SUCCESS" type="org.apache.hadoop.tools.rumen.Pre21JobHistoryConstants.Values"
  83405. transient="false" volatile="false"
  83406. static="true" final="true" visibility="public"
  83407. deprecated="not deprecated">
  83408. </field>
  83409. <field name="FAILED" type="org.apache.hadoop.tools.rumen.Pre21JobHistoryConstants.Values"
  83410. transient="false" volatile="false"
  83411. static="true" final="true" visibility="public"
  83412. deprecated="not deprecated">
  83413. </field>
  83414. <field name="KILLED" type="org.apache.hadoop.tools.rumen.Pre21JobHistoryConstants.Values"
  83415. transient="false" volatile="false"
  83416. static="true" final="true" visibility="public"
  83417. deprecated="not deprecated">
  83418. </field>
  83419. <field name="MAP" type="org.apache.hadoop.tools.rumen.Pre21JobHistoryConstants.Values"
  83420. transient="false" volatile="false"
  83421. static="true" final="true" visibility="public"
  83422. deprecated="not deprecated">
  83423. </field>
  83424. <field name="REDUCE" type="org.apache.hadoop.tools.rumen.Pre21JobHistoryConstants.Values"
  83425. transient="false" volatile="false"
  83426. static="true" final="true" visibility="public"
  83427. deprecated="not deprecated">
  83428. </field>
  83429. <field name="CLEANUP" type="org.apache.hadoop.tools.rumen.Pre21JobHistoryConstants.Values"
  83430. transient="false" volatile="false"
  83431. static="true" final="true" visibility="public"
  83432. deprecated="not deprecated">
  83433. </field>
  83434. <field name="RUNNING" type="org.apache.hadoop.tools.rumen.Pre21JobHistoryConstants.Values"
  83435. transient="false" volatile="false"
  83436. static="true" final="true" visibility="public"
  83437. deprecated="not deprecated">
  83438. </field>
  83439. <field name="PREP" type="org.apache.hadoop.tools.rumen.Pre21JobHistoryConstants.Values"
  83440. transient="false" volatile="false"
  83441. static="true" final="true" visibility="public"
  83442. deprecated="not deprecated">
  83443. </field>
  83444. <field name="SETUP" type="org.apache.hadoop.tools.rumen.Pre21JobHistoryConstants.Values"
  83445. transient="false" volatile="false"
  83446. static="true" final="true" visibility="public"
  83447. deprecated="not deprecated">
  83448. </field>
  83449. <doc>
  83450. <![CDATA[This enum contains some of the values commonly used by history log events.
  83451. since values in history can only be strings - Values.name() is used in
  83452. most places in history file.]]>
  83453. </doc>
  83454. </class>
  83455. <!-- end class org.apache.hadoop.tools.rumen.Pre21JobHistoryConstants.Values -->
  83456. <!-- start class org.apache.hadoop.tools.rumen.RackNode -->
  83457. <class name="RackNode" extends="org.apache.hadoop.tools.rumen.Node"
  83458. abstract="false"
  83459. static="false" final="true" visibility="public"
  83460. deprecated="not deprecated">
  83461. <constructor name="RackNode" type="java.lang.String, int"
  83462. static="false" final="false" visibility="public"
  83463. deprecated="not deprecated">
  83464. </constructor>
  83465. <method name="addChild" return="boolean"
  83466. abstract="false" native="false" synchronized="true"
  83467. static="false" final="false" visibility="public"
  83468. deprecated="not deprecated">
  83469. <param name="child" type="org.apache.hadoop.tools.rumen.Node"/>
  83470. </method>
  83471. <method name="getMachinesInRack" return="java.util.Set"
  83472. abstract="false" native="false" synchronized="false"
  83473. static="false" final="false" visibility="public"
  83474. deprecated="not deprecated">
  83475. <doc>
  83476. <![CDATA[Get the machine nodes that belong to the rack.
  83477. @return The machine nodes that belong to the rack.]]>
  83478. </doc>
  83479. </method>
  83480. <doc>
  83481. <![CDATA[{@link RackNode} represents a rack node in the cluster topology.]]>
  83482. </doc>
  83483. </class>
  83484. <!-- end class org.apache.hadoop.tools.rumen.RackNode -->
  83485. <!-- start class org.apache.hadoop.tools.rumen.RandomSeedGenerator -->
  83486. <class name="RandomSeedGenerator" extends="java.lang.Object"
  83487. abstract="false"
  83488. static="false" final="false" visibility="public"
  83489. deprecated="not deprecated">
  83490. <constructor name="RandomSeedGenerator"
  83491. static="false" final="false" visibility="public"
  83492. deprecated="not deprecated">
  83493. </constructor>
  83494. <method name="getSeed" return="long"
  83495. abstract="false" native="false" synchronized="false"
  83496. static="true" final="false" visibility="public"
  83497. deprecated="not deprecated">
  83498. <param name="streamId" type="java.lang.String"/>
  83499. <param name="masterSeed" type="long"/>
  83500. <doc>
  83501. <![CDATA[Generates a new random seed.
  83502. @param streamId a string identifying the stream of random numbers
  83503. @param masterSeed higher level master random seed
  83504. @return the random seed. Different (streamId, masterSeed) pairs result in
  83505. (vastly) different random seeds.]]>
  83506. </doc>
  83507. </method>
  83508. <doc>
  83509. <![CDATA[The purpose of this class is to generate new random seeds from a master
  83510. seed. This is needed to make the Random().next*() calls in rumen and mumak
  83511. deterministic so that mumak simulations become deterministically replayable.
  83512. In these tools we need many independent streams of random numbers, some of
  83513. which are created dynamically. We seed these streams with the sub-seeds
  83514. returned by RandomSeedGenerator.
  83515. For a slightly more complicated approach to generating multiple streams of
  83516. random numbers with better theoretical guarantees, see
  83517. P. L'Ecuyer, R. Simard, E. J. Chen, and W. D. Kelton,
  83518. ``An Objected-Oriented Random-Number Package with Many Long Streams and
  83519. Substreams'', Operations Research, 50, 6 (2002), 1073--1075
  83520. http://www.iro.umontreal.ca/~lecuyer/papers.html
  83521. http://www.iro.umontreal.ca/~lecuyer/myftp/streams00/]]>
  83522. </doc>
  83523. </class>
  83524. <!-- end class org.apache.hadoop.tools.rumen.RandomSeedGenerator -->
  83525. <!-- start class org.apache.hadoop.tools.rumen.ReduceAttempt20LineHistoryEventEmitter -->
  83526. <class name="ReduceAttempt20LineHistoryEventEmitter" extends="org.apache.hadoop.tools.rumen.TaskAttempt20LineEventEmitter"
  83527. abstract="false"
  83528. static="false" final="false" visibility="public"
  83529. deprecated="not deprecated">
  83530. </class>
  83531. <!-- end class org.apache.hadoop.tools.rumen.ReduceAttempt20LineHistoryEventEmitter -->
  83532. <!-- start class org.apache.hadoop.tools.rumen.ReduceAttemptFinishedEvent -->
  83533. <class name="ReduceAttemptFinishedEvent" extends="java.lang.Object"
  83534. abstract="false"
  83535. static="false" final="false" visibility="public"
  83536. deprecated="not deprecated">
  83537. <implements name="org.apache.hadoop.tools.rumen.HistoryEvent"/>
  83538. <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"
  83539. static="false" final="false" visibility="public"
  83540. deprecated="not deprecated">
  83541. <doc>
  83542. <![CDATA[Create an event to record completion of a reduce attempt
  83543. @param id Attempt Id
  83544. @param taskType Type of task
  83545. @param taskStatus Status of the task
  83546. @param shuffleFinishTime Finish time of the shuffle phase
  83547. @param sortFinishTime Finish time of the sort phase
  83548. @param finishTime Finish time of the attempt
  83549. @param hostname Name of the host where the attempt executed
  83550. @param state State of the attempt
  83551. @param counters Counters for the attempt]]>
  83552. </doc>
  83553. </constructor>
  83554. <method name="getTaskId" return="org.apache.hadoop.mapreduce.TaskID"
  83555. abstract="false" native="false" synchronized="false"
  83556. static="false" final="false" visibility="public"
  83557. deprecated="not deprecated">
  83558. <doc>
  83559. <![CDATA[Get the Task ID]]>
  83560. </doc>
  83561. </method>
  83562. <method name="getAttemptId" return="org.apache.hadoop.mapreduce.TaskAttemptID"
  83563. abstract="false" native="false" synchronized="false"
  83564. static="false" final="false" visibility="public"
  83565. deprecated="not deprecated">
  83566. <doc>
  83567. <![CDATA[Get the attempt id]]>
  83568. </doc>
  83569. </method>
  83570. <method name="getTaskType" return="org.apache.hadoop.mapreduce.TaskType"
  83571. abstract="false" native="false" synchronized="false"
  83572. static="false" final="false" visibility="public"
  83573. deprecated="not deprecated">
  83574. <doc>
  83575. <![CDATA[Get the task type]]>
  83576. </doc>
  83577. </method>
  83578. <method name="getTaskStatus" return="java.lang.String"
  83579. abstract="false" native="false" synchronized="false"
  83580. static="false" final="false" visibility="public"
  83581. deprecated="not deprecated">
  83582. <doc>
  83583. <![CDATA[Get the task status]]>
  83584. </doc>
  83585. </method>
  83586. <method name="getSortFinishTime" return="long"
  83587. abstract="false" native="false" synchronized="false"
  83588. static="false" final="false" visibility="public"
  83589. deprecated="not deprecated">
  83590. <doc>
  83591. <![CDATA[Get the finish time of the sort phase]]>
  83592. </doc>
  83593. </method>
  83594. <method name="getShuffleFinishTime" return="long"
  83595. abstract="false" native="false" synchronized="false"
  83596. static="false" final="false" visibility="public"
  83597. deprecated="not deprecated">
  83598. <doc>
  83599. <![CDATA[Get the finish time of the shuffle phase]]>
  83600. </doc>
  83601. </method>
  83602. <method name="getFinishTime" return="long"
  83603. abstract="false" native="false" synchronized="false"
  83604. static="false" final="false" visibility="public"
  83605. deprecated="not deprecated">
  83606. <doc>
  83607. <![CDATA[Get the finish time of the attempt]]>
  83608. </doc>
  83609. </method>
  83610. <method name="getHostname" return="java.lang.String"
  83611. abstract="false" native="false" synchronized="false"
  83612. static="false" final="false" visibility="public"
  83613. deprecated="not deprecated">
  83614. <doc>
  83615. <![CDATA[Get the name of the host where the attempt ran]]>
  83616. </doc>
  83617. </method>
  83618. <method name="getState" return="java.lang.String"
  83619. abstract="false" native="false" synchronized="false"
  83620. static="false" final="false" visibility="public"
  83621. deprecated="not deprecated">
  83622. <doc>
  83623. <![CDATA[Get the state string]]>
  83624. </doc>
  83625. </method>
  83626. <method name="getCounters" return="org.apache.hadoop.tools.rumen.JhCounters"
  83627. abstract="false" native="false" synchronized="false"
  83628. static="false" final="false" visibility="public"
  83629. deprecated="not deprecated">
  83630. <doc>
  83631. <![CDATA[Get the counters for the attempt]]>
  83632. </doc>
  83633. </method>
  83634. <method name="getEventType" return="org.apache.hadoop.tools.rumen.EventType"
  83635. abstract="false" native="false" synchronized="false"
  83636. static="false" final="false" visibility="public"
  83637. deprecated="not deprecated">
  83638. <doc>
  83639. <![CDATA[Get the event type]]>
  83640. </doc>
  83641. </method>
  83642. <doc>
  83643. <![CDATA[Event to record successful completion of a reduce attempt]]>
  83644. </doc>
  83645. </class>
  83646. <!-- end class org.apache.hadoop.tools.rumen.ReduceAttemptFinishedEvent -->
  83647. <!-- start class org.apache.hadoop.tools.rumen.ReduceTaskAttemptInfo -->
  83648. <class name="ReduceTaskAttemptInfo" extends="org.apache.hadoop.tools.rumen.TaskAttemptInfo"
  83649. abstract="false"
  83650. static="false" final="false" visibility="public"
  83651. deprecated="not deprecated">
  83652. <constructor name="ReduceTaskAttemptInfo" type="org.apache.hadoop.mapred.TaskStatus.State, org.apache.hadoop.tools.rumen.TaskInfo, long, long, long"
  83653. static="false" final="false" visibility="public"
  83654. deprecated="not deprecated">
  83655. </constructor>
  83656. <method name="getReduceRuntime" return="long"
  83657. abstract="false" native="false" synchronized="false"
  83658. static="false" final="false" visibility="public"
  83659. deprecated="not deprecated">
  83660. <doc>
  83661. <![CDATA[Get the runtime for the <b>reduce</b> phase of the reduce task-attempt.
  83662. @return the runtime for the <b>reduce</b> phase of the reduce task-attempt]]>
  83663. </doc>
  83664. </method>
  83665. <method name="getShuffleRuntime" return="long"
  83666. abstract="false" native="false" synchronized="false"
  83667. static="false" final="false" visibility="public"
  83668. deprecated="not deprecated">
  83669. <doc>
  83670. <![CDATA[Get the runtime for the <b>shuffle</b> phase of the reduce task-attempt.
  83671. @return the runtime for the <b>shuffle</b> phase of the reduce task-attempt]]>
  83672. </doc>
  83673. </method>
  83674. <method name="getMergeRuntime" return="long"
  83675. abstract="false" native="false" synchronized="false"
  83676. static="false" final="false" visibility="public"
  83677. deprecated="not deprecated">
  83678. <doc>
  83679. <![CDATA[Get the runtime for the <b>merge</b> phase of the reduce task-attempt
  83680. @return the runtime for the <b>merge</b> phase of the reduce task-attempt]]>
  83681. </doc>
  83682. </method>
  83683. <method name="getRuntime" return="long"
  83684. abstract="false" native="false" synchronized="false"
  83685. static="false" final="false" visibility="public"
  83686. deprecated="not deprecated">
  83687. </method>
  83688. <doc>
  83689. <![CDATA[{@link ReduceTaskAttemptInfo} represents the information with regard to a
  83690. reduce task attempt.]]>
  83691. </doc>
  83692. </class>
  83693. <!-- end class org.apache.hadoop.tools.rumen.ReduceTaskAttemptInfo -->
  83694. <!-- start class org.apache.hadoop.tools.rumen.ResourceUsageMetrics -->
  83695. <class name="ResourceUsageMetrics" extends="java.lang.Object"
  83696. abstract="false"
  83697. static="false" final="false" visibility="public"
  83698. deprecated="not deprecated">
  83699. <implements name="org.apache.hadoop.io.Writable"/>
  83700. <implements name="org.apache.hadoop.tools.rumen.DeepCompare"/>
  83701. <constructor name="ResourceUsageMetrics"
  83702. static="false" final="false" visibility="public"
  83703. deprecated="not deprecated">
  83704. </constructor>
  83705. <method name="getCumulativeCpuUsage" return="long"
  83706. abstract="false" native="false" synchronized="false"
  83707. static="false" final="false" visibility="public"
  83708. deprecated="not deprecated">
  83709. <doc>
  83710. <![CDATA[Get the cumulative CPU usage.]]>
  83711. </doc>
  83712. </method>
  83713. <method name="setCumulativeCpuUsage"
  83714. abstract="false" native="false" synchronized="false"
  83715. static="false" final="false" visibility="public"
  83716. deprecated="not deprecated">
  83717. <param name="usage" type="long"/>
  83718. <doc>
  83719. <![CDATA[Set the cumulative CPU usage.]]>
  83720. </doc>
  83721. </method>
  83722. <method name="getVirtualMemoryUsage" return="long"
  83723. abstract="false" native="false" synchronized="false"
  83724. static="false" final="false" visibility="public"
  83725. deprecated="not deprecated">
  83726. <doc>
  83727. <![CDATA[Get the virtual memory usage.]]>
  83728. </doc>
  83729. </method>
  83730. <method name="setVirtualMemoryUsage"
  83731. abstract="false" native="false" synchronized="false"
  83732. static="false" final="false" visibility="public"
  83733. deprecated="not deprecated">
  83734. <param name="usage" type="long"/>
  83735. <doc>
  83736. <![CDATA[Set the virtual memory usage.]]>
  83737. </doc>
  83738. </method>
  83739. <method name="getPhysicalMemoryUsage" return="long"
  83740. abstract="false" native="false" synchronized="false"
  83741. static="false" final="false" visibility="public"
  83742. deprecated="not deprecated">
  83743. <doc>
  83744. <![CDATA[Get the physical memory usage.]]>
  83745. </doc>
  83746. </method>
  83747. <method name="setPhysicalMemoryUsage"
  83748. abstract="false" native="false" synchronized="false"
  83749. static="false" final="false" visibility="public"
  83750. deprecated="not deprecated">
  83751. <param name="usage" type="long"/>
  83752. <doc>
  83753. <![CDATA[Set the physical memory usage.]]>
  83754. </doc>
  83755. </method>
  83756. <method name="getHeapUsage" return="long"
  83757. abstract="false" native="false" synchronized="false"
  83758. static="false" final="false" visibility="public"
  83759. deprecated="not deprecated">
  83760. <doc>
  83761. <![CDATA[Get the total heap usage.]]>
  83762. </doc>
  83763. </method>
  83764. <method name="setHeapUsage"
  83765. abstract="false" native="false" synchronized="false"
  83766. static="false" final="false" visibility="public"
  83767. deprecated="not deprecated">
  83768. <param name="usage" type="long"/>
  83769. <doc>
  83770. <![CDATA[Set the total heap usage.]]>
  83771. </doc>
  83772. </method>
  83773. <method name="size" return="int"
  83774. abstract="false" native="false" synchronized="false"
  83775. static="false" final="false" visibility="public"
  83776. deprecated="not deprecated">
  83777. <doc>
  83778. <![CDATA[Returns the size of the serialized data]]>
  83779. </doc>
  83780. </method>
  83781. <method name="readFields"
  83782. abstract="false" native="false" synchronized="false"
  83783. static="false" final="false" visibility="public"
  83784. deprecated="not deprecated">
  83785. <param name="in" type="java.io.DataInput"/>
  83786. <exception name="IOException" type="java.io.IOException"/>
  83787. </method>
  83788. <method name="write"
  83789. abstract="false" native="false" synchronized="false"
  83790. static="false" final="false" visibility="public"
  83791. deprecated="not deprecated">
  83792. <param name="out" type="java.io.DataOutput"/>
  83793. <exception name="IOException" type="java.io.IOException"/>
  83794. </method>
  83795. <method name="deepCompare"
  83796. abstract="false" native="false" synchronized="false"
  83797. static="false" final="false" visibility="public"
  83798. deprecated="not deprecated">
  83799. <param name="other" type="org.apache.hadoop.tools.rumen.DeepCompare"/>
  83800. <param name="loc" type="org.apache.hadoop.tools.rumen.TreePath"/>
  83801. <exception name="DeepInequalityException" type="org.apache.hadoop.tools.rumen.DeepInequalityException"/>
  83802. </method>
  83803. <doc>
  83804. <![CDATA[Captures the resource usage metrics.]]>
  83805. </doc>
  83806. </class>
  83807. <!-- end class org.apache.hadoop.tools.rumen.ResourceUsageMetrics -->
  83808. <!-- start class org.apache.hadoop.tools.rumen.RewindableInputStream -->
  83809. <class name="RewindableInputStream" extends="java.io.InputStream"
  83810. abstract="false"
  83811. static="false" final="false" visibility="public"
  83812. deprecated="not deprecated">
  83813. <constructor name="RewindableInputStream" type="java.io.InputStream"
  83814. static="false" final="false" visibility="public"
  83815. deprecated="not deprecated">
  83816. <doc>
  83817. <![CDATA[Constructor.
  83818. @param input]]>
  83819. </doc>
  83820. </constructor>
  83821. <constructor name="RewindableInputStream" type="java.io.InputStream, int"
  83822. static="false" final="false" visibility="public"
  83823. deprecated="not deprecated">
  83824. <doc>
  83825. <![CDATA[Constructor
  83826. @param input
  83827. input stream.
  83828. @param maxBytesToRemember
  83829. Maximum number of bytes we need to remember at the beginning of
  83830. the stream. If {@link #rewind()} is called after so many bytes are
  83831. read from the stream, {@link #rewind()} would fail.]]>
  83832. </doc>
  83833. </constructor>
  83834. <method name="read" return="int"
  83835. abstract="false" native="false" synchronized="false"
  83836. static="false" final="false" visibility="public"
  83837. deprecated="not deprecated">
  83838. <exception name="IOException" type="java.io.IOException"/>
  83839. </method>
  83840. <method name="read" return="int"
  83841. abstract="false" native="false" synchronized="false"
  83842. static="false" final="false" visibility="public"
  83843. deprecated="not deprecated">
  83844. <param name="buffer" type="byte[]"/>
  83845. <param name="offset" type="int"/>
  83846. <param name="length" type="int"/>
  83847. <exception name="IOException" type="java.io.IOException"/>
  83848. </method>
  83849. <method name="close"
  83850. abstract="false" native="false" synchronized="false"
  83851. static="false" final="false" visibility="public"
  83852. deprecated="not deprecated">
  83853. <exception name="IOException" type="java.io.IOException"/>
  83854. </method>
  83855. <method name="rewind" return="java.io.InputStream"
  83856. abstract="false" native="false" synchronized="false"
  83857. static="false" final="false" visibility="public"
  83858. deprecated="not deprecated">
  83859. <exception name="IOException" type="java.io.IOException"/>
  83860. </method>
  83861. <doc>
  83862. <![CDATA[A simple wrapper class to make any input stream "rewindable". It could be
  83863. made more memory efficient by grow the internal buffer adaptively.]]>
  83864. </doc>
  83865. </class>
  83866. <!-- end class org.apache.hadoop.tools.rumen.RewindableInputStream -->
  83867. <!-- start class org.apache.hadoop.tools.rumen.Task20LineHistoryEventEmitter -->
  83868. <class name="Task20LineHistoryEventEmitter" extends="org.apache.hadoop.tools.rumen.HistoryEventEmitter"
  83869. abstract="false"
  83870. static="false" final="false" visibility="public"
  83871. deprecated="not deprecated">
  83872. <constructor name="Task20LineHistoryEventEmitter"
  83873. static="false" final="false" visibility="protected"
  83874. deprecated="not deprecated">
  83875. </constructor>
  83876. </class>
  83877. <!-- end class org.apache.hadoop.tools.rumen.Task20LineHistoryEventEmitter -->
  83878. <!-- start class org.apache.hadoop.tools.rumen.TaskAttempt20LineEventEmitter -->
  83879. <class name="TaskAttempt20LineEventEmitter" extends="org.apache.hadoop.tools.rumen.HistoryEventEmitter"
  83880. abstract="true"
  83881. static="false" final="false" visibility="public"
  83882. deprecated="not deprecated">
  83883. <constructor name="TaskAttempt20LineEventEmitter"
  83884. static="false" final="false" visibility="protected"
  83885. deprecated="not deprecated">
  83886. </constructor>
  83887. </class>
  83888. <!-- end class org.apache.hadoop.tools.rumen.TaskAttempt20LineEventEmitter -->
  83889. <!-- start class org.apache.hadoop.tools.rumen.TaskAttemptFinishedEvent -->
  83890. <class name="TaskAttemptFinishedEvent" extends="java.lang.Object"
  83891. abstract="false"
  83892. static="false" final="false" visibility="public"
  83893. deprecated="not deprecated">
  83894. <implements name="org.apache.hadoop.tools.rumen.HistoryEvent"/>
  83895. <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"
  83896. static="false" final="false" visibility="public"
  83897. deprecated="not deprecated">
  83898. <doc>
  83899. <![CDATA[Create an event to record successful finishes for setup and cleanup
  83900. attempts
  83901. @param id Attempt ID
  83902. @param taskType Type of task
  83903. @param taskStatus Status of task
  83904. @param finishTime Finish time of attempt
  83905. @param hostname Host where the attempt executed
  83906. @param state State string
  83907. @param counters Counters for the attempt]]>
  83908. </doc>
  83909. </constructor>
  83910. <method name="getTaskId" return="org.apache.hadoop.mapreduce.TaskID"
  83911. abstract="false" native="false" synchronized="false"
  83912. static="false" final="false" visibility="public"
  83913. deprecated="not deprecated">
  83914. <doc>
  83915. <![CDATA[Get the task ID]]>
  83916. </doc>
  83917. </method>
  83918. <method name="getAttemptId" return="org.apache.hadoop.mapreduce.TaskAttemptID"
  83919. abstract="false" native="false" synchronized="false"
  83920. static="false" final="false" visibility="public"
  83921. deprecated="not deprecated">
  83922. <doc>
  83923. <![CDATA[Get the task attempt id]]>
  83924. </doc>
  83925. </method>
  83926. <method name="getTaskType" return="org.apache.hadoop.mapreduce.TaskType"
  83927. abstract="false" native="false" synchronized="false"
  83928. static="false" final="false" visibility="public"
  83929. deprecated="not deprecated">
  83930. <doc>
  83931. <![CDATA[Get the task type]]>
  83932. </doc>
  83933. </method>
  83934. <method name="getTaskStatus" return="java.lang.String"
  83935. abstract="false" native="false" synchronized="false"
  83936. static="false" final="false" visibility="public"
  83937. deprecated="not deprecated">
  83938. <doc>
  83939. <![CDATA[Get the task status]]>
  83940. </doc>
  83941. </method>
  83942. <method name="getFinishTime" return="long"
  83943. abstract="false" native="false" synchronized="false"
  83944. static="false" final="false" visibility="public"
  83945. deprecated="not deprecated">
  83946. <doc>
  83947. <![CDATA[Get the attempt finish time]]>
  83948. </doc>
  83949. </method>
  83950. <method name="getHostname" return="java.lang.String"
  83951. abstract="false" native="false" synchronized="false"
  83952. static="false" final="false" visibility="public"
  83953. deprecated="not deprecated">
  83954. <doc>
  83955. <![CDATA[Get the host where the attempt executed]]>
  83956. </doc>
  83957. </method>
  83958. <method name="getState" return="java.lang.String"
  83959. abstract="false" native="false" synchronized="false"
  83960. static="false" final="false" visibility="public"
  83961. deprecated="not deprecated">
  83962. <doc>
  83963. <![CDATA[Get the state string]]>
  83964. </doc>
  83965. </method>
  83966. <method name="getCounters" return="org.apache.hadoop.tools.rumen.JhCounters"
  83967. abstract="false" native="false" synchronized="false"
  83968. static="false" final="false" visibility="public"
  83969. deprecated="not deprecated">
  83970. <doc>
  83971. <![CDATA[Get the counters for the attempt]]>
  83972. </doc>
  83973. </method>
  83974. <method name="getEventType" return="org.apache.hadoop.tools.rumen.EventType"
  83975. abstract="false" native="false" synchronized="false"
  83976. static="false" final="false" visibility="public"
  83977. deprecated="not deprecated">
  83978. <doc>
  83979. <![CDATA[Get the event type]]>
  83980. </doc>
  83981. </method>
  83982. <doc>
  83983. <![CDATA[Event to record successful task completion]]>
  83984. </doc>
  83985. </class>
  83986. <!-- end class org.apache.hadoop.tools.rumen.TaskAttemptFinishedEvent -->
  83987. <!-- start class org.apache.hadoop.tools.rumen.TaskAttemptInfo -->
  83988. <class name="TaskAttemptInfo" extends="java.lang.Object"
  83989. abstract="true"
  83990. static="false" final="false" visibility="public"
  83991. deprecated="not deprecated">
  83992. <constructor name="TaskAttemptInfo" type="org.apache.hadoop.mapred.TaskStatus.State, org.apache.hadoop.tools.rumen.TaskInfo"
  83993. static="false" final="false" visibility="protected"
  83994. deprecated="not deprecated">
  83995. </constructor>
  83996. <method name="getRunState" return="org.apache.hadoop.mapred.TaskStatus.State"
  83997. abstract="false" native="false" synchronized="false"
  83998. static="false" final="false" visibility="public"
  83999. deprecated="not deprecated">
  84000. <doc>
  84001. <![CDATA[Get the final {@link State} of the task-attempt.
  84002. @return the final <code>State</code> of the task-attempt]]>
  84003. </doc>
  84004. </method>
  84005. <method name="getRuntime" return="long"
  84006. abstract="true" native="false" synchronized="false"
  84007. static="false" final="false" visibility="public"
  84008. deprecated="not deprecated">
  84009. <doc>
  84010. <![CDATA[Get the total runtime for the task-attempt.
  84011. @return the total runtime for the task-attempt]]>
  84012. </doc>
  84013. </method>
  84014. <method name="getTaskInfo" return="org.apache.hadoop.tools.rumen.TaskInfo"
  84015. abstract="false" native="false" synchronized="false"
  84016. static="false" final="false" visibility="public"
  84017. deprecated="not deprecated">
  84018. <doc>
  84019. <![CDATA[Get the {@link TaskInfo} for the given task-attempt.
  84020. @return the <code>TaskInfo</code> for the given task-attempt]]>
  84021. </doc>
  84022. </method>
  84023. <field name="state" type="org.apache.hadoop.mapred.TaskStatus.State"
  84024. transient="false" volatile="false"
  84025. static="false" final="true" visibility="protected"
  84026. deprecated="not deprecated">
  84027. </field>
  84028. <field name="taskInfo" type="org.apache.hadoop.tools.rumen.TaskInfo"
  84029. transient="false" volatile="false"
  84030. static="false" final="true" visibility="protected"
  84031. deprecated="not deprecated">
  84032. </field>
  84033. <doc>
  84034. <![CDATA[{@link TaskAttemptInfo} is a collection of statistics about a particular
  84035. task-attempt gleaned from job-history of the job.]]>
  84036. </doc>
  84037. </class>
  84038. <!-- end class org.apache.hadoop.tools.rumen.TaskAttemptInfo -->
  84039. <!-- start class org.apache.hadoop.tools.rumen.TaskAttemptStartedEvent -->
  84040. <class name="TaskAttemptStartedEvent" extends="java.lang.Object"
  84041. abstract="false"
  84042. static="false" final="false" visibility="public"
  84043. deprecated="not deprecated">
  84044. <implements name="org.apache.hadoop.tools.rumen.HistoryEvent"/>
  84045. <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"
  84046. static="false" final="false" visibility="public"
  84047. deprecated="not deprecated">
  84048. <doc>
  84049. <![CDATA[Create an event to record the start of an attempt
  84050. @param attemptId Id of the attempt
  84051. @param taskType Type of task
  84052. @param startTime Start time of the attempt
  84053. @param trackerName Name of the Task Tracker where attempt is running
  84054. @param httpPort The port number of the tracker
  84055. @param locality the locality of the task attempt
  84056. @param avataar the avataar of the task attempt]]>
  84057. </doc>
  84058. </constructor>
  84059. <method name="getTaskId" return="org.apache.hadoop.mapreduce.TaskID"
  84060. abstract="false" native="false" synchronized="false"
  84061. static="false" final="false" visibility="public"
  84062. deprecated="not deprecated">
  84063. <doc>
  84064. <![CDATA[Get the task id]]>
  84065. </doc>
  84066. </method>
  84067. <method name="getTrackerName" return="java.lang.String"
  84068. abstract="false" native="false" synchronized="false"
  84069. static="false" final="false" visibility="public"
  84070. deprecated="not deprecated">
  84071. <doc>
  84072. <![CDATA[Get the tracker name]]>
  84073. </doc>
  84074. </method>
  84075. <method name="getStartTime" return="long"
  84076. abstract="false" native="false" synchronized="false"
  84077. static="false" final="false" visibility="public"
  84078. deprecated="not deprecated">
  84079. <doc>
  84080. <![CDATA[Get the start time]]>
  84081. </doc>
  84082. </method>
  84083. <method name="getTaskType" return="org.apache.hadoop.mapreduce.TaskType"
  84084. abstract="false" native="false" synchronized="false"
  84085. static="false" final="false" visibility="public"
  84086. deprecated="not deprecated">
  84087. <doc>
  84088. <![CDATA[Get the task type]]>
  84089. </doc>
  84090. </method>
  84091. <method name="getHttpPort" return="int"
  84092. abstract="false" native="false" synchronized="false"
  84093. static="false" final="false" visibility="public"
  84094. deprecated="not deprecated">
  84095. <doc>
  84096. <![CDATA[Get the HTTP port]]>
  84097. </doc>
  84098. </method>
  84099. <method name="getTaskAttemptId" return="org.apache.hadoop.mapreduce.TaskAttemptID"
  84100. abstract="false" native="false" synchronized="false"
  84101. static="false" final="false" visibility="public"
  84102. deprecated="not deprecated">
  84103. <doc>
  84104. <![CDATA[Get the attempt id]]>
  84105. </doc>
  84106. </method>
  84107. <method name="getLocality" return="java.lang.String"
  84108. abstract="false" native="false" synchronized="false"
  84109. static="false" final="false" visibility="public"
  84110. deprecated="not deprecated">
  84111. <doc>
  84112. <![CDATA[Get the locality of the task attempt]]>
  84113. </doc>
  84114. </method>
  84115. <method name="getAvataar" return="java.lang.String"
  84116. abstract="false" native="false" synchronized="false"
  84117. static="false" final="false" visibility="public"
  84118. deprecated="not deprecated">
  84119. <doc>
  84120. <![CDATA[Get the avataar of the task attempt]]>
  84121. </doc>
  84122. </method>
  84123. <method name="getEventType" return="org.apache.hadoop.tools.rumen.EventType"
  84124. abstract="false" native="false" synchronized="false"
  84125. static="false" final="false" visibility="public"
  84126. deprecated="not deprecated">
  84127. <doc>
  84128. <![CDATA[Get the event type]]>
  84129. </doc>
  84130. </method>
  84131. <doc>
  84132. <![CDATA[Event to record start of a task attempt]]>
  84133. </doc>
  84134. </class>
  84135. <!-- end class org.apache.hadoop.tools.rumen.TaskAttemptStartedEvent -->
  84136. <!-- start class org.apache.hadoop.tools.rumen.TaskAttemptUnsuccessfulCompletionEvent -->
  84137. <class name="TaskAttemptUnsuccessfulCompletionEvent" extends="java.lang.Object"
  84138. abstract="false"
  84139. static="false" final="false" visibility="public"
  84140. deprecated="not deprecated">
  84141. <implements name="org.apache.hadoop.tools.rumen.HistoryEvent"/>
  84142. <constructor name="TaskAttemptUnsuccessfulCompletionEvent" type="org.apache.hadoop.mapreduce.TaskAttemptID, org.apache.hadoop.mapreduce.TaskType, java.lang.String, long, java.lang.String, java.lang.String"
  84143. static="false" final="false" visibility="public"
  84144. deprecated="not deprecated">
  84145. <doc>
  84146. <![CDATA[Create an event to record the unsuccessful completion of attempts
  84147. @param id Attempt ID
  84148. @param taskType Type of the task
  84149. @param status Status of the attempt
  84150. @param finishTime Finish time of the attempt
  84151. @param hostname Name of the host where the attempt executed
  84152. @param error Error string]]>
  84153. </doc>
  84154. </constructor>
  84155. <method name="getTaskId" return="org.apache.hadoop.mapreduce.TaskID"
  84156. abstract="false" native="false" synchronized="false"
  84157. static="false" final="false" visibility="public"
  84158. deprecated="not deprecated">
  84159. <doc>
  84160. <![CDATA[Get the task id]]>
  84161. </doc>
  84162. </method>
  84163. <method name="getTaskType" return="org.apache.hadoop.mapreduce.TaskType"
  84164. abstract="false" native="false" synchronized="false"
  84165. static="false" final="false" visibility="public"
  84166. deprecated="not deprecated">
  84167. <doc>
  84168. <![CDATA[Get the task type]]>
  84169. </doc>
  84170. </method>
  84171. <method name="getTaskAttemptId" return="org.apache.hadoop.mapreduce.TaskAttemptID"
  84172. abstract="false" native="false" synchronized="false"
  84173. static="false" final="false" visibility="public"
  84174. deprecated="not deprecated">
  84175. <doc>
  84176. <![CDATA[Get the attempt id]]>
  84177. </doc>
  84178. </method>
  84179. <method name="getFinishTime" return="long"
  84180. abstract="false" native="false" synchronized="false"
  84181. static="false" final="false" visibility="public"
  84182. deprecated="not deprecated">
  84183. <doc>
  84184. <![CDATA[Get the finish time]]>
  84185. </doc>
  84186. </method>
  84187. <method name="getHostname" return="java.lang.String"
  84188. abstract="false" native="false" synchronized="false"
  84189. static="false" final="false" visibility="public"
  84190. deprecated="not deprecated">
  84191. <doc>
  84192. <![CDATA[Get the name of the host where the attempt executed]]>
  84193. </doc>
  84194. </method>
  84195. <method name="getError" return="java.lang.String"
  84196. abstract="false" native="false" synchronized="false"
  84197. static="false" final="false" visibility="public"
  84198. deprecated="not deprecated">
  84199. <doc>
  84200. <![CDATA[Get the error string]]>
  84201. </doc>
  84202. </method>
  84203. <method name="getTaskStatus" return="java.lang.String"
  84204. abstract="false" native="false" synchronized="false"
  84205. static="false" final="false" visibility="public"
  84206. deprecated="not deprecated">
  84207. <doc>
  84208. <![CDATA[Get the task status]]>
  84209. </doc>
  84210. </method>
  84211. <method name="getEventType" return="org.apache.hadoop.tools.rumen.EventType"
  84212. abstract="false" native="false" synchronized="false"
  84213. static="false" final="false" visibility="public"
  84214. deprecated="not deprecated">
  84215. <doc>
  84216. <![CDATA[Get the event type]]>
  84217. </doc>
  84218. </method>
  84219. <doc>
  84220. <![CDATA[Event to record unsuccessful (Killed/Failed) completion of task attempts]]>
  84221. </doc>
  84222. </class>
  84223. <!-- end class org.apache.hadoop.tools.rumen.TaskAttemptUnsuccessfulCompletionEvent -->
  84224. <!-- start class org.apache.hadoop.tools.rumen.TaskFailedEvent -->
  84225. <class name="TaskFailedEvent" extends="java.lang.Object"
  84226. abstract="false"
  84227. static="false" final="false" visibility="public"
  84228. deprecated="not deprecated">
  84229. <implements name="org.apache.hadoop.tools.rumen.HistoryEvent"/>
  84230. <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"
  84231. static="false" final="false" visibility="public"
  84232. deprecated="not deprecated">
  84233. <doc>
  84234. <![CDATA[Create an event to record task failure
  84235. @param id Task ID
  84236. @param finishTime Finish time of the task
  84237. @param taskType Type of the task
  84238. @param error Error String
  84239. @param status Status
  84240. @param failedDueToAttempt The attempt id due to which the task failed]]>
  84241. </doc>
  84242. </constructor>
  84243. <method name="getTaskId" return="org.apache.hadoop.mapreduce.TaskID"
  84244. abstract="false" native="false" synchronized="false"
  84245. static="false" final="false" visibility="public"
  84246. deprecated="not deprecated">
  84247. <doc>
  84248. <![CDATA[Get the task id]]>
  84249. </doc>
  84250. </method>
  84251. <method name="getError" return="java.lang.String"
  84252. abstract="false" native="false" synchronized="false"
  84253. static="false" final="false" visibility="public"
  84254. deprecated="not deprecated">
  84255. <doc>
  84256. <![CDATA[Get the error string]]>
  84257. </doc>
  84258. </method>
  84259. <method name="getFinishTime" return="long"
  84260. abstract="false" native="false" synchronized="false"
  84261. static="false" final="false" visibility="public"
  84262. deprecated="not deprecated">
  84263. <doc>
  84264. <![CDATA[Get the finish time of the attempt]]>
  84265. </doc>
  84266. </method>
  84267. <method name="getTaskType" return="org.apache.hadoop.mapreduce.TaskType"
  84268. abstract="false" native="false" synchronized="false"
  84269. static="false" final="false" visibility="public"
  84270. deprecated="not deprecated">
  84271. <doc>
  84272. <![CDATA[Get the task type]]>
  84273. </doc>
  84274. </method>
  84275. <method name="getFailedAttemptID" return="org.apache.hadoop.mapreduce.TaskAttemptID"
  84276. abstract="false" native="false" synchronized="false"
  84277. static="false" final="false" visibility="public"
  84278. deprecated="not deprecated">
  84279. <doc>
  84280. <![CDATA[Get the attempt id due to which the task failed]]>
  84281. </doc>
  84282. </method>
  84283. <method name="getTaskStatus" return="java.lang.String"
  84284. abstract="false" native="false" synchronized="false"
  84285. static="false" final="false" visibility="public"
  84286. deprecated="not deprecated">
  84287. <doc>
  84288. <![CDATA[Get the task status]]>
  84289. </doc>
  84290. </method>
  84291. <method name="getEventType" return="org.apache.hadoop.tools.rumen.EventType"
  84292. abstract="false" native="false" synchronized="false"
  84293. static="false" final="false" visibility="public"
  84294. deprecated="not deprecated">
  84295. <doc>
  84296. <![CDATA[Get the event type]]>
  84297. </doc>
  84298. </method>
  84299. <doc>
  84300. <![CDATA[Event to record the failure of a task]]>
  84301. </doc>
  84302. </class>
  84303. <!-- end class org.apache.hadoop.tools.rumen.TaskFailedEvent -->
  84304. <!-- start class org.apache.hadoop.tools.rumen.TaskFinishedEvent -->
  84305. <class name="TaskFinishedEvent" extends="java.lang.Object"
  84306. abstract="false"
  84307. static="false" final="false" visibility="public"
  84308. deprecated="not deprecated">
  84309. <implements name="org.apache.hadoop.tools.rumen.HistoryEvent"/>
  84310. <constructor name="TaskFinishedEvent" type="org.apache.hadoop.mapreduce.TaskID, long, org.apache.hadoop.mapreduce.TaskType, java.lang.String, org.apache.hadoop.mapreduce.Counters"
  84311. static="false" final="false" visibility="public"
  84312. deprecated="not deprecated">
  84313. <doc>
  84314. <![CDATA[Create an event to record the successful completion of a task
  84315. @param id Task ID
  84316. @param finishTime Finish time of the task
  84317. @param taskType Type of the task
  84318. @param status Status string
  84319. @param counters Counters for the task]]>
  84320. </doc>
  84321. </constructor>
  84322. <method name="getTaskId" return="org.apache.hadoop.mapreduce.TaskID"
  84323. abstract="false" native="false" synchronized="false"
  84324. static="false" final="false" visibility="public"
  84325. deprecated="not deprecated">
  84326. <doc>
  84327. <![CDATA[Get task id]]>
  84328. </doc>
  84329. </method>
  84330. <method name="getFinishTime" return="long"
  84331. abstract="false" native="false" synchronized="false"
  84332. static="false" final="false" visibility="public"
  84333. deprecated="not deprecated">
  84334. <doc>
  84335. <![CDATA[Get the task finish time]]>
  84336. </doc>
  84337. </method>
  84338. <method name="getCounters" return="org.apache.hadoop.tools.rumen.JhCounters"
  84339. abstract="false" native="false" synchronized="false"
  84340. static="false" final="false" visibility="public"
  84341. deprecated="not deprecated">
  84342. <doc>
  84343. <![CDATA[Get task counters]]>
  84344. </doc>
  84345. </method>
  84346. <method name="getTaskType" return="org.apache.hadoop.mapreduce.TaskType"
  84347. abstract="false" native="false" synchronized="false"
  84348. static="false" final="false" visibility="public"
  84349. deprecated="not deprecated">
  84350. <doc>
  84351. <![CDATA[Get task type]]>
  84352. </doc>
  84353. </method>
  84354. <method name="getTaskStatus" return="java.lang.String"
  84355. abstract="false" native="false" synchronized="false"
  84356. static="false" final="false" visibility="public"
  84357. deprecated="not deprecated">
  84358. <doc>
  84359. <![CDATA[Get task status]]>
  84360. </doc>
  84361. </method>
  84362. <method name="getEventType" return="org.apache.hadoop.tools.rumen.EventType"
  84363. abstract="false" native="false" synchronized="false"
  84364. static="false" final="false" visibility="public"
  84365. deprecated="not deprecated">
  84366. <doc>
  84367. <![CDATA[Get event type]]>
  84368. </doc>
  84369. </method>
  84370. <doc>
  84371. <![CDATA[Event to record the successful completion of a task]]>
  84372. </doc>
  84373. </class>
  84374. <!-- end class org.apache.hadoop.tools.rumen.TaskFinishedEvent -->
  84375. <!-- start class org.apache.hadoop.tools.rumen.TaskInfo -->
  84376. <class name="TaskInfo" extends="java.lang.Object"
  84377. abstract="false"
  84378. static="false" final="false" visibility="public"
  84379. deprecated="not deprecated">
  84380. <constructor name="TaskInfo" type="long, int, long, int, long"
  84381. static="false" final="false" visibility="public"
  84382. deprecated="not deprecated">
  84383. </constructor>
  84384. <constructor name="TaskInfo" type="long, int, long, int, long, org.apache.hadoop.tools.rumen.ResourceUsageMetrics"
  84385. static="false" final="false" visibility="public"
  84386. deprecated="not deprecated">
  84387. </constructor>
  84388. <method name="getInputBytes" return="long"
  84389. abstract="false" native="false" synchronized="false"
  84390. static="false" final="false" visibility="public"
  84391. deprecated="not deprecated">
  84392. <doc>
  84393. <![CDATA[@return Raw bytes read from the FileSystem into the task. Note that this
  84394. may not always match the input bytes to the task.]]>
  84395. </doc>
  84396. </method>
  84397. <method name="getInputRecords" return="int"
  84398. abstract="false" native="false" synchronized="false"
  84399. static="false" final="false" visibility="public"
  84400. deprecated="not deprecated">
  84401. <doc>
  84402. <![CDATA[@return Number of records input to this task.]]>
  84403. </doc>
  84404. </method>
  84405. <method name="getOutputBytes" return="long"
  84406. abstract="false" native="false" synchronized="false"
  84407. static="false" final="false" visibility="public"
  84408. deprecated="not deprecated">
  84409. <doc>
  84410. <![CDATA[@return Raw bytes written to the destination FileSystem. Note that this may
  84411. not match output bytes.]]>
  84412. </doc>
  84413. </method>
  84414. <method name="getOutputRecords" return="int"
  84415. abstract="false" native="false" synchronized="false"
  84416. static="false" final="false" visibility="public"
  84417. deprecated="not deprecated">
  84418. <doc>
  84419. <![CDATA[@return Number of records output from this task.]]>
  84420. </doc>
  84421. </method>
  84422. <method name="getTaskMemory" return="long"
  84423. abstract="false" native="false" synchronized="false"
  84424. static="false" final="false" visibility="public"
  84425. deprecated="not deprecated">
  84426. <doc>
  84427. <![CDATA[@return Memory used by the task leq the heap size.]]>
  84428. </doc>
  84429. </method>
  84430. <method name="getResourceUsageMetrics" return="org.apache.hadoop.tools.rumen.ResourceUsageMetrics"
  84431. abstract="false" native="false" synchronized="false"
  84432. static="false" final="false" visibility="public"
  84433. deprecated="not deprecated">
  84434. <doc>
  84435. <![CDATA[@return Resource usage metrics]]>
  84436. </doc>
  84437. </method>
  84438. </class>
  84439. <!-- end class org.apache.hadoop.tools.rumen.TaskInfo -->
  84440. <!-- start class org.apache.hadoop.tools.rumen.TaskStartedEvent -->
  84441. <class name="TaskStartedEvent" extends="java.lang.Object"
  84442. abstract="false"
  84443. static="false" final="false" visibility="public"
  84444. deprecated="not deprecated">
  84445. <implements name="org.apache.hadoop.tools.rumen.HistoryEvent"/>
  84446. <constructor name="TaskStartedEvent" type="org.apache.hadoop.mapreduce.TaskID, long, org.apache.hadoop.mapreduce.TaskType, java.lang.String"
  84447. static="false" final="false" visibility="public"
  84448. deprecated="not deprecated">
  84449. <doc>
  84450. <![CDATA[Create an event to record start of a task
  84451. @param id Task Id
  84452. @param startTime Start time of the task
  84453. @param taskType Type of the task
  84454. @param splitLocations Split locations, applicable for map tasks]]>
  84455. </doc>
  84456. </constructor>
  84457. <method name="getTaskId" return="org.apache.hadoop.mapreduce.TaskID"
  84458. abstract="false" native="false" synchronized="false"
  84459. static="false" final="false" visibility="public"
  84460. deprecated="not deprecated">
  84461. <doc>
  84462. <![CDATA[Get the task id]]>
  84463. </doc>
  84464. </method>
  84465. <method name="getSplitLocations" return="java.lang.String"
  84466. abstract="false" native="false" synchronized="false"
  84467. static="false" final="false" visibility="public"
  84468. deprecated="not deprecated">
  84469. <doc>
  84470. <![CDATA[Get the split locations, applicable for map tasks]]>
  84471. </doc>
  84472. </method>
  84473. <method name="getStartTime" return="long"
  84474. abstract="false" native="false" synchronized="false"
  84475. static="false" final="false" visibility="public"
  84476. deprecated="not deprecated">
  84477. <doc>
  84478. <![CDATA[Get the start time of the task]]>
  84479. </doc>
  84480. </method>
  84481. <method name="getTaskType" return="org.apache.hadoop.mapreduce.TaskType"
  84482. abstract="false" native="false" synchronized="false"
  84483. static="false" final="false" visibility="public"
  84484. deprecated="not deprecated">
  84485. <doc>
  84486. <![CDATA[Get the task type]]>
  84487. </doc>
  84488. </method>
  84489. <method name="getEventType" return="org.apache.hadoop.tools.rumen.EventType"
  84490. abstract="false" native="false" synchronized="false"
  84491. static="false" final="false" visibility="public"
  84492. deprecated="not deprecated">
  84493. <doc>
  84494. <![CDATA[Get the event type]]>
  84495. </doc>
  84496. </method>
  84497. <doc>
  84498. <![CDATA[Event to record the start of a task]]>
  84499. </doc>
  84500. </class>
  84501. <!-- end class org.apache.hadoop.tools.rumen.TaskStartedEvent -->
  84502. <!-- start class org.apache.hadoop.tools.rumen.TaskUpdatedEvent -->
  84503. <class name="TaskUpdatedEvent" extends="java.lang.Object"
  84504. abstract="false"
  84505. static="false" final="false" visibility="public"
  84506. deprecated="not deprecated">
  84507. <implements name="org.apache.hadoop.tools.rumen.HistoryEvent"/>
  84508. <constructor name="TaskUpdatedEvent" type="org.apache.hadoop.mapreduce.TaskID, long"
  84509. static="false" final="false" visibility="public"
  84510. deprecated="not deprecated">
  84511. <doc>
  84512. <![CDATA[Create an event to record task updates
  84513. @param id Id of the task
  84514. @param finishTime Finish time of the task]]>
  84515. </doc>
  84516. </constructor>
  84517. <method name="getTaskId" return="org.apache.hadoop.mapreduce.TaskID"
  84518. abstract="false" native="false" synchronized="false"
  84519. static="false" final="false" visibility="public"
  84520. deprecated="not deprecated">
  84521. <doc>
  84522. <![CDATA[Get the task ID]]>
  84523. </doc>
  84524. </method>
  84525. <method name="getFinishTime" return="long"
  84526. abstract="false" native="false" synchronized="false"
  84527. static="false" final="false" visibility="public"
  84528. deprecated="not deprecated">
  84529. <doc>
  84530. <![CDATA[Get the task finish time]]>
  84531. </doc>
  84532. </method>
  84533. <method name="getEventType" return="org.apache.hadoop.tools.rumen.EventType"
  84534. abstract="false" native="false" synchronized="false"
  84535. static="false" final="false" visibility="public"
  84536. deprecated="not deprecated">
  84537. <doc>
  84538. <![CDATA[Get the event type]]>
  84539. </doc>
  84540. </method>
  84541. <doc>
  84542. <![CDATA[Event to record updates to a task]]>
  84543. </doc>
  84544. </class>
  84545. <!-- end class org.apache.hadoop.tools.rumen.TaskUpdatedEvent -->
  84546. <!-- start class org.apache.hadoop.tools.rumen.TopologyBuilder -->
  84547. <class name="TopologyBuilder" extends="java.lang.Object"
  84548. abstract="false"
  84549. static="false" final="false" visibility="public"
  84550. deprecated="not deprecated">
  84551. <constructor name="TopologyBuilder"
  84552. static="false" final="false" visibility="public"
  84553. deprecated="not deprecated">
  84554. </constructor>
  84555. <method name="process"
  84556. abstract="false" native="false" synchronized="false"
  84557. static="false" final="false" visibility="public"
  84558. deprecated="not deprecated">
  84559. <param name="event" type="org.apache.hadoop.tools.rumen.HistoryEvent"/>
  84560. <doc>
  84561. <![CDATA[Process one {@link HistoryEvent}
  84562. @param event
  84563. The {@link HistoryEvent} to be processed.]]>
  84564. </doc>
  84565. </method>
  84566. <method name="process"
  84567. abstract="false" native="false" synchronized="false"
  84568. static="false" final="false" visibility="public"
  84569. deprecated="not deprecated">
  84570. <param name="conf" type="java.util.Properties"/>
  84571. <doc>
  84572. <![CDATA[Process a collection of JobConf {@link Properties}. We do not restrict it
  84573. to be called once.
  84574. @param conf
  84575. The job conf properties to be added.]]>
  84576. </doc>
  84577. </method>
  84578. <method name="build" return="org.apache.hadoop.tools.rumen.LoggedNetworkTopology"
  84579. abstract="false" native="false" synchronized="false"
  84580. static="false" final="false" visibility="public"
  84581. deprecated="not deprecated">
  84582. <doc>
  84583. <![CDATA[Request the builder to build the final object. Once called, the
  84584. {@link TopologyBuilder} would accept no more events or job-conf properties.
  84585. @return Parsed {@link LoggedNetworkTopology} object.]]>
  84586. </doc>
  84587. </method>
  84588. <doc>
  84589. <![CDATA[Building the cluster topology.]]>
  84590. </doc>
  84591. </class>
  84592. <!-- end class org.apache.hadoop.tools.rumen.TopologyBuilder -->
  84593. <!-- start class org.apache.hadoop.tools.rumen.TraceBuilder -->
  84594. <class name="TraceBuilder" extends="org.apache.hadoop.conf.Configured"
  84595. abstract="false"
  84596. static="false" final="false" visibility="public"
  84597. deprecated="not deprecated">
  84598. <implements name="org.apache.hadoop.util.Tool"/>
  84599. <constructor name="TraceBuilder"
  84600. static="false" final="false" visibility="public"
  84601. deprecated="not deprecated">
  84602. </constructor>
  84603. <method name="main"
  84604. abstract="false" native="false" synchronized="false"
  84605. static="true" final="false" visibility="public"
  84606. deprecated="not deprecated">
  84607. <param name="args" type="java.lang.String[]"/>
  84608. </method>
  84609. <method name="run" return="int"
  84610. abstract="false" native="false" synchronized="false"
  84611. static="false" final="false" visibility="public"
  84612. deprecated="not deprecated">
  84613. <param name="args" type="java.lang.String[]"/>
  84614. <exception name="Exception" type="java.lang.Exception"/>
  84615. </method>
  84616. <doc>
  84617. <![CDATA[The main driver of the Rumen Parser.]]>
  84618. </doc>
  84619. </class>
  84620. <!-- end class org.apache.hadoop.tools.rumen.TraceBuilder -->
  84621. <!-- start class org.apache.hadoop.tools.rumen.TreePath -->
  84622. <class name="TreePath" extends="java.lang.Object"
  84623. abstract="false"
  84624. static="false" final="false" visibility="public"
  84625. deprecated="not deprecated">
  84626. <constructor name="TreePath" type="org.apache.hadoop.tools.rumen.TreePath, java.lang.String"
  84627. static="false" final="false" visibility="public"
  84628. deprecated="not deprecated">
  84629. </constructor>
  84630. <constructor name="TreePath" type="org.apache.hadoop.tools.rumen.TreePath, java.lang.String, int"
  84631. static="false" final="false" visibility="public"
  84632. deprecated="not deprecated">
  84633. </constructor>
  84634. <method name="toString" return="java.lang.String"
  84635. abstract="false" native="false" synchronized="false"
  84636. static="false" final="false" visibility="public"
  84637. deprecated="not deprecated">
  84638. </method>
  84639. <doc>
  84640. <![CDATA[This describes a path from a node to the root. We use it when we compare two
  84641. trees during rumen unit tests. If the trees are not identical, this chain
  84642. will be converted to a string which describes the path from the root to the
  84643. fields that did not compare.]]>
  84644. </doc>
  84645. </class>
  84646. <!-- end class org.apache.hadoop.tools.rumen.TreePath -->
  84647. <!-- start class org.apache.hadoop.tools.rumen.ZombieCluster -->
  84648. <class name="ZombieCluster" extends="org.apache.hadoop.tools.rumen.AbstractClusterStory"
  84649. abstract="false"
  84650. static="false" final="false" visibility="public"
  84651. deprecated="not deprecated">
  84652. <constructor name="ZombieCluster" type="org.apache.hadoop.tools.rumen.LoggedNetworkTopology, org.apache.hadoop.tools.rumen.MachineNode"
  84653. static="false" final="false" visibility="public"
  84654. deprecated="not deprecated">
  84655. <doc>
  84656. <![CDATA[Construct a homogeneous cluster. We assume that the leaves on the topology
  84657. are {@link MachineNode}s, and the parents of {@link MachineNode}s are
  84658. {@link RackNode}s. We also expect all leaf nodes are on the same level.
  84659. @param topology
  84660. The network topology.
  84661. @param defaultNode
  84662. The default node setting.]]>
  84663. </doc>
  84664. </constructor>
  84665. <constructor name="ZombieCluster" type="org.apache.hadoop.fs.Path, org.apache.hadoop.tools.rumen.MachineNode, org.apache.hadoop.conf.Configuration"
  84666. static="false" final="false" visibility="public"
  84667. deprecated="not deprecated">
  84668. <exception name="IOException" type="java.io.IOException"/>
  84669. <doc>
  84670. <![CDATA[Construct a homogeneous cluster. We assume that the leaves on the topology
  84671. are {@link MachineNode}s, and the parents of {@link MachineNode}s are
  84672. {@link RackNode}s. We also expect all leaf nodes are on the same level.
  84673. @param path Path to the JSON-encoded topology file.
  84674. @param conf
  84675. @param defaultNode
  84676. The default node setting.
  84677. @throws IOException]]>
  84678. </doc>
  84679. </constructor>
  84680. <constructor name="ZombieCluster" type="java.io.InputStream, org.apache.hadoop.tools.rumen.MachineNode"
  84681. static="false" final="false" visibility="public"
  84682. deprecated="not deprecated">
  84683. <exception name="IOException" type="java.io.IOException"/>
  84684. <doc>
  84685. <![CDATA[Construct a homogeneous cluster. We assume that the leaves on the topology
  84686. are {@link MachineNode}s, and the parents of {@link MachineNode}s are
  84687. {@link RackNode}s. We also expect all leaf nodes are on the same level.
  84688. @param input The input stream for the JSON-encoded topology file.
  84689. @param defaultNode
  84690. The default node setting.
  84691. @throws IOException]]>
  84692. </doc>
  84693. </constructor>
  84694. <method name="getClusterTopology" return="org.apache.hadoop.tools.rumen.Node"
  84695. abstract="false" native="false" synchronized="false"
  84696. static="false" final="false" visibility="public"
  84697. deprecated="not deprecated">
  84698. </method>
  84699. <doc>
  84700. <![CDATA[{@link ZombieCluster} rebuilds the cluster topology using the information
  84701. obtained from job history logs.]]>
  84702. </doc>
  84703. </class>
  84704. <!-- end class org.apache.hadoop.tools.rumen.ZombieCluster -->
  84705. <!-- start class org.apache.hadoop.tools.rumen.ZombieJob -->
  84706. <class name="ZombieJob" extends="java.lang.Object"
  84707. abstract="false"
  84708. static="false" final="false" visibility="public"
  84709. deprecated="not deprecated">
  84710. <implements name="org.apache.hadoop.tools.rumen.JobStory"/>
  84711. <constructor name="ZombieJob" type="org.apache.hadoop.tools.rumen.LoggedJob, org.apache.hadoop.tools.rumen.ClusterStory, long"
  84712. static="false" final="false" visibility="public"
  84713. deprecated="not deprecated">
  84714. <doc>
  84715. <![CDATA[This constructor creates a {@link ZombieJob} with the same semantics as the
  84716. {@link LoggedJob} passed in this parameter
  84717. @param job
  84718. The dead job this ZombieJob instance is based on.
  84719. @param cluster
  84720. The cluster topology where the dead job ran on. This argument can
  84721. be null if we do not have knowledge of the cluster topology.
  84722. @param seed
  84723. Seed for the random number generator for filling in information
  84724. not available from the ZombieJob.]]>
  84725. </doc>
  84726. </constructor>
  84727. <constructor name="ZombieJob" type="org.apache.hadoop.tools.rumen.LoggedJob, org.apache.hadoop.tools.rumen.ClusterStory"
  84728. static="false" final="false" visibility="public"
  84729. deprecated="not deprecated">
  84730. <doc>
  84731. <![CDATA[This constructor creates a {@link ZombieJob} with the same semantics as the
  84732. {@link LoggedJob} passed in this parameter
  84733. @param job
  84734. The dead job this ZombieJob instance is based on.
  84735. @param cluster
  84736. The cluster topology where the dead job ran on. This argument can
  84737. be null if we do not have knowledge of the cluster topology.]]>
  84738. </doc>
  84739. </constructor>
  84740. <method name="getJobConf" return="org.apache.hadoop.mapred.JobConf"
  84741. abstract="false" native="false" synchronized="true"
  84742. static="false" final="false" visibility="public"
  84743. deprecated="not deprecated">
  84744. </method>
  84745. <method name="getInputSplits" return="org.apache.hadoop.mapreduce.InputSplit[]"
  84746. abstract="false" native="false" synchronized="false"
  84747. static="false" final="false" visibility="public"
  84748. deprecated="not deprecated">
  84749. </method>
  84750. <method name="getName" return="java.lang.String"
  84751. abstract="false" native="false" synchronized="false"
  84752. static="false" final="false" visibility="public"
  84753. deprecated="not deprecated">
  84754. </method>
  84755. <method name="getJobID" return="org.apache.hadoop.mapreduce.JobID"
  84756. abstract="false" native="false" synchronized="false"
  84757. static="false" final="false" visibility="public"
  84758. deprecated="not deprecated">
  84759. </method>
  84760. <method name="getNumberMaps" return="int"
  84761. abstract="false" native="false" synchronized="false"
  84762. static="false" final="false" visibility="public"
  84763. deprecated="not deprecated">
  84764. </method>
  84765. <method name="getNumberReduces" return="int"
  84766. abstract="false" native="false" synchronized="false"
  84767. static="false" final="false" visibility="public"
  84768. deprecated="not deprecated">
  84769. </method>
  84770. <method name="getOutcome" return="org.apache.hadoop.tools.rumen.Pre21JobHistoryConstants.Values"
  84771. abstract="false" native="false" synchronized="false"
  84772. static="false" final="false" visibility="public"
  84773. deprecated="not deprecated">
  84774. </method>
  84775. <method name="getSubmissionTime" return="long"
  84776. abstract="false" native="false" synchronized="false"
  84777. static="false" final="false" visibility="public"
  84778. deprecated="not deprecated">
  84779. </method>
  84780. <method name="getQueueName" return="java.lang.String"
  84781. abstract="false" native="false" synchronized="false"
  84782. static="false" final="false" visibility="public"
  84783. deprecated="not deprecated">
  84784. </method>
  84785. <method name="getNumLoggedMaps" return="int"
  84786. abstract="false" native="false" synchronized="false"
  84787. static="false" final="false" visibility="public"
  84788. deprecated="not deprecated">
  84789. <doc>
  84790. <![CDATA[Getting the number of map tasks that are actually logged in the trace.
  84791. @return The number of map tasks that are actually logged in the trace.]]>
  84792. </doc>
  84793. </method>
  84794. <method name="getNumLoggedReduces" return="int"
  84795. abstract="false" native="false" synchronized="false"
  84796. static="false" final="false" visibility="public"
  84797. deprecated="not deprecated">
  84798. <doc>
  84799. <![CDATA[Getting the number of reduce tasks that are actually logged in the trace.
  84800. @return The number of map tasks that are actually logged in the trace.]]>
  84801. </doc>
  84802. </method>
  84803. <method name="getUser" return="java.lang.String"
  84804. abstract="false" native="false" synchronized="false"
  84805. static="false" final="false" visibility="public"
  84806. deprecated="not deprecated">
  84807. </method>
  84808. <method name="getLoggedJob" return="org.apache.hadoop.tools.rumen.LoggedJob"
  84809. abstract="false" native="false" synchronized="false"
  84810. static="false" final="false" visibility="public"
  84811. deprecated="not deprecated">
  84812. <doc>
  84813. <![CDATA[Get the underlining {@link LoggedJob} object read directly from the trace.
  84814. This is mainly for debugging.
  84815. @return the underlining {@link LoggedJob} object]]>
  84816. </doc>
  84817. </method>
  84818. <method name="getTaskAttemptInfo" return="org.apache.hadoop.tools.rumen.TaskAttemptInfo"
  84819. abstract="false" native="false" synchronized="false"
  84820. static="false" final="false" visibility="public"
  84821. deprecated="not deprecated">
  84822. <param name="taskType" type="org.apache.hadoop.mapreduce.TaskType"/>
  84823. <param name="taskNumber" type="int"/>
  84824. <param name="taskAttemptNumber" type="int"/>
  84825. <doc>
  84826. <![CDATA[Get a {@link TaskAttemptInfo} with a {@link TaskAttemptID} associated with
  84827. taskType, taskNumber, and taskAttemptNumber. This function does not care
  84828. about locality, and follows the following decision logic: 1. Make up a
  84829. {@link TaskAttemptInfo} if the task attempt is missing in trace, 2. Make up
  84830. a {@link TaskAttemptInfo} if the task attempt has a KILLED final status in
  84831. trace, 3. Otherwise (final state is SUCCEEDED or FAILED), construct the
  84832. {@link TaskAttemptInfo} from the trace.]]>
  84833. </doc>
  84834. </method>
  84835. <method name="getTaskInfo" return="org.apache.hadoop.tools.rumen.TaskInfo"
  84836. abstract="false" native="false" synchronized="false"
  84837. static="false" final="false" visibility="public"
  84838. deprecated="not deprecated">
  84839. <param name="taskType" type="org.apache.hadoop.mapreduce.TaskType"/>
  84840. <param name="taskNumber" type="int"/>
  84841. </method>
  84842. <method name="getMapTaskAttemptInfoAdjusted" return="org.apache.hadoop.tools.rumen.TaskAttemptInfo"
  84843. abstract="false" native="false" synchronized="false"
  84844. static="false" final="false" visibility="public"
  84845. deprecated="not deprecated">
  84846. <param name="taskNumber" type="int"/>
  84847. <param name="taskAttemptNumber" type="int"/>
  84848. <param name="locality" type="int"/>
  84849. <doc>
  84850. <![CDATA[Get a {@link TaskAttemptInfo} with a {@link TaskAttemptID} associated with
  84851. taskType, taskNumber, and taskAttemptNumber. This function considers
  84852. locality, and follows the following decision logic: 1. Make up a
  84853. {@link TaskAttemptInfo} if the task attempt is missing in trace, 2. Make up
  84854. a {@link TaskAttemptInfo} if the task attempt has a KILLED final status in
  84855. trace, 3. If final state is FAILED, construct a {@link TaskAttemptInfo}
  84856. from the trace, without considering locality. 4. If final state is
  84857. SUCCEEDED, construct a {@link TaskAttemptInfo} from the trace, with runtime
  84858. scaled according to locality in simulation and locality in trace.]]>
  84859. </doc>
  84860. </method>
  84861. <doc>
  84862. <![CDATA[{@link ZombieJob} is a layer above {@link LoggedJob} raw JSON objects.
  84863. Each {@link ZombieJob} object represents a job in job history. For everything
  84864. that exists in job history, contents are returned unchanged faithfully. To
  84865. get input splits of a non-exist task, a non-exist task attempt, or an
  84866. ill-formed task attempt, proper objects are made up from statistical
  84867. sketches.]]>
  84868. </doc>
  84869. </class>
  84870. <!-- end class org.apache.hadoop.tools.rumen.ZombieJob -->
  84871. <!-- start class org.apache.hadoop.tools.rumen.ZombieJobProducer -->
  84872. <class name="ZombieJobProducer" extends="java.lang.Object"
  84873. abstract="false"
  84874. static="false" final="false" visibility="public"
  84875. deprecated="not deprecated">
  84876. <implements name="org.apache.hadoop.tools.rumen.JobStoryProducer"/>
  84877. <constructor name="ZombieJobProducer" type="org.apache.hadoop.fs.Path, org.apache.hadoop.tools.rumen.ZombieCluster, org.apache.hadoop.conf.Configuration"
  84878. static="false" final="false" visibility="public"
  84879. deprecated="not deprecated">
  84880. <exception name="IOException" type="java.io.IOException"/>
  84881. <doc>
  84882. <![CDATA[Constructor
  84883. @param path
  84884. Path to the JSON trace file, possibly compressed.
  84885. @param cluster
  84886. The topology of the cluster that corresponds to the jobs in the
  84887. trace. The argument can be null if we do not have knowledge of the
  84888. cluster topology.
  84889. @param conf
  84890. @throws IOException]]>
  84891. </doc>
  84892. </constructor>
  84893. <constructor name="ZombieJobProducer" type="org.apache.hadoop.fs.Path, org.apache.hadoop.tools.rumen.ZombieCluster, org.apache.hadoop.conf.Configuration, long"
  84894. static="false" final="false" visibility="public"
  84895. deprecated="not deprecated">
  84896. <exception name="IOException" type="java.io.IOException"/>
  84897. <doc>
  84898. <![CDATA[Constructor
  84899. @param path
  84900. Path to the JSON trace file, possibly compressed.
  84901. @param cluster
  84902. The topology of the cluster that corresponds to the jobs in the
  84903. trace. The argument can be null if we do not have knowledge of the
  84904. cluster topology.
  84905. @param conf
  84906. @param randomSeed
  84907. use a deterministic seed.
  84908. @throws IOException]]>
  84909. </doc>
  84910. </constructor>
  84911. <constructor name="ZombieJobProducer" type="java.io.InputStream, org.apache.hadoop.tools.rumen.ZombieCluster"
  84912. static="false" final="false" visibility="public"
  84913. deprecated="not deprecated">
  84914. <exception name="IOException" type="java.io.IOException"/>
  84915. <doc>
  84916. <![CDATA[Constructor
  84917. @param input
  84918. The input stream for the JSON trace.
  84919. @param cluster
  84920. The topology of the cluster that corresponds to the jobs in the
  84921. trace. The argument can be null if we do not have knowledge of the
  84922. cluster topology.
  84923. @throws IOException]]>
  84924. </doc>
  84925. </constructor>
  84926. <constructor name="ZombieJobProducer" type="java.io.InputStream, org.apache.hadoop.tools.rumen.ZombieCluster, long"
  84927. static="false" final="false" visibility="public"
  84928. deprecated="not deprecated">
  84929. <exception name="IOException" type="java.io.IOException"/>
  84930. <doc>
  84931. <![CDATA[Constructor
  84932. @param input
  84933. The input stream for the JSON trace.
  84934. @param cluster
  84935. The topology of the cluster that corresponds to the jobs in the
  84936. trace. The argument can be null if we do not have knowledge of the
  84937. cluster topology.
  84938. @param randomSeed
  84939. use a deterministic seed.
  84940. @throws IOException]]>
  84941. </doc>
  84942. </constructor>
  84943. <method name="getNextJob" return="org.apache.hadoop.tools.rumen.ZombieJob"
  84944. abstract="false" native="false" synchronized="false"
  84945. static="false" final="false" visibility="public"
  84946. deprecated="not deprecated">
  84947. <exception name="IOException" type="java.io.IOException"/>
  84948. </method>
  84949. <method name="close"
  84950. abstract="false" native="false" synchronized="false"
  84951. static="false" final="false" visibility="public"
  84952. deprecated="not deprecated">
  84953. <exception name="IOException" type="java.io.IOException"/>
  84954. </method>
  84955. <doc>
  84956. <![CDATA[Producing {@link JobStory}s from job trace.]]>
  84957. </doc>
  84958. </class>
  84959. <!-- end class org.apache.hadoop.tools.rumen.ZombieJobProducer -->
  84960. </package>
  84961. </api>